Skip to content

Commit

Permalink
SetSampleShape rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Jan 17, 2025
1 parent bef0fa2 commit 6e0b1c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions emer/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,12 @@ func (ly *LayerBase) SetShape(shape ...int) {
ly.Shape.SetShapeSizes(shape...)
}

// SetSampleIndexesShape sets the SampleIndexes,
// SetSampleShape sets the SampleIndexes,
// and SampleShape and as list of dimension sizes,
// for a subset sample of units to represent the entire layer.
// This is critical for large layers that are otherwise unwieldy
// to visualize and for computationally-intensive statistics.
func (ly *LayerBase) SetSampleIndexesShape(idxs, shape []int) {
func (ly *LayerBase) SetSampleShape(idxs, shape []int) {
ly.SampleIndexes = idxs
ly.SampleShape.SetShapeSizes(shape...)
}
Expand Down Expand Up @@ -470,7 +470,7 @@ func CenterPoolShape(ly Layer, n int) []int {

// Layer2DSampleIndexes returns neuron indexes and corresponding 2D shape
// for the representative neurons within a large 2D layer, for passing to
// [SetSampleIndexesShape]. These neurons are used for the raster plot
// [SetSampleShape]. These neurons are used for the raster plot
// in the GUI and for computing PCA, among other cases where the full set
// of neurons is problematic. The lower-left corner of neurons up to
// given maxSize is selected.
Expand Down

0 comments on commit 6e0b1c7

Please # to comment.