From 8ed6c131dc755c0dc1dfca14cfe66e5ce73a8279 Mon Sep 17 00:00:00 2001 From: Hiroyuki Eguchi Date: Mon, 12 Dec 2016 09:35:19 +0000 Subject: [PATCH] Create learning without specifing experiment-id Enable to create learning without specifing experiment_id. Currently, user must specify experiment_id and model_id when creating learning-job. However, meteso can find out experiment_id from model_id. Change-Id: I0ba179424bc794469824c934ee3cd6988db70991 --- meteosclient/api/learnings.py | 3 +-- sample/json/learning.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/meteosclient/api/learnings.py b/meteosclient/api/learnings.py index 0941cba..3cedf4a 100644 --- a/meteosclient/api/learnings.py +++ b/meteosclient/api/learnings.py @@ -28,13 +28,12 @@ class LearningManager(base.ResourceManager): NotUpdated = base.NotUpdated() def create(self, display_name=None, display_description=None, - experiment_id=None, model_id=None, method=None, args=None): + model_id=None, method=None, args=None): """Create a Learning.""" data = { 'display_name': display_name, 'display_description': display_description, - 'experiment_id': experiment_id, 'model_id': model_id, 'method': method, 'args': base64.b64encode(str(args)), diff --git a/sample/json/learning.json b/sample/json/learning.json index 4870b8f..23e1237 100644 --- a/sample/json/learning.json +++ b/sample/json/learning.json @@ -1,7 +1,6 @@ { "display_name": "example-learning-job", "display_description": "This is a sample job", - "experiment_id": "", "model_id": "", "method": "predict", "args": ""