Skip to content

Update serialising methods and instructions #951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

edoaltamura
Copy link
Collaborator

Summary

Mark the legacy save/load methods as deprecated (v0.9.0) and point users to to_dill/from_dill.

Add short usage examples under each serialisation method.

Clarify raised exceptions in argument docs.

Details and comments

Closes #891

@coveralls
Copy link

Pull Request Test Coverage Report for Build 15541719624

Details

  • 6 of 10 (60.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.07%) to 90.8%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit_machine_learning/algorithms/serializable_model.py 6 10 60.0%
Totals Coverage Status
Change from base Build 15535750625: -0.07%
Covered Lines: 4530
Relevant Lines: 4989

💛 - Coveralls

Copy link
Member

@woodsp-ibm woodsp-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Needs a reno release note to cover the deprecation of save/load and these new replacement methods.

I get that the improved example may well go towards solving the referenced issue. Its just less clear to me how changing the names of the methods helps in that regard. I guess if one cares it makes it clear that its saved as a dill file, otherwise, while names can be changed maybe I am missing something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Saving and Loading Problem of QSVC algorithm
3 participants