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.6.tar.gz (3.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: KerasModelManager-0.0.6.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for KerasModelManager-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1f201447f5c614ec2258e7c757e1228d2c65f64200d4bf5b87f425fa555d9489
MD5 1584c307f4c379ae426652a185a9a5ff
BLAKE2b-256 1142ea59dfb84db0f0eb2f8d99ed94af94de3a702d3dfbcf21dde36187799d8f

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