Skip to main content
. 2022 Nov 11;24(11):1639. doi: 10.3390/e24111639
Algorithm 1: Replacing-updating Enabled Online Recommendation
  • Require: 

    Initial training set D0, updating cycle T, new received data during updating cycle DT

  • Ensure: 

    Recommender system RS, Recommendations with explanations: Results

  • 1:

    //Initial training phase

  • 2:

    DD0

  • 3:

    RStrain(D)

  • 4:

    //Updating phase

  • 5:

    for each cycle T do

  • 6:

        DDT

  • 7:

        RStrain(D)

  • 8:

    end for

  • 9:

    //Inference phase

  • 10:

    for each user u do

  • 11:

        Resultsrecommend(RS,u)

  • 12:

    end for