-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdoc.go
24 lines (20 loc) · 1.06 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2019, The Emergent Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
Package actrf provides activation-based receptive field computation, otherwise
known as reverse correlation. It simply computes the activation weighted average
of other *source* patterns of activation -- i.e., sum(act * src) / sum(src)
which then shows you the patterns of source activity for which a given unit was
active.
The RF's are computed and stored in 4D tensors, where the outer 2D are the
2D pathway of the activation tensor (e.g., the activations of units in
a layer), and the inner 2D are the 2D pathway of the source tensor.
This results in a nice standard RF plot that can be visualized in a tensor
grid view.
There is a standard ActRF which is cumulative over a user-defined interval
and a RunningAvg version which is computed online and continuously updated
but is more susceptible to sampling bias (i.e., more sampled areas are
more active in general), and a recency bias.
*/
package actrf