Reported by rcurtin on 9 Oct 44101854 14:08 UTC
Currently, the CF class expects users and locations to be one-indexed; that is, the user and items IDs never take the value 0. However this doesn't really make sense in a programming sense because C++ is a zero-indexed language. So, the CF class (and its documentation) must be updated so that it does not assume that 1 is the smallest index; instead, the assumption should be that 0 is the smallest index.
This problem manifests itself mainly in CleanData(), where if you pass '0' as a user or item, the method will fail (try it and you'll see what I mean). This was the cause of ticket #232.
Commented by siddharth.950 on 20 Mar 44102833 12:20 UTC
Shouldn't the support be independent of the programming language? Or is most of the data zero-indexed? Anyway, I'm attaching a diff file. Tell me if that fixes it.
Commented by rcurtin on 27 Jun 44102936 18:04 UTC
Have you tested this using mlpack_test? Does it affect the CF test results?
Commented by rcurtin on 3 Jun 44106046 06:03 UTC
Patch applied in r16235. The documentation still needs to be updated (or created) though.
Commented by rcurtin on 23 Jul 44117090 01:24 UTC
Patch applied in r16282.