Spaces:
Running
Running
Download src/train.py from Jayywestty/FraudDetection-ML: direct link, hf CLI and curl.
- Browser
- Download file 90 Bytes
-
https://huggingface.co/spaces/Jayywestty/FraudDetection-ML/resolve/main/src/train.py
- Command line
-
hf download hf://spaces/Jayywestty/FraudDetection-ML/src/train.py
-
curl -L -o train.py https://huggingface.co/spaces/Jayywestty/FraudDetection-ML/resolve/main/src/train.py
90 Bytes
| def train_model(model, X_train, y_train): | |
| model.fit(X_train, y_train) | |
| return model |