|
a |
|
b/5-Training with Ignite and Optuna/README.md |
|
|
1 |
# Repository Contents |
|
|
2 |
|
|
|
3 |
constants.py: File containing all the tuneable parameters and the current values to try |
|
|
4 |
|
|
|
5 |
paths.py: File containing all the paths to the data files on the remote server |
|
|
6 |
|
|
|
7 |
tuningfunctions.py: File containing functions used in example.ipynb |
|
|
8 |
|
|
|
9 |
models.py: File containing the model class definitions to be tuned, tuneable parameters should be placed in constants.py and called when using trial.suggest |
|
|
10 |
|
|
|
11 |
example.ipynb: Jupyter Notebook detailing the necessary steps to optimize hyperparameters in Ignite+Optuna, including loading data, defining the objective, running trials, and viewing the Tensorboard logs. |
|
|
12 |
|
|
|
13 |
# Accessing Tensorboard Logs |
|
|
14 |
-Ensure you have tensorboard installed (presuming you use Conda environments run the following)<br> |
|
|
15 |
``` |
|
|
16 |
conda install -c conda-forge tensorboard |
|
|
17 |
``` |
|
|
18 |
-after successful install enter below...<br> |
|
|
19 |
``` |
|
|
20 |
tensorboard --logdir <LOCATION OF TENSORBOARD DIRECTORY> |
|
|
21 |
``` |
|
|
22 |
-you should see ```TensorBoard 1.15.0 at http://youraddress:6006/ (Press CTRL+C to quit)``` (NOTE that 6006 may be in use by other users)<br> |
|
|
23 |
-open a new terminal window and enter <br> |
|
|
24 |
``` |
|
|
25 |
ssh youruserID@youraddress -- -NfL 6006:localhost:6006 |
|
|
26 |
``` |
|
|
27 |
-open your local browser and type in ```localhost:6006```<br> |
|
|
28 |
|
|
|
29 |
# Example Tensorboard Log Output |
|
|
30 |
The tensorboard will log all experiments and allow you to review the train and validation stages across them. |
|
|
31 |
<img src="./Tensorboard_Log_Example.png" width="1000"/> |