How to design database using cosine similarity algorithm

WBOY
Release: 2016-10-10 11:56:08
Original
1289 people have browsed it

There are many articles in the website database, all of which are tagged with relevant tags. When the user registers, the user will be asked to choose the tag he likes, and then use the cosine similarity algorithm to calculate and recommend it to him on the homepage, but this way every time he visits It will be recalculated once. How to design the database to save recommendations to users?

Reply content:

There are many articles in the website database, all of which are tagged with relevant tags. When the user registers, the user will be asked to choose the tag he likes, and then use the cosine similarity algorithm to calculate and recommend it to him on the homepage, but this way every time he visits It will be recalculated once. How to design the database to save recommendations to users?

Separate tags with commas, merge them into strings, and save them~

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template