Closed jakkos-net closed 1 year ago
Interesting enough changing the order of x
and y
yields the correct result:
let x = array![[1.0], [1.0], [0.0], [0.0]];
let y = array![1, 1, 0, 0];
@bytesnake Are you familiar with linfa-logistic
? I'm honestly not sure why it's not working.
I originally posted this on the rust-ml zulip here and another user suggested I open an issue on this repo as it may be a bug.
I'm trying out linfa-logistic and wanted to get a simple case running, however the output confuses me and I'm not sure if I'm doing something wrong. I was attempting to have the model just map [1.0] to 1 and [0.0] to 0, but it seems to predict [1,1,1,1]? Any help would be appreciated :)