Here is the pickle saved file for this error. I have renamed it from Grid_pipeline-yd1bTD.pkl.z to Grid_pipeline-yd1bTD.pkl.zip to be able to upload here.
Grid_pipeline-yd1bTD.pkl.zip
SkLearn2PMML is a lightweight Python wrapper for the JPMML-SkLearn library. This issue is about a deeper technical matter, so it will be analyzed here: https://github.com/jpmml/jpmml-sklearn/issues/42
I am getting the the "returned non-zero exit status 1" error with the new version 0.17 sklearn2pmml, when using it with GridSearchCV.
Version info
('python: ', '2.7.6') ('sklearn: ', '0.18.1') ('sklearn.externals.joblib:', '0.10.3') ('pandas: ', u'0.19.2') ('sklearn_pandas: ', '1.3.0') ('sklearn2pmml: ', '0.17.0')
Code to reproduce
1) Working correctly:
2) Throwing error:
Using the following line gives "TypeError: The pipeline object is not an instance of PMMLPipeline" which is understandable.
sklearn2pmml(cv, ".../GridSearchFit.pmml", with_repr = True, debug = True)
So I tried using cv.bestestimator in it, but it throws the "returned non-zero exit status 1" error.
sklearn2pmml(cv.best_estimator_, ".../GridSearchFit.pmml", with_repr = True, debug = True)
Stack trace of error:
Here is the pickle saved file for this error. I have renamed it from Grid_pipeline-yd1bTD.pkl.z to Grid_pipeline-yd1bTD.pkl.zip to be able to upload here. Grid_pipeline-yd1bTD.pkl.zip