https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NearestPointTrainer.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#include "SurrogateTrainer.h"
13
15{
16public:
19 virtual void preTrain() override;
20 virtual void train() override;
21 virtual void postTrain() override;
22
23protected:
25 std::vector<std::vector<Real>> & _sample_points;
26
28 std::vector<std::vector<Real>> & _sample_results;
29
31 const std::vector<Real> & _predictor_row;
32};
const InputParameters & parameters() const
virtual void postTrain() override
virtual void preTrain() override
virtual void train() override
static InputParameters validParams()
std::vector< std::vector< Real > > & _sample_points
Map containing sample points and the results.
const std::vector< Real > & _predictor_row
Data from the current predictor row.
std::vector< std::vector< Real > > & _sample_results
Container for results (y values).
This is the main trainer base class.