<commit_before># dd_board
Version 0.9

Works with: Python 2.7

Converts a log to "TensorBoard compatible" data.
Variables:

- log_file = log file used for the graph
- run_dir = directory used by tensorboard logger
- flush_time = interval between 2 flushes of the log file


Requirements:
-------------

- [tensorboard_logger](https://github.com/TeamHG-Memex/tensorboard_logger)

Usage:
------
rlog = DDBoard(log_file,run_dir,flush_time)

```
from dd_board_logger import DDBoard

[...]

rlog = DDBoard("logfile.log","runs/run-1234",3)
rlog.ddb_logger()

```

You can start TensorBoard right away:
tensorboard --logdir runs
<commit_msg>Another small correction on the readme file<commit_after># dd_board
Version 0.9

Works with: Python 2.7

Converts a log to "TensorBoard compatible" data.
Variables:

- log_file = log file used for the graph
- run_dir = directory used by tensorboard logger
- flush_time = interval between 2 flushes of the log file


Requirements:
-------------

- [tensorboard_logger](https://github.com/TeamHG-Memex/tensorboard_logger)

Usage:
------
rlog = DDBoard(log_file,run_dir,flush_time)

```
from dd_board_logger import DDBoard

[...]

rlog = DDBoard("logfile.log","runs/run-1234",3)
rlog.ddb_logger()

```

You can then start TensorBoard:
```$tensorboard --logdir runs```

{'fraction_non_alphanumeric': 0.13471901462663588, 'fraction_numerical': 0.015396458814472672, 'mean_word_length': 4.038759689922481, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5021359', 'n_tokens_mistral': 467, 'n_tokens_neox': 435, 'n_words': 123}