This is a simple keras notifier callback.
It is only available to the slack now.
-
add your slack url in enviroment variable
export SLACK_URL="http:hooks.slack.com/services/xxxxxxx/yyyyyyyyyy"
-
just append
SlackNotifier
in your callbacks
import os
from keras import Sequential
from keras.layers import Dense, Activation
import numpy as np
model = Sequential()
model.add(Dense(3, input_shape=(3, )))
model.add(Activation('softmax'))
model.compile(loss='categorical_crossentropy',
optimizer='adam',
metrics=['accuracy'])
inp = np.array([[2, 3, 4], [3, 4, 5]])
out = np.array([[1, 0, 0], [0, 0, 1]])
model.fit(inp, out, epochs=30,
callbacks=[SlackNotifier(os.getenv("SLACK_URL"), every_log_steps=10, include_time=True)])
and, you can get the result.