OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
opennn::TestingAnalysis::GoodnessOfFitAnalysis Struct Reference

Per-output regression goodness-of-fit summary. More...

#include <testing_analysis.h>

Public Member Functions

void set (const VectorR &targets, const VectorR &outputs, float determination)
 Populates the struct from raw vectors and a precomputed R^2.
 
void save (const filesystem::path &file_name) const
 Saves the struct to a CSV file.
 
void print () const
 Prints the struct to standard output.
 

Public Attributes

float determination = 0.0f
 Coefficient of determination (R^2) for this output.
 
VectorR targets
 Target values for the testing samples.
 
VectorR outputs
 Network outputs for the testing samples.
 

Detailed Description

Per-output regression goodness-of-fit summary.

Captures the coefficient of determination together with the raw target/output vectors used to compute it.

Member Function Documentation

◆ print()

void opennn::TestingAnalysis::GoodnessOfFitAnalysis::print ( ) const

Prints the struct to standard output.

◆ save()

void opennn::TestingAnalysis::GoodnessOfFitAnalysis::save ( const filesystem::path & file_name) const

Saves the struct to a CSV file.

Parameters
file_nameDestination path.

◆ set()

void opennn::TestingAnalysis::GoodnessOfFitAnalysis::set ( const VectorR & targets,
const VectorR & outputs,
float determination )

Populates the struct from raw vectors and a precomputed R^2.

Parameters
targetsTarget values.
outputsNetwork outputs.
determinationR^2 between targets and outputs.

Member Data Documentation

◆ determination

float opennn::TestingAnalysis::GoodnessOfFitAnalysis::determination = 0.0f

Coefficient of determination (R^2) for this output.

◆ outputs

VectorR opennn::TestingAnalysis::GoodnessOfFitAnalysis::outputs

Network outputs for the testing samples.

◆ targets

VectorR opennn::TestingAnalysis::GoodnessOfFitAnalysis::targets

Target values for the testing samples.