32 Int_t sampleIndex = *sampleIterator;
33 for (
Int_t j = 0; j <
n; j++) {
34 matrix(
i, j) =
static_cast<Real_t>(
input(sampleIndex, j));
50 Int_t sampleIndex = *sampleIterator;
51 for (
Int_t j = 0; j <
n; j++) {
67 Int_t sampleIndex = *sampleIterator;
68 matrix(
i, 0) =
static_cast<Real_t>(weights(sampleIndex, 0));
83 Int_t sampleIndex = *sampleIterator;
84 for (
Int_t j = 0; j <
n; j++) {
101 Int_t sampleIndex = *sampleIterator;
102 for (
Int_t j = 0; j <
n; j++) {
118 Int_t sampleIndex = *sampleIterator;
129 if (std::get<0>(
fData).empty())
131 Event *
event =
nullptr;
139 Int_t sampleIndex = *sampleIterator++;
140 event = std::get<0>(
fData)[sampleIndex];
141 for (
Int_t j = 0; j <
n; j++) {
142 matrix(
i, j) =
event->GetValue(j);
152 if (std::get<0>(
fData).empty())
154 Event *
event =
nullptr;
160 Int_t sampleIndex = *sampleIterator++;
161 event = std::get<0>(
fData)[sampleIndex];
162 for (
Int_t j = 0; j <
n; j++) {
164 if (event->GetNTargets() == 0) {
167 matrix(
i, j) = (info.
IsSignal(event)) ? 1.0 : 0.0;
171 if (j ==
static_cast<Int_t>(event->GetClass())) {
176 matrix(
i, j) =
static_cast<Real_t>(
event->GetTarget(j));
187 if (std::get<0>(
fData).empty())
189 Event *
event =
nullptr;
191 Int_t sampleIndex = *sampleIterator++;
192 event = std::get<0>(
fData)[sampleIndex];
193 matrix(
i, 0) =
event->GetWeight();
203 if (std::get<0>(
fData).empty())
205 Event *
event =
nullptr;
211 Int_t sampleIndex = *sampleIterator++;
212 event = std::get<0>(
fData)[sampleIndex];
213 for (
Int_t j = 0; j < static_cast<Int_t>(event ? event->GetNVariables() : 0); j++) {
214 matrix(
i, j) =
event->GetValue(j);
224 Event *
event =
nullptr;
230 Int_t sampleIndex = *sampleIterator++;
231 event = std::get<0>(
fData)[sampleIndex];
232 for (
Int_t j = 0; j <
n; j++) {
234 if (event->GetNTargets() == 0) {
237 matrix(
i, j) = (info.
IsSignal(event)) ? 1.0 : 0.0;
241 if (j ==
static_cast<Int_t>(event->GetClass())) {
246 matrix(
i, j) =
static_cast<Real_t>(
event->GetTarget(j));
257 Event *
event =
nullptr;
260 Int_t sampleIndex = *sampleIterator++;
261 event = std::get<0>(
fData)[sampleIndex];
262 matrix(
i, 0) =
event->GetWeight();
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
void CopyWeights(TMatrixT< AReal > &matrix, IndexIterator_t begin)
Copy weight matrix into the given host buffer.
void CopyOutput(TMatrixT< AReal > &matrix, IndexIterator_t begin)
Copy output matrix into the given host buffer.
void CopyInput(TMatrixT< AReal > &matrix, IndexIterator_t begin)
Copy input matrix into the given host buffer.
TDataLoader(const AData &data, size_t nSamples, size_t batchSize, size_t nInputFeatures, size_t nOutputFeatures, size_t nthreads=1)
Class that contains all the data information.
Bool_t IsSignal(const Event *ev) const
typename std::vector< size_t >::iterator IndexIterator_t
create variable transformations