MLBazaar / Cardea

An open source automl library for using machine learning in healthcare.

Home Page:https://mlbazaar.github.io/Cardea/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modeler optimize option requires all primitives to have hyper parameters

sarahmish opened this issue · comments

Current implementation of modeler raises error if any single primitive in the sequence of primitives does not have tunable hyperparameters.

Simple fix is to edit function create_space to have the error raised after checking all primitives

if (space_list == {}):
    raise Exception('Can not create the domain Space.\
    All primitives have empty tunnable hyperparameters.')

Rather than

if (tunable_hyperparameters == {}):
    raise Exception('Can not create the domain Space.\
    The value of tunnable hyperparameters is: {}')