Skip to content

Commit 128a495

Browse files
authored
Update xgboost_direct_marketing notebook example (aws#1191)
Update pandas as_matrix() method to the latest recommended to_numpy().
1 parent 1fe004b commit 128a495

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

introduction_to_applying_machine_learning/xgboost_direct_marketing/xgboost_direct_marketing_sagemaker.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
"outputs": [],
123123
"source": [
124124
"!wget https://sagemaker-sample-data-us-west-2.s3-us-west-2.amazonaws.com/autopilot/direct_marketing/bank-additional.zip\n",
125+
"!apt-get install unzip -y\n",
125126
"!unzip -o bank-additional.zip"
126127
]
127128
},
@@ -569,7 +570,7 @@
569570
"\n",
570571
" return np.fromstring(predictions[1:], sep=',')\n",
571572
"\n",
572-
"predictions = predict(test_data.drop(['y_no', 'y_yes'], axis=1).as_matrix())"
573+
"predictions = predict(test_data.drop(['y_no', 'y_yes'], axis=1).to_numpy())"
573574
]
574575
},
575576
{

0 commit comments

Comments
 (0)