> ## Documentation Index
> Fetch the complete documentation index at: https://systematica.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# State Registry

> systematica.registries.state_registry

## Variables

* `StateRegistry`: State configurations for the meta model state registry.

* `TrainTestRegistry`: Train/test stats configurations.

## `StateConfig`

```python theme={null}
StateConfig(
    title: str,
    features: str,
    model_func: Callable,
    model_params: Dict[str, Any] = _Nothing.NOTHING,
    preprocess_func: Callable = None,
)
```

Configuration for a state.

If also handle computing features from a data object.

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.

* `preprocess_func: Callable`: Function to preprocess the features before applying the model function.  It should accept a 2D array and return a 2D array.

* `title: str`: Title of the method used to calculate the state.
