Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
545 views
in Technique[技术] by (71.8m points)

python - load xgboost model return NoneType

I have a problem in load xgboost model . when I save my xgboost model using model.save_model("xgbt.bin") and try to load it by this code : load_model=xgboost.Booster.load_model("xgbt.bin") then I print the type of load_model by this print(type(load_model)) and it's print <class 'NoneType'>

also when I try prediction=load_model.predict(api_data) I occured this error : AttributeError: 'NoneType' object has no attribute 'predict'


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...