citrine.informatics.predictors.ingredient_fractions_predictor module

class citrine.informatics.predictors.ingredient_fractions_predictor.IngredientFractionsPredictor(name: str, *, description: str, input_descriptor: FormulationDescriptor, ingredients: Set[str])

Bases: Resource[IngredientFractionsPredictor], PredictorNode

A predictor interface that computes ingredient fractions.

Parameters:
  • name (str) – name of the configuration

  • description (str) – the description of the predictor

  • input_descriptor (FormulationDescriptor) – descriptor that represents the input formulation

  • ingredients (Set[str]) – set of ingredients to featurize. If an unknown ingredient is encountered, an error will be thrown.

access_control_dict() dict

Return an access control entity representation of this resource. Internal use only.

classmethod build(data: dict) Self

Build an instance of this object from given data.

dump() dict

Dump this instance.

classmethod get_type(data) Type[PredictorNode]

Return the subtype.

description: str = None
ingredients: Set[str] = None
input_descriptor: FormulationDescriptor = None
name: str = None
typ = 'IngredientFractions'