GithubHelp home page GithubHelp logo

peteprattis / k-nearest-neighbors-algorithm-and-rating-prediction Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 22 KB

A Java console application that implements the factionality of the knn algorithm to find the similarity between a new user with only a few non zero ratings of some locations, find the k nearest neighbors through similarity score and then predict the ratings of the new user for the non rated locations.

License: MIT License

Java 100.00%
java console-application knn k-nearest-neighbours similarity cosine-similarity euclidean-distance manhattan-distance recommender-system recommendation-system

k-nearest-neighbors-algorithm-and-rating-prediction's Introduction

A Java Program / Project

This is a java project from my early days as a Computer Science student

This programm was created for my thesis project and is a test program implementing knn algorithm to use as a template for my thesis project

Description of project

A Java console application that implements the factionality of the knn algorithm to find the similarity between a new user with only a few non zero ratings of some locations, find the k nearest neighbors through similarity score and then predict the ratings of the new user for the non rated locations.

Impementation of project

  1. Implementing knn algorithm using these heuristics for similarity score:
  • Cosine similarity
  • Euclidean distance
  • Manhattan distance
  1. Using the ratings of the k nearest neighbours the system recommends some non-rated-locations ratings

About this project

  • This is a test project and an effort to implement the knn algorithm using a variety of heuristics for similarity score
  • The comments to make the code understandable, are within the .java archive
  • This project was written in Eclipse Java IDE
  • This repository was created to show the variety of the work I did and experience I gained as a student

k-nearest-neighbors-algorithm-and-rating-prediction's People

Contributors

peteprattis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.