def generateParser(parser):
     DimensionReductionConfiguration.generateParser(parser)
     parser.add_argument('--num-components',
                         type=int,
                         default=None)
     parser.add_argument('--families-supervision',
                         action='store_true',
                         default=False)
Пример #2
0
 def __init__(self,
              algo,
              num_components=None,
              families_supervision=None,
              logger=None):
     DimensionReductionConfiguration.__init__(self, algo, logger=logger)
     self.num_components = num_components
     self.families_supervision = families_supervision
 def generateParamsFromArgs(args):
     params = DimensionReductionConfiguration.generateParamsFromArgs(args)
     params['num_components'] = args.num_components
     params['families_supervision'] = args.families_supervision
     return params
 def toJson(self):
     conf = DimensionReductionConfiguration.toJson(self)
     conf['__type__'] = 'SemiSupervisedProjection.Configuration'
     conf['families_supervision'] = self.families_supervision
     conf['num_components'] = self.num_components
     return conf
 def generateSuffix(self):
     suffix = DimensionReductionConfiguration.generateSuffix(self)
     if self.families_supervision:
         suffix += '__familiesSupervision'
     return suffix
 def toJson(self):
     conf = DimensionReductionConfiguration.toJson(self)
     conf['__type__'] = 'UnsupervisedFeatureSelection.Configuration'
     return conf
 def generateSuffix(self):
     suffix = DimensionReductionConfiguration.generateSuffix(self)
     return suffix
 def __init__(self, algo, logger=None):
     DimensionReductionConfiguration.__init__(self, algo, logger=logger)
 def generateParamsFromArgs(args):
     params = DimensionReductionConfiguration.generateParamsFromArgs(args)
     params['num_components'] = args.num_components
     return params
 def __init__(self, algo, num_components=None, logger=None):
     DimensionReductionConfiguration.__init__(self, algo, logger=logger)
     self.num_components = num_components