src.fairreckitlib.experiment.experiment_factory

This module contains functionality to create an experiment factory.

Functions:

create_experiment_factory: create factory with pipeline factories.

This program has been developed by students from the bachelor Computer Science at Utrecht University within the Software Project course. © Copyright Utrecht University (Department of Information and Computing Sciences)

 1"""This module contains functionality to create an experiment factory.
 2
 3Functions:
 4
 5    create_experiment_factory: create factory with pipeline factories.
 6
 7This program has been developed by students from the bachelor Computer Science at
 8Utrecht University within the Software Project course.
 9© Copyright Utrecht University (Department of Information and Computing Sciences)
10"""
11
12from ..core.config.config_factories import GroupFactory
13from ..data.data_factory import create_data_factory
14from ..data.set.dataset_registry import DataRegistry
15from ..evaluation.evaluation_factory import create_evaluation_factory
16from ..model.model_factory import create_model_factory
17
18
19def create_experiment_factory(data_registry: DataRegistry) -> GroupFactory:
20    """Create a group factory with all three pipeline factories.
21
22    Consists of three factories:
23        1) data factory.
24        2) model factory.
25        3) evaluation factory.
26
27    Returns:
28        the group factory containing the pipeline factories.
29    """
30    experiment_factory = GroupFactory('experiment')
31    experiment_factory.add_factory(create_data_factory(data_registry))
32    experiment_factory.add_factory(create_model_factory())
33    experiment_factory.add_factory(create_evaluation_factory())
34    return experiment_factory
def create_experiment_factory( data_registry: src.fairreckitlib.data.set.dataset_registry.DataRegistry) -> src.fairreckitlib.core.config.config_factories.GroupFactory:
20def create_experiment_factory(data_registry: DataRegistry) -> GroupFactory:
21    """Create a group factory with all three pipeline factories.
22
23    Consists of three factories:
24        1) data factory.
25        2) model factory.
26        3) evaluation factory.
27
28    Returns:
29        the group factory containing the pipeline factories.
30    """
31    experiment_factory = GroupFactory('experiment')
32    experiment_factory.add_factory(create_data_factory(data_registry))
33    experiment_factory.add_factory(create_model_factory())
34    experiment_factory.add_factory(create_evaluation_factory())
35    return experiment_factory

Create a group factory with all three pipeline factories.

Consists of three factories: 1) data factory. 2) model factory. 3) evaluation factory.

Returns: the group factory containing the pipeline factories.