diff --git a/tests/test_nanshe/test_imp/test_segment.py b/tests/test_nanshe/test_imp/test_segment.py index ba13c3d5..de400ac9 100644 --- a/tests/test_nanshe/test_imp/test_segment.py +++ b/tests/test_nanshe/test_imp/test_segment.py @@ -1042,12 +1042,12 @@ def test_generate_dictionary_04(self): d = nanshe.imp.segment.generate_dictionary( g.astype(numpy.float32), g.astype(numpy.float32), + len(g), **{ "spams.trainDL" : { "gamma2" : 0, "gamma1" : 0, "numThreads" : 1, - "K" : len(g), "iter" : 10, "modeD" : 0, "posAlpha" : True, @@ -1098,12 +1098,12 @@ def test_generate_dictionary_05(self): d = nanshe.imp.segment.generate_dictionary( g.astype(float), g.astype(float), + len(g), **{ "spams.trainDL" : { "gamma2" : 0, "gamma1" : 0, "numThreads" : 1, - "K" : len(g), "iter" : 10, "modeD" : 0, "posAlpha" : True, @@ -1155,12 +1155,12 @@ def test_generate_dictionary_06(self): d = nanshe.imp.segment.generate_dictionary( g.astype(numpy.float32), g.astype(numpy.float32), + len(g), **{ "spams.trainDL" : { "gamma2" : 0, "gamma1" : 0, "numThreads" : 1, - "K" : len(g), "iter" : 10, "modeD" : 0, "posAlpha" : True, @@ -1212,12 +1212,12 @@ def test_generate_dictionary_07(self): d = nanshe.imp.segment.generate_dictionary( g.astype(float), g.astype(float), + len(g), **{ "spams.trainDL" : { "gamma2" : 0, "gamma1" : 0, "numThreads" : 1, - "K" : len(g), "iter" : 10, "modeD" : 0, "posAlpha" : True, @@ -1359,10 +1359,10 @@ def test_generate_dictionary_10(self): d = nanshe.imp.segment.generate_dictionary( g.astype(float), g.astype(float), + len(g), **{ "sklearn.decomposition.dict_learning_online" : { "n_jobs" : 1, - "n_components" : len(g), "n_iter" : 20, "batch_size" : 256, "alpha" : 0.2 @@ -1408,10 +1408,10 @@ def test_generate_dictionary_11(self): d = nanshe.imp.segment.generate_dictionary( g.astype(float), g.astype(float), + len(g), **{ "sklearn.decomposition.dict_learning_online" : { "n_jobs" : 1, - "n_components" : len(g), "n_iter" : 20, "batch_size" : 256, "alpha" : 0.2