get_sample_class_train_dataT_get_sample_class_train_dataGetSampleClassTrainDataGetSampleClassTrainDataget_sample_class_train_data (算子名称)

名称

get_sample_class_train_dataT_get_sample_class_train_dataGetSampleClassTrainDataGetSampleClassTrainDataget_sample_class_train_data — Return a training sample from training data.

参数签名

get_sample_class_train_data( : : ClassTrainDataHandle, IndexSample : 特征, ClassID)

Herror T_get_sample_class_train_data(const Htuple ClassTrainDataHandle, const Htuple IndexSample, Htuple* 特征, Htuple* ClassID)

void GetSampleClassTrainData(const HTuple& ClassTrainDataHandle, const HTuple& IndexSample, HTuple* 特征, HTuple* ClassID)

HTuple HClassTrainData::GetSampleClassTrainData(Hlong IndexSample, Hlong* ClassID) const

static void HOperatorSet.GetSampleClassTrainData(HTuple classTrainDataHandle, HTuple indexSample, out HTuple 特征, out HTuple classID)

HTuple HClassTrainData.GetSampleClassTrainData(int indexSample, out int classID)

def get_sample_class_train_data(class_train_data_handle: HHandle, index_sample: int) -> Tuple[Sequence[float], int]

描述

get_sample_class_train_dataget_sample_class_train_dataGetSampleClassTrainDataGetSampleClassTrainDataGetSampleClassTrainDataget_sample_class_train_data reads a training sample from the training data given by ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandleclass_train_data_handle that was added, e.g., with add_sample_class_train_dataadd_sample_class_train_dataAddSampleClassTrainDataAddSampleClassTrainDataAddSampleClassTrainDataadd_sample_class_train_data. The index of the sample is specified with IndexSampleIndexSampleIndexSampleIndexSampleindexSampleindex_sample. The index is counted from 0. That means that IndexSampleIndexSampleIndexSampleIndexSampleindexSampleindex_sample must be a number between 0 and NumSamplesNumSamplesNumSamplesNumSamplesnumSamplesnum_samples - 1, where NumSamplesNumSamplesNumSamplesNumSamplesnumSamplesnum_samples can be determined with get_sample_num_class_train_dataget_sample_num_class_train_dataGetSampleNumClassTrainDataGetSampleNumClassTrainDataGetSampleNumClassTrainDataget_sample_num_class_train_data. The training sample is returned in 特征特征特征特征特征特征 and ClassIDClassIDClassIDClassIDclassIDclass_id. 特征特征特征特征特征特征 is a feature vector of length NumDimNumDimNumDimNumDimnumDimnum_dim (see create_class_train_datacreate_class_train_dataCreateClassTrainDataCreateClassTrainDataCreateClassTrainDatacreate_class_train_data) and ClassIDClassIDClassIDClassIDclassIDclass_id is the class of the feature vector.

运行信息

参数表

ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandleclass_train_data_handle (input_control)  class_train_data HClassTrainData, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of training data for a classifier.

IndexSampleIndexSampleIndexSampleIndexSampleindexSampleindex_sample (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of stored training sample.

特征特征特征特征特征特征 (output_control)  real-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Feature vector of the training sample.

ClassIDClassIDClassIDClassIDclassIDclass_id (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Class of the training sample.

结果

If the parameters are valid, the operator get_sample_class_mlpget_sample_class_mlpGetSampleClassMlpGetSampleClassMlpGetSampleClassMlpget_sample_class_mlp returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

可能的前置算子

add_sample_class_train_dataadd_sample_class_train_dataAddSampleClassTrainDataAddSampleClassTrainDataAddSampleClassTrainDataadd_sample_class_train_data

参考其它

create_class_train_datacreate_class_train_dataCreateClassTrainDataCreateClassTrainDataCreateClassTrainDatacreate_class_train_data

模块

Foundation