(self, model_id, opt, timeout=-1)
Clone a model `model_id`.
           Different options may be passed. If `opt` is None, it will use the
           same set of options
Clone a model `model_id`.
           Different options may be passed. If `opt` is None, it will use the
           same set of options
Clone a model model_id . Different options may be passed . If opt is None it will use the same set of options
def clone_model(self, model_id, opt, timeout=-1):
        """Clone a model `model_id`.
           Different options may be passed. If `opt` is None, it will use the
           same set of options
        """
        if model_id in self.models:
            if opt is None:
                opt = self.models[model_id].user_opt
            opt["models"] = self.models[model_id].opt.models
            return self.load_model(opt, timeout)
        else:
            raise ServerModelError("No such model '%s'" % str(model_id))
def clone_model ( self , model_id , opt , timeout = - 1 ) : if model_id in self . models : if opt is None : opt = self . models [ model_id ] . user_opt opt [ "models" ] = self . models [ model_id ] . opt . models return self . load_model ( opt , timeout ) else : raise ServerModelError ( "No such model '%s'" % str ( model_id ) )