src/FitnessFunctions.cpp
void EchoBay::Comparator::set_label_size(int rows, int cols)
{
    // Copy internal variables
    _rows = rows;
    _cols = cols;

    // Resize matrix
    if (_problemType == "Classification")
    {
        _nOutput = _nClasses;
        _outputLabel.resize(_rows, _cols * _nClasses);
    }
    else // Regression and Memory Capacity
    {
        // TODO needs a check if _outCols is defined or not
        _nOutput = _outCols;
        _outputLabel.resize(_rows, _outCols);
    }
}
/**
 * @brief Resize the internal outputLabel according to problemType
 * 
 * @param rows Rows of the outputLabel
 * @param cols Columns of the outputLabel, multiplied by nClasses in Classification problem 
 * (see also get_targetMatrix(const Eigen::Ref<const MatrixBO> label, const Eigen::Ref<const ArrayBO> sampleState))
 */
@brief Resize the internal outputLabel according to problemType

@param rows Rows of the outputLabel
@param cols Columns of the outputLabel, multiplied by nClasses in Classification problem
)
@brief Resize the internal outputLabel according to problemType @param rows Rows of the outputLabel @param cols Columns of the outputLabel multiplied by nClasses in Classification problem )
void EchoBay::Comparator::set_label_size(int rows, int cols)
{
    _rows = rows;
    _cols = cols;
    if (_problemType == "Classification")
    {
        _nOutput = _nClasses;
        _outputLabel.resize(_rows, _cols * _nClasses);
    }
    else 
    {
        _nOutput = _outCols;
        _outputLabel.resize(_rows, _outCols);
    }
}
void EchoBay :: Comparator :: set_label_size ( int rows , int cols ) { _rows = rows ; _cols = cols ; if ( _problemType == " " ) { _nOutput = _nClasses ; _outputLabel . resize ( _rows , _cols * _nClasses ) ; } else { _nOutput = _outCols ; _outputLabel . resize ( _rows , _outCols ) ; } }
@brief Resize the internal outputLabel according to problemType
@brief Resize the internal outputLabel according to problemType
// Copy internal variables // Resize matrix // Regression and Memory Capacity // TODO needs a check if _outCols is defined or not