forked from numenta/nupic.core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
encoderenhancementNew feature or requestNew feature or requestnewbiepythonnot py binding, but merge py code in reponot py binding, but merge py code in repo
Description
Currently, the encode expects a SDR parameter encode([x, y], sdr_gc) grid cells.
Used as:
SDR gc_sdr
Metrics(gc_sdr)
GridCellsEncoder gce
for d in data:
gce.encode(d, gc_sdr)
I'm proposing GCE creating the SDR itself, and exposing it as a member GCE.grid_cells, so
GridCellsEncoder gce
Metrics(gce.grid_cells)
for ...:
gce.encode([x,y])
Also consider if encode shouldn't take only x,y integer params encode(x, y),
as the 2D point/list [x,y] is the only input the encoder accepts and we have to check for it. This might be clearer.
Follow up to #353
Metadata
Metadata
Assignees
Labels
encoderenhancementNew feature or requestNew feature or requestnewbiepythonnot py binding, but merge py code in reponot py binding, but merge py code in repo