netkit.classifiers.io
Interface ReadEstimate

All Known Implementing Classes:
ReadEstimateRainbow

public interface ReadEstimate

This interface defines the methods needed to read a set of predictions from a file.

Author:
Sofus A. Macskassy (sofmac@gmail.com)

Method Summary
 void readEstimate(Graph graph, Estimate estimates, java.io.File input)
          Read from a given file estimates for nodes in the given graph.
 Estimate readEstimate(Graph graph, java.lang.String nodeType, AttributeCategorical attribute, java.io.File input)
          Read from a given file an estimate for nodes in the given graph.
 

Method Detail

readEstimate

Estimate readEstimate(Graph graph,
                      java.lang.String nodeType,
                      AttributeCategorical attribute,
                      java.io.File input)
Read from a given file an estimate for nodes in the given graph. Return these estimates in an Estimate object.

Parameters:
graph - The graph whose nodes are two be estimated
nodeType - The nodeType which the estimated object refers to
attribute - The categorial values to map estimation-names against.
input - The file from which to read estimations
Returns:
An Estimate object for the estimations read in. Nodes whose estimates were not in the given file have a 'null' estimate.

readEstimate

void readEstimate(Graph graph,
                  Estimate estimates,
                  java.io.File input)
Read from a given file estimates for nodes in the given graph. Fill these into the given Estimate object.

Parameters:
graph - The graph whose nodes are two be estimated
estimates - The Estimate object to fill in with the read in estimates.
input - The file from which to read classifications