Python OpenML API Main

Python implementations the OpenML API

License

License

Categories

Categories

Python Languages
GroupId

GroupId

com.feedzai
ArtifactId

ArtifactId

openml-python
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

pom
Description

Description

Python OpenML API Main
Python implementations the OpenML API
Project URL

Project URL

https://github.com/feedzai/feedzai-openml-python
Project Organization

Project Organization

Feedzai
Source Code Management

Source Code Management

https://github.com/feedzai/feedzai-openml-python

Download openml-python

Filename Size
openml-python-0.3.0.pom 10 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.feedzai/openml-python/ -->
<dependency>
    <groupId>com.feedzai</groupId>
    <artifactId>openml-python</artifactId>
    <version>0.3.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.feedzai/openml-python/
implementation 'com.feedzai:openml-python:0.3.0'
// https://jarcasting.com/artifacts/com.feedzai/openml-python/
implementation ("com.feedzai:openml-python:0.3.0")
'com.feedzai:openml-python:pom:0.3.0'
<dependency org="com.feedzai" name="openml-python" rev="0.3.0">
  <artifact name="openml-python" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.feedzai', module='openml-python', version='0.3.0')
)
libraryDependencies += "com.feedzai" % "openml-python" % "0.3.0"
[com.feedzai/openml-python "0.3.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • openml-python-common
  • openml-generic-python
  • openml-scikit

Feedzai OpenML Providers for Python

Build Status codecov Codacy Badge

Implementations of the Feedzai OpenML API to allow support for machine learning models in Python using Java Embedded Python.

Modules

Generic Python

Maven metadata URI

The openml-generic-python module contains a provider that allows developers to load Python code that conforms to a simple API. This is the most powerful approach (yet more cumbersome) since models can actually hold state.

Pull the provider from Maven Central:

<dependency>
  <groupId>com.feedzai</groupId>
  <artifactId>openml-generic-python</artifactId>
  <!-- See project tags for latest version -->
  <version>0.3.0</version>
</dependency>

Scikit-learn

Maven metadata URI

The implementation in the openml-scikit module adds support for models built with scikit-learn.

Pull this module from Maven Central:

<dependency>
  <groupId>com.feedzai</groupId>
  <artifactId>openml-scikit</artifactId>
  <!-- See project tags for latest version -->
  <version>0.3.0</version>
</dependency>

Building

This is a Maven project which you can build using the following command:

mvn clean install

Environment

To use these providers you need to have Python 3.6 with the following packages installed in your environment:

* numpy 
* scipy
* jep (this requires JAVA_HOME to be configured)
* scikit-learn (for the scikit provider)

Note that this section only describes the known prerequisites that are common to any model generated in Python. Before importing a model you need to ensure that the required packages for that model are also installed.

Running the tests

To actually run the tests, two other configurations may be necessary for Jep to work properly:

  • The java.library.path property needs to point to the Jep library. An approach for this that typically works is setting the LD_LIBRARY_PATH environment variable: export LD_LIBRARY_PATH=/...path to.../python3.6/site-packages/jep:$LD_LIBRARY_PATH

  • Depending on the environment and package manager it may also be necessary to set the LD_PRELOAD variable to include the Python library: export LD_PRELOAD=/...path to.../lib/libpython3.6m.so

Feedzai has built a helpful docker image for testing, available on docker hub, that is being used in this repository's continuous integration. See the travis-ci configuration commands on how to use it. The image's Dockerfile also provides an example of the environment installation.

com.feedzai

Feedzai

Versions

Version
0.3.0
0.2.2
0.2.1
0.2.0
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0