Skip to content

NeuralNetworkClassifier Accuracy Updates #813

Closed
@kezmcd1903

Description

@kezmcd1903

What should we add?

The ability to save the training and test accuracy progress while training a QNN (with NeuralNetworkClassifier) per epoch / iteration. This tells us a lot more information than viewing the loss and is important to display in any QML paper.

I thought a nice way to do this would be to follow https://qiskit-community.github.io/qiskit-machine-learning/tutorials/09_saving_and_loading_models.html and break the training up in to epochs, then test and save the model at regular intervals.

I think there's quite a big issue here that the tutorial fails to mention - the fact that each time you save and load your model your optimizer 'memory' resets (I'm using COBYLA). That means that if your objective function landscape is difficult to navigate you get repeated behaviour.

See my slack post for more details https://qiskit.slack.com/archives/C7SJ0PJ5A/p1720017452449239.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions