Skip to content

Commit

Permalink
Drop the number of grid points
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Dec 11, 2023
1 parent 92170d0 commit ccddd78
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions naive_bayes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,10 @@ Chinstrap and Gentoo penguins, as it moves through the 2D space of parameters
all_params = df[['body_mass_g', 'bill_depth_mm']].describe()
bm_x = np.linspace(all_params.loc['min', 'body_mass_g'],
all_params.loc['max', 'body_mass_g'],
100)
50)
bm_y = np.linspace(all_params.loc['min', 'bill_depth_mm'],
all_params.loc['max', 'bill_depth_mm'],
100)
50)
x, y = np.meshgrid(bm_x, bm_y)
xy = np.stack((x.ravel(), y.ravel()), axis=1)
xy_df = pd.DataFrame(xy, columns=X_test.columns)
Expand All @@ -473,3 +473,7 @@ sns.scatterplot(x=xy[:, 0], y=xy[:, 1],
palette=sns.color_palette()[:2],
alpha=0.1);
```

```{python}
```

0 comments on commit ccddd78

Please sign in to comment.