dwavesystems / dwavesystems/dimod

ScaleComposite should accept scaling parameters on construction

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

Description

It would be nice to be able to provide scaling parameters when constructing the ScaleComposite rather than at sample-time
```
sampler = ScaleComposite(child, bias_range=(-1, 1))
```
Ideally we would then be able to override this behaviour when calling `.sample`
```
sampler.sample(bqm, bias_range=(-.5, .5))
```

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.