Skip to content

Commit 8fb5a92

Browse files
committed
add deletion of ml task
1 parent 90869f4 commit 8fb5a92

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dataikuapi/dss/ml.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,14 @@ def __init__(self, client, project_key, analysis_id, mltask_id):
662662
self.analysis_id = analysis_id
663663
self.mltask_id = mltask_id
664664

665+
def delete(self):
666+
"""
667+
Delete the present ML task
668+
"""
669+
return self.client._perform_json(
670+
"DELETE", "/projects/%s/models/lab/%s/%s/" % (self.project_key, self.analysis_id, self.mltask_id))
671+
672+
665673
def wait_guess_complete(self):
666674
"""
667675
Waits for guess to be complete. This should be called immediately after the creation of a new ML Task

0 commit comments

Comments
 (0)