Description Usage Details See Also Examples
View source: R/cl_max_correlation.R
An implementation of a maximum correlation coefficient classifier.
1 |
This CL object learns a mean population vector (template) for each class from the training set (by averaging together the all training points within each class). The classifier is tested by calculated Pearson’s correlation coefficient between a test point and the templates learned from the training set, and the class with the highest correlation value is returned as the predicted label. The decision values returned by the classifier are the correlation coefficients between all test points and all templates.
Like all classifiers (CL) objects, this classifier has a get_predictions() method which learns a model based on training data and then makes predictions on the test data.
Other classifier:
cl_poisson_naive_bayes()
,
cl_svm()
1 2 3 4 5 6 7 8 9 10 11 12 | # running a basic decoding analysis using the cl_max_correlation
data_file <- system.file(file.path("extdata", "ZD_150bins_50sampled.Rda"),
package = "NDTr")
ds <- ds_basic(data_file, "stimulus_ID", 18)
fps <- list(fp_zscore())
cl <- cl_max_correlation()
cv <- cv_standard(ds, cl, fps)
## Not run:
DECODING_RESULTS <- run_decoding(cv)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.