Algorithm 1.
Online learning algorithm for training population-based encoding models
1: | G0 ← 0, , n0 ← 0, λ0 = 0 |
2: | While new data* is available: X, , n1 |
3: | |
4: | F1 = DimensionReduction(ResNet(X)) |
5: | G1 = [F1]TF1/n1 |
6: | G = (1 − θ)G0 + θG1 |
7: | with cross validation |
8: | G0 ← G, , n0 ← n0 + n1, λ0 = λ |
9: | Output: wv |
X is the new visual stimuli, is the cortical response, and n1 is the number of samples