#include <DataSet.h>
Representation of
- Examples
- ds/TestKNN.cpp.
◆ Set() [1/3]
◆ Set() [2/3]
Set::Set |
( |
size_t |
inputCount, |
|
|
size_t |
outputCount |
|
) |
| |
|
inline |
initialization constructor, just sets input and output dimensions
- Parameters
-
inputCount | number input elements |
outputCount | number output elements |
◆ Set() [3/3]
Set::Set |
( |
const char * |
fileName, |
|
|
size_t |
inputCount, |
|
|
size_t |
outputCount |
|
) |
| |
|
inline |
Constructor which immediately reads a given set file
- Parameters
-
fileName | file name to read from |
inputCount | number input elements |
outputCount | number output elements |
◆ GetBatch()
Set Set::GetBatch |
( |
int |
batchSize | ) |
const |
|
inline |
Generates batch of given size based on inputs and outputs
- Parameters
-
batchSize | number elements per batch |
- Returns
◆ Normalize()
helper to normalize set based on NormalizerMethod
- Parameters
-
method | representation of normalization method |
◆ NormalizeColMean()
void Set::NormalizeColMean |
( |
| ) |
|
|
inline |
Normalizes set by computing mean over columns
◆ NormalizeRowMean()
void Set::NormalizeRowMean |
( |
| ) |
|
|
inline |
Normalizes set by computing mean over rows
◆ NormalizeSetMean()
void Set::NormalizeSetMean |
( |
| ) |
|
|
inline |
Normalizes set by computing mean over all elements
◆ ReadFromFile()
void Set::ReadFromFile |
( |
const char * |
fileName | ) |
|
|
inline |
reads content from file
File needs to have tab separated records
- Parameters
-
◆ count
number of input-output pairs
◆ Input
◆ InputCount
size_t Set::InputCount = 0 |
◆ Output
◆ OutputCount
size_t Set::OutputCount = 0 |
number of output elements
The documentation for this struct was generated from the following file: