图表

plot_fitness_evolution(estimator[, metric])

plot_search_space(estimator[, height, s, ...])

sklearn_genetic.plots.plot_fitness_evolution(estimator, metric='fitness')[源代码]
Parameters:
estimator: estimator object

一个经过拟合的估计器,来自GASearchCV

metric: {“fitness”, “fitness_std”, “fitness_max”, “fitness_min”}, default=”fitness”

将指标记录到估计器历史中以绘制图表

Returns:
Lines plot with the fitness value in each generation
sklearn_genetic.plots.plot_search_space(estimator, height=2, s=25, features: list = None)[源代码]
Parameters:
estimator: estimator object

一个经过拟合的估计器,来自GASearchCV

height: float, default=2

每个刻面的高度

s: float, default=5

散点图中标记的大小

features: list, default=None

要绘制的特征子集,如果None则默认绘制所有特征

Returns:
Pair plot of the used hyperparameters during the search