Tabnine Logo
ComplexNode.getNodes
Code IndexAdd Tabnine to your IDE (free)

How to use
getNodes
method
in
org.dmg.pmml.tree.ComplexNode

Best Java code snippets using org.dmg.pmml.tree.ComplexNode.getNodes (Showing top 9 results out of 315)

origin: org.jpmml/pmml-model

public ComplexNode addNodes(org.dmg.pmml.tree.Node... nodes) {
  getNodes().addAll(Arrays.asList(nodes));
  return this;
}
origin: jpmml/jpmml-model

public ComplexNode addNodes(org.dmg.pmml.tree.Node... nodes) {
  getNodes().addAll(Arrays.asList(nodes));
  return this;
}
origin: jpmml/jpmml-r

  static
  public ComplexNode toComplexNode(Node node){
    ComplexNode result = new ComplexNode()
      .setId(node.getId())
      .setScore(node.getScore())
      .setRecordCount(node.getRecordCount())
      .setDefaultChild(node.getDefaultChild())
      .setPredicate(node.getPredicate());

    if(node.hasNodes()){
      (result.getNodes()).addAll(node.getNodes());
    } // End if

    if(node.hasScoreDistributions()){
      (result.getScoreDistributions()).addAll(node.getScoreDistributions());
    }

    return result;
  }
}
origin: jpmml/jpmml-model

(value.getNodes()).addAll(node.getNodes());
origin: org.jpmml/pmml-model

(value.getNodes()).addAll(node.getNodes());
origin: jpmml/jpmml-model

@Override
public Node unmarshal(ComplexNode value){
  if(value.getRecordCount() != null){
    return value;
  } // End if
  if(value.hasExtensions() || (value.getPartition() != null) || value.hasScoreDistributions() || (value.getEmbeddedModel() != null)){
    return value;
  }
  Node node;
  if(value.hasNodes()){
    node = new BranchNode()
      .setId(value.getId())
      .setDefaultChild(value.getDefaultChild());
    (node.getNodes()).addAll(value.getNodes());
  } else
  {
    node = new LeafNode()
      .setId(value.getId());
  }
  node
    .setScore(value.getScore())
    .setPredicate(value.getPredicate());
  return node;
}
origin: org.jpmml/pmml-model

@Override
public Node unmarshal(ComplexNode value){
  if(value.getRecordCount() != null){
    return value;
  } // End if
  if(value.hasExtensions() || (value.getPartition() != null) || value.hasScoreDistributions() || (value.getEmbeddedModel() != null)){
    return value;
  }
  Node node;
  if(value.hasNodes()){
    node = new BranchNode()
      .setId(value.getId())
      .setDefaultChild(value.getDefaultChild());
    (node.getNodes()).addAll(value.getNodes());
  } else
  {
    node = new LeafNode()
      .setId(value.getId());
  }
  node
    .setScore(value.getScore())
    .setPredicate(value.getPredicate());
  return node;
}
origin: org.jpmml/pmml-model

@Override
public VisitorAction accept(Visitor visitor) {
  VisitorAction status = visitor.visit(this);
  if (status == VisitorAction.CONTINUE) {
    visitor.pushParent(this);
    if ((status == VisitorAction.CONTINUE)&&hasExtensions()) {
      status = PMMLObject.traverse(visitor, getExtensions());
    }
    if (status == VisitorAction.CONTINUE) {
      status = PMMLObject.traverse(visitor, getPredicate(), getPartition());
    }
    if ((status == VisitorAction.CONTINUE)&&hasScoreDistributions()) {
      status = PMMLObject.traverse(visitor, getScoreDistributions());
    }
    if ((status == VisitorAction.CONTINUE)&&hasNodes()) {
      status = PMMLObject.traverse(visitor, getNodes());
    }
    if (status == VisitorAction.CONTINUE) {
      status = PMMLObject.traverse(visitor, getEmbeddedModel());
    }
    visitor.popParent();
  }
  if (status == VisitorAction.TERMINATE) {
    return VisitorAction.TERMINATE;
  }
  return VisitorAction.CONTINUE;
}
origin: jpmml/jpmml-model

@Override
public VisitorAction accept(Visitor visitor) {
  VisitorAction status = visitor.visit(this);
  if (status == VisitorAction.CONTINUE) {
    visitor.pushParent(this);
    if ((status == VisitorAction.CONTINUE)&&hasExtensions()) {
      status = PMMLObject.traverse(visitor, getExtensions());
    }
    if (status == VisitorAction.CONTINUE) {
      status = PMMLObject.traverse(visitor, getPredicate(), getPartition());
    }
    if ((status == VisitorAction.CONTINUE)&&hasScoreDistributions()) {
      status = PMMLObject.traverse(visitor, getScoreDistributions());
    }
    if ((status == VisitorAction.CONTINUE)&&hasNodes()) {
      status = PMMLObject.traverse(visitor, getNodes());
    }
    if (status == VisitorAction.CONTINUE) {
      status = PMMLObject.traverse(visitor, getEmbeddedModel());
    }
    visitor.popParent();
  }
  if (status == VisitorAction.TERMINATE) {
    return VisitorAction.TERMINATE;
  }
  return VisitorAction.CONTINUE;
}
org.dmg.pmml.treeComplexNodegetNodes

Popular methods of ComplexNode

  • <init>
  • setId
  • setPredicate
  • setRecordCount
  • setScore
  • getScoreDistributions
  • setDefaultChild
  • addExtensions
  • addNodes
  • getDefaultChild
  • getEmbeddedModel
  • getExtensions
  • getEmbeddedModel,
  • getExtensions,
  • getId,
  • getPartition,
  • getPredicate,
  • getRecordCount,
  • getScore,
  • hasExtensions,
  • hasNodes

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now