Did you know ... Search Documentation:
Pack logistic_regression -- prolog/logistic_regression.pl
PublicShow source

?- example_log_r(100,Coeff). it should return [1,2,3]

 logistic_regression(+X, +Y, +It, -Coeff) is det
perform It iterations of logistic regression on data X,Y and return the coefficients in Coeff X is a matrix with one row per example and one entry per predictor variable except for the last one that should always be 1 (used for the intercept). Y is a vector with one element per example encoding the class (0 or 1) So X is [[x_1(1),x_2(1),...,1], [x_1(2),x_2(2),...,1], ... [x_1(N),x_2(N),...,1]] and Y is Y=[y(1),y(2),...,y(N)]

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 example_log_r(Arg1, Arg2)