Skip to content

Devising ways to best combine recommendations #32

Open
@andrewtavis

Description

@andrewtavis

This issue is to discuss ways to best combine vector embeddings so that a wikirec user can optimally pass more than one argument to wikirec.model.recommend.

The current way of combining recommendations for more than one input is to simply take the arithmetic means of the similarity matrix rows for each passed title, which is depicted in the following snippet from wikirec.model.recommend:

for i, t in enumerate(titles):
    if t == inpt:
        if first_input:
            sims = sim_matrix[i]

            first_input = False

        else:
            sims = [np.mean([s, sim_matrix[i][j]]) for j, s in enumerate(sims)]

A discussion of whether this is the best way to do this would be much appreciated! Furthermore, how could the above be changed to allow a user to express disinterest (as discussed in #33).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions