@@ -116,23 +116,28 @@ def get_model_contents(model):
116116 return get (link .get ('href' ), headers = {'Accept' : link .get ('itemType' , '*/*' )})
117117
118118
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 ):
122122 """Creates a model into a project or folder.
123123
124124 Parameters
125125 ----------
126126 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.
128129 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.
130132 description : str, optional
131133 The description of the model.
132134 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.
134137 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.
136141 algorithm : str, optional
137142 The name of the model algorithm.
138143 tool : str, optional
@@ -148,7 +153,8 @@ def create_model(model, project, description=None, modeler=None, function=None,
148153 champion : bool, optional
149154 Indicates whether the project has champion model or not.
150155 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.
152158 location : str, optional,
153159 The location of this model.
154160 targetVariable : str, optional
@@ -165,10 +171,11 @@ def create_model(model, project, description=None, modeler=None, function=None,
165171 Custom model properties that can be set: name, value, type
166172
167173 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.
169176 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.
172179
173180 Returns
174181 -------
0 commit comments