def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "sigmoid", 1) def sigmoid(x): return 1 / (1 + math.exp(-x)) self.sigmoid = np.vectorize(sigmoid)
def __init__(self, column_id, number_bins=10, qbucket=False): name = "" if qbucket: name += 'q' name += "bucket" NumericTransformer.__init__(self, column_id, name, 1) self.number_bins = number_bins self.qbucket = qbucket
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "log", 1)
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "imputer", 1) self.seed = 42 self.model = Imputer()
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "degrees", 1)
def __init__(self, column_id, number_clusters=10): NumericTransformer.__init__(self, column_id, "cluster", 1) self.number_clusters = number_clusters self.seed = 42
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "winsorize", 1)
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "trimtail", 1)
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "dummy", 2)
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "radians", 1)
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "plot_pos", 1)
def __init__(self, column_id, threshold=0.0): NumericTransformer.__init__(self, column_id, "binary", 1) self.threshold = threshold self.model = Binarizer(self.threshold)
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "square", 1)
def __init__(self, column_id, output_distribution='normal'): NumericTransformer.__init__(self, column_id, "quantile", 1) self.seed = 42 self.output_distribution = output_distribution #'uniform'
def __init__(self, column_id, degree=2): NumericTransformer.__init__(self, column_id, "polynomial", degree+1) self.seed = 42 self.degree = degree self.model = PolynomialFeatures(self.degree)
def __init__(self, column_id): NumericTransformer.__init__(self, column_id, "identity", 1)