fix
This commit is contained in:
parent
a3b003c422
commit
a860f43d29
5
model.py
5
model.py
@ -8,7 +8,9 @@ from tensorflow.keras.models import Sequential
|
||||
from tensorflow.keras.layers import Dense
|
||||
import tensorflow as tf
|
||||
|
||||
data = pd.read_csv('./data/train.csv')
|
||||
# data = pd.read_csv('./data/train.csv')
|
||||
data = pd.read_csv('./openpowerlifting.csv')
|
||||
print(data)
|
||||
|
||||
data = data[['Sex', 'Age', 'BodyweightKg', 'TotalKg']].dropna()
|
||||
|
||||
@ -22,7 +24,6 @@ preprocessor = ColumnTransformer(
|
||||
('num', StandardScaler(), ['Age', 'BodyweightKg']),
|
||||
('cat', OneHotEncoder(), ['Sex'])
|
||||
],
|
||||
remainder='passthrough'
|
||||
)
|
||||
|
||||
pipeline = Pipeline(steps=[
|
||||
|
Loading…
Reference in New Issue
Block a user