<commit_before># koza4ok

<img width="260px" align="right" hspace="7" vspace="5" src="https://web2.ph.utexas.edu/~ilchenko/img/roc_github.png">

The package contains scikit-learn to TMVA convertor called ```skTMVA```. The idea is to save scikit-learn BDT model to the TMVA xml-file. This allows you to use scikit-learn model directly from TMVA. Once the model is trained and converted, scikit-learn library is not needed anymore! The classification task can be performed with TMVA/ROOT only. This is particularly useful within ATLAS framework where there is no scikit-learn install. A user can train the classifier with scikit-learn on his laptop and later use in ATLAS framework converted to the TMVA xml-file. 

## Dependencies
- [ROOT](http://root.cern.ch) (with TMVA package)
- [NumPy](http://www.numpy.org/)
- [scikit-learn](http://scikit-learn.org/)


## Installation
Basically just add `koza4ok` root directory to PYTHONPATH, or do this
```
> source setup_koza4ok.sh
```

## skTMVA converter
<commit_msg>readme update<commit_after># koza4ok

<img width="260px" align="right" hspace="7" vspace="5" src="https://web2.ph.utexas.edu/~ilchenko/img/roc_github.png">

The package contains scikit-learn to TMVA convertor called ```skTMVA```. The idea is to save scikit-learn BDT model to the TMVA xml-file. This allows you to use scikit-learn model directly from TMVA. Once the model is trained and converted, scikit-learn library is not needed anymore! The classification task can be performed with TMVA/ROOT only. This is particularly useful within ATLAS framework where there is no scikit-learn installed. A user can train the classifier with scikit-learn on his laptop and later use in ATLAS framework converted to the TMVA xml-file. 

## Dependencies
- [ROOT](http://root.cern.ch) (with TMVA package)
- [NumPy](http://www.numpy.org/)
- [scikit-learn](http://scikit-learn.org/)


## Installation
Basically just add `koza4ok` root directory to PYTHONPATH, or do this
```
> source setup_koza4ok.sh
```

## skTMVA converter

{'fraction_non_alphanumeric': 0.10573122529644269, 'fraction_numerical': 0.008893280632411068, 'mean_word_length': 4.656424581005586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '2027914', 'n_tokens_mistral': 667, 'n_tokens_neox': 628, 'n_words': 239}