forked from enviPath/enviPy
[Feature] Rule Based Model (#92)
Fixes #89 Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#92
This commit is contained in:
@ -41,6 +41,12 @@ def evaluate_model(model_pk: int):
|
||||
mod.evaluate_model()
|
||||
|
||||
|
||||
@shared_task(queue='model')
|
||||
def retrain(model_pk: int):
|
||||
mod = EPModel.objects.get(id=model_pk)
|
||||
mod.retrain()
|
||||
|
||||
|
||||
@shared_task(queue='predict')
|
||||
def predict(pw_pk: int, pred_setting_pk: int, limit: Optional[int] = None, node_pk: Optional[int] = None) -> Pathway:
|
||||
pw = Pathway.objects.get(id=pw_pk)
|
||||
|
||||
Reference in New Issue
Block a user