Package cascading.pattern.model.tree.decision

Examples of cascading.pattern.model.tree.decision.FinalDecision


    DecisionTree[] decisionTrees = functionCall.getContext().payload.trees;

    for( int i = 0; i < decisionTrees.length; i++ )
      {
      FinalDecision finalDecision = decisionTrees[ i ].decide( arguments );

      if( LOG.isDebugEnabled() )
        LOG.debug( "segment: {}, returned category: {}", i, finalDecision.getScore() );

      results[ finalDecision.getIndex() ]++;
      }

    int max = Ints.max( results );
    int index = Ints.indexOf( results, max );
View Full Code Here


  @Override
  public void operate( FlowProcess flowProcess, FunctionCall<Context<DecisionTree>> functionCall )
    {
    DecisionTree decisionTree = functionCall.getContext().payload;

    FinalDecision finalDecision = decisionTree.decide( functionCall.getArguments() );

    LOG.debug( "decision: {}", finalDecision );

    Object result = this.result.transform( finalDecision );
View Full Code Here

TOP

Related Classes of cascading.pattern.model.tree.decision.FinalDecision

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.