Download the PHP package aldeebhasan/laravelcf without Composer
On this page you can find all versions of the php package aldeebhasan/laravelcf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aldeebhasan/laravelcf
More information about aldeebhasan/laravelcf
Files in aldeebhasan/laravelcf
Package laravelcf
Short Description This package will allow you to make fast recommendation based on custom inputs
License MIT
Informations about the package laravelcf
Laravel Recommendation system (LaravelCF)
A php package allow you to find the est recommendation of your modules
Installation
Install using composer:
The run :
Basic Usage
LarvelCF package allow you to recommend data based on many algorithms including (Cosine,Weighted Cosine, Centered Cosine, SlopeOne).
In general we have two kind of recommender included in this package:
- item-based recommender
- user-based recommender
Filling the data
The first step to build your recommendation system is to provide the dataset you want to work with.
In LarvelCF we have 4 type of data (PURCHASE, RATE, CART_ACTION, BOOKMARK). the purpose of these types is to enable you to handle different types of data at the same time.
You can use the following to enter your recommender data:
Instantiate the recommender
After entering your data, you can instantiate your desired recommender using our support facade:
Get recommendations
Finally, to make your recommendations you will run the following code:
For the setSimilarityFunction
, you can provide the similarity algorithm, the missing value default values, and weather you want to fill the missing
methods or discard them.
Available Similarity algorithm:
- Cosine::class (default for item-based)
- CosineCentered::class
- CosineWeighted::class
- Jaccard::class
- SlopeOne::class
- Pearson::class (default for user-based)
Available missing values replacement methods:
- MissingValue::ZERO (package default)
- MissingValue::MEAN
- MissingValue::MEDIAN
Full Example
License
Laravel Recommendation system package is licensed under The MIT License (MIT).
Security contact information
To report a security vulnerability, contact directly to the developer contact email Here.
All versions of laravelcf with dependencies
ext-json Version *