Example #1
0
 def construct_coder(self,alpha = 0.5,n_nonzero = 4,algo = "lars"):
     D = self.dictionary_builder()
     self.coder = SparseCoder(dictionary=D, transform_n_nonzero_coefs=3,
                         transform_alpha=alpha, transform_algorithm="threshold")