当我尝试序列化模型时,我遇到了 MLeap 0.16 和 Python 3 的问题。这是我的代码:
from mleap.sklearn.logistic import LogisticRegression
from sklearn.datasets import load_iris
X, y = load_iris(return_X_y=True)
clf = LogisticRegression(random_state=0).fit(X, y)
clf.serialize_to_bundle("path", "irismodel")
错误:
AttributeError: 'LogisticRegression' object has no attribute 'input_features'
有没有人找到解决方法?