Skip to content

Commit

Permalink
Add KNN regressor
Browse files Browse the repository at this point in the history
  • Loading branch information
joelostblom authored Dec 21, 2023
1 parent 52138cc commit 270f91e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion REFERENCE_PYTHON.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ alt.Chart(df).mark_point().encode(

## Machine learning (`scikit-learn`)

A typical scikit-learn pipeline would look something like this:
Setting up a typical scikit-learn model would look something like this:

```python
knn = KNeighborsClassifier(n_neighbors=3)
Expand All @@ -152,6 +152,7 @@ knn.score(X_test, y_test)
| GridSearchCV(estimator, param_grid, cv) | Perform an exhaustive search over a hyperparameter grid to find the best combination using cross-validation. |
| KMeans(n_clusters) | Initialize a K-Means clustering algorithm for grouping data points into clusters based on similarity. |
| KNeighborsClassifier(n_neighbors) | Initialize a k-Nearest Neighbors classifier for classification tasks. |
| KNeighborsRegressor(n_neighbors) | Initialize a k-Nearest Neighbors regressor for regression tasks. |
| LinearRegression() | Initialize a Linear regression model for predicting continuous target values from input features. |
| SimpleImputer() | Initialize a Imputation transformer for handling missing data using simple strategies. |
| StandardScaler() | Initialize a Scaler for standardizing features by subtracting the mean and scaling to unit variance. |
Expand Down

0 comments on commit 270f91e

Please sign in to comment.