R Error Recommender method UCBF not implemented for data type realRatingMatrix

0 votes

Error: Recommender method UCBF not implemented for data type realRatingMatrix.

Code - 

train = sample(x = c(TRUE, FALSE), size = nrow(Jester5k),replace = TRUE, prob = c(0.8, 0.2))
dataset_train = Jester5k[train,]
dataset_test = Jester5k[!train,]

rec_model = Recommender(data=dataset_train,method="UCBF")

Can someone help me with this error.

Aug 20, 2019 in Data Analytics by kalyan
1,045 views

old question, but for anyone seeing this Kaylan has a typo: should be "UBCF".

I arrived here because I was calling:

   Recommender(realRat, "UBCF_realRatingMatrix")

because  

   recommenderRegistry$get_entries(dataType="realRatingMatrix")

return this (amongst other things):

   $UBCF_realRatingMatrix
   Recommender method: UBCF for realRatingMatrix
   Description: Recommender based on user-based collaborative filtering.
   Reference: NA
   Parameters:
       method nn sample weighted normalize min_matching_items min_predictive_items
   1 "cosine" 25  FALSE     TRUE  "center"                  0                    0

1 answer to this question.

0 votes

Kalyan,

Try changing method from UBCF to POPULAR.

train = sample(x = c(TRUE, FALSE), size = nrow(Jester5k),replace = TRUE, prob = c(0.8, 0.2))
dataset_train = Jester5k[train,]
dataset_test = Jester5k[!train,]

rec_model = Recommender(data=dataset_train,method="POPULAR")
answered Oct 28, 2019 by anonymous
• 33,030 points

Related Questions In Data Analytics

0 votes
1 answer

Error saying "duplicate 'row.names' are not allowed" when trying to setup my data for the mlogit-package

Take out the chid.var argument in your call to mlogit.data, ...READ MORE

answered Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
2,043 views
0 votes
1 answer

R - Error: Duplicate identifiers for rows

You can try the below code as ...READ MORE

answered Apr 9, 2018 in Data Analytics by kappa3010
• 2,090 points
2,969 views
0 votes
1 answer

List packages are used for data mining in R?

You can refer to the following packages ...READ MORE

answered Jul 3, 2018 in Data Analytics by DataKing99
• 8,250 points
1,548 views
0 votes
1 answer

By using dpylr package sum of multiple columns

Basically here we are making an equation ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
2,250 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,920 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

answered Apr 6, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 9, 2020 by Gitika 1,182 views
0 votes
1 answer

How to create a list of Data frames?

Basically all we have to do is ...READ MORE

answered Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,339 views
0 votes
1 answer

R Shiny Error: Object of type 'closure' is not subsettable

The error you mentioned happens when you ...READ MORE

answered Aug 20, 2019 in Data Analytics by anonymous
• 33,030 points
6,360 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP