Acc: Computes the proportion of matching terms in two vectors of...

Description Usage Arguments Value Examples

View source: R/simplify.R

Description

Computes the proportion of matching terms in two vectors of the same length. Used to compute the accuracy for prediction on test set.

Usage

1
Acc(Vec1, Vec2)

Arguments

Vec1

A vector of labels

Vec2

Another vector of labels

Value

Percentage of identical labels (accuracy)

Examples

1
2
3
Vec1 <- c(1,1,2,3,1)
Vec2 <- c(1,2,2,3,1)
Acc(Vec1,Vec2)

BESTree documentation built on Aug. 9, 2019, 5:07 p.m.