-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
239 changed files
with
12,996 additions
and
5,090 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
||
.DS_Store | ||
|
||
# IntelliJ project files | ||
/.idea | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include fedot_ind/core/repository/data/* | ||
include fedot_ind/core/architecture/postprocessing/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import logging | ||
import os | ||
|
||
|
||
class AbstractBenchmark(object): | ||
"""Abstract class for benchmarks. | ||
This class defines the interface that all benchmarks must implement. | ||
""" | ||
|
||
def __init__(self, output_dir, **kwargs): | ||
"""Initialize the benchmark. | ||
Args: | ||
name: The name of the benchmark. | ||
description: A short description of the benchmark. | ||
**kwargs: Additional arguments that may be required by the | ||
benchmark. | ||
""" | ||
self.output_dir = output_dir | ||
self.kwargs = kwargs | ||
self.logger = logging.getLogger(self.__class__.__name__) | ||
self._create_output_dir() | ||
|
||
@property | ||
def _config(self): | ||
raise NotImplementedError() | ||
|
||
def _create_output_dir(self): | ||
os.makedirs(self.output_dir, exist_ok=True) | ||
|
||
def _create_report(self, results): | ||
"""Create a report from the results of the benchmark. | ||
Args: | ||
results: The results of the benchmark. | ||
Returns: | ||
A string containing the report. | ||
""" | ||
raise NotImplementedError() | ||
|
||
def run(self): | ||
"""Run the benchmark and return the results. | ||
Returns: | ||
A dictionary containing the results of the benchmark. | ||
""" | ||
raise NotImplementedError() | ||
|
||
def collect_results(self, output_dir): | ||
"""Collect the results of the benchmark. | ||
Args: | ||
output_dir: The directory where the benchmark wrote its results. | ||
Returns: | ||
A dictionary containing the results of the benchmark. | ||
""" | ||
raise NotImplementedError() |
Oops, something went wrong.