diff --git a/07_ensemble_learning_and_random_forests.ipynb b/07_ensemble_learning_and_random_forests.ipynb index 7849eae..4f88ecf 100644 --- a/07_ensemble_learning_and_random_forests.ipynb +++ b/07_ensemble_learning_and_random_forests.ipynb @@ -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)"