model.fit tensorflow code example

Example 1: fit function tensorflow

model.fit(x, y, epochs=)

Example 2: keras model compile

model = Sequential([
    Dense(32, input_shape=(784,)),
    Activation('relu'),
    Dense(10),
    Activation('sigmoid'),
])

model.compile(
    optimizer="rmsprop",
    loss=None,
    metrics=None,
    loss_weights=None,
    weighted_metrics=None,
    run_eagerly=None,
    steps_per_execution=None
)

model.fit(x, y, batch_size=32, epochs=50)

Example 3: keras model.fit function

model.fit(trainX, trainY, batch_size=32, epochs=50)

Example 4: what does verbos tensorflow do

# verbose =  0 => silent  /  1 => progress bar  /  2 => one line per epoch