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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file KerasModelManager-0.0.10.tar.gz.
File metadata
- Download URL: KerasModelManager-0.0.10.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03fc607713150e76fb784a58fffc1ceb3dd59df2e90a6222c5cb97ea70616d0b
|
|
| MD5 |
14a6a82a5d47cebd93f12b37dcaa52d7
|
|
| BLAKE2b-256 |
07b9c030b2830aba8603e1571ff0043ecf1ba2901624baf132f6acab609683ec
|
File details
Details for the file KerasModelManager-0.0.10-py3-none-any.whl.
File metadata
- Download URL: KerasModelManager-0.0.10-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a6bb7c2a5f194bccdcfdf0ec92bd2fae24216335a852c7732778af3d1afd3a2
|
|
| MD5 |
0a5655683a0e95966f459698e530bdc8
|
|
| BLAKE2b-256 |
afb207e1f757a1bb18cedb242cfc42f83da6de2e389a1580153fcda13836c5e2
|