CoolFace
Apppublic

ecesude/CreditApproval

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
train.py15 linesDownload Raw Back to root
1import joblib2from sklearn.ensemble import RandomForestClassifier3from preprocess import preprocess_data4 5def train_and_save(csv_path):6    X, y, preprocessor = preprocess_data(csv_path)7    model = RandomForestClassifier(random_state=42)8    model.fit(X, y)9 10    joblib.dump(model, "model.joblib")11    print("Model başarıyla kaydedildi.")12 13if __name__ == "__main__":14    train_and_save("hmeq.csv")15