Git Product home page Git Product logo

classify-anime's Introduction

Classify-Anime

A random forest classifier classifies whether the anime is good or not based on 6 features. The model has been saved and passed to a Flask model then deployed as a web page using HTML.

Detailed

For the dataset, I made use of what was available since it wasn't all that useful. I noticed that the "scores" column contained a dictionary for each entry instead of a single data entry. I dropped all other columns and created new columns with the keys of the dictionaries that were entries for the "scores" column. This enabled me to have clean data to work with. The new dataset consisted of 6 features and a label feature that classifies whether this anime is good ( label = 1 ) or bad ( label = 0 ) based on these six features. The features are "Story" "Animation" "Sound" "Character" "Enjoyment" and "overall" score

Random Forest Classifier

after the data's been cleaned and visualized using Seaborn and Matplotlib, it was split and used to train a random forest classifier with tuned hyperparameters using the "hyperopt" optimization method. The model has been trained, validated, and tested. The overall accuracy turned out to be about 95%.

Flask and HTML

After building the model, it was saved using the "pickle" library, and a Flask model was built where it took the entries of the user from an HTML webpage and used the random forest classifier to predict whether the anime was good or not good based on the different features entered.

2023-06-23

Output

If the prediction of the random forest classifier turned out to be 1 meaning the anime is good (based on the values entered by the user), the HTML file would pass the "this anime is good" message on the screen, otherwise, it'll pass "This anime is not good"

classify-anime's People

Contributors

sapphire9-7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.