2017-07-05 36 views
0

我想將以下XGBoost模型轉換爲CoreML文件,但出現錯誤。將XGBoost模型轉換爲CoreML

Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
File "/usr/local/lib/python2.7/dist- 
    packages/coremltools/converters/xgboost/_tree.py", line 48, in convert 
return _MLModel(_convert_tree_ensemble(model, feature_names, target)) 
File "/usr/local/lib/python2.7/dist- 
packages/coremltools/converters/xgboost/_tree_ensemble.py", line 111, in convert_tree_ensemble 
xgb_model_str = model.get_dump(with_stats=True, dump_format = 'json') 
TypeError: get_dump() got an unexpected keyword argument 'dump_format' 

我用pip安裝了xgboost。爲什麼會發生?

回答