Package org.apache.spark.graphx.lib
Class SVDPlusPlus
Object
org.apache.spark.graphx.lib.SVDPlusPlus
Implementation of SVD++ algorithm.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration parameters for SVDPlusPlus. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
SVDPlusPlus
public SVDPlusPlus()
-
-
Method Details
-
run
public static scala.Tuple2<Graph<scala.Tuple4<double[],double[], runObject, Object>, Object>, Object> (RDD<Edge<Object>> edges, SVDPlusPlus.Conf conf) Implement SVD++ based on "Factorization Meets the Neighborhood: a Multifaceted Collaborative Filtering Model", available at here.The prediction rule is rui = u + bu + bi + qi*(pu + |N(u)|^^-0.5^^*sum(y)), see the details on page 6.
- Parameters:
edges
- edges for constructing the graphconf
- SVDPlusPlus parameters- Returns:
- a graph with vertex attributes containing the trained model
-