[update] evaluate #36
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Readme (Tutorial)
1. Preparation: Training Hyperparameters
It is recommended to prepare the hyperparameters for training in advance.
Below is an example:
2. Adjusting Evaluation Parameters
Adjust the parameters in main_eval.sh according to the hyperparameters used during training.
Below is an example:
3. Evaluation Results
The evaluation results will be saved in TensorBoard. Meanwhile, the input and output of the test data will be saved in both CSV and JSON formats in the directory specified by trainer.default_local_dir.
Example output:
4. Customizing the Reward Function
If the reward function used during evaluation is different from the one used during training, you can modify it in the envs directory, such as in the search.py file of the search demo. Specifically, the function will receive a boolean variable if_val, and you only need to add the new scoring method accordingly.
If the evaluation process is too complex, you can also calculate scores manually using the output JSON files.