def __init__(self, algo, num_components=None, families_supervision=None): DimensionReductionConfiguration.__init__( self, algo, ) self.families_supervision = families_supervision self.num_components = num_components
def generateParser(parser): DimensionReductionConfiguration.generateParser(parser) parser.add_argument('--num-components', type=int, default=None) parser.add_argument('--families-supervision', type=bool, default=None)
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__'] = 'SemiSupervisedFeatureSelection.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): DimensionReductionConfiguration.__init__(self, algo)
def generateParamsFromArgs(args): params = DimensionReductionConfiguration.generateParamsFromArgs(args) params['num_components'] = args.num_components return params
def toJson(self): conf = DimensionReductionConfiguration.toJson(self) conf['__type__'] = 'UnsupervisedProjection.Configuration' conf['num_components'] = self.num_components return conf
def __init__(self, algo, num_components = None): DimensionReductionConfiguration.__init__(self, algo) self.num_components = num_components