This commit is contained in:
Szymon Bartanowicz 2024-04-23 22:11:55 +02:00
parent bfc6feba86
commit f29fd743c3
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ preprocessor = ColumnTransformer(
pipeline = Pipeline(steps=[
('preprocessor', preprocessor),
('model', Sequential([
Dense(64, activation='relu', input_dim=4), # Liczba wejść musi zgadzać się z wynikowym wymiarem preprocessingu
Dense(64, activation='relu', input_dim=4),
Dense(64, activation='relu'),
Dense(1)
]))

View File

@ -8,7 +8,7 @@ from sklearn.model_selection import train_test_split
loaded_model = tf.keras.models.load_model('powerlifting_model.h5')
data = pd.read_csv('openpowerlifting.csv')
data = data[['Sex', 'Age', 'BodyweightKg', 'TotalKg']].dropna() # Usunięcie wierszy z brakującymi danymi
data = data[['Sex', 'Age', 'BodyweightKg', 'TotalKg']].dropna()
features = data[['Sex', 'Age', 'BodyweightKg']]
target = data['TotalKg']