Skip to content

Boolean features #436

Answered by MilesCranmer
AKHCE asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AKHCE,

There is no one-fits-all solution, it will really depend on your problem and what you want. At the end of the day, all calculations will be done using continuous scalars. But indeed you can map categorical/boolean problems into that space without much issue, so boolean problems and categorical problems are totally doable.

There are two things to consider:

  1. Accuracy. If you just want accuracy I would try all possible strategies: leaving it as categorical (1, 2, 3, etc)., one-hot, other mappings or combinations.
  2. Interpretability. This is entirely dependent on the problem and what you would find interpretable.

Categorical mappings would definitely work if the equation makes sense…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AKHCE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PySR PySR-related discussion SymbolicRegression.jl SymbolicRegression.jl-related discussion
2 participants