PRTools Contents

PRTools User Guide

cdats

CDATS

Support routine for checking datasets

  [B,C,LABLIST,P] = CDATS(A,REDUCE)

Input
 A Dataset or double
 REDUCE 0/1, Reduce A to labeled samples (1) or not (0, default), optional.

Output
 B Dataset
 C Number of classes
 LABLIST Label list of A
 P Priors

Description

This routine supports dataset checking and conversion for mappings  and density estimators. If A is double it is converted to a one-class  dataset with all labels set to 1. The same holds if A is an entirely  unlabeled dataset. The label list of A is returned in LABLIST, but  for multi-class datasets LABLIST is set to 1. C is the number of classes  in A. The priors are returned in P (length C), the dataset itself in B.  If REDUCE is 1, all unlabeled objects are removed.

If A has soft labels, B = A.  If A does not have labels but targets: C = 1, LABLIST = [], P = 1.

See also

datasets, mappings,

PRTools Contents

PRTools User Guide

This file has been automatically generated. If badly readable, use the help-command in Matlab.