slope 6.6.0
Loading...
Searching...
No Matches
slope::CvResult Struct Reference

Contains overall results from a cross-validation process. More...

#include <cv.h>

Public Attributes

std::vector< GridResult > results
std::map< std::string, double > best_params
double best_score
 The score achieved by the optimal hyperparameter configuration.
int best_ind
 Index of the best performing configuration in the results vector.
int best_alpha_ind

Detailed Description

Contains overall results from a cross-validation process.

This struct aggregates results from cross-validation across multiple hyperparameter combinations, including information about the optimal configuration.

Definition at line 63 of file cv.h.

Member Data Documentation

◆ best_alpha_ind

int slope::CvResult::best_alpha_ind

Index of the optimal alpha value within the regularization path for the best configuration

Definition at line 81 of file cv.h.

◆ best_ind

int slope::CvResult::best_ind

Index of the best performing configuration in the results vector.

Definition at line 77 of file cv.h.

◆ best_params

std::map<std::string, double> slope::CvResult::best_params

Map of hyperparameter names to their optimal values based on the cross-validation results

Definition at line 71 of file cv.h.

◆ best_score

double slope::CvResult::best_score

The score achieved by the optimal hyperparameter configuration.

Definition at line 74 of file cv.h.

◆ results

std::vector<GridResult> slope::CvResult::results

Vector of GridResult objects containing performance metrics for each hyperparameter configuration evaluated

Definition at line 67 of file cv.h.


The documentation for this struct was generated from the following file:
  • include/slope/cv.h