registries
Registries for algorithms, metrics, and datasets.
This module provides registries for storing and managing algorithms, metrics, and datasets used in experiments. Registries help keep track of valid classes and enable easy instantiation of components.
Registries¶
Registries store algorithms, metrics, and datasets by default and allow registration of new components via the register function.
Example:
from recnexteval.pipelines import ALGORITHM_REGISTRY
from recnexteval.algorithms import ItemKNNStatic
algo = ALGORITHM_REGISTRY.get("ItemKNNStatic")(K=10)
ALGORITHM_REGISTRY.register(name="algo_1", algo_ptr=ItemKNNStatic)
Available Registries¶
ALGORITHM_REGISTRY: Registry for algorithmsDATASET_REGISTRY: Registry for datasetsMETRIC_REGISTRY: Registry for metricsAlgorithmRegistry: Class for creating algorithm registriesDatasetRegistry: Class for creating dataset registriesMetricRegistry: Class for creating metric registries
Entries¶
Entries store algorithms and metrics in registries. They maintain the class and parameters used to instantiate each component. These entries are used by EvaluatorPipeline to instantiate algorithms and metrics.
Available Entries¶
AlgorithmEntry: Entry for algorithmsMetricEntry: Entry for metrics