Skip to content

DynamicDiff within template_spec help #847

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

You must be logged in to vote

Ok I think the issue is the use of Iterators.product. You should be able to fix it by putting a [:] on the end to just get a single flat list of all combinations:

- combinations = collect(Iterators.product(vals, vals, vals, vals, vals, x6_vals))
+ combinations = collect(Iterators.product(vals, vals, vals, vals, vals, x6_vals))[:]

And they should be wrapped in ValidVector before input

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gm89uk
Comment options

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