.. This file is part of Culebra is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Culebra is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Culebra. If not, see . This work is supported by projects PGC2018-098813-B-C31 and PID2022-137461NB-C31, both funded by the Spanish "Ministerio de Ciencia, Innovación y Universidades" and by the European Regional Development Fund (ERDF). :py:class:`culebra.fitness_function.dataset_score.Accuracy` class ================================================================= .. autoclass:: culebra.fitness_function.dataset_score.Accuracy Class attributes ---------------- .. class:: culebra.fitness_function.dataset_score.Accuracy.Fitness Handles the values returned by the :py:meth:`~culebra.fitness_function.dataset_score.Accuracy.evaluate` method within a :py:class:`~culebra.abc.Solution`. This class must be implemented within all the :py:class:`~culebra.fitness_function.dataset_score.Accuracy` subclasses, as a subclass of the :py:class:`~culebra.abc.Fitness` class, to define its three class attributes ( :py:attr:`~culebra.abc.Fitness.weights`, :py:attr:`~culebra.abc.Fitness.names`, and :py:attr:`~culebra.abc.Fitness.thresholds`) according to the fitness function. Class methods ------------- .. automethod:: culebra.fitness_function.dataset_score.Accuracy.load_pickle .. automethod:: culebra.fitness_function.dataset_score.Accuracy.set_fitness_thresholds .. automethod:: culebra.fitness_function.dataset_score.Accuracy.get_fitness_objective_threshold .. automethod:: culebra.fitness_function.dataset_score.Accuracy.set_fitness_objective_threshold Properties ---------- .. autoproperty:: culebra.fitness_function.dataset_score.Accuracy.is_noisy .. autoproperty:: culebra.fitness_function.dataset_score.Accuracy.num_obj .. autoproperty:: culebra.fitness_function.dataset_score.Accuracy.num_nodes .. autoproperty:: culebra.fitness_function.dataset_score.Accuracy.training_data .. autoproperty:: culebra.fitness_function.dataset_score.Accuracy.test_data .. autoproperty:: culebra.fitness_function.dataset_score.Accuracy.test_prop .. autoproperty:: culebra.fitness_function.dataset_score.Accuracy.cv_folds Private properties ------------------ .. autoproperty:: culebra.fitness_function.dataset_score.Accuracy._worst_score Methods ------- .. automethod:: culebra.fitness_function.dataset_score.Accuracy.save_pickle .. automethod:: culebra.fitness_function.dataset_score.Accuracy.heuristic .. automethod:: culebra.fitness_function.dataset_score.Accuracy.evaluate Private methods --------------- .. automethod:: culebra.fitness_function.dataset_score.Accuracy._score .. automethod:: culebra.fitness_function.dataset_score.Accuracy._final_training_test_data .. automethod:: culebra.fitness_function.dataset_score.Accuracy._evaluate_train_test .. automethod:: culebra.fitness_function.dataset_score.Accuracy._evaluate_mccv .. automethod:: culebra.fitness_function.dataset_score.Accuracy._evaluate_kfcv