edu.cmu.minorthird.classify.relational
Class RealRelationalDataset

java.lang.Object
  extended by edu.cmu.minorthird.classify.BasicDataset
      extended by edu.cmu.minorthird.classify.relational.CoreRelationalDataset
          extended by edu.cmu.minorthird.classify.relational.RealRelationalDataset
All Implemented Interfaces:
Dataset, Visible, Saveable, java.io.Serializable

public class RealRelationalDataset
extends CoreRelationalDataset
implements Visible, Saveable, Dataset, java.io.Serializable

A real set of examples for stacked graphical learning -- coreset + relational template. Currently the legalAggregators include EXISTS and COUNT

Author:
Zhenzhen Kou
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.cmu.minorthird.classify.BasicDataset
BasicDataset.SimpleDatasetViewer
 
Nested classes/interfaces inherited from interface edu.cmu.minorthird.classify.Dataset
Dataset.Split
 
Field Summary
protected static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> aggregators
           
static java.util.Set<java.lang.String> legalAggregators
           
 
Fields inherited from class edu.cmu.minorthird.classify.relational.CoreRelationalDataset
factory, linksMap
 
Fields inherited from class edu.cmu.minorthird.classify.BasicDataset
classNameSet, examples, featureFactory, unlabeledExamples
 
Constructor Summary
RealRelationalDataset()
           
 
Method Summary
static void addAggregator(java.lang.String oper, java.lang.String L_type)
          Add an aggregator, i.e., save the info.
static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAggregators()
           
static void main(java.lang.String[] args)
          Simple test routine
static void setAggregators(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> aggregators)
           
 Dataset.Split split(Splitter<Example> splitter)
          Partition the dataset as required by the splitter.
 
Methods inherited from class edu.cmu.minorthird.classify.relational.CoreRelationalDataset
addLink, addSGM, addSGM, getExampleWithID, getLinksMap, setLinksMap
 
Methods inherited from class edu.cmu.minorthird.classify.BasicDataset
add, add, addUnlabeled, getExtensionFor, getFeatureFactory, getFormatNames, getSchema, hasUnlabeled, iterator, iteratorOverUnlabeled, restore, saveAs, shallowCopy, shuffle, shuffle, size, sizeUnlabeled, toGUI, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.cmu.minorthird.util.Saveable
getExtensionFor, getFormatNames, restore, saveAs
 
Methods inherited from interface edu.cmu.minorthird.classify.Dataset
add, add, getFeatureFactory, getSchema, iterator, shallowCopy, shuffle, shuffle, size
 
Methods inherited from interface edu.cmu.minorthird.util.gui.Visible
toGUI
 

Field Detail

aggregators

protected static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> aggregators

legalAggregators

public static java.util.Set<java.lang.String> legalAggregators
Constructor Detail

RealRelationalDataset

public RealRelationalDataset()
Method Detail

addAggregator

public static void addAggregator(java.lang.String oper,
                                 java.lang.String L_type)
Add an aggregator, i.e., save the info. in RelTemp sccript

Parameters:
oper -
L_type -

getAggregators

public static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAggregators()

setAggregators

public static void setAggregators(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> aggregators)

split

public Dataset.Split split(Splitter<Example> splitter)
Description copied from interface: Dataset
Partition the dataset as required by the splitter.

Specified by:
split in interface Dataset
Overrides:
split in class BasicDataset

main

public static void main(java.lang.String[] args)
Simple test routine