jeudi 27 août 2020

Do my results show a good training and good testing results or not?

Please help me. I have created a CNN model. Now I am doing training and testing. Below are my peiece of code and results. Please explain these results to me. I am new to machine learning.

callbacks = [
    EarlyStopping(patience=12, verbose=1),
    ReduceLROnPlateau(factor=0.1, patience=5, min_lr=0.000001, verbose=1),
    ModelCheckpoint('D:/data/weights-{epoch:03d}.h5', verbose=1, save_weights_only=True)
]

results = model.fit_generator(generate_batch(orig_train, orig_train, batch_sz),
                              steps_per_epoch = num_train_samples//batch_sz,
                              epochs = 10,
                              validation_data = generate_batch(orig_val, forg_val, batch_sz),
                              validation_steps = num_val_samples//batch_sz,
                              callbacks = callbacks)


These are my results. Please I want you to explain to me these.


Epoch 1/10
12/12 [==============================] - 21s 2s/step - loss: 30.8399 - val_loss: 1.3777

Epoch 00001: saving model to D:/data/weights-001.h5
Epoch 2/10
12/12 [==============================] - 19s 2s/step - loss: 1.8241 - val_loss: 1.2394

Epoch 00002: saving model to D:/data/weights-002.h5
Epoch 3/10
12/12 [==============================] - 19s 2s/step - loss: 1.4255 - val_loss: 1.1046

Epoch 00003: saving model to D:/data/weights-003.h5
Epoch 4/10
12/12 [==============================] - 19s 2s/step - loss: 1.2866 - val_loss: 1.3377

Epoch 00004: saving model to D:/data/weights-004.h5
Epoch 5/10
12/12 [==============================] - 19s 2s/step - loss: 1.2530 - val_loss: 1.2026

Epoch 00005: saving model to D:/data/weights-005.h5
Epoch 6/10
12/12 [==============================] - 21s 2s/step - loss: 1.2388 - val_loss: 1.3185

Epoch 00006: saving model to D:/data/weights-006.h5
Epoch 7/10
12/12 [==============================] - 19s 2s/step - loss: 1.2411 - val_loss: 1.0664

Epoch 00007: saving model to D:/data/weights-007.h5
Epoch 8/10
12/12 [==============================] - 20s 2s/step - loss: 1.2170 - val_loss: 1.1785

Epoch 00008: saving model to D:/data/weights-008.h5
Epoch 9/10
12/12 [==============================] - 20s 2s/step - loss: 1.2006 - val_loss: 1.1585

Epoch 00009: saving model to D:/data/weights-009.h5
Epoch 10/10
12/12 [==============================] - 21s 2s/step - loss: 1.3041 - val_loss: 1.5179

Epoch 00010: saving model to D:/data/weights-010.h5







Aucun commentaire:

Enregistrer un commentaire