Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 18, 2024
1 parent f574164 commit 9a561f3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Covariance Matrix Adaptation Evolution Strategy."""

from typing import Sequence

import numpy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Provides algorithms with access to most of garage's features."""

import copy
import os
import time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def _simulate_behavior(self):
pairs = env_model.state_action_pairs_leading_to_outcome(s_sim)

# add predecessors to queue if their priority exceeds thresh
for (_s, _a) in pairs:
for _s, _a in pairs:
self._update_queue(_s, _a)

def _update(self, s, a):
Expand Down
3 changes: 2 additions & 1 deletion neodroidagent/common/memory/transitions/transitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def non_terminal_numerical(self):
@dataclass
class ValuedTransitionPoint(TransitionPoint):
"""
__slots__=['state','action','successor_state','signal','terminal',"distribution","value_estimate"]"""
__slots__=['state','action','successor_state','signal','terminal',"distribution","value_estimate"]
"""

__slots__ = TransitionPoint.__slots__ + ["distribution", "value_estimate"]
state: Any
Expand Down
3 changes: 2 additions & 1 deletion neodroidagent/entry_points/session_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def session_factory(
):
r"""
Entry point start a starting a training session with the functionality of parsing cmdline arguments and
confirming configuration to use before training and overwriting of default training configurations"""
confirming configuration to use before training and overwriting of default training configurations
"""

if config is None:
config = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def __init__(
:param signal_space: used for scaling the intrinsic reward returned by this module. Can be used to control how
the fluctuation scale of the intrinsic signal
:param weight: balances the importance between forward and inverse model
:param intrinsic_signal_factor: balances the importance between extrinsic and intrinsic signal."""
:param intrinsic_signal_factor: balances the importance between extrinsic and intrinsic signal.
"""

assert (
len(observation_space.shape) == 1
Expand Down
4 changes: 3 additions & 1 deletion samples/curriculum/experimental/difficulty.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def color_sample(identifier):
neodroid.Configuration(
identifier + "ColorConfigurableG", numpy.random.sample()
),
neodroid.Configuration(identifier + "ColorConfigurableB", numpy.random.sample())
neodroid.Configuration(
identifier + "ColorConfigurableB", numpy.random.sample()
),
# neodroid.Configuration(id+'ColorConfigurableA',
# numpy.random.sample()),
]

0 comments on commit 9a561f3

Please sign in to comment.