https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CrossValidationScores.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12// MOOSE includes
13#include "GeneralReporter.h"
15#include "SurrogateModel.h"
21{
22public:
24
26
27 virtual void initialize() override {}
28 virtual void execute() override;
29 virtual void finalize() override {}
30
31protected:
33 std::vector<std::vector<std::vector<Real>> *> _cv_scores;
34
36 std::vector<const SurrogateModel *> _models;
37};
A tool to output CV scores.
virtual void initialize() override
virtual void execute() override
std::vector< const SurrogateModel * > _models
Model to extract CV values from.
static InputParameters validParams()
virtual void finalize() override
std::vector< std::vector< std::vector< Real > > * > _cv_scores
Storage for cross-validation scores.
const InputParameters & parameters() const
Interface for objects that need to use samplers.