You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Vasil Vangelovski <vv...@gmail.com> on 2011/01/09 23:54:55 UTC

Deleting ratings in update file for a recommender

When I put a line like 32,122, I get IllegalArgument exception when
refreshing. I thought that's the way to delete a rating. Is there another
way?

Re: Deleting ratings in update file for a recommender

Posted by Sean Owen <sr...@gmail.com>.
I will submit the fix as MAHOUT-581

On Mon, Jan 10, 2011 at 9:04 PM, Vasil Vangelovski
<vv...@gmail.com> wrote:
> Yes fixes it.
>
> This is Mahout 0.4 from maven repo.
>

Re: Deleting ratings in update file for a recommender

Posted by Vasil Vangelovski <vv...@gmail.com>.
Yes fixes it.

This is Mahout 0.4 from maven repo.

On Mon, Jan 10, 2011 at 9:10 PM, Sean Owen <sr...@gmail.com> wrote:

> Try this -- change the line:
>
>    String[] tokens = delimiterPattern.split(line);
>
> to:
>
>    String[] tokens = delimiterPattern.split(line, 5);
>
> does that work?
>
> On Mon, Jan 10, 2011 at 5:19 PM, Vasil Vangelovski
> <vv...@gmail.com> wrote:
> > Stack trace and log
> >
> > http://paste.pocoo.org/show/318376/
> >
> > Also see this
> >
> > http://paste.pocoo.org/show/318375/
> >
> > 2-3 refreshes go fine up until the point where I put that last line and
> do a
> > refresh.
> >
> > On Mon, Jan 10, 2011 at 5:49 PM, Sean Owen <sr...@gmail.com> wrote:
> >
> >> Hmm can you show me the stack trace?
> >>
> >> On Mon, Jan 10, 2011 at 4:46 PM, Vasil Vangelovski
> >> <vv...@gmail.com> wrote:
> >> > Yeah, I get that. However my main file is ratings.txt and I put lines
> >> like
> >> > that in ratings.2011-8.txt and still get the exception.
> >>
> >
>

Re: Deleting ratings in update file for a recommender

Posted by Sean Owen <sr...@gmail.com>.
Try this -- change the line:

    String[] tokens = delimiterPattern.split(line);

to:

    String[] tokens = delimiterPattern.split(line, 5);

does that work?

On Mon, Jan 10, 2011 at 5:19 PM, Vasil Vangelovski
<vv...@gmail.com> wrote:
> Stack trace and log
>
> http://paste.pocoo.org/show/318376/
>
> Also see this
>
> http://paste.pocoo.org/show/318375/
>
> 2-3 refreshes go fine up until the point where I put that last line and do a
> refresh.
>
> On Mon, Jan 10, 2011 at 5:49 PM, Sean Owen <sr...@gmail.com> wrote:
>
>> Hmm can you show me the stack trace?
>>
>> On Mon, Jan 10, 2011 at 4:46 PM, Vasil Vangelovski
>> <vv...@gmail.com> wrote:
>> > Yeah, I get that. However my main file is ratings.txt and I put lines
>> like
>> > that in ratings.2011-8.txt and still get the exception.
>>
>

Re: Deleting ratings in update file for a recommender

Posted by Vasil Vangelovski <vv...@gmail.com>.
Stack trace and log

http://paste.pocoo.org/show/318376/

Also see this

http://paste.pocoo.org/show/318375/

2-3 refreshes go fine up until the point where I put that last line and do a
refresh.

On Mon, Jan 10, 2011 at 5:49 PM, Sean Owen <sr...@gmail.com> wrote:

> Hmm can you show me the stack trace?
>
> On Mon, Jan 10, 2011 at 4:46 PM, Vasil Vangelovski
> <vv...@gmail.com> wrote:
> > Yeah, I get that. However my main file is ratings.txt and I put lines
> like
> > that in ratings.2011-8.txt and still get the exception.
>

Re: Deleting ratings in update file for a recommender

Posted by Sean Owen <sr...@gmail.com>.
Hmm can you show me the stack trace?

On Mon, Jan 10, 2011 at 4:46 PM, Vasil Vangelovski
<vv...@gmail.com> wrote:
> Yeah, I get that. However my main file is ratings.txt and I put lines like
> that in ratings.2011-8.txt and still get the exception.

Re: Deleting ratings in update file for a recommender

Posted by Vasil Vangelovski <vv...@gmail.com>.
Yeah, I get that. However my main file is ratings.txt and I put lines like
that in ratings.2011-8.txt and still get the exception.

On Mon, Jan 10, 2011 at 2:09 AM, Sean Owen <sr...@gmail.com> wrote:

> This only works in 'update' files. If you publish a new main data file,
> instead of an additional delta to the main data file, simply omit items
> that
> have been deleted.
>
> On Sun, Jan 9, 2011 at 10:54 PM, Vasil Vangelovski
> <vv...@gmail.com>wrote:
>
> > When I put a line like 32,122, I get IllegalArgument exception when
> > refreshing. I thought that's the way to delete a rating. Is there another
> > way?
> >
>

Re: Deleting ratings in update file for a recommender

Posted by Sean Owen <sr...@gmail.com>.
This only works in 'update' files. If you publish a new main data file,
instead of an additional delta to the main data file, simply omit items that
have been deleted.

On Sun, Jan 9, 2011 at 10:54 PM, Vasil Vangelovski
<vv...@gmail.com>wrote:

> When I put a line like 32,122, I get IllegalArgument exception when
> refreshing. I thought that's the way to delete a rating. Is there another
> way?
>