lib/disco/recommender.rb in disco-0.3.2 vs lib/disco/recommender.rb in disco-0.4.0

- old
+ new

@@ -428,10 +428,12 @@ dataset end end def marshal_dump + warn "[disco] Marshal serialization is deprecated - use JSON instead" + obj = { implicit: @implicit, user_map: @user_map, item_map: @item_map, rated: @rated, @@ -455,9 +457,11 @@ obj end def marshal_load(obj) + warn "[disco] Marshal serialization is deprecated - use JSON instead" + @implicit = obj[:implicit] @user_map = obj[:user_map] @item_map = obj[:item_map] @rated = obj[:rated] @global_mean = obj[:global_mean]