def createModel(modelParams):
 model = ModelFactory.create(modelParams)
 model.enableInference({'predictedField': 'kw_energy_consumption'})
 return model

def createModel ( modelParams ) : model = ModelFactory . create ( modelParams ) model . enableInference ( { 'predictedField' : 'kw_energy_consumption' } ) return model
given a model params dictionary .