Package org.localify.recommend
Class RpcRecommender
java.lang.Object
org.localify.recommend.RpcRecommender
- All Implemented Interfaces:
Recommender
A recommender that uses RPC to communicate with a recommendation service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a request for recommendations via RPC. -
Constructor Summary
ConstructorsConstructorDescriptionRpcRecommender(LocalifyProperties properties) Constructs a new RpcRecommender. -
Method Summary
-
Constructor Details
-
RpcRecommender
Constructs a new RpcRecommender.- Parameters:
properties- The application properties.
-
-
Method Details
-
abcd
public void abcd()A placeholder method. -
doRecommend
Description copied from interface:RecommenderPerforms a recommendation based on seed artists and local artists.- Specified by:
doRecommendin interfaceRecommender- Parameters:
seedArtists- The list of seed artist IDs.localArtists- The list of local artist IDs.- Returns:
- A list of recommendation system artist responses.
-
switchModel
public void switchModel()Description copied from interface:RecommenderSwitches the model used by the recommender.- Specified by:
switchModelin interfaceRecommender
-
trainModel
public void trainModel()Description copied from interface:RecommenderTrains the recommender model.- Specified by:
trainModelin interfaceRecommender
-