Skip to main content

Neptune.ai tensorflow-keras integration library

Project description

Neptune: Tensorflow and Keras integration

See the official docs.

Minimal example:

import tensorflow as tf
import neptune.new as neptune
from neptune.new.integrations.tensorflow_keras import NeptuneCallback

run = neptune.init(project='common/tf-keras-integration', api_token='ANONYMOUS')

mnist = tf.keras.datasets.mnist
(x_train, y_train),(x_test, y_test) = mnist.load_data()
x_train, x_test = x_train / 255.0, x_test / 255.0

model = tf.keras.models.Sequential([
  tf.keras.layers.Flatten(),
  tf.keras.layers.Dense(256, activation=tf.keras.activations.relu),
  tf.keras.layers.Dropout(0.5),
  tf.keras.layers.Dense(10, activation=tf.keras.activations.softmax)
])

optimizer = tf.keras.optimizers.SGD(lr=0.005, momentum=0.4,)

model.compile(optimizer=optimizer,
              loss='sparse_categorical_crossentropy',
              metrics=['accuracy'])

neptune_cbk = NeptuneCallback(run=run, base_namespace='metrics')
model.fit(x_train, y_train,
          epochs=5,
          batch_size=64,
          callbacks=[neptune_cbk])

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

neptune-tensorflow-keras-0.9.4.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file neptune-tensorflow-keras-0.9.4.tar.gz.

File metadata

  • Download URL: neptune-tensorflow-keras-0.9.4.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for neptune-tensorflow-keras-0.9.4.tar.gz
Algorithm Hash digest
SHA256 c795bc25dc8c4a5a3032a654a34af78c117924da472605e17a6b7dc24de3ddbb
MD5 541ca537e39a5808fd7a55daf20c337b
BLAKE2b-256 a5958f9f1f3b01f3b01233ea299ebcfd70ab8c3c4f78d79420b6e1166e67ca9c

See more details on using hashes here.

Supported by

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