We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi @statisticianinstilettos,
kudos for a great tool! I would like to propose an optimization for calculating Personalization Metric here:
#get indicies for upper right triangle w/o diagonal upper_right = np.triu_indices(similarity.shape[0], k=1) #calculate average similarity personalization = np.mean(similarity[upper_right]) return 1-personalization
There is no need to get the upper triangle indices, as the cosine similarity is a symmetric distance. I will follow up with a pull request for this.
The text was updated successfully, but these errors were encountered:
great update! Thanks
Sorry, something went wrong.
No branches or pull requests
Hi @statisticianinstilettos,
kudos for a great tool!
I would like to propose an optimization for calculating Personalization Metric here:
There is no need to get the upper triangle indices, as the cosine similarity is a symmetric distance.
I will follow up with a pull request for this.
The text was updated successfully, but these errors were encountered: