model adds
This commit is contained in:
parent
b676105f9d
commit
8324f60cd4
@ -16,12 +16,18 @@ Y_test = pd.get_dummies(Y_test)
|
||||
Y_valid = X_valid.pop('stabf')
|
||||
Y_valid = pd.get_dummies(Y_valid)
|
||||
|
||||
model = tensorflow.keras.Sequential([
|
||||
layers.Input(shape=(12,)),
|
||||
layers.Dense(32),
|
||||
layers.Dense(16),
|
||||
layers.Dense(2, activation='softmax')
|
||||
])
|
||||
# model = tensorflow.keras.Sequential([
|
||||
# layers.Input(shape=(12,)),
|
||||
# layers.Dense(32),
|
||||
# layers.Dense(16),
|
||||
# layers.Dense(2, activation='softmax')
|
||||
# ])
|
||||
|
||||
model = tensorflow.keras.Sequential()
|
||||
model.add(layers.Input(shape=(12,)))
|
||||
model.add(layers.Dense(32))
|
||||
model.add(layers.Dense(16))
|
||||
model.add(layers.Dense(2, activation='softmax'))
|
||||
|
||||
model.compile(
|
||||
loss=tensorflow.keras.losses.BinaryCrossentropy(),
|
||||
|
Loading…
Reference in New Issue
Block a user