<commit_before>//individual.hpp
#ifndef _INDIVIDUAL_H
#define _INDIVIDUAL_H

#include <vector>

#include "node.hpp"


using namespace std;


class Individual{
    
    private:
        Node *expression;
        double mse_value;

    public:
        Individual();
        ~Individual();

        Node *crossover(double crossover_rate, Individual parent);
        void mutation(double mutation_rate);
        double fitness(vector< vector<double> > points);
        void print_expression_d();
};

#endif<commit_msg>1.2.1 Arrumado o parâmetro de fitness<commit_after>//individual.hpp
#ifndef _INDIVIDUAL_H
#define _INDIVIDUAL_H

#include <vector>

#include "node.hpp"


using namespace std;


class Individual{
    
    private:
        Node *expression;
        double mse_value;

    public:
        Individual();
        ~Individual();

        Node *crossover(double crossover_rate, Individual parent);
        void mutation(double mutation_rate);
        double fitness(vector<utils::DataPoint> points);
        void print_expression_d();
};

#endif
{'fraction_non_alphanumeric': 0.09695817490494296, 'fraction_numerical': 0.0028517110266159697, 'mean_word_length': 3.019083969465649, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1259743', 'n_tokens_mistral': 337, 'n_tokens_neox': 308, 'n_words': 77}