Skip to content

Commit 8e15e60

Browse files
xhluluxhlulu
authored andcommitted
KNN ML docs: Update thumbnail, name, permalink, description, display_as
1 parent 3e4b220 commit 8e15e60

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

doc/python/ml-knn.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
jupyter:
33
jupytext:
4-
formats: ipynb,md
54
notebook_metadata_filter: all
65
text_representation:
76
extension: .md
@@ -23,17 +22,16 @@ jupyter:
2322
pygments_lexer: ipython3
2423
version: 3.7.6
2524
plotly:
26-
description: How to visualize k-Nearest Neighbors (kNN) created using scikit-learn
27-
in Python with Plotly.
28-
display_as: basic
25+
description: Visualize scikit-learn's k-Nearest Neighbors (kNN) classification
26+
with Plotly
27+
display_as: ai_ml
2928
language: python
3029
layout: base
31-
name: K-Nearest Neighbors (kNN) Classification
30+
name: kNN Classification
3231
order: 1
3332
page_type: example_index
34-
permalink: python/knn/
35-
redirect_from: python/machine-learning-tutorials/
36-
thumbnail: thumbnail/line-and-scatter.jpg
33+
permalink: python/knn-classification/
34+
thumbnail: thumbnail/knn-classification.png
3735
---
3836

3937
## Basic Binary Classification with `plotly.express`
@@ -152,7 +150,7 @@ Z = Z.reshape(ll.shape)
152150
proba = clf.predict_proba(np.c_[ll.ravel(), ww.ravel()])
153151
proba = proba.reshape(ll.shape + (3,))
154152

155-
fig = px.scatter(df, x='sepal_length', y='sepal_width', color='species')
153+
fig = px.scatter(df, x='sepal_length', y='sepal_width', color='species', width=1000, height=1000)
156154
fig.update_traces(marker_size=10, marker_line_width=1)
157155
fig.add_trace(
158156
go.Heatmap(

0 commit comments

Comments
 (0)