File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1313 matrix :
1414 # Select the Python versions to test against
1515 os : ["ubuntu-latest", "macos-latest"]
16- python-version : ["3.10", "3.11"]
16+ python-version : ["3.10", "3.11", "3.12" ]
1717 fail-fast : true
1818 steps :
1919 - name : Check out the code
Original file line number Diff line number Diff line change 1- __version__ = "0.0.8 "
1+ __version__ = "0.0.9 "
22
33__all__ = ["__version__" ]
Original file line number Diff line number Diff line change 1- from dataclasses import dataclass
1+ from dataclasses import dataclass , field
22from typing import Tuple
33
44from jaxtyping import Float
@@ -18,7 +18,9 @@ class Noise(AdditiveTransform):
1818 Normal with 0 loc and 0.1 scale.
1919 """
2020
21- noise_dist : TimeVaryingParameter = TimeVaryingParameter (sampling_dist = norm (0 , 0.1 ))
21+ noise_dist : TimeVaryingParameter = field (
22+ default_factory = lambda : TimeVaryingParameter (sampling_dist = norm (0 , 0.1 ))
23+ )
2224 _slots : Tuple [str ] = ("noise_dist" ,)
2325
2426 def get_values (self , data : Dataset ) -> Float [np .ndarray , "N D" ]:
You can’t perform that action at this time.
0 commit comments