dwavesystems / dwavesystems/dimod

concatenate should track which samples came from which response

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

Description

**Application**
Sometimes we want to combine samplesets but still track which sampleset they originally came from.

**Proposed Solution**
Something like
```
>>> sampleset = dimod.concatenate([ss0, ss1], track_source=True) # each with one sample
>>> sampleset.record.source
[0, 1]
```

**Additional Context**
In general we are not supporting additional data vectors very well, for instance in concatenate itself. So need to somehow handle cases like:
```
dimod.concatenate([dimod.concatenate([ss0, ss1], ss2])
```

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.