View source: R/smooth_predictions.R
smooth_predictions | R Documentation |
This function runs a sliding window smoother on prediction vectors.
smooth_predictions(x, window_size = 15, type = "mode", minsize = 8)
x |
vector of predictions (must be numeric) |
window_size |
size of the sliding window. Only used if |
type |
type of smoothing function to use. Accepts "mode" (simple majority vote), "mean" or "minsize". |
minsize |
smallest sequence length for positive predictions.
Stretches of positive-labelled positions shorter than |
vector of smoothed prediction values.
Felipe Campelo (f.campelo@aston.ac.uk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.