groupwise_tanimoto: Calculate Tanimoto similarity coefficient beetwen two sets of...

View source: R/functions.R

groupwise_tanimotoR Documentation

Calculate Tanimoto similarity coefficient beetwen two sets of folds for cross-validation.

Description

Calculate Tanimoto similarity coefficient beetwen two sets of folds for cross-validation considering objects grouping in each folds

Usage

groupwise_tanimoto(g1, g2)

Arguments

g1, g2

input vectors with folds numbers for each objects.

Value

mean Tanimoto between input vectors considering objects grouping in folds

Examples

set.seed(42)
g1 <- sample(1:5, 100, TRUE)
g2 <- sample(1:5, 100, TRUE)
groupwise_tanimoto(g1, g2)

DrrDom/pfpp documentation built on April 17, 2024, 10:24 a.m.