![]() Try to download the xgboost wheel file and its dependencies from here, and decompress them to package the files in the wheel path like xgboost-0.6.data as a zip file to upload & use it as the script bundle. And zipped the site-packages folder and uploaded as the Zip file, then included the reference to the site-packages directory and successfully imported the required items. from sklearn. conda list scikit-learn 0.20gridsearchfrom idsearch import GridSearchCVfrom sklearn.modelselection import GridSearchCV. Try to create a clean Python virtual environment via virtualenv, and do pip install xgboost or pip install xgboost.whl to get the dependencies into your site-packages directory on the new python virtual environment. pip install sklearn python3 -m pip install scikit-learn Scikit-Learn. If you got the xgboost installed path from the result of installation via pip.main method, you can try to add the code as below to append the library path dynamically. According to your updated, it sounds like you had installed the xgboost wheel file successfully on Azure ML, but got an issue "ImportError: No module named xgboost" when using it.Īs reference, there are two solutions which you can resolve the issue.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |