citrine.informatics.predictors.label_fractions_predictor module

class citrine.informatics.predictors.label_fractions_predictor.LabelFractionsPredictor(name: str, *, description: str, input_descriptor: FormulationDescriptor, labels: Set[str])

Bases: Resource[LabelFractionsPredictor], PredictorNode

A predictor interface that computes the relative proportions of labeled ingredients.

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

  • description (str) – description of the predictor

  • input_descriptor (FormulationDescriptor) – descriptor that contains formulation data

  • labels (Set[str]) – labels to compute the quantity fractions of

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
input_descriptor: FormulationDescriptor = None
labels: Set[str] = None
name: str = None
typ = 'LabelFractions'