Skip to main content

Keras extension for OpenML python

Keras extension for openml-python API.

Installation Instructions:

pip install openml-keras

PyPi link https://pypi.org/project/openml-keras/

Usage

Import openML libraries

import openml
import openml_keras

Create and compile a keras model

model = keras.models.Sequential([
    keras.layers.BatchNormalization(),
    keras.layers.Dense(units=1024, activation=keras.activations.relu),
    keras.layers.Dropout(rate=0.4),
    keras.layers.Dense(units=2, activation=keras.activations.softmax),
])

# We will compile using the Adam optimizer while targeting accuracy.
model.compile(optimizer='adam',
              loss='sparse_categorical_crossentropy',
              metrics=['accuracy'])

Download the task from openML and run the model on task.

task = openml.tasks.get_task(3573)
run = openml.runs.run_model_on_task(model, task, avoid_duplicate_runs=False)
run.publish()
print('URL for run: %s/run/%d' % (openml.config.server, run.run_id))

Note: The input layer of the network should be compatible with OpenML data output shape. Please check examples for more information.

Release files for openml-keras 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openml-keras 0.0.7
File Size Uploaded
openml-keras-0.0.7.tar.gz 13.3 kB Details

Release files / openml-keras-0.0.7.tar.gz

Download URL openml-keras-0.0.7.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
138f21f5fff6b1baa04bf96873bf84eed7666b8d71340fc5492c46ba3fb499c6
BLAKE2b-256 checksum
How to use checksums
018c02742ee76778bfd2a5d5a86d7d61f777524a258f2c84a6931e02f6defba6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.9

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

0.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page