Skip to content

Commit

Permalink
Update api_encoding_train_test.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
niklases committed Jan 20, 2024
1 parent c33b22d commit 4325bce
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 37 deletions.
83 changes: 47 additions & 36 deletions scripts/Encoding_low_N/api_encoding_train_test.ipynb

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion scripts/Encoding_low_N/api_encoding_train_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@
all_stddevs_dca_statistical, all_stddevs_dca_ml, all_stddevs_hybrid, all_stddevs_aaidx, all_stddevs_onehot = [], [], [], [], []
low_n_train = np.arange(50, 1001, 50)
print(f'\n(4/4) Testing low N performance (with N_train = {list(low_n_train)})...\n' + "=" * 50)
for n_train in tqdm(low_n_train):
pbar = tqdm(low_n_train)
for n_train in pbar:
pbar.set_description(f'N_train = {n_train}, N_test = {len(variants) - n_train}')
performances_dca_statistical, performances_dca_ml, performances_hybrid, performances_aaidx, performances_onehot = [], [], [], [], []
for rnd_state in [42, 213, 573, 917, 823]:
x_dca_train, x_dca_test, y_train, y_test = train_test_split(
Expand Down

0 comments on commit 4325bce

Please sign in to comment.