Repository

class fedot.core.repository.dataset_types.DataTypesEnum(value)[source]

Bases: fedot.core.utilities.data_structures.ComparableEnum

An enumeration

Parameters
  • table – table with columns as features for predictions, by default == feature_table

  • ts – one dimensional array - time series, by default == time_series

  • multi_ts – table with different variant of time-series for the same variable as columns (used for extending train sample), by default == multiple_time_series

  • text – table, where cells contains text, by default == text

  • image – images represented as 3d arrays, by default == image

Operation Types

class fedot.core.repository.operation_types_repository.OperationMetaInfo(id: str, input_types: List[fedot.core.repository.dataset_types.DataTypesEnum], output_types: List[fedot.core.repository.dataset_types.DataTypesEnum], task_type: List[fedot.core.repository.tasks.TaskTypesEnum], supported_strategies: Any, allowed_positions: List[str], tags: Union[List[str], NoneType] = None, presets: Union[List[str], NoneType] = None)[source]

Bases: object

current_strategy(task: fedot.core.repository.tasks.TaskTypesEnum)[source]

Method allows getting available processing strategies depending on the selected task

Parameters

task – machine learning task (e.g. regression and classification)

Returns

supported strategies for task

class fedot.core.repository.operation_types_repository.OperationTypesRepository(operation_type: str = 'model')[source]

Bases: object

Class for connecting models and data operations with json files with its descriptions and metadata

classmethod _initialise_repo(repo_path: str) List[fedot.core.repository.operation_types_repository.OperationMetaInfo][source]

Method parse JSON repository with operations descriptions and wrapped information into OperationMetaInfo, then put it into the list

Returns

list with OperationMetaInfo for every operation from json repository

Return type

List[OperationMetaInfo]

static get_strategies_by_metadata(metadata: dict)[source]

Method allow obtain strategy instance by the metadata

Parameters
  • metadata – information about meta of the operation

  • supported_strategies – available strategies for current metadata

operation_info_by_id(operation_id: str) Optional[fedot.core.repository.operation_types_repository.OperationMetaInfo][source]

Get operation by it’s name (id)

operations_with_tag(tags: List[str], is_full_match: bool = False)[source]

Method returns operations from repository with specific tags

Parameters
  • tags – list of required tags

  • is_full_match – are all tags are required

:return list of suitable operations names

suitable_operation(task_type: Optional[fedot.core.repository.tasks.TaskTypesEnum] = None, data_type: Optional[fedot.core.repository.dataset_types.DataTypesEnum] = None, tags: Optional[List[str]] = None, is_full_match: bool = False, forbidden_tags: Optional[List[str]] = None, preset: Optional[str] = None) List[str][source]

Method returns operations from repository for desired task and / or tags. Filtering method.

Parameters
  • task_type – task to filter

  • data_type – data type to filter

  • tags – operations with which tags are required

  • is_full_match – requires all tags to match, or at least one

  • forbidden_tags – operations with such tags shouldn’t be returned

  • preset – return operations from desired preset

get_first_suitable_operation_tag(operation: str, tags_to_find: Optional[List[str]] = None) Optional[str][source]

Finds the first suitable tag for the operation in the repository.

Parameters
  • operation – name of the operation

  • tags_to_find – list of suitable tags. The later the tag, the higher its priority in case of intersection

Returns

first suitable tag or None

Return type

Optional[List[str]]

fedot.core.repository.operation_types_repository.get_visualization_tags_map() Dict[str, List[str]][source]

Returns map between repository tags and list of corresponding models for visualizations.

fedot.core.repository.operation_types_repository._is_operation_contains_tag(candidate_tags: List[str], operation_tags: List[str], is_full_match: bool) bool[source]

The function checks which operations are suitable for the selected tags

Parameters
  • candidate_tagslist with tags that the operation must have in order to fit the selected task

  • operation_tagslist with tags with names as in repository json file which correspond to the considering operation

  • is_full_match – requires all tags to match, or at least one

Returns

is there a match on the tags

Return type

bool

fedot.core.repository.operation_types_repository._is_operation_contains_preset(operation_presets: List[str], preset: str) bool[source]

Checking whether the operation is suitable for current preset

fedot.core.repository.operation_types_repository.get_operations_for_task(task: Optional[fedot.core.repository.tasks.Task], data_type: Optional[fedot.core.repository.dataset_types.DataTypesEnum] = None, mode='all', tags=None, forbidden_tags=None, preset: Optional[str] = None)[source]

Function returns aliases of operations.

Parameters
  • task – task to solve

  • data_type – type of input data

  • mode

    mode to return operations

    the possible parameters of mode:
    • all -> return list with all operations

    • model -> return only list with models

    • data_operation -> return only list with data_operations

  • tags – tags for grabbing when filtering

  • forbidden_tags – tags for skipping when filtering

  • preset – operations from this preset will be obtained

Returns

operation aliases

Return type

list

fedot.core.repository.operation_types_repository._operation_name_without_postfix(operation_id)[source]
Parameters

operation_id – operation name with optional postfix - text after / sign

Returns

operation type - all characters before postfix (all characters if no postfix found)

Quality metrics

class fedot.core.repository.quality_metrics_repository.MetricsEnum(value)[source]

Bases: fedot.core.utilities.data_structures.ComparableEnum

An enumeration.

class fedot.core.repository.quality_metrics_repository.QualityMetricsEnum(value)[source]

Bases: fedot.core.repository.quality_metrics_repository.MetricsEnum

An enumeration.

class fedot.core.repository.quality_metrics_repository.ComplexityMetricsEnum(value)[source]

Bases: fedot.core.repository.quality_metrics_repository.MetricsEnum

An enumeration.

class fedot.core.repository.quality_metrics_repository.ClusteringMetricsEnum(value)[source]

Bases: fedot.core.repository.quality_metrics_repository.QualityMetricsEnum

An enumeration.

class fedot.core.repository.quality_metrics_repository.ClassificationMetricsEnum(value)[source]

Bases: fedot.core.repository.quality_metrics_repository.QualityMetricsEnum

An enumeration.

class fedot.core.repository.quality_metrics_repository.RegressionMetricsEnum(value)[source]

Bases: fedot.core.repository.quality_metrics_repository.QualityMetricsEnum

An enumeration.

Tasks

class fedot.core.repository.tasks.TaskParams[source]

Bases: object

class fedot.core.repository.tasks.TsForecastingParams(forecast_length: int)[source]

Bases: fedot.core.repository.tasks.TaskParams

class fedot.core.repository.tasks.TaskTypesEnum(value)[source]

Bases: fedot.core.utilities.data_structures.ComparableEnum

An enumeration.

class fedot.core.repository.tasks.Task(task_type: fedot.core.repository.tasks.TaskTypesEnum, task_params: Union[fedot.core.repository.tasks.TaskParams, NoneType] = None)[source]

Bases: object