# Sample anime and manga data anime_data = { 'title': ['Attack on Titan', 'Fullmetal Alchemist', 'Death Note', 'Naruto', 'One Piece'], 'genre': ['Action/Adventure', 'Fantasy', 'Thriller', 'Action/Adventure', 'Action/Adventure'], 'rating': [4.5, 4.8, 4.2, 4.1, 4.6] }
manga_data = { 'title': ['Dragon Ball', 'Naruto', 'One Piece', 'Bleach', 'Fullmetal Alchemist'], 'genre': ['Action/Adventure', 'Action/Adventure', 'Action/Adventure', 'Fantasy', 'Fantasy'], 'rating': [4.3, 4.5, 4.4, 4.2, 4.7] } # Sample anime and manga data anime_data =
print("Anime Recommendations:") for anime in anime_recommendations: print(anime) # Sample anime and manga data anime_data =
# Get distances and indices of similar anime and manga anime_distances, anime_indices = anime_nn.kneighbors([[user_rating]]) manga_distances, manga_indices = manga_nn.kneighbors([[user_rating]]) # Sample anime and manga data anime_data =
return anime_recommendations, manga_recommendations