Skip to content

Commit

Permalink
Merge pull request udacity#145 from udacity/boston-fix
Browse files Browse the repository at this point in the history
Add description of shufflesplit
  • Loading branch information
jared-weed committed Nov 8, 2016
2 parents a2d21ea + 0b82276 commit 49940b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions projects/boston_housing/boston_housing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@
"### Implementation: Fitting a Model\n",
"Your final implementation requires that you bring everything together and train a model using the **decision tree algorithm**. To ensure that you are producing an optimized model, you will train the model using the grid search technique to optimize the `'max_depth'` parameter for the decision tree. The `'max_depth'` parameter can be thought of as how many questions the decision tree algorithm is allowed to ask about the data before making a prediction. Decision trees are part of a class of algorithms called *supervised learning algorithms*.\n",
"\n",
"In addition, you will find your implementation is using `ShuffleSplit()` for an alternative form of cross-validation (see the `'cv_sets'` variable). While it is not the K-Fold cross-validation technique you describe in **Question 8**, this type of cross-validation technique is just as useful!. The `ShuffleSplit()` implementation below will create 10 (`'n_iter'`) shuffled sets, and for each shuffle, 20% (`'test_size'`) of the data will be used as the *validation set*. While you're working on your implementation, think about the contrasts and similarities it has to the K-fold cross-validation technique.\n",
"\n",
"For the `fit_model` function in the code cell below, you will need to implement the following:\n",
"- Use [`DecisionTreeRegressor`](http://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeRegressor.html) from `sklearn.tree` to create a decision tree regressor object.\n",
" - Assign this object to the `'regressor'` variable.\n",
Expand Down Expand Up @@ -595,8 +597,9 @@
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 2",
"display_name": "Python [default]",
"language": "python",
"name": "python2"
},
Expand All @@ -610,7 +613,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
"version": "2.7.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 49940b0

Please sign in to comment.