radanalyticsio / jiminy-predictor

a predictor service for a spark based recommendation app
Apache License 2.0
2 stars 4 forks source link

add an int cast for user and topk #13

Closed elmiko closed 6 years ago

elmiko commented 6 years ago

The recommendProducts method needs to have integers as its parameters, under some conditions the user id may be passed as a string. This change will ensure that both values are integers, or throw an error in the process.

ruivieira commented 6 years ago

@elmiko awesome, thanks.