You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: results/Readme.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,13 @@ I usually find that I present data to the model in blocks, which usually contain
5
5
6
6
#Using from training code
7
7
Two functions are provided which are called by the training routine:
8
-
*results.startRun
8
+
9
+
### `results.startRun`
9
10
This is called before any training, and stores information about the run for future reference. It also creates the database file (by default `results.sqlite`) if it doesn't exist.
10
11
11
12
The supplied information I store for each run are pretty much the arguments of this function and the columns of the table RUNS. Exception: `callerFilePath` is a list of filenames whose contents we store - e.g. the code. I use the nonemptiness of `continuation` to indicate that the model was not trained from scratch, but from the saved weights of the previous run. `architecture` and `solver` are basically assumed in diffRuns and describeRun to be long JSON strings. You can change any of this.
12
13
13
-
*results.step
14
+
### `results.step`
14
15
This stores the reported training and test objective and accuracy from each step of training.
15
16
These are stored in the STEPS table.
16
17
The time for the first 10 steps is remembered in the steps table.
@@ -23,7 +24,7 @@ results = require 'results'
23
24
Only one process should modify the database at any one time; you cannot train two models to the same database. But you can have as many processes as you like connected to the database and using the query functions, even during training.
24
25
25
26
#Using the results
26
-
I usually have an alias like 'ipython -i -c "import numpy as np; import results as r"'.
27
+
I usually have an alias like `ipython -i -c "import numpy as np; import results as r"`.
27
28
The following functions are easy to use analysis functions.
28
29
*`r.runList()` and `r.runList2()` provide summaries of all the runs.
29
30
*`r.plotRun(x)` draws a graph of the training of the xth run
0 commit comments