public class InstancesTools extends Object
Constructor and Description |
---|
InstancesTools() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkCompatibility(weka.core.Instance inst1,
weka.core.Instance inst2)
Checks whether the instances are compatible.
|
static boolean |
checkCompatibility(weka.core.Instances dataset,
weka.core.Instance inst)
Checks the compatibility of the instance and the dataset
|
static int[] |
getClassCounts(weka.core.Instances dataset)
Count instances belonging to classes
|
public static int[] getClassCounts(weka.core.Instances dataset)
dataset
- public static boolean checkCompatibility(weka.core.Instances dataset, weka.core.Instance inst) throws Exception
dataset
- inst
- Exception
- -- when there is some kind of incompatibilityCopyright © 2018. All Rights Reserved.