mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Use object instead of deprecated np.object
This commit is contained in:
@@ -1793,7 +1793,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"X_valid_predictions = np.empty((len(X_valid), len(estimators)), dtype=np.object)\n",
|
||||
"X_valid_predictions = np.empty((len(X_valid), len(estimators)), dtype=object)\n",
|
||||
"\n",
|
||||
"for index, estimator in enumerate(estimators):\n",
|
||||
" X_valid_predictions[:, index] = estimator.predict(X_valid)"
|
||||
@@ -1887,7 +1887,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"X_test_predictions = np.empty((len(X_test), len(estimators)), dtype=np.object)\n",
|
||||
"X_test_predictions = np.empty((len(X_test), len(estimators)), dtype=object)\n",
|
||||
"\n",
|
||||
"for index, estimator in enumerate(estimators):\n",
|
||||
" X_test_predictions[:, index] = estimator.predict(X_test)"
|
||||
|
||||
Reference in New Issue
Block a user