Skip to main content

Variables

  • EXTRA_FEATURES: Extra features to be used in the state registry.
  • STATE_REGISTRY: State configurations for the meta model state registry.

StateConfig

StateConfig(
    name: str,
    features: str,
    model_func: Callable,
    model_params: Dict[str, Any] = _Nothing.NOTHING,
    preprocess_func: Callable = None,
)
Configuration for a state in the meta model. Method generated by attrs for class StateConfig.

Instance variables

  • features: str: Features to be used for the state, can be a single feature or a list of features.
  • model_func: Callable: Function to compute the state from the features. It should accept a 2D array and return a scalar value.
  • model_params: Dict[str, Any]: Additional parameters for the model function, if any.
  • name: str: Name of the state.
  • preprocess_func: Callable: Function to preprocess the features before applying the model function. It should accept a 2D array and return a 2D array.