BookmarkSubscribeRSS Feed
jhw_
Calcite | Level 5

Hi I'm using recommendation action sets.

There is ratioinfo option in recomAls and recomKnnTrain action . well I can't find information about why ratioinfo affects model I made.

is it for considering bias of user?

please help me!  

 

proc cas;
recommend.recomKnnTrain result=r /
  table='ratings_by_user'
  label='knn3'
  system='movieRecommend'
  similarity='similar_items'                              
  k=20                                                                                                           
  hold='holdout_users'
  rateinfo='avg_user'                                   
  user=False;                                                      
run;

print r;
run;



proc cas;
recommend.recomAls result = r /
    tableU="ratings_by_user"                     
    tableI="ratings_by_item"                  
    system="movieRecommend"
    label="als1"
    casOutU={name="als_u1" replace=true}
    casOutI={name="als_i1" replace=true}
    rateinfo="avg_user"
    maxIter=20                                                   
    hold = "holdout_users"                  
    seed = 1234
    details = True                      
    k=50                                                                        
    /*fconv=1e-6 */
    stagnation = 10                         
    threshold = 0.1 ;                     
run;  
1 REPLY 1
joeFurbee
Community Manager

Hi @jhw_

Do you mean rateinfo vs ratioinfo? If so, you can find more info in SAS Documentation for recomAls Action. rateinfo has the following definition: 

rateInfo={castable}

specifies the in-memory table that contains the rating summary information. Typically, the table contains the average rating for an item or the average rating by a user. The recomRateinfo action can be used to create these tables.

 

Moreover recomRateInfo action has the following:

Summarizes rating information.

 

Hope this is what you were looking for.


Join us for SAS Community Trivia
SAS Bowl XXXVI, Data Simulation
Wednesday, December 13, 2023, at 10 a.m. ET | #SASBowl

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 663 views
  • 0 likes
  • 2 in conversation