mloptimizer.aux.plots
#
Module Contents#
Functions#
|
Function to transform a deap logbook to a pandas dataframe. |
|
Generate plotly figure from logbook. Evolution of fitness and population. |
|
Generate sns figure from logbook. Evolution of fitness and population. |
|
Generate plotly figure from populations dataframe and features. Search space. |
|
Generate sns figure from populations dataframe and features. Search space. |
- mloptimizer.aux.plots.logbook_to_pandas(logbook)[source]#
Function to transform a deap logbook to a pandas dataframe.
- Parameters:
logbook (deap.tools.Logbook) – The logbook to transform
- Returns:
df – The logbook as a pandas dataframe
- Return type:
pd.DataFrame
- mloptimizer.aux.plots.plotly_logbook(logbook, population)[source]#
Generate plotly figure from logbook. Evolution of fitness and population.
- Parameters:
logbook (deap.tools.Logbook) – The logbook to plot
population (pd.DataFrame) – The population to plot
- Returns:
fig – The figure
- Return type:
plotly.graph_objects.Figure
- mloptimizer.aux.plots.plot_logbook(logbook)[source]#
Generate sns figure from logbook. Evolution of fitness and population.
- Parameters:
logbook (deap.tools.Logbook) – The logbook to plot
- Returns:
fig – The figure
- Return type:
plotly.graph_objects.Figure
- mloptimizer.aux.plots.plotly_search_space(populations_df: pandas.DataFrame, features: list = None)[source]#
Generate plotly figure from populations dataframe and features. Search space.
- Parameters:
populations_df (pd.DataFrame) – The dataframe with the population
features (list) – The features to plot
- Returns:
fig – The figure
- Return type:
plotly.graph_objects.Figure
- mloptimizer.aux.plots.plot_search_space(populations_df: pandas.DataFrame, height=2, s=25)[source]#
Generate sns figure from populations dataframe and features. Search space.
- Parameters:
populations_df (pd.DataFrame) – The dataframe with the population
height (int) – The height of the figure
s (int) – The size of the points
- Returns:
fig – The figure
- Return type:
plotly.graph_objects.Figure