Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_feature_score() function in class BinaryRecommendEnv #10

Open
zhanglitiger opened this issue May 16, 2023 · 0 comments
Open

_feature_score() function in class BinaryRecommendEnv #10

zhanglitiger opened this issue May 16, 2023 · 0 comments

Comments

@zhanglitiger
Copy link

def _feature_score(self):
    reach_fea_score = []
    for feature_id in self.reachable_feature:
        '''
        score = self.attr_ent[feature_id]
        reach_fea_score.append(score)
        '''
        feature_embed = self.feature_emb[feature_id]
        score = 0
        score += np.inner(np.array(self.user_embed), feature_embed)
        prefer_embed = self.feature_emb[self.user_acc_feature, :]  # np.array (x*64)
        for i in range(len(self.user_acc_feature)):
            score += np.inner(prefer_embed[i], feature_embed)
        if feature_id in self.user_rej_feature:
            score -= self.sigmoid([feature_embed, feature_embed])[0]
        reach_fea_score.append(score)
        
    return reach_fea_score

Why comment on the proposed weighted entropy calculation method, and use a calculation method similar to Preference-based Item Selection?Looking forward to your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant