try InputLayer

This commit is contained in:
jakubknczny 2021-05-15 21:10:00 +02:00
parent b8961d4f66
commit 7f8b876965

View File

@ -17,7 +17,7 @@ Y_valid = X_valid.pop('stabf')
Y_valid = pd.get_dummies(Y_valid) Y_valid = pd.get_dummies(Y_valid)
model = tensorflow.keras.Sequential([ model = tensorflow.keras.Sequential([
layers.InputLayer(shape=(12,)), layers.InputLayer(input_shape=(12,)),
layers.Dense(32), layers.Dense(32),
layers.Dense(16), layers.Dense(16),
layers.Dense(2, activation='softmax') layers.Dense(2, activation='softmax')