daleroberts / s2cloudmask

Sentinel-2 Cloud and Shadow Detection using Machine Learning
14 stars 2 forks source link

raise XGBoostError(py_str(_LIB.XGBGetLastError())) xgboost.core.XGBoostError: map::at #2

Open kvagdevi opened 2 years ago

kvagdevi commented 2 years ago

I am trying to use s2cloudmask on Linux after installing all packages, i am getting raise XGBoostError(py_str(_LIB.XGBGetLastError())) xgboost.core.XGBoostError: map::at this error or some times sklearn.tree.tree no module name, this problem i managed to work on. Please help me

DiarmuidMalanaphy commented 10 months ago

"sklearn.tree.tree no module name" this comes from the project using an older version of sci-kit learn. The older version of sci-kit learn uses sk.tree.tree for decision trees but has since modified it to use sk.tree. What you're going to have to do is download an older version of sci-kit learn. Similar issue for xg boost. pip uninstall xgboost pip install xgboost==1.1.1.