Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:MushroomRL/mushroom-rl into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-il-forte committed Jun 11, 2023
2 parents 71488a6 + 0fdeca2 commit c161356
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mushroom_rl/features/basis/polynomial.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def __init__(self, dimensions=None, degrees=None, low=None, high=None):
if low is not None:
self._mean = (low + high) / 2
self._delta = (high - low) / 2
else:
self._mean = None

def __call__(self, x):

Expand All @@ -53,6 +55,7 @@ def __call__(self, x):
def _normalize(self, x):
if self._mean is not None:
return (x - self._mean) / self._delta
return x

def __str__(self):
if self._deg is None:
Expand Down
1 change: 0 additions & 1 deletion mushroom_rl/policy/noise_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def __init__(self, mu, sigma, low, high):
self._add_save_attr(
_approximator='mushroom',
_predict_params='pickle',
_inv_sigma='numpy',
_sigma='numpy',
_low='numpy',
_high='numpy'
Expand Down

0 comments on commit c161356

Please sign in to comment.