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