casm.learn.direct_fit

casm.learn.direct_fit(input, save=True, verbose=True, read_existing=True, hall=None)[source]

Fit ECI and add details for a set of individuals specified for feature_selection method ‘DirectSelection’ via the ‘population’ kwarg.

Parameters
  • input (dict) – The input settings as a dict

  • save (boolean, optional, default=True) – Save a pickle file containing the training data and scoring metric. The file name, which can be specified by input[“fit_data_filename”], defaults to “fit_data.pkl”.

  • verbose (boolean, optional, default=True) – Print information to stdout.

  • read_existing (boolean, optional, default=True) – If it exists, read the pickle file containing the training data and scoring metric. The file name, which can be specified by input[“fit_data_filename”], defaults to “fit_data.pkl”.

  • hall (deap.tools.HallOfFame, optional, default=None) – A Hall Of Fame to add resulting individuals to

Returns

population (List[individuals]) – A list of the individuals that were fit