Skip to content

Commit f264885

Browse files
authored
Update README.md
1 parent 508ecc7 commit f264885

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 = [];

0 commit comments

Comments
 (0)