【发布时间】:2020-04-08 14:52:02
【问题描述】:
我正在使用 Python 中的以下代码创建 RandomForest PMML 模型
from sklearn2pmml.pipeline import PMMLPipeline
from sklearn2pmml import sklearn2pmml
rf=RandomForestClassifier()
rf = PMMLPipeline([('random',rf)])
rf.fit(X_train, y_train)
sklearn2pmml(rf, "classification pmml file/random.pmml",with_repr=True)
我正在使用 Python 中的以下代码加载保存的 RandomForest 模型
from pypmml import Model
rf = Model.fromFile('classification pmml file/random.pmml')
如何在 Python 中对此 RandomForest PMML 模型进行超参数调优?
【问题讨论】:
标签: python machine-learning random-forest hyperparameters pmml