Keras extension for Openml python API
Project description
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.
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
openml-keras-0.0.7.tar.gz
(13.3 kB
view details)
File details
Details for the file openml-keras-0.0.7.tar.gz
.
File metadata
- Download URL: openml-keras-0.0.7.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138f21f5fff6b1baa04bf96873bf84eed7666b8d71340fc5492c46ba3fb499c6 |
|
MD5 | 9e5b65423442906d4297252488b85d12 |
|
BLAKE2b-256 | 018c02742ee76778bfd2a5d5a86d7d61f777524a258f2c84a6931e02f6defba6 |