eqdisco.models.SymbolicTransformer#
- class eqdisco.models.SymbolicTransformer(n_components=2, goal='sammon', population_size=200, generations=40, functions=('add', 'sub', 'mul', 'div', 'sqrt', 'log', 'exp'), init_depth=(1, 3), max_depth=5, selection='tournament', tournament_size=5, p_crossover=0.8, p_high_level=0.3, p_constant=0.2, const_range=(-5.0, 5.0), parsimony=0.0, variable_penalty=0.0, max_samples=200, standardize=True, elitism=1, patience=None, time_limit=None, feature_names=None, random_state=None, verbose=0)[source]#
Bases:
_GeneOps,EvolutionaryEstimator,TransformerMixinEvolve \(k\) explicit features \(z_j=F_j(\mathbf{x})\) for a goal.
- Parameters:
- n_components
int, default=2 Number of features \(k\) (2 for a map of the data).
- goal{“sammon”, “fisher”, “knn”, “target”}
orcallable() sammon– preserve the distances of the standardized data (Sammon stress, the features are compared up to a common scale);fisher– separate the classesy(inverse Fisher criterion);knn– leave-one-out error of a 5-nearest-neighbour classifier ofyin the feature space;target– predict the targetyby a linear model of the features (goal-oriented projection for soft sensors);callable
cost(Z, X, y) -> floatto minimize.
- variable_penalty
float, default=0.0 Cost per distinct input variable used (feature selection pressure).
- max_samples
int, default=200 Samples used to evaluate distance-based goals.
- The evolutionary parameters are those of :class:`MultiGeneRegressor`.
- n_components
- Attributes:
- equations_
listofEquation The \(k\) features.
- history_
pandas.DataFrame
- equations_