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.

Metadata

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 Provenance Actions
openml-keras-0.0.7.tar.gz 13.3 kB Without provenance Details for openml-keras-0.0.7.tar.gz

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

Security for openml-keras 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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