Trouble getting things running

20 views
Skip to first unread message

Zank Bennett

unread,
Jul 5, 2017, 5:35:08 PM7/5/17
to MyMediaLite
Hi,
I'm using a mac, and have installed mono (it works fine for the "Hello world" demo).

I downloaded MyMediaLite 3.1.1 and changed to the libdirectory.

From there I use:

mono rating_prediction.exe --training-file="../../data/demo.txt" --test-file="../../data/demo.txt" --recommender=UserAverage


Any ideas why I receive this error?

'


'



 
*****************************************************************************************************
 
*** An uncaught exception occured. Please send a bug report to zeno.gantner+mymedialite@gmail.com,***
 
*** or report the problem in our issue tracker: https://github.com/zenogantner/MyMediaLite/issues ***
 
*** MyMediaLite 3.11                                                                              ***
 
*****************************************************************************************************
Could not read file ../../data/demo.txt: Input string was not in a correct format.  at MyMediaLite.Wrap.FormatException[T] (System.String filename, System.Func`1[TResult] t) [0x0001e] in <9e6d347c9f2242fba41a808a2cba83a9>:0
  at MyMediaLite.IO.StaticRatingData.Read (System.String filename, MyMediaLite.Data.IMapping user_mapping, MyMediaLite.Data.IMapping item_mapping, MyMediaLite.Data.RatingType rating_type, MyMediaLite.IO.TestRatingFileFormat test_rating_format, System.Boolean ignore_first_line) [0x000cf] in <9e6d347c9f2242fba41a808a2cba83a9>:0
  at RatingPrediction+<LoadData>c__AnonStorey3.<>m__0 () [0x00089] in <dda806d2578d412994adf4eccff43ae0>:0
  at MyMediaLite.Wrap.MeasureTime (System.Action t) [0x00006] in <9e6d347c9f2242fba41a808a2cba83a9>:0
  at RatingPrediction.LoadData () [0x0001c] in <dda806d2578d412994adf4eccff43ae0>:0
  at CommandLineProgram`
1[T].Run (System.String[] args) [0x0040f] in <88240ca120784152adca4371259cd498>:0
  at
RatingPrediction.Run (System.String[] args) [0x00022] in <dda806d2578d412994adf4eccff43ae0>:0
  at
RatingPrediction.Main (System.String[] args) [0x00006] in <dda806d2578d412994adf4eccff43ae0>:0
Terminate on unhandled exception.
zsh
: command not found: \n\n

Here's the input file:

cat ../../data/demo.txt

 
1       1       5
 
1       2       3
 
1       3       4
 
1       4       3
 
1       5       3
 
1       7       4


I tried absolute file paths. Same error.
Thanks

Zank Bennett

unread,
Jul 5, 2017, 5:47:12 PM7/5/17
to MyMediaLite
I got it figured out.
1. I needed to use absolute paths (I thought I had done that) and
2. My input file (copied from on of the examples) has an invalid format

I hope this helps someone else :)
Reply all
Reply to author
Forward
0 new messages