本文整理汇总了C++中UnlabelledData类的典型用法代码示例。如果您正苦于以下问题:C++ UnlabelledData类的具体用法?C++ UnlabelledData怎么用?C++ UnlabelledData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UnlabelledData类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: train_
bool KMeans::train_(UnlabelledData &trainingData){
//Convert the training data into one matrix
UINT M = trainingData.getNumSamples();
UINT N = trainingData.getNumDimensions();
MatrixFloat data(M,N);
for(UINT i=0; i<M; i++){
for(UINT j=0; j<N; j++){
data[i][j] = trainingData[i][j];
}
}
return train_(data);
}
示例2: reformatAsUnlabelledData
UnlabelledData ClassificationData::reformatAsUnlabelledData() const{
UnlabelledData unlabelledData;
if( totalNumSamples == 0 ){
return unlabelledData;
}
unlabelledData.setNumDimensions( numDimensions );
for(UINT i=0; i<totalNumSamples; i++){
unlabelledData.addSample( data[i].getSample() );
}
return unlabelledData;
}
示例3: reformatAsUnlabelledData
UnlabelledData TimeSeriesClassificationData::reformatAsUnlabelledData() const {
UnlabelledData unlabelledData;
if( totalNumSamples == 0 ){
return unlabelledData;
}
unlabelledData.setNumDimensions( numDimensions );
for(UINT i=0; i<totalNumSamples; i++){
for(UINT x=0; x<data[i].getLength(); x++){
unlabelledData.addSample( data[i].getData().getRow( x ) );
}
}
return unlabelledData;
}
示例4: train_
bool HierarchicalClustering::train_(UnlabelledData &trainingData){
if( trainingData.getNumSamples() == 0 ){
return false;
}
//Convert the training data into one matrix
M = trainingData.getNumSamples();
N = trainingData.getNumDimensions();
MatrixFloat data(M,N);
for(UINT i=0; i<M; i++){
for(UINT j=0; j<N; j++){
data[i][j] = trainingData[i][j];
}
}
return train( data );
}
示例5: train_
bool GaussianMixtureModels::train_(UnlabelledData &trainingData){
MatrixFloat data = trainingData.getDataAsMatrixFloat();
return train_( data );
}
示例6: train_
bool SelfOrganizingMap::train_(UnlabelledData &trainingData){
MatrixFloat data = trainingData.getDataAsMatrixFloat();
return train_(data);
}
示例7: train_
bool KMeansFeatures::train_(UnlabelledData &trainingData){
MatrixDouble data = trainingData.getDataAsMatrixDouble();
return train_( data );
}
示例8: train_
bool RBMQuantizer::train_(UnlabelledData &trainingData){
MatrixFloat data = trainingData.getDataAsMatrixFloat();
return train_( data );
}
示例9: train_
bool KMeansQuantizer::train_(UnlabelledData &trainingData){
MatrixDouble data = trainingData.getDataAsMatrixDouble();
return train( data );
}