Re: [EXTERNAL] - Re: Problem with the ML ALS algorithm

2019-06-26 Thread Nick Pentreath
; > > > *From:* Nick Pentreath > *Sent:* Wednesday, June 26, 2019 9:09 AM > *To:* user@spark.apache.org > *Subject:* Re: [EXTERNAL] - Re: Problem with the ML ALS algorithm > > > > If the number of items is indeed 4, then another issue is the rank of the > factors def

RE: [EXTERNAL] - Re: Problem with the ML ALS algorithm

2019-06-26 Thread Steve Pruitt
From: Nick Pentreath Sent: Wednesday, June 26, 2019 9:09 AM To: user@spark.apache.org Subject: Re: [EXTERNAL] - Re: Problem with the ML ALS algorithm If the number of items is indeed 4, then another issue is the rank of the factors defaults to 10. Setting the "rank" parameter <

Re: [EXTERNAL] - Re: Problem with the ML ALS algorithm

2019-06-26 Thread Nick Pentreath
; Number of items is 4 > > Ratings values are either 120, 20, 0 > > > > > > *From:* Nick Pentreath > *Sent:* Wednesday, June 26, 2019 6:03 AM > *To:* user@spark.apache.org > *Subject:* [EXTERNAL] - Re: Problem with the ML ALS algorithm > > > > This means that

RE: [EXTERNAL] - Re: Problem with the ML ALS algorithm

2019-06-26 Thread Steve Pruitt
Number of users is 1055 Number of items is 4 Ratings values are either 120, 20, 0 From: Nick Pentreath Sent: Wednesday, June 26, 2019 6:03 AM To: user@spark.apache.org Subject: [EXTERNAL] - Re: Problem with the ML ALS algorithm This means that the matrix that ALS is trying to factor is not

Re: Problem with the ML ALS algorithm

2019-06-26 Thread Nick Pentreath
This means that the matrix that ALS is trying to factor is not positive definite. Try increasing regParam (try 0.1, 1.0 for example). What does the data look like? e.g. number of users, number of items, number of ratings, etc? On Wed, Jun 26, 2019 at 12:06 AM Steve Pruitt wrote: > I get an inex