NiaPy
¶
Python micro framework for building nature-inspired algorithms.
-
class
NiaPy.
Runner
(D=10, nFES=1000000, nRuns=1, useAlgorithms='ArtificialBeeColonyAlgorithm', useBenchmarks='Ackley', **kwargs)[source]¶ Bases:
object
Runner utility feature.
Feature which enables running multiple algorithms with multiple benchmarks. It also support exporting results in various formats (e.g. LaTeX, Excel, JSON)
Variables: Returns: Returns the results.
Return type: results (Dict[str, Dict])
Initialize Runner.
Parameters: -
classmethod
_Runner__create_export_dir
()¶ Create export directory if not already createed.
-
_Runner__export_to_json
()¶ Export the results in the JSON form.
See also
NiaPy.Runner.__createExportDir()
-
_Runner__export_to_latex
()¶ Export the results in the form of latex table.
See also
NiaPy.Runner.__createExportDir()
NiaPy.Runner.__generateExportName()
-
_Runner__export_to_log
()¶ Print the results to terminal.
-
_Runner__export_to_xlsx
()¶ Export the results in the xlsx form.
See also
NiaPy.Runner.__generateExportName()
-
classmethod
_Runner__generate_export_name
(extension)¶ Generate export file name.
Parameters: extension (str) – File format. Returns:
-
__init__
(D=10, nFES=1000000, nRuns=1, useAlgorithms='ArtificialBeeColonyAlgorithm', useBenchmarks='Ackley', **kwargs)[source]¶ Initialize Runner.
Parameters:
-
benchmark_factory
(name)[source]¶ Create optimization task.
Parameters: name (str) – Benchmark name. Returns: Optimization task to use. Return type: Task
-
classmethod
-
class
NiaPy.
Runner
(D=10, nFES=1000000, nRuns=1, useAlgorithms='ArtificialBeeColonyAlgorithm', useBenchmarks='Ackley', **kwargs)[source] Runner utility feature.
Feature which enables running multiple algorithms with multiple benchmarks. It also support exporting results in various formats (e.g. LaTeX, Excel, JSON)
Variables: Returns: Returns the results.
Return type: results (Dict[str, Dict])
Initialize Runner.
Parameters: