<commit_before>#!/usr/bin/env bash
if [[ $# -ne 1 ]]; then
  echo "usage: $0 glob_to_run_outs"
  exit 1
fi

set -ex

./p/emit_stats.py --emit=losses --max-episode=5000 $1 > /tmp/l.tsv &
./p/emit_stats.py --emit=rewards --max-episode=5000 $1 > /tmp/r.tsv &
./p/emit_stats.py --emit=turn_moves --max-episode=5000 $1 > /tmp/mt.tsv &
wait

Rscript --vanilla ./p/emit_plots.R
eog /tmp/plots.png<commit_msg>large window, need to make this config :/<commit_after>#!/usr/bin/env bash
if [[ $# -ne 1 ]]; then
  echo "usage: $0 glob_to_run_outs"
  exit 1
fi

set -ex

export M=100000000
./p/emit_stats.py --emit=losses --max-episode=$M $1 > /tmp/l.tsv &
./p/emit_stats.py --emit=rewards --max-episode=$M $1 > /tmp/r.tsv &
./p/emit_stats.py --emit=turn_moves --max-episode=$M $1 > /tmp/mt.tsv &
wait

Rscript --vanilla ./p/emit_plots.R
eog /tmp/plots.png
{'fraction_non_alphanumeric': 0.20047449584816132, 'fraction_numerical': 0.03914590747330961, 'mean_word_length': 2.9624413145539905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '6902769', 'n_tokens_mistral': 408, 'n_tokens_neox': 373, 'n_words': 80}