crossval: Cross-validate network on new data

Description Usage Arguments Value

View source: R/ludwig_functions.R

Description

This intended use of this function is helping cross-validate an estimated network on new data. To this aim, the values of individual nodes are predicted based on the conditional predictive distributions and for each node Cohen's Kappa, sensitivity, specificity, prevalence and accuracy statistics are provided as well as the frequencies of true positives (TP), true negatives (TN), false positives (FP) and false negatives (FN).

In addition, Cohen's Kappa, sensitivity, specificity and accuracy of the predictions are reported for all nodes or, in other words, the whole network.

Usage

1
crossval(net, dat, debug = FALSE)

Arguments

net

An object of class estnet

dat

A validation dataset

debug

Debug information

Value

The function returns a list of class crossval, containing...


ghosoya/ludwig documentation built on Sept. 20, 2020, 3:48 p.m.