Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def extract_features(sequence):
|
|
| 14 |
aac = np.array(list(AAComposition.CalculateAADipeptideComposition(sequence)))
|
| 15 |
|
| 16 |
# Normalize using the pre-trained scaler (Ensure the scaler is loaded correctly)
|
| 17 |
-
normalized_features = scaler.
|
| 18 |
|
| 19 |
return normalized_features
|
| 20 |
|
|
|
|
| 14 |
aac = np.array(list(AAComposition.CalculateAADipeptideComposition(sequence)))
|
| 15 |
|
| 16 |
# Normalize using the pre-trained scaler (Ensure the scaler is loaded correctly)
|
| 17 |
+
normalized_features = scaler.fit_transform([aac]) # Don't use fit_transform(), only transform()
|
| 18 |
|
| 19 |
return normalized_features
|
| 20 |
|