1 #if !defined(_FILEDESC_) 44 #if !defined(_FeatureFileIO_Defined_) 141 const KKStr& nominalValue,
154 const KKStr& nominalValue,
190 const KKStr& nominalValue
275 static void CreateBlocker ();
277 kkint32 NumOfAttributes () {
return attributes.QueueSize ();}
280 void ValidateFieldNum (
kkint32 fieldNum,
288 KKStr classNameAttribute;
301 bool finalCleanUpRanAlready;
309 #define _FileDesc_Defined_ 331 const KKStr& varName,
__int16 kkint16
16 bit signed integer.
KKStr TypeStr(kkint32 fieldNum) const
const MLClassList & Classes() const
void FileName(const KKStr &_fileName)
const KKMLL::AttributePtr LookUpByName(const KKStr &attributeName) const
Provides a detailed description of the attributes of a dataset.
const VectorInt32 & CardinalityVector() const
static FileDescPtr GetExistingFileDesc(FileDescPtr fileDesc)
Returns a pointer to an existing instance of 'fileDesc' if it exists, otherwise will use one being pa...
kkuint32 NumOfFields() const
FileDescList * FileDescListPtr
GoalKeeper * GoalKeeperPtr
void AddAAttribute(const KKB::KKStr &_name, KKMLL::AttributeType _type, bool &alreadyExists)
static bool FinalCleanUpRanAlready()
MLClassPtr GetMLClassPtr(const KKStr &className)
KKMLL::AttributeType Type(kkint32 fieldNum) const
void AddANominalValue(const KKStr &attributeName, const KKStr &nominalValue, bool &alreadyExist, RunLog &log)
MLClassPtr LookUpUnKnownMLClass()
kkint32 SparseMinFeatureNum() const
const AttributeTypeVector & AttributeVector() const
XmlElementFileDesc(XmlTagPtr tag, XmlStream &s, VolConstBool &cancelFlag, RunLog &log)
void ReadXML(XmlStream &s, XmlTagConstPtr tag, VolConstBool &cancelFlag, RunLog &log)
void SparseMinFeatureNum(kkint32 _sparseMinFeatureNum)
bool SameExceptForSymbolicData(const FileDesc &otherFd, RunLog &log) const
void AddAAttribute(const KKMLL::Attribute &attribute)
void Version(kkint16 _version)
kkint32 MemoryConsumedEstimated() const
void AddClasses(const MLClassList &classesToAdd)
bool operator!=(const FileDesc &rightSize) const
Returns true if file description on the right size is NOT identical.
const KKStr & FieldName(kkint32 fieldNum) const
unsigned __int32 kkuint32
bool operator==(const FileDesc &rightSize) const
Returns true if file description on the right size is identical.
MLClassPtr LookUpMLClassByName(const KKStr &className)
VectorInt32 CreateCardinalityTable() const
describes a single Feature, Type and possible values.
kkint32 LookUpNominalCode(kkint32 fieldNum, const KKStr &nominalValue) const
static void FinalCleanUp()
Clean up function, call just before exiting the application.
FileDesc *const FileDescConstPtr
void AddAttributes(const KKMLL::AttributeList &attributes)
void AddANominalValue(kkint32 fieldNum, const KKStr &nominalValue, bool &alreadyExist, RunLog &log)
const KKStr & GetNominalValue(kkint32 fieldNum, kkint32 code) const
bool AllFieldsAreNumeric() const
Allows the user to quickly determine if there are no nominal fields.
FeatureFileIO * FeatureFileIOPtr
Base class for all FeatureFileIO classes.
const KKStr & FileName() const
XmlTag const * XmlTagConstPtr
Manages the reading and writing of objects in a simple XML format. For a class to be supported by Xml...
const KKStr & ClassNameAttribute() const
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
std::vector< kkint32 > VectorInt32
Vector of signed 32 bit integers.
void AddANominalValue(const KKStr &nominalValue, bool &alreadyExist, RunLog &log)
virtual ~XmlElementFileDesc()
const KKMLL::AttributePtr * CreateAAttributeTable() const
void ClassNameAttribute(const KKStr &_classNameAttribute)
static FileDescPtr NewContinuousDataOnly(VectorKKStr &_fieldNames)
Creates a simple FileDesc that consists of continuous data only.
friend std::ostream & operator<<(std::ostream &os, const Matrix &matrix)
kkint32 GetFieldNumFromAttributeName(const KKStr &attributeName) const
AttributeTypeVector CreateAttributeTypeTable() const
static void WriteXML(const FileDesc &fileDesc, const KKStr &varName, std::ostream &o)
KKStr & operator=(const KKStr &src)
Used for logging messages.
void EncodeProblem(const struct svm_paramater ¶m, struct svm_problem &prob_in, struct svm_problem &prob_out)
FileDescPtr TakeOwnership()
FileDescPtr Value() const
kkint32 Cardinality(kkint32 fieldNum) const
Maintains a list of MLClass instances.
void DisplayAttributeMappings()
static FileDescPtr MergeSymbolicFields(const FileDesc &left, const FileDesc &right, RunLog &log)
Merges the Symbolic fields of two different 'FileDesc' instances producing a new instance of 'FileDes...
Container class file 'FileDesc' instances.
void WriteXML(const KKStr &varName, std::ostream &o) const
const KKMLL::AttributeList & Attributes() const
const KKMLL::Attribute & GetAAttribute(kkint32 fieldNum) const
XmlElementFileDesc * XmlElementFileDescPtr
volatile const bool VolConstBool