infomat
Class Experimentator
java.lang.Object
infomat.Experimentator
- All Implemented Interfaces:
- HasProperties
public class Experimentator
- extends java.lang.Object
- implements HasProperties
Class for running clustering experiments.
Only works on sparse data, with such similarity measures.
Reads Properties (one for this class, one for each class it uses)
from a path hierarchy and generates results
in a corresponding hiererarchy.
java -cp classes/ -Xms1024m -Xmx1024m infomat.Experimentator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertiesDirectory
private java.io.File propertiesDirectory
properties
private Properties properties
rows
private boolean rows
originalMatrix
private IMatrix originalMatrix
matrix
private IMatrix matrix
poolForMatrix
private PropertiesPool poolForMatrix
referenceGrouping
private IObjectGrouping referenceGrouping
Experimentator
public Experimentator(java.io.File propertiesDirectory)
getDefaultProperties
public Properties getDefaultProperties()
- Specified by:
getDefaultProperties
in interface HasProperties
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interface HasProperties
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws PropertyNotFoundException
- Specified by:
setProperty
in interface HasProperties
- Throws:
PropertyNotFoundException
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interface HasProperties
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interface HasProperties
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
PropertyNotFoundException
- Throws:
java.io.IOException
PropertyNotFoundException
badInput
private static void badInput(java.lang.String comment)
init
private void init()
doIt
private void doIt()
throws java.io.IOException,
PropertyNotFoundException
- Throws:
java.io.IOException
PropertyNotFoundException
recurseExperimentDirectory
private void recurseExperimentDirectory(java.io.File dir,
PropertiesPool pool)
throws java.io.IOException
- Throws:
java.io.IOException
accumulateToPool
private PropertiesPool accumulateToPool(PropertiesPool pool,
java.io.File dir)
throws java.io.IOException
- Throws:
java.io.IOException
doOneExperiment
private void doOneExperiment(PropertiesPool pool,
java.io.File dir)
throws java.io.IOException
- Throws:
java.io.IOException
preprocess
private void preprocess(PropertiesPool pool)
poolsDifferentInPreprocessing
private boolean poolsDifferentInPreprocessing(PropertiesPool pool,
PropertiesPool poolForMatrix)
weight
private static java.lang.String weight(PropertiesPool pool,
IMatrix matrix)