Skip to content

Commit 0bbd735

Browse files
authored
Update README.md
1 parent e4a69f8 commit 0bbd735

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,18 @@ realtimeplt is a Python library made by VisionBrain which foucuses on getting th
3434
## Use
3535
The major dependency of realtimeplt is livelossplot
3636
```python
37+
%matplotlib inline
38+
39+
from keras.datasets import mnist
40+
from keras.utils import to_categorical
41+
from keras.models import Sequential
42+
from keras.layers import Flatten, Dense, Activation
43+
44+
# raw keras
3745
from livelossplot import PlotLossesKeras
38-
model.fit(X_train, Y_train,
39-
epochs=10,
40-
validation_data=(X_test, Y_test),
41-
callbacks=[PlotLossesKeras()],
42-
verbose=0)
46+
47+
# tensorflow.keras
48+
# from livelossplot import PlotLossesKerasTF
4349
```
4450

4551
## Supported DataScience Libraries

0 commit comments

Comments
 (0)