Closed vkvrg closed 2 years ago
This issue is specific to the sklearn2pmml.ensemble.SelectFirstRegressor
estimator class. It wouldn't happen with, say, sklearn.linear_model.LinearRegression
estimator class.
The problem is that ensemble models have multiple "exit points" in their computational graph. The MiningModelUtil#getFinalModel(...)
utility method operates under the assumption that there's only one "exit point", hence it gets confused, and bails out with an exception.
I'm suffering a bit from this issue in my personal workflows as well..
Hi
There is an issue with PMML generation when the pipeline includes a post-processing step.
I am trying to convert a linear regression model with segmentation to pmml using
Alias(ExpressionTransformer("numpy.exp(X[0])"), 'y', prefit=True)
to makepredict_transformer
argument in PMMLPipeline.And I get the following error:
I am using the version 0.85.0.
The strange thing is without
predict_transformer
argument it works fine.A reproducible example:
I will appreciate your help!