Package quickml.supervised.classifier.decisionTree.tree

Examples of quickml.supervised.classifier.decisionTree.tree.Node


  public void simpleBmiTest() throws Exception {
        final List<Instance<AttributesMap>> instances = TreeBuilderTestUtils.getInstances(10000);
    final TreeBuilder tb = new TreeBuilder(new SplitDiffScorer());
    final long startTime = System.currentTimeMillis();
        final Tree tree = tb.buildPredictiveModel(instances);
    final Node node = tree.node;

        TreeBuilderTestUtils.serializeDeserialize(node);

        final int nodeSize = node.size();
    Assert.assertTrue(nodeSize < 400, "Tree size should be less than 400 nodes");
    Assert.assertTrue((System.currentTimeMillis() - startTime) < 20000,"Building this node should take far less than 20 seconds");
  }
View Full Code Here

TOP

Related Classes of quickml.supervised.classifier.decisionTree.tree.Node

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.