i work on a php project along with python which uses flask as api which predict user like on a post based on the previous engagement on other posts and its purely user based.
my requirement is suppose there are 1000`s of users in our system. and they have done likes for old posts before.when new posts arrive i need to somehow identify whether user likes it or not .and this is done via a cron job
approach 1
i am using Logistic regression as model so probably need dynamic pkl file for each user.because different users engagement on same post is different so i need to save some thing like model_{user_id}.pkl file where user_id is the user id of the user
approach 2
use content based recommended system.but as far as i know it can't store like a pkl file in production. so for each users from the 1000`s of users i need to run the recommender function.
approach 1 drawback
creating dynamic pkl file for each user which means more files.i never seen this approach on internet
approach 2 drawback
calling the recommender function for each user is probably a bad idea i believe .that will heavily affect cpu usage etc.
can somebody please help me how to properly solve this problem.i am new in machine learning . please consider my question. thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…