Intel® Developer Cloud
Help connecting to or getting started on Intel® Developer Cloud
159 Discussions

Intel's AI Kit XGBoost Predictive Modeling Lesson is Generall Broken: Course Effectively Unusable.

TGWelcome
Novice
643 Views

Intel's "AI Kit XGBoost Predictive Modeling" Jupyter notebook is essentially broken and useless due to the fact that the python snippets included contain outdated modules.

 

This manifests as errors like the following when trying to run the lines:

 

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[1], line 4
      2 names =  ['class_label', 'lepton pT', 'lepton eta', 'lepton phi', 'missing energy magnitude', 'missing energy phi', 'jet 1 pt', 'jet 1 eta', 'jet 1 phi', 'jet 1 b-tag', 'jet 2 pt', 'jet 2 eta', 'jet 2 phi', 'jet 2 b-tag', 'jet 3 pt', 'jet 3 eta', 'jet 3 phi', 'jet 3 b-tag', 'jet 4 pt', 'jet 4 eta', 'jet 4 phi', 'jet 4 b-tag', 'm_jj', 'm_jjj', 'm_lv', 'm_jlv', 'm_bb', 'm_wbb', 'm_wwbb']
      3 #data = pd.read_csv(filename, names=names, delimiter=",", nrows=100000)
----> 4 data = pd.read_csv(filename, names=names, delimiter=",", nrows=1100000)
      5 print(data.shape)

NameError: name 'pd' is not defined

 

And:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 import sklearn
      2 from sklearnex import patch_sklearn
      3 patch_sklearn()

ModuleNotFoundError: No module named 'sklearn'

 

To reproduce: Simply run all python snippets with the default kernel.

Further, the simple download snippet is also broken and hangs unreponsive when run from my local bash shell:

 

import os
import requests
if not os.path.isfile("./HIGGS.csv.gz"):
 print("Fetching data set from Internet...~2.8GB")
 url = "https://archive.ics.uci.edu/ml/machine-learning-databases/00280/HIGGS.csv.gz"
 myfile = requests.get(url)
 with open('./HIGGS.csv.gz', 'wb') as f:
  f.write(myfile.content)

 

 

 

Labels (1)
0 Kudos
2 Replies
Zulkifli_Intel
Moderator
604 Views

Hi TGWelcome,

 

Greetings to you.

 

We noticed that you already opened a thread with a similar issue in the Intel community. We are currently investigating the case and will provide the output in this thread:

https://community.intel.com/t5/Intel-Developer-Cloud/XGBoost-Jupyter-Notebook-ModuleNotFoundError-No-module-named/m-p/1549970#M272

 

 

Regards,

Zulkifli 


0 Kudos
Zulkifli_Intel
Moderator
534 Views

Hi TGWelcome.

 

This thread will no longer be monitored since this issue is being discussed in this thread:

https://community.intel.com/t5/Intel-Developer-Cloud/XGBoost-Jupyter-Notebook-ModuleNotFoundError-No-module-named/m-p/1551955#M311

 


Regards,

Zulkifli


0 Kudos
Reply