当前位置: 首页>>代码示例>>C++>>正文


C++ UnlabelledData类代码示例

本文整理汇总了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);
}
开发者ID:BryanBo-Cao,项目名称:grt,代码行数:14,代码来源:KMeans.cpp

示例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;
}
开发者ID:hal2001,项目名称:grt,代码行数:16,代码来源:ClassificationData.cpp

示例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;
}
开发者ID:sgrignard,项目名称:grt,代码行数:18,代码来源:TimeSeriesClassificationData.cpp

示例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 );
}
开发者ID:nickgillian,项目名称:grt,代码行数:19,代码来源:HierarchicalClustering.cpp

示例5: train_

bool GaussianMixtureModels::train_(UnlabelledData &trainingData){
    MatrixFloat data = trainingData.getDataAsMatrixFloat();
    return train_( data );
}
开发者ID:BryanBo-Cao,项目名称:grt,代码行数:4,代码来源:GaussianMixtureModels.cpp

示例6: train_

bool SelfOrganizingMap::train_(UnlabelledData &trainingData){
    MatrixFloat data = trainingData.getDataAsMatrixFloat();
    return train_(data);
}
开发者ID:nickgillian,项目名称:grt,代码行数:4,代码来源:SelfOrganizingMap.cpp

示例7: train_

bool KMeansFeatures::train_(UnlabelledData &trainingData){
	MatrixDouble data = trainingData.getDataAsMatrixDouble();
    return train_( data );
}
开发者ID:ios4u,项目名称:grt,代码行数:4,代码来源:KMeansFeatures.cpp

示例8: train_

bool RBMQuantizer::train_(UnlabelledData &trainingData){
    MatrixFloat data = trainingData.getDataAsMatrixFloat();
    return train_( data );
}
开发者ID:sgrignard,项目名称:grt,代码行数:4,代码来源:RBMQuantizer.cpp

示例9: train_

bool KMeansQuantizer::train_(UnlabelledData &trainingData){
	MatrixDouble data = trainingData.getDataAsMatrixDouble();
    return train( data );
}
开发者ID:KreativKode,项目名称:grt,代码行数:4,代码来源:KMeansQuantizer.cpp


注:本文中的UnlabelledData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。