def load_model_generate(self): ''' This method validates the supplied parameters, before generating a model into a NoSQL cache, using a chosen stored dataset from the SQL database. ''' # instantiate class session = Model_Generate(self.data) # generate model if not session.validate_arg_none(): session.validate_premodel_settings() session.check() session.generate_model() # return if session.return_error(): response = { 'status': 1, 'msg': 'Model not generated', 'type': 'model-generate' } else: response = { 'status': 0, 'msg': 'Model properly generated', 'type': 'model-generate' } return json.dumps(response)
def load_model_generate(self): # instantiate class session = Model_Generate(self.data) # generate model if not session.validate_arg_none(): session.validate_svm_settings() session.check() session.generate_model() # return if session.return_error: return False else: return 'Model properly generated'
def load_model_generate(self): '''@load_model_generate This method validates the supplied parameters, before generating a model into a NoSQL cache, using a chosen stored dataset from the SQL database. ''' # instantiate class session = Model_Generate(self.data) # generate model if not session.validate_arg_none(): session.validate_premodel_settings() session.check() session.generate_model() # return if session.return_error(): return False else: return 'Model properly generated'