41#include "lang/ytObject.h"
43#include "ytIntArray.h"
44#include "ytStrArray.h"
45#include "ytKeyValues.h"
47#include "math/ytRNG.h"
50#define ytData_TYPE_REAL 0
51#define ytData_TYPE_ORDINAL 1
52#define ytData_TYPE_CATEGORICAL 2
53#define ytData_TYPE_DISCRETE 3
129void ytData_delete(
ytData *
this);
131const char * ytData_typeName(
int type);
132void ytData_summary(
const ytData * data, FILE * fp);
133void ytData_varSummary(
const ytData * data, FILE * fp);
134void ytData_stat(
const ytData *
this, FILE * fp,
int level);
135int ytData_getType(
const ytData *
this,
int j);
136const char * ytData_getTypeName(
const ytData *
this,
int j);
137int ytData_parseType(
const char * name);
138const char * ytData_getName(
const ytData *
this,
int j);
139int ytData_findName(
const ytData *
this,
const char * name);
140int ytData_numSamples(
const ytData *
this);
141int ytData_numVariables(
const ytData *
this);
143void ytData_dynamic(
ytData *
this);
145void ytData_print(
ytData *
this, FILE * fp);
148ytArray * ytData_readPrimaryIDList(
const ytData *
this,
const char * file);
156void ytData_varInfo(
const ytData *
this,
int j, FILE * fp);
158void ytData_convertAllToReal(
ytData *
this);
159void ytData_splitXY(
ytData *
this);
161void ytData_dump(
const ytData *
this, FILE * fp);
162int ytData_countNAN(
const ytData *
this);
163int ytData_debug(
int argc,
char * argv[]);
166void ytData_MPI_Bcast(
ytData ** data,
int root, MPI_Comm comm);
General data container.
Definition ytData.h:73
int p
The number of variables.
Definition ytData.h:80
double * X
n x p explanatory data matrix.
Definition ytData.h:91
ytKeyValues * varAttrs
attributes for variables.
Definition ytData.h:115
ytIntArray * types
Value types of the variables. The j-th element represents the type ID of the j-th variable....
Definition ytData.h:107
int n
The number of samples.
Definition ytData.h:77
double * Y
n x p target data matrix.
Definition ytData.h:98
ytStrArray * names
Names of variables.
Definition ytData.h:101
ytArray * dict
dictionary for categories. The elements are ytStrArray instances, and the j-th element corresponds to...
Definition ytData.h:121
ytKeyValues * meta
meta data
Definition ytData.h:124
ytKeyValues * sampleAttrs
attributes for samples. The value associated with the key is an array. The type of the array depends ...
Definition ytData.h:112
Structure for encapsulating the random number generator.
Definition ytRNG.h:60