jakebian / hera
- среда, 13 июля 2016 г. в 03:12:42
JavaScript
Train/evaluate a Keras model, get metrics streamed to a dashboard in your browser.
Train/evaluate a Keras model, get metrics streamed to a dashboard in your browser.
Install the package
pip install heraspy
Initialize the spy
from heraspy.model import HeraModel
hera_model = HeraModel(
{
'id': 'my-model' # any ID you want to use to identify your model
},
{
# location of the local hera server, out of the box it's the following
'domain': 'localhost',
'port': 4000
}
)
Plant the spy
A spy admits a Keras callback that you can attach to your experiment. For example
model.fit(
X_train, Y_train,
callbacks=[hera_model.callback]
)
Git clone this repository, then run
cd server
npm install
node build/server
cd client
npm install
npm start
Aside from the obvious ones: