-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I save only transformer pipeline to pmml ? #103
Comments
Exact duplicate of #61 |
yeah,I have see that.but I use spark to train Model, how can I do with this. |
This functionality was implemented into the JPMML-Converter library (base layer for all JPMML family conversion libraries) as detailed in jpmml/jpmml-converter#11 So, the technical capability is there, but looks like it hasn't been fully integrated with Specifically, there needs to be an additional clause for |
oh. so what to do in the additional clause for if(models.size() == 0) ? thanks. |
can I modify add an additional clause for if(models.size() == 0) just do nothing |
I check there code's logic ,i found this model can not be null ,so I dont know how to add that condition .can I new a BaselineModel ? |
This model can very well be For example, this check |
I see. so I just modify that class like you said .dont go to modelEncoder logic .it will work. I will have a try tomorrow. thanks and happy new year . |
hello . I have a try .I can save to pmml whit only feature pipelineModel. but the evaluator can not load this pmml.so,how can I use this pmml? |
i found this pmml have no TransformationDictionary ,so even i use the Tranformer entry point,I just get result size 0 |
@vruusmann hello: onehot = OneHotEncoder(inputCol="C7_index", outputCol="C7_index_hot") #model_1 = process_1.fit(data) #model_1.write().overwrite().save(path_1) pmmlBuilder1 = PMMLBuilder(spark.sparkContext, data, feature_8).putOption(None, spark.sparkContext._jvm.org.jpmml.sparkml.model.HasTreeOptions.OPTION_COMPACT, True) pmmlBuilder1.buildFile("feature_8.pmml") pmmlBuilder2 = PMMLBuilder(spark.sparkContext, data, feature_6).putOption(None, spark.sparkContext._jvm.org.jpmml.sparkml.model.HasTreeOptions.OPTION_COMPACT, True) pmmlBuilder2.buildFile("feature_6.pmml") pmmlBuilder3 = PMMLBuilder(spark.sparkContext, data, feature_9).putOption(None, spark.sparkContext._jvm.org.jpmml.sparkml.model.HasTreeOptions.OPTION_COMPACT, True) pmmlBuilder3.buildFile("feature_9.pmml") pmmlBuilder4 = PMMLBuilder(spark.sparkContext, data, feature_10).putOption(None, spark.sparkContext._jvm.org.jpmml.sparkml.model.HasTreeOptions.OPTION_COMPACT, True) pmmlBuilder4.buildFile("feature_10.pmml")`; I have only modify the jpmml-spark's code like this:
But, I got the feature_6.pmml dont have TransformationDictionary tag ,the pmml's end like this So, I use the jpmml-evaluator's Transformer's API can not get the result. |
hello:
I have a try. but get this error "Expected a pipeline with one or more models, got a pipeline with zero models". thanks!!
The text was updated successfully, but these errors were encountered: