boston_housing.evaluating_model_performance.fit_model

boston_housing.evaluating_model_performance.fit_model(X, y, k=10, n_jobs=1)[source]

Tunes a decision tree regressor model using GridSearchCV

Param:
  • X: the input data
  • y: target labels y
  • k: number of cross-validation folds
  • n_jobs: number of parallel jobs to run
Returns:

the optimal model