Skip to content

Commit d9cbac1

Browse files
amyskovJoeOsterericlars
authored andcommitted
Correct IntelPython_XGBoost_Performance sample (#769)
* ONSAM-1414 Broken Link in Headers (#685) * Update Makefile * Update Makefile * Update Makefile * Update DCT.hpp * Update intrin_ftz_sample.cpp * Update merge_sort.cpp * Update intrin_double_sample.cpp * Update intrin_dot_sample.cpp * Update DCT.cpp * fix deprecation notice (#682) * correct IntelPython_XGBoost_Performance sample Signed-off-by: Alexander Myskov <alexander.myskov@intel.com> Co-authored-by: JoeOster <52936608+JoeOster@users.noreply.github.com> Co-authored-by: ericlars <eric.larson@intel.com>
1 parent f5668a5 commit d9cbac1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

AI-and-Analytics/Features-and-Functionality/IntelPython_XGBoost_Performance/IntelPython_XGBoost_Performance.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,14 @@
126126
"outputs": [],
127127
"source": [
128128
"def load_higgs(nrows_train, nrows_test, dtype=np.float32):\n",
129-
" if not os.path.isfile(\"./data/batch/HIGGS.csv.gz\"):\n",
129+
" if not os.path.isfile(\"./HIGGS.csv.gz\"):\n",
130130
" print(\"Loading data set...\")\n",
131131
" url = \"https://archive.ics.uci.edu/ml/machine-learning-databases/00280/HIGGS.csv.gz\"\n",
132132
" myfile = requests.get(url)\n",
133-
" open('./data/batch/HIGGS.csv.gz', 'wb').write(myfile.content)\n",
133+
" with open('./HIGGS.csv.gz', 'wb') as f:\n",
134+
" f.write(myfile.content)\n",
134135
" print(\"Reading data set...\")\n",
135-
" data = pd.read_csv(\"./data/batch/HIGGS.csv.gz\", delimiter=\",\", header=None, compression=\"gzip\", dtype=dtype, nrows=nrows_train+nrows_test)\n",
136+
" data = pd.read_csv(\"./HIGGS.csv.gz\", delimiter=\",\", header=None, compression=\"gzip\", dtype=dtype, nrows=nrows_train+nrows_test)\n",
136137
" print(\"Pre-processing data set...\")\n",
137138
" data = data[list(data.columns[1:])+list(data.columns[0:1])]\n",
138139
" n_features = data.shape[1]-1\n",

0 commit comments

Comments
 (0)