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

attendance one key and many values #21

Open
liuchenailq opened this issue Nov 5, 2019 · 3 comments
Open

attendance one key and many values #21

liuchenailq opened this issue Nov 5, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@liuchenailq
Copy link

pairs=[{'ad': 'q_topic_1', 'pos_hist': 'm_interested_topics'},
{'ad': 'q_topic_2', 'pos_hist': 'm_interested_topics'},
{'ad': 'q_topic_3', 'pos_hist': 'm_interested_topics'},
{'ad': 'q_topic_4', 'pos_hist': 'm_interested_topics'},
{'ad': 'q_topic_5', 'pos_hist': 'm_interested_topics'}
],

@liuchenailq liuchenailq added the enhancement New feature or request label Nov 5, 2019
@GitHub-HongweiZhang
Copy link
Owner

Thank you very much. I will consider your request this week!

@GitHub-HongweiZhang
Copy link
Owner

@liuchenailq

Could you give more info about why do you need such feature. What is the situation? If you
can give an example data set, it is very helpful.

From your example, the attention score of m_interested_topics seems need to be summarized
using avg func. Is it right?

@liuchenailq
Copy link
Author

thanks very much.

in my scene, a user have some topics, a goods have some topics. So I want to the attention score of goods topics in every user topics.

for example. user have topics [T1, T2, T3], goods have topics [T10, T11, T14]. I want to do
pairs=[{'ad': 'T1', 'pos_hist': 'goods_topics'},
{'ad': 'T2', 'pos_hist': 'goods_topics'},
{'ad': 'T3', 'pos_hist': 'goods_topics'},
],

thanks again

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

No branches or pull requests

2 participants