Ejemplo n.º 1
0
    def create(params):
        """
        This is a factory function that creates a feature aggregator derived class
        from the parameter file. It dynamically loads the requested feature aggregator class.

        :param params: A dictionary from a yaml experiment file.
        :type params: dict
        :return:
        :rtype: FeatureAggregator
        """
        return acf_utils.behavior_factory(params, 'feature_aggregation', 'aggregator', 'fa_')
Ejemplo n.º 2
0
    def create(params):
        """
        This is a factory function that creates a feature aggregator derived class
        from the parameter file. It dynamically loads the requested feature aggregator class.

        :param params: A dictionary from a yaml experiment file.
        :type params: dict
        :return:
        :rtype: FeatureAggregator
        """
        return acf_utils.behavior_factory(params, 'feature_aggregation',
                                          'aggregator', 'fa_')
Ejemplo n.º 3
0
    def create(params):

        """
        This is a factory function that creates a feature extractor derived class
        from the parameter file. It dynamically loads the requested feature extractor class.

        :param params: A dictionary from a yaml experiment file.
        :type params: dict
        :return:
        :rtype: FeatureExtractor

        .. note::
            These keys are expected to be set in the experiment file:
                * ['feature_extraction']['extractor']

        """

        return acf_utils.behavior_factory(params, 'feature_extraction', 'extractor', "fe_")
Ejemplo n.º 4
0
 def create(params):
     return acf_utils.behavior_factory(params, 'model_testing', 'model_tester', 'tst_')
Ejemplo n.º 5
0
 def create(params):
     return acf_utils.behavior_factory(params, "model_training",
                                       "model_trainer", "tr_")
Ejemplo n.º 6
0
 def create(params):
     return acf_utils.behavior_factory(params, "evaluation", "evaluator",
                                       "ev_")
Ejemplo n.º 7
0
 def create(params):
     return acf_utils.behavior_factory(params, 'model_testing',
                                       'model_tester', 'tst_')
Ejemplo n.º 8
0
 def create(params):
     return acf_utils.behavior_factory(params, "evaluation", "evaluator","ev_")
Ejemplo n.º 9
0
 def create(params):
     return acf_utils.behavior_factory(params, "model_training", "model_trainer","tr_")