get_metric: Get evaluation metrics for classification

Description Usage Arguments

View source: R/get_metric.R

Description

get_metric Returns classification metric requested

Usage

1
get_metric(trend, y, signal, threshold, metric)

Arguments

trend

estimated trend vector

y

vector of observations

signal

vector of true signal classification

threshold

value for threshold defining signal

metric

choice of "missclass", "recall", "CAA", "precision" or "F1"


halleybrantley/detrendr documentation built on May 30, 2019, 12:43 p.m.