# Using SymbolicRegression on binary data?

**URL:** <https://discourse.julialang.org/t/using-symbolicregression-on-binary-data/135314>\
**Category:** General Usage\
**Tags:** question, symbolic-regression\
**Created:** [January 28, 2026, 11:52pm UTC](https://discourse.julialang.org/t/using-symbolicregression-on-binary-data/135314 "2026-01-28T23:52:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atthom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/atthom/32/7173_2.png) [@atthom](https://discourse.julialang.org/u/atthom)\
**Post date:** [January 28, 2026, 11:52pm UTC](https://discourse.julialang.org/t/using-symbolicregression-on-binary-data/135314/1 "2026-01-28T23:52:41Z")

</div>

I was fiddling with the excellent [SymbolicRegression.jl](https://github.com/MilesCranmer/SymbolicRegression.jl) when I had issue executing this code:

```julia-auto
using SymbolicRegression

A = rand(Bool, (1000, 5))
B = @. (A[:, 1] | A[:, 2]) & (!A[:, 3]) ⊻ A[:, 4]

# Define options for symbolic regression
options = SymbolicRegression.Options(;
    binary_operators=[&, |, ⊻],
    unary_operators=[!],
    progress=true,
    verbosity=1,
)

# Run symbolic regression
hall_of_fame = equation_search(
    A, 
    B; 
    niterations=300,  
    options=options,
    parallelism=:serial
)
# => ERROR: InexactError: Bool(-100.0)

```

Does SymbolicRegression support binary data type?  
Maybe there is a way to make it work.
