Package org.apache.hama.ml.recommendation.cf.function.OnlineUpdate

Examples of org.apache.hama.ml.recommendation.cf.function.OnlineUpdate.InputStructure


        } catch (Exception e) {
          // set default function
        }
      }

      InputStructure e = new InputStructure();
      e.item = this.modelItemFactorizedValues.get(Long.valueOf(itemId));
      e.user = this.modelUserFactorizedValues.get(Long.valueOf(userId));
      e.itemFeatureFactorized = this.modelItemFeatureFactorizedValues;
      e.userFeatureFactorized = this.modelUserFeatureFactorizedValues;
      e.itemFeatures = this.modelItemFeatures.get(Long.valueOf(itemId));
View Full Code Here


      } catch (Exception e) {
        // set default function
      }
    }
   
    InputStructure e = new InputStructure();
    e.user = this.modelUserFactorizedValues.get(Long.valueOf(userId));
    e.userFeatureFactorized = this.modelUserFeatureFactorizedValues;
    e.userFeatures = this.modelUserFeatures.get(Long.valueOf(userId));
    e.itemFeatureFactorized = this.modelItemFeatureFactorizedValues;
    if (e.user == null) {
View Full Code Here

TOP

Related Classes of org.apache.hama.ml.recommendation.cf.function.OnlineUpdate.InputStructure

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.