Skip to content

Commit cdc8c7a

Browse files
mariomario
authored andcommitted
corrected number of channels in phi_processor
1 parent fd7e080 commit cdc8c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/python/cni_toolbox/HGR.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, parameters, l_kernel = 34):
8484
self.data_processor = online_processor(self.n_voxels,
8585
sampling_rate = self.p_sampling,
8686
l_kernel = l_kernel)
87-
self.phi_processor = online_processor(self.n_pixels,
87+
self.phi_processor = online_processor(self.n_features,
8888
sampling_rate = self.p_sampling,
8989
l_kernel = l_kernel)
9090

@@ -215,7 +215,7 @@ def get_parameters(self, n_batch = 10000,
215215
sys.stdout.write('\r')
216216
sys.stdout.write("[%-20s] %d%%"
217217
% ('=' * i, 5 * i))
218-
218+
219219
batch = idx[v: v + n_batch]
220220
im = np.matmul(self.gamma, self.theta[:, batch])
221221
pos = np.argmax(im, axis = 0)

0 commit comments

Comments
 (0)