Пример #1
0
def predict_for_user(uuid, timerange, model=None):

	if model is None:
		pass
		#model = user.model
	MIP = pipeline.ModelInferencePipeline()
	MIP.runModeInferenceStage(uuid, timerange, model=model)
Пример #2
0
def run_mode_pipeline(process_number, uuid_list):

	MIP = pipeline.ModelInferencePipeline()
	for user_id in uuid_list:
		try:
			run_mode_pipeline_for_user(MIP, user_id)
		except e:
			logging.debug("Skipping user %s because of error" % user_id)
			logging.debug("error %s" % e)
			mark_mode_failed_for_user(user_id)
Пример #3
0
def update_model_for_user(uuid, algorithm_id=1):

	MIP = pipeline.ModelInferencePipeline()
	MIP.runModelBuildingStage(uuid = uuid, algorithm_id= algorithm_id)