| ClusteringMicrobenchmark {RHPCBenchmark} | R Documentation |
This class specifies a clustering for machine learning microbenchmark.
Description
This class specifies a clustering for machine learning microbenchmark.
Fields
activea logical indicating whether the microbenchmark is to be executed (TRUE) or not (FALSE).
benchmarkNamea character string that is the name of the microbenchmark.
benchmarkDescriptiona character string describing the microbenchmark.
dataObjectNamea character string specifying the name of the data object that is input to the benchmark; the object must be stored in the R data file with the same base name and a
.RDataextension. Setting the field toNA_character_indicates that the test data will be dynamically generated by the function given in theallocatorFunctionfield instead of read from a data file.numberOfFeaturesthe number features; this value must match the number of features in the data set given by the field
dataObjectNameunless the field is populated withNA_character_.numberOfClustersthe number of clusters in the data set; this value must match the number of clusters in the data set given by the field
dataObjectNameunless the field is populated withNA_character_.numberOfFeatureVectorsPerClusterthe number of feature vectors per cluster; this value must match the number of clusters in the data set given by the field
dataObjectNameunless the field is populated withNA_character_.numberOfTrialsan integer specifying the number of performance trials conducted on the data set to be tested.
numberOfWarmupTrialsan integer specifying the number of warmup trials to be conducted on the data set.
allocatorFunctionthe function that allocates and initializes input to the benchmark function. The function takes a
ClusteringMicrobenchmarkobject. For clustering benchmarks, the allocator function should return a list containing the following items:- featureVectors
a matrix, the rows of which are the feature vectors
- numberOfFeatures
an integer indicating the number of features
- numberOfFeatureVectors
an integer indicating the number of feature vectors
- numberOfClusters
an integer indicating the number of clusters in the data set
benchmarkFunctionthe benchmark function which executes the functionality to be timed. The function takes a
SparseMatrixMicrobenchmarkand a list of kernel parameters returned by the allocator function.