Exemplo n.º 1
0
 def algConfig(self):
     s = spec.ALGORITHM_NONE
     #s["num_iter"] = [10000]
     #s["alpha"] = [0.99]
     #s["mu"] = [99]
     #s["p"] = [2]
     return P(s)
Exemplo n.º 2
0
 def generalConfig(self):
     s = spec.GENERAL_DEFAULT
     if "SecStr" in self.ds or "SecStrExtra" in self.ds:
         s['id'] = list(range(10))
     else:
         s['id'] = list(range(12))
     return P(s)
Exemplo n.º 3
0
 def algConfig(self):
     if self.alg=="D":
         s =spec.ALGORITHM_LGCLOO_DEFAULT
         s["optimize_labels"] = [False]
         s["custom_conv"] = [False]
         
         s['p'] = [1500 if self.ds == 'isolet' else 50]
         return P(s)
     s = spec.ALGORITHM_SIIS_DEFAULT
     s['m'] = [100]
     #s['mu'] = [(1-0.9)/0.9]
     #s['alpha'] = [0.9]
     #s['num_iter'] = [1000.0]
     def alpha_to_mu(alpha):
         return (1-alpha)/alpha
     #s["num_iter"] = [1000]
     return P(s)
Exemplo n.º 4
0
 def inputConfig(self):
     #s = spec.INPUT_CHAPELLE_A
     #s = spec.INPUT_SPIRALS_DYNAMIC
     #s["dataset"] = ["Digit1","COIL2"]
     #s["labeled_percent"] = [0.1,0.01]
     s = spec.INPUT_MNIST
     s["labeled_percent"] = [100 / 70000]
     return P(s)
Exemplo n.º 5
0
 def algConfig(self):
     s = spec.ALGORITHM_GTAM_DEFAULT
     s["use_estimated_freq"]=[True,False]
     """
     s['max_iter'] = [200]
     s['alpha'] = [1,10,100,1000]
     s['beta'] = [1,10,100,1000]
     s['m'] = [200]
     """
     return P(s)
Exemplo n.º 6
0
 def filterConfig(self):
     def alpha_to_mu(alpha):
         return (1-alpha)/alpha
     if self.alg in ["L"]:
         s = spec.FILTER_LGC_LVO_AUTO
         s['LGC_iter'] = [1000]
     else:
         s = spec.FILTER_NOFILTER
     
     return  P(s)
Exemplo n.º 7
0
 def algConfig(self):
     s = spec.ALGORITHM_NN_CIFAR10
     s["NUM_EPOCHS"] = [150]
     s["BATCH_SIZE"] = [100]
     s["model_choice"] = ["conv_large"]
     #s["num_iter"] = [10]
     #s["alpha"] = [0.01]
     #s["mu"] = [99]
     #s["p"] = [2]
     return P(s)
Exemplo n.º 8
0
    def inputConfig(self):
        s = spec.INPUT_MNIST
        s["labeled_percent"] = [0.3]
        #s = spec.INPUT_SPIRALS_DYNAMIC
        #s["dataset"] = ["COIL2"]
        #s["labeled_percent"] = [0.1]
        #s = spec.INPUT_MNIST
        #s["labeled_percent"] = [50/70000]

        return P(s)
Exemplo n.º 9
0
 def inputConfig(self):
     if self.ds == 'mnist':
         s = spec.INPUT_MNIST
         s['labeled_percent'] = [100/70000]
     elif self.ds=="isolet":
         s = spec.INPUT_ISOLET
     else:
         s = spec.INPUT_CHAPELLE_A
         s["use_chapelle_splits"] = [True]
         s['num_labeled'] = [10]
         s['benchmark'] = ['digit1']
     return P(s)
Exemplo n.º 10
0
 def filterConfig(self):
     return P({
         "filter": ["LGC_LVO"],
         "mu": [0.1111],
         "constantProp": [False],
         "early_stop": [True],
         "useZ": [True],
         "normalize_rows": [True],
         "use_baseline": [False],
         "tuning_iter": [0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4],
         "tuning_iter_as_pct": [True],
         "relabel": [False],
     })
Exemplo n.º 11
0
 def affmatConfig(self):
     if self.ds == "g241c":
         s = spec.AFFMAT_DEFAULT
         s['k'] = [500]
     elif self.ds=="mnist":
         s = spec.AFFMAT_DEFAULT
         s['k'] = [15]
     elif self.ds == "isolet":
         s = spec.AFFMAT_ISOLET
     else:
         s = spec.AFFMAT_DEFAULT
     
     return P(s)
Exemplo n.º 12
0
 def algConfig(self):
     #s = spec.ALGORITHM_GTAM_DEFAULT
     #s["num_iter"] = [10000]
     #s["alpha"] = [0.9]
     #s["constantProp"] = [False]
     #s["mu"] = [0.1111]
     s = spec.ALGORITHM_SIIS_DEFAULT
     s["alpha"] = [1000.0]
     s["beta"] = [10.0]
     s["m"] = [300]
     s["max_iter"] = [500]
     #s = spec.ALGORITHM_LGC_DEFAULT
     #s["num_iter"] = [1000]
     #s["alpha"] = [0.9]
     #s["num_iter"] = [10000]
     #s["p"] = [2]
     return P(s)
Exemplo n.º 13
0
 def inputConfig(self):
     s = spec.INPUT_CHAPELLE_A
     s["benchmark"] = self.ds
     s["use_chapelle_splits"] = [self.use_chapelle_splits]
     s['num_labeled'] = [self.num_labeled]
     return P(s)
Exemplo n.º 14
0
 def generalConfig(self):
     return P(spec.GENERAL_DEFAULT)
Exemplo n.º 15
0
 def affmatConfig(self):
     return P(spec.AFFMAT_CONSTANT)
Exemplo n.º 16
0
 def noiseConfig(self):
     s = spec.NOISE_UNIFORM_DET_NONE
     return P(s)
Exemplo n.º 17
0
 def generalConfig(self):
     s = spec.GENERAL_DEFAULT
     s['id'] = [4]
     return P(s)
Exemplo n.º 18
0
 def filterConfig(self):
     s = spec.FILTER_NOFILTER
     return P(s)
Exemplo n.º 19
0
 def affmatConfig(self):
     s = spec.AFFMAT_ISOLET
     return P(s)
Exemplo n.º 20
0
 def affmatConfig(self):
     s = spec.AFFMAT_DEFAULT
     return P(s)
Exemplo n.º 21
0
 def filterConfig(self):
     return P(spec.FILTER_LGC_LVO)
Exemplo n.º 22
0
 def generalConfig(self):
     s = spec.GENERAL_DEFAULT
     s["id"] = [2]
     return P(s)
Exemplo n.º 23
0
 def algConfig(self):
     s = spec.ALGORITHM_NONE
     return P(s)
Exemplo n.º 24
0
    def affmatConfig(self):
        s = spec.AFFMAT_DEFAULT

        return P(s) + P(spec.AFFMAT_CONSTANT)
Exemplo n.º 25
0
 def inputConfig(self):
     s = spec.INPUT_SPIRALS_DYNAMIC
     return P(s)
Exemplo n.º 26
0
 def inputConfig(self):
     return P(spec.INPUT_ISOLET)
Exemplo n.º 27
0
 def noiseConfig(self):
     s = spec.NOISE_UNIFORM_DET_MODERATE
     s["corruption_level"] = [0.2]
     return P(s)
Exemplo n.º 28
0
 def filterConfig(self):
     return P(spec.FILTER_NOFILTER)
     """"P({
Exemplo n.º 29
0
    def algConfig(self):
        s = spec.ALGORITHM_LGC_DEFAULT

        return P(s)
Exemplo n.º 30
0
 def noiseConfig(self):
     s = spec.NOISE_UNIFORM_DET_SOME
     s["corruption_level"] = [0.0, 0.2, 0.4, 0.6]
     return P(s)