File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Recommend a product using collaborative filtering
2222 $table gets the array from the database.
2323 $user is the foreign key that represents the user who will receive the recommendation.
2424 **/
25- use Tigo\Recommend; // import class
25+ use Tigo\Recommendation\ Recommend; // import class
2626 $client = new Recommend();
2727 $client->ranking($table,$user) //optional third parameter refers to the score not accepted
2828 $client->euclidean($table,$user); //optional third parameter refers to the minimum accepted score
@@ -68,7 +68,7 @@ A simple didactic demonstration of the algorithm
6868 'user_id'=> 'João'
6969 ]
7070 ];
71- use Tigo\Recommend; // import class
71+ use Tigo\Recommendation\ Recommend; // import class
7272 $client = new Recommend();
7373 print_r($client->ranking($table,"Pedro")); // result = ['C' => 2]
7474 print_r($client->ranking($t->get(),"Pedro",1)); // result = [];
You can’t perform that action at this time.
0 commit comments