autodeployai / pypmml

Python PMML scoring library
Apache License 2.0
76 stars 22 forks source link

pypmml reports an error when loading the MultiOutputRegressor model #58

Open xingcoAi opened 2 months ago

xingcoAi commented 2 months ago

I plan to encapsulate multiple rule logics into PMML and finally output them using MultiOutputRegressor:

pipeline = PMMLPipeline([
    ('mapper_miss',mapper_miss)
    ,('mapper_encode',mapper_encode)
    ,('mapper_int',mapper_int)
    ,('mapper_score',mapper_score)
    ,('regress_model',MultiOutputRegressor(LinearRegression(fit_intercept=False)))
])

When I try to read a PMML file using pypmml, I get an error:

PmmlError: ('NoSuchElementException', "No value found for 'x-multiModelChain'")

scorebot commented 2 months ago

See here https://github.com/jpmml/sklearn2pmml/issues/374, x-multiModelChain is a vendor-extension, pypmml doesn't support it currently.