-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fixes #297: fitting in batches without all labels * test vqc with incomplete batch labels * uncomment other vqc tests * add reno note for fix of issue #297 * fix typo * remove docstring reference from reno note * make quantum instance selection explicit for vqc tests * assert that all batches assume the correct number of classes * fix style Co-authored-by: Manoel Marques <[email protected]> (cherry picked from commit dcbd78c) Co-authored-by: Declan Millar <[email protected]>
- Loading branch information
1 parent
72ffc2b
commit 00c1d77
Showing
3 changed files
with
109 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
releasenotes/notes/fix-batching-with-incomplete-labels-2fcf26585903d437.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
fixes: | ||
- | | ||
Previously, VQC would throw an error if trained on batches of data where | ||
not all of the target labels that can be found in the full dataset were | ||
present. This is because VQC interpreted the number of unique targets in | ||
the current batch as the number of classes. Currently, VQC is hard-coded | ||
to expect one-hot-encoded targets. Therefore, VQC will now determine the | ||
number of classes from the shape of the target array. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters