https://mooseframework.inl.gov
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 {
22 public:
24 
26 
27  virtual void initialize() override {}
28  virtual void execute() override;
29  virtual void finalize() override {}
30 
31 protected:
33  std::vector<std::vector<std::vector<Real>> *> _cv_scores;
34 
36  std::vector<const SurrogateModel *> _models;
37 };
static InputParameters validParams()
virtual void finalize() override
virtual void initialize() override
std::vector< const SurrogateModel * > _models
Model to extract CV values from.
CrossValidationScores(const InputParameters &parameters)
std::vector< std::vector< std::vector< Real > > * > _cv_scores
Storage for cross-validation scores.
virtual void execute() override
Interface for objects that need to use samplers.
A tool to output CV scores.
const InputParameters & parameters() const