Class RpcRecommender

java.lang.Object
org.localify.recommend.RpcRecommender
All Implemented Interfaces:
Recommender

public class RpcRecommender extends Object implements Recommender
A recommender that uses RPC to communicate with a recommendation service.
  • Constructor Details

    • RpcRecommender

      public RpcRecommender(LocalifyProperties properties)
      Constructs a new RpcRecommender.
      Parameters:
      properties - The application properties.
  • Method Details

    • abcd

      public void abcd()
      A placeholder method.
    • doRecommend

      public List<RecSysArtistResponse> doRecommend(List<UUID> seedArtists, List<UUID> localArtists)
      Description copied from interface: Recommender
      Performs a recommendation based on seed artists and local artists.
      Specified by:
      doRecommend in interface Recommender
      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: Recommender
      Switches the model used by the recommender.
      Specified by:
      switchModel in interface Recommender
    • trainModel

      public void trainModel()
      Description copied from interface: Recommender
      Trains the recommender model.
      Specified by:
      trainModel in interface Recommender