File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class ScoreDefinitions(Service):
39
39
def create_score_definition (
40
40
cls ,
41
41
score_def_name : str ,
42
- model_id : str ,
42
+ model : Union [ str , dict ] ,
43
43
table_name : str ,
44
44
table_file : Union [str , Path ] = None ,
45
45
description : str = "" ,
@@ -53,8 +53,8 @@ def create_score_definition(
53
53
--------
54
54
score_def_name: str
55
55
Name of score definition.
56
- model_id : str
57
- A user-inputted model if where the model exists in a project .
56
+ model : str or dict
57
+ The name or id of the model, or a dictionary representation of the model .
58
58
table_name: str
59
59
A user-inputted table name in CAS Management.
60
60
table_file: str or Path, optional
@@ -74,7 +74,8 @@ def create_score_definition(
74
74
75
75
"""
76
76
77
- model = cls ._model_repository .get_model (model_id )
77
+ model = cls ._model_repository .get_model (model )
78
+ model_id = model .id
78
79
79
80
if not model :
80
81
raise HTTPError (
You can’t perform that action at this time.
0 commit comments