Spaces:
Sleeping
Sleeping
Update utils/preprocessing.py
Browse files- utils/preprocessing.py +0 -4
utils/preprocessing.py
CHANGED
|
@@ -1,8 +1,4 @@
|
|
| 1 |
def extract_features(agent_data):
|
| 2 |
-
"""
|
| 3 |
-
Convert input JSON into numerical features for Isolation Forest.
|
| 4 |
-
Order: weekly_calls, missed_visits, travel_distance, lead_drop_rate
|
| 5 |
-
"""
|
| 6 |
return [
|
| 7 |
agent_data.get("weekly_calls", 0),
|
| 8 |
agent_data.get("missed_visits", 0),
|
|
|
|
| 1 |
def extract_features(agent_data):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
return [
|
| 3 |
agent_data.get("weekly_calls", 0),
|
| 4 |
agent_data.get("missed_visits", 0),
|