relational.preprocessing
Class Sampling
java.lang.Object
relational.preprocessing.Sampling
- public class Sampling
- extends java.lang.Object
Class contains sampling methods
Field Summary |
weka.core.FastVector |
set1
|
weka.core.FastVector |
set2
|
weka.core.FastVector |
set3
|
weka.core.FastVector |
set4
|
weka.core.FastVector |
set5
|
java.lang.String |
type
|
Constructor Summary |
Sampling(java.util.HashMap labels,
edu.uci.ics.jung.graph.impl.SparseGraph graph,
java.lang.String type)
|
Method Summary |
java.util.Vector[] |
groupByLabel()
Groups instances according to their categories |
static void |
main(java.lang.String[] args)
|
void |
split_sample(int numFolds)
Performs stratified cross-validation |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
set1
public weka.core.FastVector set1
set2
public weka.core.FastVector set2
set3
public weka.core.FastVector set3
set4
public weka.core.FastVector set4
set5
public weka.core.FastVector set5
type
public java.lang.String type
Sampling
public Sampling(java.util.HashMap labels,
edu.uci.ics.jung.graph.impl.SparseGraph graph,
java.lang.String type)
groupByLabel
public java.util.Vector[] groupByLabel()
- Groups instances according to their categories
- Returns:
- a vector of arrays consisting of the groups of instances
split_sample
public void split_sample(int numFolds)
- Performs stratified cross-validation
- Parameters:
numFolds
- - number of folds
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException