コード例 #1
0
 def __init__(self, algo, num_components=None, families_supervision=None):
     DimensionReductionConfiguration.__init__(
         self,
         algo,
     )
     self.families_supervision = families_supervision
     self.num_components = num_components
コード例 #2
0
 def generateParser(parser):
     DimensionReductionConfiguration.generateParser(parser)
     parser.add_argument('--num-components', type=int, default=None)
     parser.add_argument('--families-supervision', type=bool, default=None)
コード例 #3
0
 def generateParamsFromArgs(args):
     params = DimensionReductionConfiguration.generateParamsFromArgs(args)
     params['num_components'] = args.num_components
     params['families_supervision'] = args.families_supervision
     return params
コード例 #4
0
 def toJson(self):
     conf = DimensionReductionConfiguration.toJson(self)
     conf['__type__'] = 'SemiSupervisedFeatureSelection.Configuration'
     conf['families_supervision'] = self.families_supervision
     conf['num_components'] = self.num_components
     return conf
コード例 #5
0
 def generateSuffix(self):
     suffix = DimensionReductionConfiguration.generateSuffix(self)
     if self.families_supervision:
         suffix += '__familiesSupervision'
     return suffix
コード例 #6
0
 def toJson(self):
     conf = DimensionReductionConfiguration.toJson(self)
     conf['__type__'] = 'UnsupervisedFeatureSelection.Configuration'
     return conf
コード例 #7
0
 def generateSuffix(self):
     suffix = DimensionReductionConfiguration.generateSuffix(self)
     return suffix
コード例 #8
0
 def __init__(self, algo):
     DimensionReductionConfiguration.__init__(self, algo)
コード例 #9
0
 def generateParamsFromArgs(args):
     params = DimensionReductionConfiguration.generateParamsFromArgs(args)
     params['num_components'] =  args.num_components
     return params
コード例 #10
0
 def toJson(self):
     conf = DimensionReductionConfiguration.toJson(self)
     conf['__type__'] = 'UnsupervisedProjection.Configuration'
     conf['num_components'] = self.num_components
     return conf
コード例 #11
0
 def __init__(self, algo, num_components = None):
     DimensionReductionConfiguration.__init__(self, algo)
     self.num_components = num_components