Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,8 @@ def extract_features(sequence):
|
|
47 |
selected_feature_values = [all_features[feature] for feature in selected_features if feature in all_features]
|
48 |
|
49 |
# Convert to NumPy array for normalization
|
50 |
-
feature_array = np.array(selected_feature_values)
|
51 |
-
|
52 |
# Min-Max Normalization
|
53 |
scaler = MinMaxScaler()
|
54 |
normalized_features = scaler.fit_transform(feature_array).flatten()
|
|
|
47 |
selected_feature_values = [all_features[feature] for feature in selected_features if feature in all_features]
|
48 |
|
49 |
# Convert to NumPy array for normalization
|
50 |
+
feature_array = np.array(selected_feature_values)
|
51 |
+
feature_array.reshape(1,-1)
|
52 |
# Min-Max Normalization
|
53 |
scaler = MinMaxScaler()
|
54 |
normalized_features = scaler.fit_transform(feature_array).flatten()
|