Skip to content

Problems with the training and with the plot of the results #14

Description

@riccardosalvucci99

Hi, I'm using the code for the transfer nilm.
When I run the seq2point_train.py with the dataset refit for the washing machine I obtain this result:

Epoch 5 of 5 --------------------------
2023-10-16 21:50:53,666 [INFO ] loss_ep: 0.021295
2023-10-16 21:50:53,666 [INFO ] Epoch 5 of 5 took 18.028538s
2023-10-16 21:50:53,666 [INFO ] Validation...
2023-10-16 21:50:58,571 [INFO ] train loss/n_batch_train: 0.020180
2023-10-16 21:50:58,571 [INFO ] train loss: 0.201802, n_batch_train: 10
2023-10-16 21:51:03,492 [INFO ] val loss: 0.000374
2023-10-16 21:51:03,492 [INFO ] Evaluate earlystopping parameters...
2023-10-16 21:51:03,492 [INFO ] Current valid loss was 0.000374, acc was 0.000000, train loss was 0.020180, acc was 0.000000 at epoch 5.
2023-10-16 21:51:04,121 [INFO ] Best valid loss was 0.000374 and acc 0.000000 at epoch 5.
2023-10-16 21:51:04,122 [INFO ] Total training time: 141.299270s

Why is the accuracy value 0.0? Am I doing something wrong?

Then I've a problem with the plot of the results when I run the seq2point_test.py. I've no problems with the test of the network in fact I obtain the values of the parameters such as the NDE, SAE, MAE, Energy per Day but, at the end of the test, I don't see the figure with the results.

Thank you very much.

Riccardo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions