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
`folder`: the folder where the logfile should be stored
60
+
61
+
`filename`: the name of the logfile
62
+
63
+
### Example
64
+
45
65
Read data from the logfile:
46
66
47
67
```python
48
68
data = reader.retrieve()
69
+
...# do something with the data
49
70
```
50
71
51
-
Other methods:
72
+
## Methods
52
73
53
74
| Class | Method | Explanation |
54
75
|:-----|:--------|:------|
@@ -59,7 +80,7 @@ Other methods:
59
80
| LogWriter |`.flush()`| This method flushes the buffer in the writer. The threshold of the buffer is given in the constructor |
60
81
| LogReader |`.retrieve()`| This method retrieves all the data from the logfile and returns it as a list of dictionaries. |
61
82
62
-
## Example usage
83
+
## Demo usage
63
84
64
85
An example of how to use this logger is given. Imagine one has created a [major breakthrough AI system](https://i.pinimg.com/originals/ae/fb/01/aefb01c27ddfdfa2cef723f5056252f7.jpg) that still has to be trained.
65
86
During training one want's to keep an eye on the performance of the progress. To do this, the LogWriter can be added in the learning iterations (e.g. in one Jupyter notebook).
0 commit comments