Fix n components for 3d plot
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ n_labels = labels.max()
|
|
110 |
from sklearn import manifold
|
111 |
|
112 |
node_position_model = manifold.LocallyLinearEmbedding(
|
113 |
-
n_components=
|
114 |
)
|
115 |
|
116 |
embedding = node_position_model.fit_transform(X.T).T
|
@@ -198,5 +198,5 @@ with gr.Blocks(title=title) as demo:
|
|
198 |
btn.click(
|
199 |
visualize_stocks, outputs=gr.Plot(label="Visualizing stock into clusters")
|
200 |
)
|
201 |
-
|
202 |
demo.launch()
|
|
|
110 |
from sklearn import manifold
|
111 |
|
112 |
node_position_model = manifold.LocallyLinearEmbedding(
|
113 |
+
n_components=3, eigen_solver="dense", n_neighbors=6
|
114 |
)
|
115 |
|
116 |
embedding = node_position_model.fit_transform(X.T).T
|
|
|
198 |
btn.click(
|
199 |
visualize_stocks, outputs=gr.Plot(label="Visualizing stock into clusters")
|
200 |
)
|
201 |
+
|
202 |
demo.launch()
|