Skip to main content

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

KerasModelManager-0.0.8.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

KerasModelManager-0.0.8-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file KerasModelManager-0.0.8.tar.gz.

File metadata

  • Download URL: KerasModelManager-0.0.8.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for KerasModelManager-0.0.8.tar.gz
Algorithm Hash digest
SHA256 132b89a6ee8c50814cb448f79d63cace7dfc58ad2f7fcd425d7e60bd66654171
MD5 a4f9ba6381888a1418db37611d081028
BLAKE2b-256 120045b04586e900513c6f645de7461419cbbe55e246bd355c13d3f1cf57a188

See more details on using hashes here.

File details

Details for the file KerasModelManager-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: KerasModelManager-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for KerasModelManager-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dea7e907159f8d4e0cf3ba1aaaf8008e8bb981dfe6ded147d5acb3d8fc036274
MD5 dfbe9a72a3d5d05a3fc20d322080122a
BLAKE2b-256 adb03a1ca1fdb8e24a2f57d9c0c7d785aa9dbbc6e9c57228f01672b99ae276dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page