All Projects → phpjuice → slopeone

phpjuice / slopeone

Licence: MIT license
PHP implementation of the Weighted Slope One rating-based collaborative filtering scheme.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to slopeone

Deep Learning For Recommendation Systems
This repository contains Deep Learning based articles , paper and repositories for Recommender Systems
Stars: ✭ 2,493 (+2832.94%)
Mutual labels:  collaborative-filtering, recommender-system
Implicit
Fast Python Collaborative Filtering for Implicit Feedback Datasets
Stars: ✭ 2,569 (+2922.35%)
Mutual labels:  collaborative-filtering, recommender-system
Collaborative Deep Learning For Recommender Systems
The hybrid model combining stacked denoising autoencoder with matrix factorization is applied, to predict the customer purchase behavior in the future month according to the purchase history and user information in the Santander dataset.
Stars: ✭ 60 (-29.41%)
Mutual labels:  collaborative-filtering, recommender-system
Elliot
Comprehensive and Rigorous Framework for Reproducible Recommender Systems Evaluation
Stars: ✭ 49 (-42.35%)
Mutual labels:  collaborative-filtering, recommender-system
Movie Recommender System
Basic Movie Recommendation Web Application using user-item collaborative filtering.
Stars: ✭ 85 (+0%)
Mutual labels:  collaborative-filtering, recommender-system
Consimilo
A Clojure library for querying large data-sets on similarity
Stars: ✭ 54 (-36.47%)
Mutual labels:  collaborative-filtering, recommender-system
Polara
Recommender system and evaluation framework for top-n recommendations tasks that respects polarity of feedbacks. Fast, flexible and easy to use. Written in python, boosted by scientific python stack.
Stars: ✭ 205 (+141.18%)
Mutual labels:  collaborative-filtering, recommender-system
Recsys2019 deeplearning evaluation
This is the repository of our article published in RecSys 2019 "Are We Really Making Much Progress? A Worrying Analysis of Recent Neural Recommendation Approaches" and of several follow-up studies.
Stars: ✭ 780 (+817.65%)
Mutual labels:  collaborative-filtering, recommender-system
Collaborativememorynetwork
Collaborative Memory Network for Recommendation Systems, SIGIR 2018
Stars: ✭ 170 (+100%)
Mutual labels:  collaborative-filtering, recommender-system
Neural collaborative filtering
Neural Collaborative Filtering
Stars: ✭ 1,243 (+1362.35%)
Mutual labels:  collaborative-filtering, recommender-system
Movielens Recommender
A pure Python implement of Collaborative Filtering based on MovieLens' dataset.
Stars: ✭ 131 (+54.12%)
Mutual labels:  collaborative-filtering, recommender-system
Rsparse
Fast and accurate machine learning on sparse matrices - matrix factorizations, regression, classification, top-N recommendations.
Stars: ✭ 145 (+70.59%)
Mutual labels:  collaborative-filtering, recommender-system
Recoder
Large scale training of factorization models for Collaborative Filtering with PyTorch
Stars: ✭ 46 (-45.88%)
Mutual labels:  collaborative-filtering, recommender-system
Rectorch
rectorch is a pytorch-based framework for state-of-the-art top-N recommendation
Stars: ✭ 121 (+42.35%)
Mutual labels:  collaborative-filtering, recommender-system
Recsys19 hybridsvd
Accompanying code for reproducing experiments from the HybridSVD paper. Preprint is available at https://arxiv.org/abs/1802.06398.
Stars: ✭ 23 (-72.94%)
Mutual labels:  collaborative-filtering, recommender-system
Gorse
An open source recommender system service written in Go
Stars: ✭ 1,148 (+1250.59%)
Mutual labels:  collaborative-filtering, recommender-system
Neural graph collaborative filtering
Neural Graph Collaborative Filtering, SIGIR2019
Stars: ✭ 517 (+508.24%)
Mutual labels:  collaborative-filtering, recommender-system
Newsrecommendsystem
个性化新闻推荐系统,A news recommendation system involving collaborative filtering,content-based recommendation and hot news recommendation, can be adapted easily to be put into use in other circumstances.
Stars: ✭ 557 (+555.29%)
Mutual labels:  collaborative-filtering, recommender-system
Rankfm
Factorization Machines for Recommendation and Ranking Problems with Implicit Feedback Data
Stars: ✭ 71 (-16.47%)
Mutual labels:  collaborative-filtering, recommender-system
Enmf
This is our implementation of ENMF: Efficient Neural Matrix Factorization (TOIS. 38, 2020). This also provides a fair evaluation of existing state-of-the-art recommendation models.
Stars: ✭ 96 (+12.94%)
Mutual labels:  collaborative-filtering, recommender-system

Slopeone

Tests Maintainability Latest Stable Version Total Downloads License

PHP implementation of the Weighted Slope One rating-based collaborative filtering scheme.

Installation

Slopeone Package requires PHP 7.4 or higher.

INFO: If you are using an older version of php this package may not function correctly.

The supported way of installing Slopeone package is via Composer.

composer require phpjuice/slopeone

Usage

Slopeone Package is designed to be very simple and straightforward to use. All you have to do is to load rating data, then predict future ratings based on the training set provided.

Loading files

The Slopeone object is created by direct instantiation:

use PHPJuice\Slopeone\Algorithm;

// Create an instance
$slopeone = new Algorithm();

Adding Rating values

Adding Rating values can be easily done by providing an array of users ratings via the update() method:

$data =[
  [
    "squid" => 1,
    "cuttlefish" => 0.5,
    "octopus" => 0.2
  ],
  [
    "squid" => 1,
    "octopus" => 0.5,
    "nautilus" => 0.2
  ],
  [
    "squid" => 0.2,
    "octopus" => 1,
    "cuttlefish" => 0.4,
    "nautilus" => 0.4
  ],
  [
    "cuttlefish" => 0.9,
    "octopus" => 0.4,
    "nautilus" => 0.5
  ]
];

$slopeone->update($data);

Predicting ratings

all you have to do to predict ratings for a new user is to run the slopeone::predict method

$results = $slopeone->predict([
    "squid" => 0.4
]);

this should produce the following results

[
  "cuttlefish"=>0.25,
  "octopus"=>0.23333333333333,
  "nautilus"=>0.1
];

Running the tests

you can easily run tests using composer

composer test

Built With

  • PHP - The programing language used
  • Composer - Dependency Management
  • Pest - An elegant PHP Testing Framework

Changelog

Please see the changelog for more information on what has changed recently.

Contributing

Please see CONTRIBUTING.md for details and a todo list.

Security

If you discover any security related issues, please email author instead of using the issue tracker.

Credits

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

license. Please see the Licence for more information.

Tests Maintainability Latest Stable Version Total Downloads License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].