item_recommendation: Similarity between anime

Description Usage Arguments Value Author(s) Examples

View source: R/anime_functions.R

Description

Use the user item matrix to search for similar anime

Usage

1
2
3
4
5
6
item_recommendation(
  selected_item_name,
  user_item_matrix,
  n_recommendation,
  data
)

Arguments

selected_item_name

selection of the user in the Shiny App

user_item_matrix

matrix created by the function 'user_item_matrix'

n_recommendation

number of recommendation wanted by the user

data

table of all anime

Value

Return a table composed of 'n_recommendation' that the user have not seen yet

Author(s)

Marie Bellier, Massimo Finini, Meri Likoska, Vania Rodrigues Telo Ramos, Xavier Renger

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#Simple example to showcase what is happening in the application

#User selection
selected_item_name = "Naruto"

#first create the item matrix
anime <-  tibble::tibble(ProjectG5::anime)
anime_with_ratings <-  tibble::tibble(ProjectG5::anime_with_ratings)
item_matrix <- user_item_matrix(anime_with_ratings, adding_row = FALSE)

#then use it to run the function
item_recommendation(selected_item_name, item_matrix, 5, anime)

ptds2021/project--G5 documentation built on Dec. 22, 2021, 9:59 a.m.