Skip to main content
. Author manuscript; available in PMC: 2019 Aug 1.
Published in final edited form as: Neuroimage. 2018 Apr 27;176:152–163. doi: 10.1016/j.neuroimage.2018.04.053

Algorithm 1.

Online learning algorithm for training population-based encoding models

1: G00, wv00, n0 ← 0, λ0 = 0
2: While new data* is available: X, rv1, n1
3: θ=n1n0+n1
4: F1 = DimensionReduction(ResNet(X))
5: G1 = [F1]TF1/n1
6: G = (1 − θ)G0 + θG1
7: wv=(1-θ)(G+λI)-1(G0+λ0I)wv0+θ(G+λI)-1[F1]Trv1/n1 with cross validation
8: G0G, wv0wv, n0n0 + n1, λ0 = λ
9: Output: wv
*

X is the new visual stimuli, rv1 is the cortical response, and n1 is the number of samples