Package com.rapidminer.data

Examples of com.rapidminer.data.SparseBooleanMatrix


    ///
    public  void SetRatings(IRatings value)
    {
        super.SetRatings(value);
       
        data_item = new SparseBooleanMatrix();
        for (int index = 0; index < super.ratings.Count(); index++)
          data_item.setLocation(ratings.GetItems().get(index), ratings.GetUsers().get(index), true);
    }
View Full Code Here


            Attribute at=ar.getAttribute();

            ur=aatr.getRole("user identification");
            i=ur.getAttribute();

            SparseBooleanMatrix mat=new SparseBooleanMatrix();
         
           
              for (Example example : attribute_set) {
             
              double j;

              j=example.getValue(i);
              int iid=user_mapping.ToInternalID((int) j);
             
              j=example.getValue(at);
              int aid=(int)j;
             
              mat.setLocation(iid, aid, true);
            }
            
             UserAttributeKnn recommendAlg=new UserAttributeKnn();
           
            
View Full Code Here

          AttributeRole ar=aatr.getRole("attribute identification");
          Attribute at=ar.getAttribute();
          ir=aatr.getRole("item identification");
          i=ir.getAttribute();
         
          SparseBooleanMatrix mat=new SparseBooleanMatrix();
       
         
            for (Example example : attribute_set) {
           
            double j;

            j=example.getValue(i);
            int iid=item_mapping.ToInternalID((int) j);
           
            j=example.getValue(at);
            int aid=(int)j;
            mat.setLocation(iid, aid, true);
          }
         
            System.out.println();
           System.out.println(training_data.GetMaxItemID()+" "+training_data.GetMaxUserID());
          
View Full Code Here

    ///
    public void SetRatings(IRatings value)
    {

        super.SetRatings(value);
        data_user = new SparseBooleanMatrix();
        for (int index = 0; index < GetRatings().Count(); index++){
          data_user.setLocation(ratings.GetUsers().get(index), ratings.GetItems().get(index), true);
        }
     
    }
View Full Code Here

          Attribute at=ar.getAttribute();
          ir=aatr.getRole("item identification");

          i=ir.getAttribute();
          SparseBooleanMatrix mat=new SparseBooleanMatrix();
         
         
          for (Example example : attribute_set) {
         
          double j;

          j=example.getValue(i);
          int iid=item_mapping.ToInternalID((int) j);
         
          j=example.getValue(at);
          int aid=attribute_mapping.ToInternalID((int)j);
       
          mat.setLocation(iid, aid, true);
        }
       
          
           ItemAttributeKnn recommendAlg=new ItemAttributeKnn();
         
View Full Code Here

            AttributeRole ar=aatr.getRole("attribute identification");
            Attribute at=ar.getAttribute();
            ur=aatr.getRole("user identification");
            i=ur.getAttribute();

            SparseBooleanMatrix mat=new SparseBooleanMatrix();
           
           
            for (Example example : attribute_set) {
           
            double j;

            j=example.getValue(i);
            int iid=user_mapping.ToInternalID((int) j);
           
            j=example.getValue(at);
            int aid=(int)j;
           
            mat.setLocation(iid, aid, true);
          }
         
            
             UserAttributeKnn recommendAlg=new UserAttributeKnn();
           
View Full Code Here

TOP

Related Classes of com.rapidminer.data.SparseBooleanMatrix

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.