PicNet / XGBoost.Net

.Net wrappers for the awesome XGBoost library
51 stars 18 forks source link

XGBClassifier.DumpModelEx throws EntryPointNotFoundException #10

Closed suoranta closed 7 years ago

suoranta commented 7 years ago

XGBClassifier.DumpModelEx throws EntryPointNotFoundException because entry point XGBoosterDumpModelEx is not found in libxgboost.dll. I inspected the DLL in question and I believe that the entry point was perhaps meant to be XGBoosterDumpModel.

cycloidistic commented 7 years ago

Yep, I think you're right. I'm fixing that now and hopefully will be able to update the nuget package soon.

Just to clarify how this happened, what did the code which caused this error look like? It would help in testing.

suoranta commented 7 years ago

Thanks, I simply instantiated an XGBClassifier, fitted and called DumpModelEx:

XGBClassifier classifier = new XGBClassifier();
classifier.Fit(X,Y);
var dump = classifier.DumpModelEx();
cycloidistic commented 7 years ago

Thanks for that.

It should be fixed now. The fix is also part of the latest nuget package release.