@@ -116,23 +116,28 @@ def get_model_contents(model):
116
116
return get (link .get ('href' ), headers = {'Accept' : link .get ('itemType' , '*/*' )})
117
117
118
118
119
- def create_model (model , project , description = None , modeler = None , function = None , algorithm = None , tool = None ,
120
- is_champion = False ,
121
- properties = {}, ** kwargs ):
119
+ def create_model (model , project , description = None , modeler = None , function = None ,
120
+ algorithm = None , tool = None , is_champion = False , properties = {} ,
121
+ ** kwargs ):
122
122
"""Creates a model into a project or folder.
123
123
124
124
Parameters
125
125
----------
126
126
model : str or dict
127
- The name or id of the model, or a dictionary representation of the model.
127
+ The name or id of the model, or a dictionary representation of the
128
+ model.
128
129
project : str or dict
129
- The name or id of the model project, or a dictionary representation of the model project.
130
+ The name or id of the model project, or a dictionary representation of
131
+ the model project.
130
132
description : str, optional
131
133
The description of the model.
132
134
modeler : str, optional
133
- Name of the user that created the model. Current user name will be used if unspecified.
135
+ Name of the user that created the model. Current user name will be
136
+ used if unspecified.
134
137
function : str, optional
135
- The function of the model, valid values include: analytical, classification, cluster, forecasting, prediction, Text analytics, transformation.
138
+ The function of the model, valid values include: analytical,
139
+ classification, cluster, forecasting, prediction, Text analytics,
140
+ transformation.
136
141
algorithm : str, optional
137
142
The name of the model algorithm.
138
143
tool : str, optional
@@ -148,7 +153,8 @@ def create_model(model, project, description=None, modeler=None, function=None,
148
153
champion : bool, optional
149
154
Indicates whether the project has champion model or not.
150
155
role : str, optional
151
- The role of the model, valid values include: plain, champion, challenger.
156
+ The role of the model, valid values include: plain, champion,
157
+ challenger.
152
158
location : str, optional,
153
159
The location of this model.
154
160
targetVariable : str, optional
@@ -165,10 +171,11 @@ def create_model(model, project, description=None, modeler=None, function=None,
165
171
Custom model properties that can be set: name, value, type
166
172
167
173
inputVariables : array_like, optional
168
- Model input variables. By default, these are the same as the model project.
174
+ Model input variables. By default, these are the same as the model
175
+ project.
169
176
outputVariables : array_like, optional
170
- Model output variables. By default, these are the same as the model project.
171
-
177
+ Model output variables. By default, these are the same as the model
178
+ project.
172
179
173
180
Returns
174
181
-------
0 commit comments