MilesCranmer commited on
Commit
3662fae
1 Parent(s): a4edf2e

Add missing definition of error

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. julia/sr.jl +1 -1
README.md CHANGED
@@ -317,7 +317,7 @@ pd.DataFrame, Results dataframe, giving complexity, MSE, and equations
317
  - [ ] Refresh screen rather than dumping to stdout?
318
  - [ ] Add ability to save state from python
319
  - [ ] Additional degree operators?
320
- - [ ] Multi targets (vector ops). Idea 1: Node struct contains argument for which registers it is applied to. Then, can work with multiple components simultaneously. Though this may be tricky to get right. Idea 2: each op is defined by input/output space. Some operators are flexible, and the spaces should be adjusted automatically. Otherwise, only consider ops that make a tree possible. But will need additional ops here to get it to work.
321
  - [ ] Tree crossover? I.e., can take as input a part of the same equation, so long as it is the same level or below?
322
  - [ ] Consider printing output sorted by score, not by complexity.
323
  - [ ] Dump scores alongside MSE to .csv (and return with Pandas).
 
317
  - [ ] Refresh screen rather than dumping to stdout?
318
  - [ ] Add ability to save state from python
319
  - [ ] Additional degree operators?
320
+ - [ ] Multi targets (vector ops). Idea 1: Node struct contains argument for which registers it is applied to. Then, can work with multiple components simultaneously. Though this may be tricky to get right. Idea 2: each op is defined by input/output space. Some operators are flexible, and the spaces should be adjusted automatically. Otherwise, only consider ops that make a tree possible. But will need additional ops here to get it to work. Idea 3: define each equation in 2 parts: one part that is shared between all outputs, and one that is different between all outputs. Maybe this could be an array of nodes corresponding to each output. And those nodes would define their functions.
321
  - [ ] Tree crossover? I.e., can take as input a part of the same equation, so long as it is the same level or below?
322
  - [ ] Consider printing output sorted by score, not by complexity.
323
  - [ ] Dump scores alongside MSE to .csv (and return with Pandas).
julia/sr.jl CHANGED
@@ -761,7 +761,7 @@ function testConfiguration()
761
  test_output = unaop.(left)
762
  end
763
  end
764
- catch
765
  @printf("\n\nYour configuration is invalid - one of your operators is not well-defined over the real line.\n\n\n")
766
  throw(error)
767
  end
 
761
  test_output = unaop.(left)
762
  end
763
  end
764
+ catch error
765
  @printf("\n\nYour configuration is invalid - one of your operators is not well-defined over the real line.\n\n\n")
766
  throw(error)
767
  end