Spaces:
Sleeping
Sleeping
Update train.py
Browse files
train.py
CHANGED
|
@@ -20,7 +20,7 @@ def train_model():
|
|
| 20 |
df["text_input"] = df.apply(create_text_input, axis=1)
|
| 21 |
|
| 22 |
X = df["text_input"]
|
| 23 |
-
y = df[["Maker_Action", "Escalation_Level", "Risk_Category", "Risk_Drivers", "Investigation_Outcome", "
|
| 24 |
|
| 25 |
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
|
| 26 |
|
|
|
|
| 20 |
df["text_input"] = df.apply(create_text_input, axis=1)
|
| 21 |
|
| 22 |
X = df["text_input"]
|
| 23 |
+
y = df[["Maker_Action", "Escalation_Level", "Risk_Category", "Risk_Drivers", "Investigation_Outcome", "Red_Flag_Reason"]]
|
| 24 |
|
| 25 |
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
|
| 26 |
|