R/predictions.R

Defines functions predictions

predictions <- function(classif, x=matrix(0,nrow=1,ncol=1)){
	seed = get_seed()
	if(length(classif@icl)==0){
		warning('bosclassif returned an empty object, due to empty clusters. Predictions cannot be run.')
	}
	else{
		res <- prediction(classif, x, seed)
		return(res)
	}	
}

Try the ordinalClust package in your browser

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

ordinalClust documentation built on Jan. 13, 2021, 8:43 a.m.