Package com.rapidminer.data

Examples of com.rapidminer.data.IEntityMapping


   
        ItemRecommender model = exampleSetInput2.getData();
   
           IPosOnlyFeedback train_data=new PosOnlyFeedback();
           IPosOnlyFeedback test_data=new PosOnlyFeedback();
           IEntityMapping user_mapping=model.user_mapping;//new EntityMapping();
           IEntityMapping item_mapping=model.item_mapping;//new EntityMapping();
         

          for (Example example : exampleSet) {
            double j=example.getValue(u);
            int uid=(int) j;

            j=example.getValue(i);
            int iid=(int) j;
            train_data.Add(user_mapping.ToInternalID(uid), item_mapping.ToInternalID(iid));
        }
         
          for (Example example : exampleSet1) {
            double j=example.getValue(tu);
            int uid=(int) j;

            j=example.getValue(ti);
            int iid=(int) j;
            test_data.Add(user_mapping.ToInternalID(uid), item_mapping.ToInternalID(iid));
       
         
         
           Map<String,Double> result= ItemPredictionEval.Evaluate(model, test_data,train_data,test_data.GetAllUsers(),train_data.GetAllItems()); //train_data.GetAllUsers(),train_data.GetAllItems()
View Full Code Here

TOP

Related Classes of com.rapidminer.data.IEntityMapping

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.