Simplified tensor building
Make it simpler to create sparse labeled tensors. Two approaches are currently in use: nested lists in the tests, and explicit item assignment in AnalogySpace and other code like that.
I'm thinking about making tensor builder classes that make a tensor and updates it with a passed sequence, which will probably be a generator. Then `queryset_
def queryset_
return (((concept1, relation, concept2), get_value(score, freq))
for (relation, concept1, concept2, score, freq) in queryset.
And you'd call it like:
Mirrored3DT
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
This doesn't address the nested dict issue for the tests, though it could be adapted to.