<commit_before># Features

- Synopsis: Class to collecting feature data from `frames` and `slides`.


## Structure

- root: `stores/featx`
  + algo formed store filename
    * `keys`
    * `f_number`
    * `s_number`
    * `stats`
    * extends to save filtered, adjusted results

## Examples<commit_msg>Add examples to doc<commit_after># Features

- Synopsis: Class to collecting feature data from `frames` and `slides`.

## Structure

- root: `stores/featx`
  + algo formed store filename
    * `keys`
    * `f_number`
    * `s_number`
    * `stats`
    * extends to save filtered, adjusted results

## Examples

### Featx

```python
from lib.exp.featx import Featx
ft = Featx(root, name)
# Get all slide feats
ft.get_slide_feats()
# Get all video frames feats
ft.get_frame_feats()
```

{'fraction_non_alphanumeric': 0.11802030456852793, 'fraction_numerical': 0.0, 'mean_word_length': 3.5085714285714285, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6364805', 'n_tokens_mistral': 270, 'n_tokens_neox': 264, 'n_words': 82}