Given a matrix of binary peaks and each row's corresponding labels, this function takes returns the absolute difference between the proportion of times an m/z value was labeled as a peak within each of the two classes.
1 | naive_feature_importance(peaks, labels)
|
peaks |
A matrix of peaks |
labels |
A factor vector of labels whose length is equal to the number of rows of peaks |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.