Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import pandas as pd
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
import joblib
|
| 6 |
import json
|
|
|
|
| 7 |
|
| 8 |
from numericselector import NumericSelector
|
| 9 |
|
|
@@ -25,7 +26,7 @@ def final_clustering(file, top_features):
|
|
| 25 |
X_pca = core_pipeline.fit_transform(df)
|
| 26 |
|
| 27 |
# debug
|
| 28 |
-
if not hasattr(core_pipeline.named_steps["
|
| 29 |
raise RuntimeError("Pipeline was not fitted before transform")
|
| 30 |
|
| 31 |
# dynamic `k` selection
|
|
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
import joblib
|
| 6 |
import json
|
| 7 |
+
import traceback
|
| 8 |
|
| 9 |
from numericselector import NumericSelector
|
| 10 |
|
|
|
|
| 26 |
X_pca = core_pipeline.fit_transform(df)
|
| 27 |
|
| 28 |
# debug
|
| 29 |
+
if not hasattr(core_pipeline.named_steps["numeric_selector"], "numeric_cols_"):
|
| 30 |
raise RuntimeError("Pipeline was not fitted before transform")
|
| 31 |
|
| 32 |
# dynamic `k` selection
|