A wrapper for Keras models
Project description
ModelManager
Wrapper for keras models to ensure logging and reproducibility
import keras
from keras.models import Sequential
from ModelManager import ModelManager
# Create some simple model
my_model = Sequential()
my_model.add(Dense(2, input_dim=1, activation='relu'))
my_model.add(Dense(1, activation='sigmoid'))
my_model.compile(optimizer=keras.optimizers.Adam(learning_rate=0.01), loss='categorical_crossentropy')
# Some data
x = [1, 2, 3, 4, 5]
y = [1, 2, 3, 4, 5]
mm = ModelManager("some/path", model=my_model, save_history=True, save_weights=True, save_model=True)
mm.fit(x=x, y=y, batch_size=1, epochs=3)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for KerasModelManager-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b52f4c12c06f2c11b1643ddc37104ff920043b55ca9c12190cfeee8230b4f86 |
|
MD5 | 1ba5639c3feede1ee4b66b1f6e6853a4 |
|
BLAKE2b-256 | 91ee4a7e4bc562d5bcd710bc3415aa172582c9e0ef2180158e347720fb782c73 |