Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
09f006f
1
Parent(s):
5f486e9
Bump version with atanh_clip operator
Browse files- Project.toml +1 -1
- docs/operators.md +1 -1
- pysr/sr.py +5 -1
- setup.py +1 -1
Project.toml
CHANGED
@@ -2,5 +2,5 @@
|
|
2 |
SymbolicRegression = "8254be44-1295-4e6a-a16d-46603ac705cb"
|
3 |
|
4 |
[compat]
|
5 |
-
SymbolicRegression = "0.5.
|
6 |
julia = "1.5"
|
|
|
2 |
SymbolicRegression = "8254be44-1295-4e6a-a16d-46603ac705cb"
|
3 |
|
4 |
[compat]
|
5 |
+
SymbolicRegression = "0.5.15"
|
6 |
julia = "1.5"
|
docs/operators.md
CHANGED
@@ -32,7 +32,7 @@ of these and other valid operators are stated below.
|
|
32 |
`atan`,
|
33 |
`asinh`,
|
34 |
`acosh_abs`,
|
35 |
-
`atanh
|
36 |
`erf`,
|
37 |
`erfc`,
|
38 |
`gamma`,
|
|
|
32 |
`atan`,
|
33 |
`asinh`,
|
34 |
`acosh_abs`,
|
35 |
+
`atanh_clip` (=atanh((x+1)%2 - 1)),
|
36 |
`erf`,
|
37 |
`erfc`,
|
38 |
`gamma`,
|
pysr/sr.py
CHANGED
@@ -40,8 +40,10 @@ sympy_mappings = {
|
|
40 |
'asin': lambda x : sympy.asin(x),
|
41 |
'atan': lambda x : sympy.atan(x),
|
42 |
'acosh':lambda x : sympy.acosh(abs(x) + 1),
|
|
|
43 |
'asinh':lambda x : sympy.asinh(x),
|
44 |
-
'atanh':lambda x : sympy.atanh(x),
|
|
|
45 |
'abs': lambda x : abs(x),
|
46 |
'mod': lambda x, y : sympy.Mod(x, y),
|
47 |
'erf': lambda x : sympy.erf(x),
|
@@ -479,6 +481,8 @@ log_abs=SymbolicRegression.log_abs
|
|
479 |
log2_abs=SymbolicRegression.log2_abs
|
480 |
log10_abs=SymbolicRegression.log10_abs
|
481 |
log1p_abs=SymbolicRegression.log1p_abs
|
|
|
|
|
482 |
sqrt_abs=SymbolicRegression.sqrt_abs
|
483 |
neg=SymbolicRegression.neg
|
484 |
greater=SymbolicRegression.greater
|
|
|
40 |
'asin': lambda x : sympy.asin(x),
|
41 |
'atan': lambda x : sympy.atan(x),
|
42 |
'acosh':lambda x : sympy.acosh(abs(x) + 1),
|
43 |
+
'acosh_abs':lambda x : sympy.acosh(abs(x) + 1),
|
44 |
'asinh':lambda x : sympy.asinh(x),
|
45 |
+
'atanh':lambda x : sympy.atanh(sympy.Mod(x+1, 2)-1),
|
46 |
+
'atanh_clip':lambda x : sympy.atanh(sympy.Mod(x+1, 2)-1),
|
47 |
'abs': lambda x : abs(x),
|
48 |
'mod': lambda x, y : sympy.Mod(x, y),
|
49 |
'erf': lambda x : sympy.erf(x),
|
|
|
481 |
log2_abs=SymbolicRegression.log2_abs
|
482 |
log10_abs=SymbolicRegression.log10_abs
|
483 |
log1p_abs=SymbolicRegression.log1p_abs
|
484 |
+
acosh_abs=SymbolicRegression.acosh_abs
|
485 |
+
atanh_clip=SymbolicRegression.atanh_clip
|
486 |
sqrt_abs=SymbolicRegression.sqrt_abs
|
487 |
neg=SymbolicRegression.neg
|
488 |
greater=SymbolicRegression.greater
|
setup.py
CHANGED
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
5 |
|
6 |
setuptools.setup(
|
7 |
name="pysr", # Replace with your own username
|
8 |
-
version="0.5.
|
9 |
author="Miles Cranmer",
|
10 |
author_email="[email protected]",
|
11 |
description="Simple and efficient symbolic regression",
|
|
|
5 |
|
6 |
setuptools.setup(
|
7 |
name="pysr", # Replace with your own username
|
8 |
+
version="0.5.15",
|
9 |
author="Miles Cranmer",
|
10 |
author_email="[email protected]",
|
11 |
description="Simple and efficient symbolic regression",
|