Statistics::Suggest

Statistics::Suggest is a Perl binding for collaborative filtering library SUGGEST.
Download

Statistics::Suggest Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ikuhiro IHARA
  • Publisher web site:
  • http://search.cpan.org/~ihara/Statistics-Suggest-0.01/lib/Statistics/Suggest.pm

Statistics::Suggest Tags


Statistics::Suggest Description

Statistics::Suggest is a Perl binding for collaborative filtering library SUGGEST. Statistics::Suggest is a Perl binding for collaborative filtering library SUGGEST.INSTALLATION· Download SUGGEST from http://glaros.dtc.umn.edu/gkhome/suggest/download.· Find libsuggest.a which matches your environment and place it under your library path (or specify its path with LIBS option as shown below).· Then do: perl Makefile.PL make make test make install· Tested with suggest-1.0-linux.SYNOPSIS use Statistics::Suggest; ## initialize SUGGEST with $data my $data = , ... , , , , , , , , , , , ... ]; my $s = new Statistics::Suggest( RType => 2, NNbr => 40, Alpha => 0.3, ); $s->load_trans($data); $s->init; ## make top 10 recommendations for $selected_item_ids my $rcmds; my $selected_item_ids = ; $s->top_n($selected_item_ids, 10, $rcmds) print "recommendations: " . join(',', @$rcmds);This is a perl binding for SUGGEST. Please refer to the SUGGEST's manual for details. Basically, this package contains all corresponding methods for functions described in the manual.new my $s = new Statistics::Suggest( # parameters for Init function (see SUGGEST's manual p.5) RType => 2, NNbr => 40, Alpha => 0.3, );load_transLoads user-item transactions that will be used to make recommendations. $s->load_trans(, ... , , ,... ]);estimate_alphaAlpha parameter can be set automatically by calling estimate_alpha method after load_trans, before calling init. $s->estimate_alpha;initInitializes the SUGGEST engine. Should be called after all transactions are loaded via load_trans method. $s->init;top_nReturns top-n recommendations for the given item set. Should be called after init. my $rcmds; $s->top_n( , # array of item_ids in the user's basket 10, # number of recommendations required $rcmds, # reference of an array reference for storing recommendations ); print join(',', @$rcmds); Requirements: · Perl


Statistics::Suggest Related Software