- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
Regards,
Zulkifli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi TGWelcome.
This thread will no longer be monitored since this issue is being discussed in this thread:
Regards,
Zulkifli
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page