Skip to content

Commit

Permalink
Update readme about result files from Phase 1
Browse files Browse the repository at this point in the history
  • Loading branch information
plkumjorn committed Mar 23, 2019
1 parent 2277916 commit c0bd3eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ The arguments of the command represent
* `rgidx`: Optional, Random group starting index: e.g. if 5, the training will start from the 5th random group, by default `1`. This argument is used when the program is accidentally interrupted.
* `naug`: The number of augmented data per unseen class

The location of the result file (pickle) is specified by config.rejector_file. The pickle file is actually a list of 10 sublists (corresponding to 10 iterations). Each sublist contains predictions of each test case (1 = predicted as seen, 0 = predicted as unseen).

### How to train / test the traditional classifier in Phase 2

Expand Down
2 changes: 1 addition & 1 deletion src_reject/train_reject.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def print_summary_of_all_iterations(iteration_statistics):
iteration_statistics=iteration_statistics
)

pickle.dump(pass_to_phase2, results_path + "%s_unseen%.2f_augmented0.pickle" % (dataset_name, unseen_percentage))
pickle.dump(pass_to_phase2, config.rejector_file)

pass

Expand Down
2 changes: 1 addition & 1 deletion src_reject/train_reject_augmented.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def print_summary_of_all_iterations(iteration_statistics):
iteration_statistics=iteration_statistics
)

pickle.dump(pass_to_phase2, results_path + "%s_unseen%.2f_augmented%d.pickle" % (dataset_name, unseen_percentage, num_augmented))
pickle.dump(pass_to_phase2, config.rejector_file)

pass

Expand Down

0 comments on commit c0bd3eb

Please sign in to comment.