Tensorflow extension for OpenML python
Tensorflow extension for openml-python API. This library provides a simple way to run your Tensorflow models on OpenML tasks.
Installation Instructions:
pip install openml-tensorflow
PyPi link https://pypi.org/project/openml-tensorflow/
Usage
Import openML libraries
import openml
import openml_tensorflow
from tensorflow.keras import layers, models
Create and compile a tensorflow model
model = models.Sequential()
model.add(layers.Conv2D(128, (3, 3), activation='relu', input_shape=IMG_SHAPE))
model.add(layers.MaxPooling2D((2, 2)))
model.add(layers.Conv2D(64, (3, 3), activation='relu'))
model.add(layers.MaxPooling2D((2, 2)))
model.add(layers.Conv2D(64, (3, 3), activation='relu'))
model.add(layers.Flatten())
model.add(layers.Dense(64, activation='relu'))
model.add(layers.Dense(84, activation='relu'))
model.add(layers.Dense(19, activation='softmax'))
model.compile(optimizer='adam',
loss='categorical_crossentropy',
metrics=['AUC'])
# We will compile using the Adam optimizer while targeting accuracy.
model.compile(optimizer='adam',
loss='sparse_categorical_crossentropy',
metrics=['AUC'])
Download the task from openML and run the model on task.
task = openml.tasks.get_task(362071)
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.
Additionally, if you want to publish the run with onnx file, then you must call openml_tensorflow.add_onnx_to_run() immediately before run.publish().
run = openml_tensorflow.add_onnx_to_run(run)
Using docker image
The docker container has the latest version of OpenML-Tensorflow downloaded and pre-installed. It can be used to run TensorFlow Deep Learning analysis on OpenML datasets. See docker.
This library is currently under development, please report any bugs or feature reuest in issues section.
Metadata
Release files for openml-tensorflow 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openml-tensorflow-1.0.0.tar.gz | 19.1 kB | Without provenance | Details for openml-tensorflow-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openml_tensorflow-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for openml_tensorflow-1.0.0-py3-none-any.whl |
Total release size: 35.0 kB
Release files / openml-tensorflow-1.0.0.tar.gz
| Download URL | openml-tensorflow-1.0.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3d0a288f2580d2e8012ccb1b783fc5466b1ad1c71a4b73ffea0471e83bae33d
|
|
BLAKE2b-256 checksum How to use checksums |
a50aa68c43ab85500f68e72f4c3a42ffccd98d07324b589998e08f7b77238092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.13
|
Release files / openml_tensorflow-1.0.0-py3-none-any.whl
| Download URL | openml_tensorflow-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c05b9565ba12f738527f07d362581829a0212331461a48c3bd2f7542c79d5763
|
|
BLAKE2b-256 checksum How to use checksums |
0ad74b9c30890f0a30ddebff89e61f149b0911eb32227a693a34432e7c2028c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.13
|
Security for openml-tensorflow 1.0.0
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.