# config

Python API: `luxonis_ml.nn_archive.config`

## Classes

### Config

Configuration schema for an NN Archive.

#### Methods

##### validate_config_version_format

```python
def validate_config_version_format(v: str) -> str:
```

Validate that the schema version uses `major.minor` format.

> **Examples**
> ```pycon
>>> Config.validate_config_version_format("1.0")
'1.0'
>>> Config.validate_config_version_format("1")
Traceback (most recent call last):
...
ValueError: 'config_version' must be in format 'x.y' where x and y are integers
```

Parameters

 * `v` (`str`): Schema version string.

Returns

 * `str`: The validated schema version.

Raises

 * `ValueError`: If `v` is not in `major.minor` format, where both parts are integers.

#### Attributes

##### config_version

Schema version in `major.minor` format.

##### model

Neural network configuration stored in the archive.

## Attributes

### CONFIG_VERSION
