iamDecode / sklearn-pmml-model

A library to parse and convert PMML models into Scikit-learn estimators.
BSD 2-Clause "Simplified" License
76 stars 15 forks source link

Example for linear model cannot be run due to missing pmml file #49

Closed cornejom closed 7 months ago

cornejom commented 1 year ago

Description

The linear model example at https://github.com/iamDecode/sklearn-pmml-model/tree/master/sklearn_pmml_model/linear_model cannot be run.

Steps/Code to Reproduce

The following command fails: clf = PMMLLinearRegression(pmml="models/linear-regression.pmml")

FileNotFoundError: [Errno 2] No such file or directory: 'models/linear-regression.pmml'

I visually reviewed the contents of the models folder and could not find that pmml file.

Versions

Windows-10-10.0.14393-SP0 Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] NumPy 1.23.0 SciPy 1.8.1 Scikit-Learn 1.2.1 sklearn-pmml-model 1.0.1