def wait(self, interval=1, **kwargs):
        """
        Block until the collection's model is completed training
        """
        while True:
            status = self.info(**kwargs).get('status')
            if status == "ready":
                break
            if status != "training":
                raise IndicoError("Collection status failed with: {0}".format(status))
            time.sleep(interval)
def wait ( self , interval = 1 , ** kwargs ) : while True : status = self . info ( ** kwargs ) . get ( 'status' ) if status == "ready" : break if status != "training" : raise IndicoError ( "Collection status failed with: {0}" . format ( status ) ) time . sleep ( interval )
Block until the collection's model is completed training