Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types of input and prediction differ #16

Open
behrica opened this issue Sep 12, 2024 · 3 comments
Open

types of input and prediction differ #16

behrica opened this issue Sep 12, 2024 · 3 comments

Comments

@behrica
Copy link
Member

behrica commented Sep 12, 2024

train:

:x :target
0 0
1 1

predict:

x y :target
0.76449511 0.23550489 0.0

0 vs 0.0

logictic regression does gis for example.
Root caused by accepting int as modl input and cast it yo double;

@behrica
Copy link
Member Author

behrica commented Sep 12, 2024

casting happens here:

(let [posterior (double-array n-labels)]

@behrica
Copy link
Member Author

behrica commented Sep 12, 2024

The smile model takes only double-arras double and returns double arrays.
We cast int data to double , but not back to int.
-> input and output are of different type

-> a problem as well for categorical maps. There we "cast" as well to get them working:
https://github.com/techascent/tech.ml.dataset/blob/598e34461386a697d1f34db11c556fedf79225d0/src/tech/v3/dataset/categorical.clj#L176

@behrica
Copy link
Member Author

behrica commented Sep 14, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant