From 27eb66aaedf3c804d543d7ec05a433b5c68b8e38 Mon Sep 17 00:00:00 2001 From: Szymon Bartanowicz Date: Tue, 14 May 2024 22:59:17 +0200 Subject: [PATCH] fix --- model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model.py b/model.py index 9c57176..d8bad31 100644 --- a/model.py +++ b/model.py @@ -35,6 +35,8 @@ pipeline = Pipeline(steps=[ pipeline['model'].compile(optimizer='adam', loss='mse', metrics=['mae']) -pipeline.fit(X_train.iloc[:, 1:], y_train.iloc[:, 1:], model__epochs=int(sys.argv[1]), model__validation_split=0.1) +X_train_excluded = X_train.iloc[:, 1:] + +pipeline.fit(X_train_excluded, y_train, model__epochs=10, model__validation_split=0.1) pipeline['model'].save('powerlifting_model.h5')