GHamrouni / Recommender

A C library for product recommendations/suggestions using collaborative filtering (CF)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid arguments in test.c

piyushrungta25 opened this issue · comments

Function call in test.c

estimate_rating_from_factors(0, 0, learned, model)

gives the following error

test.c: In function ‘main’:
test.c:80:4: error: incompatible type for argument 2 of ‘estimate_rating_from_factors’
estimate_rating_from_factors(0, 0, learned, model));

Function prototype from recommender.h

double
estimate_rating_from_factors(rating_estimator_parameters_t* estim_param,
struct learning_model model);

Comment from above prototype has 4 arguments while you have only defined 2.