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

Uploaded Source

Built Distribution

KerasModelManager-0.0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: KerasModelManager-0.0.1.tar.gz
  • Upload date:
  • Size: 1.4 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.1.tar.gz
Algorithm Hash digest
SHA256 3ab8c749e90bcfb6c7ec02bca1dfbc8e916f3dfe851f3395e946b842c3bd6340
MD5 17334ef77d0e2a8691ba1f0b5f676dc8
BLAKE2b-256 cd5fb0afe1392e2d39efbcc920dfa640989657ae1c946e6e68cbe79c0a2868c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: KerasModelManager-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d93628a1b0698e842d1ca7fe6b6cc840c463cb01b566649a53e61dd637adc25
MD5 6024e09d422cfb57ba68e6cceb004fbe
BLAKE2b-256 42b27fe0a99976d440858ed753efd55b9c0f8f21757f4264d7701fee0f580566

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