Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
63ecdc4
GG-18689: Initial version of GridGain Python API moved into separate …
dmitrievanthony May 16, 2019
e99ea97
GG-18689: Add __pycache__ to .gitignore.
dmitrievanthony May 17, 2019
55f2247
GG-18689: Update pom.xml, checkstyle and licence check added.
dmitrievanthony May 17, 2019
a2e8bd8
GG-18689: Update javadoc.
dmitrievanthony May 17, 2019
d59c672
GG-18689: Update javadoc.
dmitrievanthony May 17, 2019
c2425d7
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 20, 2019
dda3a33
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 20, 2019
558186a
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 20, 2019
9a367ba
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 20, 2019
d0a6cd9
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 20, 2019
3fc3eb9
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 20, 2019
82dff5d
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 20, 2019
fb52463
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 20, 2019
96def17
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 21, 2019
679949e
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 21, 2019
1cbc446
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 21, 2019
0d933f2
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 21, 2019
729883e
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 22, 2019
5bacd7e
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 22, 2019
0c2b088
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 22, 2019
d24ac89
GG-18689: Add configuration for readthedocs.io.
dmitrievanthony May 23, 2019
19fbc7f
Merge branch 'master' into gg-18689
dmitrievanthony May 23, 2019
e9cb7c8
GG-18689: Update README.md.
dmitrievanthony May 23, 2019
65ea293
GG-18689: Update README.md.
dmitrievanthony May 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# GridGain ML Python API

GridGain ML Python API consists of two parts:

* ML Python API Java, contains Java wrappers required by Python API to work with Ignite ML library. This part can be found in `ml-python-api` directory. It should be built and then placed into `libs` folder of the Apache Ignite binary release.
* ML Python API Python, contains Python library with classes allowed to work with Ignite ML using Python API.

The documentation can be found on [https://machine-learning-python-api.readthedocs.io/](https://machine-learning-python-api.readthedocs.io/).
49 changes: 33 additions & 16 deletions build_and_test.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
#! /bin/sh
#! /bin/bash

cd ml-python-api
mvn clean install -DskipTests
cd ..
GG_VERSION='8.8.0-SNAPSHOT'
GG_ML_PYTHON_VERSION='1.0-SNAPSHOT'

git clone git@github.com:gridgain/gridgain.git .gridgain-ce
cd .gridgain-ce
mvn clean install -DskipTests -Prelease
cd target/bin
unzip apache-ignite-8.8.0-SNAPSHOT-bin.zip
cd apache-ignite-8.8.0-SNAPSHOT-bin/libs
cp ../../../../../ml-python-api/target/ml-python-api-1.0-SNAPSHOT.jar ./
cd ..
export IGNITE_HOME=`pwd`
cd ../../../../python
BASE_DIR=`pwd`

# Download, build and unzip GridGain binary release.
if [[ -z "${IGNITE_HOME}" ]]; then
git clone git@github.com:gridgain/gridgain.git .gridgain-ce
cd .gridgain-ce
mvn clean install -DskipTests -Prelease -Dignite.version=${GG_VERSION}
cd target/bin
unzip apache-ignite-${GG_VERSION}-bin.zip
rm apache-ignite-${GG_VERSION}-bin.zip
cd apache-ignite-${GG_VERSION}-bin
export IGNITE_HOME=`pwd`
fi

# Build ML Python API (Java part).
if [[ -z "${GG_ML_PYTHON_API_JAR}" ]]; then
cd ${BASE_DIR}
cd ml-python-api
mvn clean install -DskipTests
export GG_ML_PYTHON_API_JAR=`pwd`/target/ml-python-api-${GG_ML_PYTHON_VERSION}.jar
fi

# Copy ML Python API (Java part) into GridGain binary release.
cp ${GG_ML_PYTHON_API_JAR} ${IGNITE_HOME}/libs/

# Install ML Python API (Python part).
cd ${BASE_DIR}/python
pip3 install -r requirements/install.txt
p3 install -r requirements/tests.txt
pip3 install -r requirements/tests.txt
pip3 install .

# Run tests.
python3 -m unittest tests/test_classification.py tests/test_regression.py tests/test_clustering.py
exit $?
13 changes: 13 additions & 0 deletions python/LICENCE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2019 GridGain Systems, Inc. and Contributors.

Licensed under the GridGain Community Edition License (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
2 changes: 2 additions & 0 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# GridGain ML Python API

Detailed documentation can be found on [https://machine-learning-python-api.readthedocs.io/](https://machine-learning-python-api.readthedocs.io/) and in `docs` directory.
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def is_a_requirement(line):

setuptools.setup(
name='ggml',
version='0.0.1',
version='0.0.3',
python_requires='>={}.{}'.format(*PYTHON_REQUIRED),
author='Anton Dmitriev',
author_email='dmitrievanthony@gmail.com',
Expand Down