Package uk.org.ogsadai.config

Examples of uk.org.ogsadai.config.SimpleKeyValueProperties


    }
   
    public void testClassify() throws Exception
    {
        BuildClassifierActivity activity = new BuildClassifierActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        List<Object> input = buildInputTable();
View Full Code Here


    }
   
    public void testClassifyWithColumnNames() throws Exception
    {
        BuildClassifierActivity activity = new BuildClassifierActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        List<Object> input = buildInputTable();
View Full Code Here

        table.add(new SimpleTuple(Arrays.asList("no", format.parse("2008-02-01T09:00:00"))));
        table.add(new SimpleTuple(Arrays.asList("no", format.parse("2008-02-03T22:00:00"))));
        table.add(ControlBlock.LIST_END);

        BuildClassifierActivity activity = new BuildClassifierActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        MockInputPipe dataInput = new MockInputPipe(table.toArray());
View Full Code Here

        table.add(new SimpleTuple(Arrays.asList(1, 1)));
        table.add(new SimpleTuple(Arrays.asList(1, 2)));
        table.add(ControlBlock.LIST_END);

        BuildClassifierActivity activity = new BuildClassifierActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.M5P");
        activity.configureActivity(properties);

        MockInputPipe dataInput = new MockInputPipe(table.toArray());
View Full Code Here

    }
   
    public void testUnmatchedNominalValuesInput() throws Exception
    {
        BuildClassifierActivity activity = new BuildClassifierActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        MockInputPipe dataInput = new MockInputPipe(new Object[] {});
View Full Code Here

    }

    public void testColumnNotFound() throws Exception
    {
        BuildClassifierActivity activity = new BuildClassifierActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        List<Object> table = buildInputTable();
View Full Code Here

    }

    public void testInvalidColumnIndex() throws Exception
    {
        BuildClassifierActivity activity = new BuildClassifierActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        List<Object> table = buildInputTable();
View Full Code Here

    }

    public void testMalformedListEndNominalValuesInput() throws Exception
    {
        BuildClassifierActivity activity = new BuildClassifierActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        List<Object> table = buildInputTable();
View Full Code Here

    }
   
    public void testColumnIndexes() throws Exception
    {
        BuildClassifierMultiInputActivity activity = new BuildClassifierMultiInputActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierMultiInputActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        List<Object> input = buildInputTable();
View Full Code Here

    }
   
    public void testColumnNames() throws Exception
    {
        BuildClassifierMultiInputActivity activity = new BuildClassifierMultiInputActivity();
        KeyValueProperties properties = new SimpleKeyValueProperties();
        properties.put(
                BuildClassifierMultiInputActivity.CLASSIFIER_CLASS_NAME,
                "weka.classifiers.trees.J48");
        activity.configureActivity(properties);

        List<Object> input = buildInputTable();
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.config.SimpleKeyValueProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.