NotFittedError: Estimator not fitted, call `fit` before exploiting the model
I am running Python 3.5.2 on a Macbook OSX 10.2.1 (Sierra). While attempting to run some code for the Titanic Dataset from Kaggle, I keep getting the following error: NotFittedError Traceback (most recent call last) in () 6 7 # Make your prediction using the test set and print them. ----> 8 my_prediction = my_tree_one.predict(test_features) 9 print(my_prediction) 10 /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sklearn/tree/tree.py in predict(self, X, check_input) 429 """ 430 --> 431 X = self._validate_X_predict(X, check_input) 432 proba = self.tree_.predict(X)
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.