R/mycis.R

Defines functions mycis

Documented in mycis

mycis <-
function(predict1, predict2){
	# compute the classification instability (cis) of a classification procedure given its two predicted lists trained from two i.i.d. training data sets.
	
	if(length(predict1) != length(predict2)) stop("two predict lists have different length")	
	ntest = length(predict1)	
	cis = length(which(predict1 != predict2))/ntest
	cis

}

Try the snn package in your browser

Any scripts or data that you put into this service are public.

snn documentation built on May 1, 2019, 7:05 p.m.