Package org.dmg.pmml._40

Examples of org.dmg.pmml._40.PMMLType


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setFromNeuron(Neuron newFromNeuron) {
    Neuron oldFromNeuron = fromNeuron;
    fromNeuron = newFromNeuron;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, _40Package.NEURAL_OUTPUT_TYPE__FROM_NEURON, oldFromNeuron, fromNeuron));
  }
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetNode(NodeType newNode, NotificationChain msgs) {
    NodeType oldNode = node;
    node = newNode;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.TREE_MODEL_TYPE__NODE, oldNode, newNode);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetOutput(OutputType newOutput, NotificationChain msgs) {
    OutputType oldOutput = output;
    output = newOutput;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.MINING_MODEL_TYPE__OUTPUT, oldOutput, newOutput);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetOutput(OutputType newOutput, NotificationChain msgs) {
    OutputType oldOutput = output;
    output = newOutput;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.TREE_MODEL_TYPE__OUTPUT, oldOutput, newOutput);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetOutput(OutputType newOutput, NotificationChain msgs) {
    OutputType oldOutput = output;
    output = newOutput;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.ASSOCIATION_MODEL_TYPE__OUTPUT, oldOutput, newOutput);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

    Resource resource = resourceSet.createResource(URI
        .createURI("http://www.admire-project.eu/PMML-4_0"));

    DocumentRoot documentRoot = _40Factory.eINSTANCE.createDocumentRoot();

    PMMLType pmml = _40Factory.eINSTANCE.createPMMLType();
    pmml.setVersion("4.0");
    documentRoot.setPMML(pmml);

    HeaderType header = _40Factory.eINSTANCE.createHeaderType();
    header.setCopyright("www.admire-project.eu");
    header.setDescription("Radial Coordinate visualization");
    pmml.setHeader(header);

    DataDictionaryType dataDictionary = _40Factory.eINSTANCE
        .createDataDictionaryType();
    dataDictionary.setNumberOfFields(BigInteger.valueOf(data
        .numAttributes()));
    pmml.setDataDictionary(dataDictionary);

    // Create anchors S around circle
    bodyS = new double[data.numAttributes() - 1][2];
    double k = 2 * Math.PI / (data.numAttributes() - 1);
    // Add DataDictionary
View Full Code Here

    Resource resource = resourceSet.createResource(URI.createURI("http://www.admire-project.eu/PMML-4_0"));
   
    DocumentRoot documentRoot = _40Factory.eINSTANCE.createDocumentRoot();
   
    PMMLType pmml = _40Factory.eINSTANCE.createPMMLType();
    pmml.setVersion("4.0");
    documentRoot.setPMML(pmml);

    HeaderType header = _40Factory.eINSTANCE.createHeaderType();
    header.setCopyright("www.admire-project.eu");
    header.setDescription("Tree model");
    pmml.setHeader(header);
       
        TreeModelType treeModel = _40Factory.eINSTANCE.createTreeModelType();
        pmml.getTreeModel().add(treeModel);
       
        NodeType nodeOfPMML = _40Factory.eINSTANCE.createNodeType();
        treeModel.setNode(identifyAndAssociateNodes(nodeOfWeka, nodeOfPMML, null, null));
       
        MiningSchemaType miningSchema =  _40Factory.eINSTANCE.createMiningSchemaType();
        treeModel.setMiningSchema(miningSchema);
        for (int i=0; i < attributesArry.size() ;i++) {
      String [] helpBox = attributesArry.get(i);
          MiningFieldType miningField =  _40Factory.eINSTANCE.createMiningFieldType();
          miningField.setName(helpBox[0])//String
          miningSchema.getMiningField().add(miningField);
        }
       
        DataDictionaryType dataDictionary = _40Factory.eINSTANCE.createDataDictionaryType();
        dataDictionary.setNumberOfFields(BigInteger.valueOf(attributesArry.size()));
        pmml.setDataDictionary(dataDictionary);
        for (int i=0; i<attributesArry.size(); i++) {
      String [] helpBox = attributesArry.get(i);
            DataFieldType dataFieldType = _40Factory.eINSTANCE.createDataFieldType();
            dataFieldType.setDataType(associateDatatype(helpBox[2]))//DATATYPE
            dataFieldType.setName(helpBox[0])//String
View Full Code Here


    Resource resource = resourceSet.createResource(URI.createURI("http://www.admire-project.eu/PMML-4_0"));
   
    DocumentRoot documentRoot = _40Factory.eINSTANCE.createDocumentRoot();
    PMMLType pmml = _40Factory.eINSTANCE.createPMMLType();
    pmml.setVersion("4.0");
    pmml.setDataDictionary(_40Factory.eINSTANCE.createDataDictionaryType());
    documentRoot.setPMML(pmml);

    HeaderType header = _40Factory.eINSTANCE.createHeaderType();
    header.setCopyright("www.admire-project.eu");
    header.setDescription("Association rule model");
    pmml.setHeader(header);
       
        AssociationModelType ruleModel = _40Factory.eINSTANCE.createAssociationModelType();
        pmml.getAssociationModel().add(ruleModel);

      
        List<AssociationRule> rules = associator.getAssociationRules().getRules();

        ruleModel.setNumberOfRules(BigInteger.valueOf(rules.size()));
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetPartition(PartitionType newPartition, NotificationChain msgs) {
    PartitionType oldPartition = partition;
    partition = newPartition;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.NODE_TYPE__PARTITION, oldPartition, newPartition);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setFeature(RESULTFEATURE newFeature) {
    RESULTFEATURE oldFeature = feature;
    feature = newFeature == null ? FEATURE_EDEFAULT : newFeature;
    boolean oldFeatureESet = featureESet;
    featureESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, _40Package.SELECT_RESULT_TYPE__FEATURE, oldFeature, feature, !oldFeatureESet));
View Full Code Here

TOP

Related Classes of org.dmg.pmml._40.PMMLType

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.