MilesCranmer commited on
Commit
d0ea029
1 Parent(s): 01f9b99

Make order in loss clear

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -121,7 +121,7 @@ model = PySRRegressor(
121
  ],
122
  extra_sympy_mappings={"inv": lambda x: 1 / x},
123
  # ^ Define operator for SymPy as well
124
- loss="loss(x, y) = (x - y)^2",
125
  # ^ Custom loss function (julia syntax)
126
  )
127
  ```
 
121
  ],
122
  extra_sympy_mappings={"inv": lambda x: 1 / x},
123
  # ^ Define operator for SymPy as well
124
+ loss="loss(prediction, target) = (prediction - target)^2",
125
  # ^ Custom loss function (julia syntax)
126
  )
127
  ```