Examples of doScriptProcessing()


Examples of com.cloutree.modelevaluator.impl.pmml.scripting.ScriptProcessor.doScriptProcessing()

   
    ScriptProcessor processor = ScriptFactory.getScriptProcessor(ScriptFactory.Types.JAVASCRIPT);
   
    // Do PreProcessing on Parameters
    if(this.preProcessor != null && !this.preProcessor.isEmpty())
      processor.doScriptProcessing(this.preProcessor, parameters);
   
    // Compile parameters for R
    String rParamaterAssignString = "params <- data.frame(";
    boolean initial = true;
    for(String key : parameters.keySet()) {
View Full Code Here

Examples of com.cloutree.modelevaluator.impl.pmml.scripting.ScriptProcessor.doScriptProcessing()

      this.processRResult(rResult, tempPredictions, "result");
    }
   
    // Do Post-Processing
    if(this.postProcessor != null && !this.postProcessor.isEmpty())
      processor.doScriptProcessing(this.postProcessor, (Map<String, Object>) result.getOutputValues());
      processor.doScriptProcessing(this.postProcessor, (Map<String, Object>) result.getPredictedValues());
   
    return result;
  }
View Full Code Here

Examples of com.cloutree.modelevaluator.impl.pmml.scripting.ScriptProcessor.doScriptProcessing()

    }
   
    // Do Post-Processing
    if(this.postProcessor != null && !this.postProcessor.isEmpty())
      processor.doScriptProcessing(this.postProcessor, (Map<String, Object>) result.getOutputValues());
      processor.doScriptProcessing(this.postProcessor, (Map<String, Object>) result.getPredictedValues());
   
    return result;
  }

  public void setPredictiveModelFile(PredictiveModelFile file) {
View Full Code Here

Examples of com.cloutree.modelevaluator.impl.pmml.scripting.ScriptProcessor.doScriptProcessing()

 
    ScriptProcessor processor = ScriptFactory.getScriptProcessor(ScriptFactory.Types.JAVASCRIPT);
   
    // Do PreProcessing on Parameters
    if(this.preProcessor != null && !this.preProcessor.isEmpty())
      processor.doScriptProcessing(this.preProcessor, parameters);
   
    for(FieldName activeField : activeFields){
      DataField dataField = this.evaluator.getDataField(activeField);
      Object value = parameters.get(dataField.getName().getValue());
     
View Full Code Here

Examples of com.cloutree.modelevaluator.impl.pmml.scripting.ScriptProcessor.doScriptProcessing()

      Object outputValue = pmmlResult.get(resultField);
      result.addOutputValue(outputField.getName().getValue(), outputValue);
    }
   
    if(this.postProcessor != null && !this.postProcessor.isEmpty()) {
      processor.doScriptProcessing(this.postProcessor, (Map<String, Object>) result.getOutputValues());
      processor.doScriptProcessing(this.postProcessor, (Map<String, Object>) result.getPredictedValues());
    }
   
    return result;
    }
View Full Code Here

Examples of com.cloutree.modelevaluator.impl.pmml.scripting.ScriptProcessor.doScriptProcessing()

      result.addOutputValue(outputField.getName().getValue(), outputValue);
    }
   
    if(this.postProcessor != null && !this.postProcessor.isEmpty()) {
      processor.doScriptProcessing(this.postProcessor, (Map<String, Object>) result.getOutputValues());
      processor.doScriptProcessing(this.postProcessor, (Map<String, Object>) result.getPredictedValues());
    }
   
    return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.