how to reload the pmml file?
moseshu opened this issue · 2 comments
moseshu commented
Hello!
I save the Keras model as pmml file . but how to reload it by nyoka API?
my code is
pmml = KerasToPmml(keras_model=model, model_name="text", predictedClasses=[1, 0])
pmml.export(open("%s/model/cnn.pmml" % path, "w"), 0)
I use the model to predict the binary text classification, the parameter predictedClasses is right to be given?
Nirmal-Neel commented
Yes. You are using the exporter in correct way. However, Nyoka is an exporter only. It only allows you to convert a model into PMML.
moseshu commented
Yes. You are using the exporter in correct way. However, Nyoka is an exporter only. It only allows you to convert a model into PMML.
I get i !tthank you