Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def final_clustering(file, top_features):
|
|
| 44 |
|
| 45 |
# Cluster Analysis
|
| 46 |
pca = core_pipeline.named_steps["pca"]
|
| 47 |
-
scaler =
|
| 48 |
feature_names = df.columns.tolist()
|
| 49 |
centroids = compute_cluster_centroids(X_pca, labels) # function is from cluster_utils
|
| 50 |
original_centroids = inverse_project_centroids(
|
|
|
|
| 44 |
|
| 45 |
# Cluster Analysis
|
| 46 |
pca = core_pipeline.named_steps["pca"]
|
| 47 |
+
scaler = core_pipeline.named_steps["scaler"]
|
| 48 |
feature_names = df.columns.tolist()
|
| 49 |
centroids = compute_cluster_centroids(X_pca, labels) # function is from cluster_utils
|
| 50 |
original_centroids = inverse_project_centroids(
|