Esempio 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_')
Esempio 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_')
Esempio 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_")
Esempio n. 4
0
 def create(params):
     return acf_utils.behavior_factory(params, 'model_testing', 'model_tester', 'tst_')
Esempio n. 5
0
 def create(params):
     return acf_utils.behavior_factory(params, "model_training",
                                       "model_trainer", "tr_")
Esempio n. 6
0
 def create(params):
     return acf_utils.behavior_factory(params, "evaluation", "evaluator",
                                       "ev_")
Esempio n. 7
0
 def create(params):
     return acf_utils.behavior_factory(params, 'model_testing',
                                       'model_tester', 'tst_')
Esempio n. 8
0
 def create(params):
     return acf_utils.behavior_factory(params, "evaluation", "evaluator","ev_")
Esempio n. 9
0
 def create(params):
     return acf_utils.behavior_factory(params, "model_training", "model_trainer","tr_")