QDpy
Loading...
Searching...
No Matches
qdpy.base.Summarisable Class Reference
Inheritance diagram for qdpy.base.Summarisable:
qdpy.algorithms.base.QDAlgorithm qdpy.algorithms.base.Sq qdpy.containers.base.Container qdpy.containers.base.ContainerDecorator qdpy.algorithms.base.AlgWithBatchSuggestions qdpy.algorithms.base.AlgWrapper qdpy.algorithms.base.FromArchive qdpy.algorithms.base.Lambda qdpy.algorithms.dynamic_mutation.DynamicMutationMAPElites qdpy.algorithms.evolution.CMAES qdpy.algorithms.evolution.Evolution qdpy.algorithms.evolution.MutGaussian.CMAES qdpy.algorithms.gram_elites.GramElites qdpy.algorithms.modern.IsoLineMAPElites qdpy.algorithms.modern._FixedGeneration qdpy.algorithms.monte_carlo.MonteCarloElites qdpy.algorithms.sampling.SamplingDecorator qdpy.algorithms.search.RandomUniform sequence_distribution_qd._TileBaseline qdpy.algorithms.aurora_xcon._AuroraRepertoire qdpy.containers.archives.NoveltyArchive qdpy.containers.grids.Grid qdpy.containers.pareto.LocalParetoArchive qdpy.containers.populations.Population qdpy.containers.voronoi.VoronoiArchive qdpy.containers.feature_extraction.TorchFeatureExtractionContainerDecorator qdpy.containers.feature_extraction.TorchFeatureExtractionContainerDecorator

Public Member Functions

Mapping[str, Any] __get_summary_state__ (self)
str summary (self, Optional[int] max_depth=None, Optional[int] max_entry_length=250)

Detailed Description

Describes a class that can be summarised by using the `self.summary` method.
The summarised information is provided by the `self.__get_summary_state__` method. 

Definition at line 436 of file base.py.

Member Function Documentation

◆ __get_summary_state__()

Mapping[str, Any] qdpy.base.Summarisable.__get_summary_state__ ( self)
Return a dictionary containing the relevant entries to build a summary of the class.
By default, it includes all public attributes of the class. Must be overridden by subclasses.

Definition at line 441 of file base.py.

◆ summary()

str qdpy.base.Summarisable.summary ( self,
Optional[int] max_depth = None,
Optional[int] max_entry_length = 250 )
Return a summary description of the class.
The summarised information is provided by the `self.__get_summary_state__` method.

Parameters
----------
:param max_depth: Optional[int]
    The maximal recursion depth allowed. Used to summarise attributes of `self` that are also Summarisable.
    If the maximal recursion depth is reached, the attribute is only described with a reduced representation (`repr(attribute)`).
    If `max_depth` is set to None, there are no recursion limit.
:param max_entry_length: Optional[int]
    If `max_entry_length` is not None, the description of a non-Summarisable entry exceeding `max_entry_length`
    is cropped to this limit.

Definition at line 455 of file base.py.


The documentation for this class was generated from the following file: