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

Uploaded Source

Built Distribution

KerasModelManager-0.0.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: KerasModelManager-0.0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for KerasModelManager-0.0.3.tar.gz
Algorithm Hash digest
SHA256 73999f93122b713dd207b2a005e111e39c957a9c2c31e571805c0d87e4626f6f
MD5 107a733f3e831aea29b9e6ff1a9a7311
BLAKE2b-256 6c501a6e43198725273c3fb2178227e7533ab147f6dc6b1115c7ca86f4ba37db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: KerasModelManager-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for KerasModelManager-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 54ca70f0f70b3709aa2532be439e17f99ce344512276ee3527f7812741b90590
MD5 f05869ed61444f30fed968cdcf8e0799
BLAKE2b-256 bd5f99050d51db60b6b73a62a1aa1a0102cde21439eeaa20c12e63f110c62f04

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