Package com.rapidminer.example

Examples of com.rapidminer.example.AttributeRole


                  }
           
            boolean OU = getParameterAsBoolean("Online updates");
           
            Attributes Att = exampleSet.getAttributes();
            AttributeRole ur=Att.getRole("user identification");
            Attribute u=ur.getAttribute();
            AttributeRole ir=null;
            Attribute i=null;
           
          if(OU==true){
            if(Att.getRole("item identification")!=null){
              ir=Att.getRole("item identification");
              i=ir.getAttribute();
            }
          }
       
            ItemRecommender model = exampleSetInput1.getData();
             int N=getParameterAsInt("n");
View Full Code Here


                      throw new UserError(this, 105);
                  }
            
            
             Attributes Att = exampleSet.getAttributes();
             AttributeRole ur=Att.getRole("user identification");
             Attribute u=ur.getAttribute();
             AttributeRole ir=Att.getRole("item identification");
             Attribute i=ir.getAttribute();
           
            for (Example example : exampleSet) {
             
              double j=example.getValue(u);
              int uid=(int) j;

              j=example.getValue(i);
              int iid=(int) j;
             
              training_data.Add(user_mapping.ToInternalID(uid), item_mapping.ToInternalID(iid));
              checkForStop();
            }
           
           
            ExampleSet attribute_set=exampleSetInput1.getData();
           
            if (attribute_set.getAttributes().getSpecial("user identification") == null) {
                    throw new UserError(this,105);
                }
           
            if (attribute_set.getAttributes().getSpecial("attribute identification") == null) {
                    throw new UserError(this, 105);
                }
           
            Attributes aatr = attribute_set.getAttributes();
            AttributeRole ar=aatr.getRole("attribute identification");
            Attribute at=ar.getAttribute();
            ur=aatr.getRole("user identification");
            i=ur.getAttribute();

            SparseBooleanMatrix mat=new SparseBooleanMatrix();
           
View Full Code Here

    if (exampleSet1.getAttributes().getSpecial("user identification") == null) {
         throw new UserError(this, 105);
      }
       
        Attributes Att = exampleSet.getAttributes();
        AttributeRole ur=Att.getRole("user identification");
        Attribute u=ur.getAttribute();
        AttributeRole ir=Att.getRole("item identification");
        Attribute i=ir.getAttribute();
       
        AttributeRole tur=attributes1.getRole("user identification");
        Attribute tu=tur.getAttribute();

        AttributeRole tir=attributes1.getRole("item identification");
        Attribute ti=tir.getAttribute();

   
        ItemRecommender model = exampleSetInput2.getData();
   
           IPosOnlyFeedback train_data=new PosOnlyFeedback();
View Full Code Here

TOP

Related Classes of com.rapidminer.example.AttributeRole

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.