MilesCranmer commited on
Commit
0e8b257
1 Parent(s): e29a6da

Fix README example

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -246,7 +246,7 @@ model = PySRRegressor(
246
  # "SymbolicRegression.jl" repo, for custom modifications.
247
  update=False,
248
  # ^ Don't update Julia packages
249
- extra_sympy_mappings={"cos2": lambda x: sympy.cos(x)^2},
250
  extra_torch_mappings={sympy.cos: torch.cos},
251
  # ^ Not needed as cos already defined, but this
252
  # is how you define custom torch operators.
 
246
  # "SymbolicRegression.jl" repo, for custom modifications.
247
  update=False,
248
  # ^ Don't update Julia packages
249
+ extra_sympy_mappings={"cos2": lambda x: sympy.cos(x)**2},
250
  extra_torch_mappings={sympy.cos: torch.cos},
251
  # ^ Not needed as cos already defined, but this
252
  # is how you define custom torch operators.