zhanghang1989 / zhanghang1989/PyTorch-Encoding
what is testset.pred_offset used for ?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 448
- PR merge metrics
- No merged PRs in 30d
Description
when i use test code for testset ,running to this line:
predicts = [torch.max(output, 1)[1].cpu().numpy() + testset.pred_offset for output in outputs]
but :
@property
def pred_offset(self):
raise NotImplemented
testset.pred_offset is not implemented, is this important?or not? is there anyone can help me?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the test code line that adds testset.pred_offset to predictions, then inspect the testset class and its pred_offset property. Determine whether the missing property blocks the test code and document or address the expected behavior; done means the test path has a clear, working interpretation of pred_offset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100