ClassesClassesClassesClasses | | | | Operators

read_sampsetread_sampsetReadSampsetread_sampsetReadSampsetReadSampset (Operator)

Name

read_sampsetread_sampsetReadSampsetread_sampsetReadSampsetReadSampset — Read a training data set from a file.

Signature

read_sampset( : : FileName : SampKey)

Herror read_sampset(const char* FileName, Hlong* SampKey)

Herror T_read_sampset(const Htuple FileName, Htuple* SampKey)

Herror read_sampset(const HTuple& FileName, Hlong* SampKey)

void ReadSampset(const HTuple& FileName, HTuple* SampKey)

void HFeatureSet::HFeatureSet(const HString& FileName)

void HFeatureSet::HFeatureSet(const char* FileName)

void HFeatureSet::ReadSampset(const HString& FileName)

void HFeatureSet::ReadSampset(const char* FileName)

void HOperatorSetX.ReadSampset(
[in] VARIANT FileName, [out] VARIANT* SampKey)

void HFeatureSetX.ReadSampset([in] BSTR FileName)

static void HOperatorSet.ReadSampset(HTuple fileName, out HTuple sampKey)

public HFeatureSet(string fileName)

void HFeatureSet.ReadSampset(string fileName)

Description

The training examples are accessible with the key SampKeySampKeySampKeySampKeySampKeysampKey by calling the operators clear_sampsetclear_sampsetClearSampsetclear_sampsetClearSampsetClearSampset and learn_sampset_boxlearn_sampset_boxLearnSampsetBoxlearn_sampset_boxLearnSampsetBoxLearnSampsetBox. You may edit the file using an editor. Every row contains an array of attributes with corresponding class. An example for a format might be:

                       (1.0, 25.3, * , 17 | 3)
This row specifies an array of attributes which belong to class 3. In this array the third attribute is unknown. Attributes upwards 5 are supposed to be unknown, too. You may insert comments like /* .. */ in any place.

Parallelization

This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.

Parameters

FileNameFileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Filename of the data set to train.

Default value: 'sampset1' "sampset1" "sampset1" "sampset1" "sampset1" "sampset1"

SampKeySampKeySampKeySampKeySampKeysampKey (output_control)  feature_set HFeatureSet, HTupleHTupleHTupleHFeatureSetX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Identification of the data set to train.

Result

read_sampsetread_sampsetReadSampsetread_sampsetReadSampsetReadSampset returns 2 (H_MSG_TRUE). An exception is raised if it is not possible to open the file or it contains syntax errors or there is not enough memory.

Possible Predecessors

create_class_boxcreate_class_boxCreateClassBoxcreate_class_boxCreateClassBoxCreateClassBox

Possible Successors

test_sampset_boxtest_sampset_boxTestSampsetBoxtest_sampset_boxTestSampsetBoxTestSampsetBox, enquire_class_boxenquire_class_boxEnquireClassBoxenquire_class_boxEnquireClassBoxEnquireClassBox, write_class_boxwrite_class_boxWriteClassBoxwrite_class_boxWriteClassBoxWriteClassBox, close_class_boxclose_class_boxCloseClassBoxclose_class_boxCloseClassBoxCloseClassBox, clear_sampsetclear_sampsetClearSampsetclear_sampsetClearSampsetClearSampset

See also

test_sampset_boxtest_sampset_boxTestSampsetBoxtest_sampset_boxTestSampsetBoxTestSampsetBox, clear_sampsetclear_sampsetClearSampsetclear_sampsetClearSampsetClearSampset, learn_sampset_boxlearn_sampset_boxLearnSampsetBoxlearn_sampset_boxLearnSampsetBoxLearnSampsetBox

Module

Foundation


ClassesClassesClassesClasses | | | | Operators