this post was submitted on 05 Mar 2024
22 points (100.0% liked)

Anime

1856 readers
65 users here now

This community is the place to discuss and ask questions about anime, anime news, and related topics.

Currently airing show discussion threads are created by our resident bot, rikka@ani.social. If it doesn't make a thread for an episode that you want to discuss, see the user guide on the wiki for instructions on how to request that rikka make a thread for you to use.

Check out our wiki to find:

Rules

Related General Communities

rikka

founded 1 year ago
MODERATORS
 

Hello Lemmings,

I've been working on a new anime recommendation algorithm the past 4 months and now I pretty much have the algorithm done.

To test the accuracy of the algorithm, I am requesting any MyAnimeList user with 50+ completed animes to post their MyAnimeList username along with their overall top 3 genres in descending order. This will then be compared to what the algorithm guessed.

Thanks in advance.

Edit: Thanks a lot, guys. I finally released the project! You can find it here: https://github.com/Asudox/anote

all 32 comments
sorted by: hot top controversial new old
[–] ludrol@bookwormstory.social 6 points 8 months ago* (last edited 8 months ago) (3 children)

Will algorithm be open source?

https://myanimelist.net/profile/Ludrol

Adventure
Mystery
Slice of life

[–] Asudox@lemmy.world 4 points 8 months ago* (last edited 8 months ago)

Yes, it will be as soon as I am done with the website and training.Thanks for the data.

[–] Asudox@lemmy.world 3 points 8 months ago* (last edited 8 months ago)

The guess is:

  1. Fantasy
  2. Adventure
  3. Action

So yeah, this is mostly because you watched more animes with those genres (or scored them better) than animes with the genres you specified. Thanks for participating.

[–] Asudox@lemmy.world 1 points 7 months ago

I just released the project, you can find it here: https://github.com/Asudox/anote

[–] wjs018@ani.social 2 points 8 months ago* (last edited 8 months ago) (1 children)

I would be more than happy to help, but I don't have any kind of tracking system for what I have watched. It's something I have lamented in the weekly general threads before, but I just never feel up to spending the time to go back through the years and track it all.

Good luck!

[–] Asudox@lemmy.world 1 points 8 months ago
[–] mo_lave@reddthat.com 2 points 8 months ago* (last edited 8 months ago) (1 children)

https://myanimelist.net/profile/mo_lave

Top Genres by Weighted Score

  1. Sci-Fi
  2. Supernatural
  3. Suspense
[–] Asudox@lemmy.world 2 points 8 months ago (1 children)

The guess is:

  1. Drama
  2. Action
  3. Comedy

Seems like it's off a lot. Though this is partly probably because you either scored the animes with those genres more than the ones you mentioned or you just recently started liking these genres you listed out. Objectively looking at your animelist points out that it is mainly of animes with drama, action and comedy.

[–] mo_lave@reddthat.com 2 points 8 months ago (1 children)

Those three also work. Yes, I scored a lot of 8s and 9s in those genres

[–] Asudox@lemmy.world 2 points 8 months ago

That explains it.

[–] porotoman99@lemmy.world 2 points 8 months ago* (last edited 8 months ago) (1 children)
[–] Asudox@lemmy.world 1 points 7 months ago* (last edited 7 months ago)

https://myanimelist.net/profile/porotoman99

your combo id: 104080

...which translates to:

  1. Action
  2. Comedy
  3. Drama
[–] isyasad@lemmy.world 2 points 8 months ago (2 children)

https://myanimelist.net/profile/isyasad
Drama, Romance, Mystery
Is this anything like anime.plus? (Which, for the record, decided that my top three genres were mystery, drama... vampires)

[–] Asudox@lemmy.world 2 points 8 months ago* (last edited 8 months ago)

The thing is anime.plus is more of a statistic tool than a recommendation algorithm. I can't comment on their recommendation algorithm since it's written in PHP and I don't know PHP at all (my algorithm is written in Rust btw). What I noticed is that they mixed in themes to genres. Probably because of MAL's poor labeling.

I've also been trying to add some rather stalker-like factors into my algorithm just to test, such as your average watch time of 12 episode animes and changing the weights according to that. However, it became complex pretty soon and my algorithm slowed down to 1 millisecond from 500 microseconds, so yeah. It also didn't have that much of an impact and I figured out that it is rather dumb since liking a certain genre does not mean everyone will binge-watch the anime like I do.

[–] EnmaAi22@lemmy.world 2 points 8 months ago* (last edited 8 months ago) (1 children)

https://myanimelist.net/profile/Amberlie

  1. Psychological / Horror
  2. Mystery
  3. Action

My MAL isn't complete sadly, as I only recently started adding the animes I watched, and I added mostly the ones I liked and remembered enough I watched in the past.

[–] Asudox@lemmy.world 1 points 8 months ago

That's okay. I'd also like to test it against small animelists.

[–] Breezy@lemmy.world 2 points 8 months ago* (last edited 8 months ago) (1 children)

Are we talkimg mal genres which are lacking or any? I haven't watched anime in a while but I've been a member since 07 and have watched hundreds of shows

[–] Asudox@lemmy.world 2 points 8 months ago* (last edited 8 months ago) (1 children)

Yes, MAL genres. The algorithm only uses those so I need your overall top 3 MAL genres in descending order. So the overall top 3 genres that you like the most. The first being your 1# favorite genre, the second one the 2# favorite genre and the third the 3# favorite genre.

[–] Breezy@lemmy.world 3 points 8 months ago (2 children)

Well i was more asking if it uses the themes they have on their site, because out of the 18 genres action adventure and fantasy will clearly be the ones i chose and whats selected because of the shitty system they have. If they could go deeper and select out of themese that would be cool, but i doubt it would be helpful since they dont use many tags on mal.

My mal is https://myanimelist.net/profile/evilchris

[–] Asudox@lemmy.world 2 points 8 months ago* (last edited 8 months ago) (1 children)

Thanks. The algorithm does not use themes, just genres. Though I could make it include them as well easily. Anyway, these are your selections, correct?:

  1. Action
  2. Adventure
  3. Fantasy
[–] Breezy@lemmy.world 2 points 8 months ago (1 children)

Yeah i wouldnt know which order since they are all interchangeable to me. I think using anilist which has a lot more tags instead of genres that are user recommended would be cooler, but also a lot more trouble I suspect.

[–] Asudox@lemmy.world 1 points 8 months ago* (last edited 8 months ago) (1 children)

Yeah well, the algorithm is built on MAL's API responses so I would need to change alot to get it to work with anilist. I went with MAL not because the API is good (it's not) but because it has a much bigger userbase than anilist.

[–] Breezy@lemmy.world 2 points 8 months ago (1 children)

Oh i can imagine, it was the first site to do lists and has kept ahead for awhile. I just wish they had a better tagging system. Everything on mal has to go through shitty mods which reject a lot of pointless things.

[–] Asudox@lemmy.world 2 points 8 months ago (1 children)

Unfortunately, it is like that. I don't see a new UI or a new system coming soon, so yeah. If the algorithm gets a certain amount of reasonable traffic, I might also add anilist support.

[–] Breezy@lemmy.world 2 points 8 months ago (1 children)

So just wondering does your script tally each animes genres then list them in order for which appears most. Wouldnt asking peoples top three be more of a test of them knowing their own likes or is there more to it.

[–] Asudox@lemmy.world 1 points 8 months ago* (last edited 8 months ago) (2 children)

It's a bit more complex than that. In it's most simplified form: The algorithm takes a user's animelist as input. A for loop iterates over the animes in the animelist, gets their genres and assigns a weight (more like a score) to these genres. The formula is, at the moment: anime score multiplied by the times the anime is rewatched plus one

The number that formula outputs is assigned as a score to each genre the anime has. In the end, a structure called "genre combo" gets created. The genre combo is a structure composed of an ID and a hashmap holding the ranked animes which is only used as training data, so you don't need to worry about that. The ID is what is important and is composed of top 3 genres with the most weights. So something like: 22010040 (22 is Romance, 10 is Fantasy and 4 is Comedy) When the training is done, this ID will be used to find animes that were added to the DB by the same user animelists that will have that ID.

It's a bit hard to explain, but I tried my best.

Now for this, I just want to know if that genre combo ID matches what people say.

[–] ludrol@bookwormstory.social 2 points 8 months ago (1 children)

In my case I don't mark rewatches on mal as I usually rewatch 1 memorable episode. Also my taste slighlty changed over the years but mal doesn't mark the date of the watch.

[–] Asudox@lemmy.world 1 points 8 months ago

That's fine. The algorithm will work even without rewatches. That's what the plus one is for in the formula.

[–] Breezy@lemmy.world 2 points 8 months ago

Ooh i didnt expect rewatches to be accounted for. I have marked a lot as accurate as possible including things ive watches multiple times.

[–] Asudox@lemmy.world 1 points 8 months ago (1 children)

Great so, the guess for your animelist is:

  1. Action
  2. Fantasy
  3. Comedy

Good enough I guess.

[–] Breezy@lemmy.world 2 points 8 months ago

Im actually suprised at comedy being number 3. I mightve misjudged my anime history.