Scoring engine for PMML models implemented using python. The PMML scoring engine exposes predictive machine learning models as REST endpoints. Clients can send new observations to the scoring engine in the JSON file format. The scoring engine returns a JSON response containing the new scores
sudo apt install python-dev
sudo apt install python-pip
sudo apt install libxml2-dev libxslt1-dev # XML dependency
sudo apt install libblas-dev liblapack-dev libatlas-base-dev gfortran # Numpy dependency
sudo apt install lib32z1-dev #lxml dependency
pip install lxml
pip install Cythonpmml-scoring-engine requires the development version of ScikitLearn for
the GaussianProcessRegressor class. Install the development version from Github:
git clone https://github.com/scikit-learn/scikit-learn.git
cd scikit-learn
python setup.py build
sudo python setup.py installInstall dependencies with setuptools
sudo python setup.py installgit clone https://github.com/maxkferg/pmml-scoring-engine.git
cp some-pmml-file.pmml pmml-scoring-engine/scoring-engine/examples/pmml
cd pmml-scoring-engine/scoring-engine
python runserver.pyr = HTTP.get('/pmml/some-pmml-filename.pmml',{xnew:[1,4,5,3,5,7,8,4,3,6,7,1]})
r.response # -> {mu:1.45324344,sd:3.2214342}- Max Ferguson: @maxkferg
- Stanford Engineering Informatics Group: eil.stanford.edu