dwavesystems / dwavesystems/dimod

Consider adding a utility function to calculate the fraction of violated constraints in a sample set

Open
#1,360 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
143
Forks
91
Avg merge
1h 24m
Merged PRs (30d)
3

Description

Maybe something like `CQM.fraction_satisfied(sampleset: SampleSet) -> dict[label, float]` to go along with `CQM.iter_violations()`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.