#include <LightweightGraph.h>
Definition at line 64 of file LightweightGraph.h.
◆ IP
◆ IVP
◆ NodeMap
◆ Preprocs
◆ SeqNodeMap
◆ VecPreprocs
◆ LightweightGraph() [1/2]
| lwtDev::LightweightGraph::LightweightGraph |
( |
const GraphConfig & | config, |
|
|
const std::string & | default_output = "" ) |
Definition at line 68 of file LightweightGraph.cxx.
69 :
71 {
72 for (
const auto& node:
config.inputs) {
74 node.name,
new InputPreprocessor(
node.variables));
75 }
76 for (
const auto& node:
config.input_sequences) {
78 node.name,
new InputVectorPreprocessor(
node.variables));
79 }
80 size_t output_n = 0;
81 for (
const auto& node:
config.outputs) {
84 output_n++;
85 }
86 if (default_output.size() > 0) {
88 throw NNConfigurationException("no output node" + default_output);
89 }
91 } else if (output_n == 1) {
93 } else {
94 throw NNConfigurationException("you must specify a default output");
95 }
96 }
VecPreprocs m_vec_preprocs
std::map< std::string, size_t > m_output_indices
std::vector< std::pair< size_t, std::vector< std::string > > > m_outputs
◆ ~LightweightGraph()
| lwtDev::LightweightGraph::~LightweightGraph |
( |
| ) |
|
Definition at line 98 of file LightweightGraph.cxx.
98 {
101 delete preproc.second;
102 preproc.second = 0;
103 }
105 delete preproc.second;
106 preproc.second = 0;
107 }
108 }
◆ LightweightGraph() [2/2]
◆ compute() [1/3]
| ValueMap lwtDev::LightweightGraph::compute |
( |
const NodeMap & | nodes, |
|
|
const SeqNodeMap & | seq, |
|
|
const std::string & | output ) const |
Definition at line 114 of file LightweightGraph.cxx.
116 {
118 throw NNEvaluationException("no output node " + output);
119 }
121 }
ValueMap compute(const NodeMap &, const SeqNodeMap &={}) const
◆ compute() [2/3]
◆ compute() [3/3]
◆ operator=()
◆ scan() [1/3]
Definition at line 139 of file LightweightGraph.cxx.
141 {
143 throw NNEvaluationException("no output node " + output);
144 }
146 }
VectorMap scan(const NodeMap &, const SeqNodeMap &={}) const
◆ scan() [2/3]
Definition at line 147 of file LightweightGraph.cxx.
149 {
153 std::map<std::string, std::vector<double> >
output;
154 for (
size_t iii = 0; iii <
labels.size(); iii++) {
156 std::vector<double> out_vector(
row.data(),
row.data() +
row.size());
158 }
160 }
row
Appending html table to final .html summary file.
◆ scan() [3/3]
◆ m_default_output
| size_t lwtDev::LightweightGraph::m_default_output |
|
private |
◆ m_graph
| Graph* lwtDev::LightweightGraph::m_graph |
|
private |
◆ m_output_indices
| std::map<std::string, size_t> lwtDev::LightweightGraph::m_output_indices |
|
private |
◆ m_outputs
| std::vector<std::pair<size_t, std::vector<std::string> > > lwtDev::LightweightGraph::m_outputs |
|
private |
◆ m_preprocs
| Preprocs lwtDev::LightweightGraph::m_preprocs |
|
private |
◆ m_vec_preprocs
The documentation for this class was generated from the following files: