Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set default for xbound to None, rather than 5 in FunctionEnvironment.
This fixes the issue with using FunctionEnvironment with the GA optimizer.
  • Loading branch information
Ian Fischer committed Oct 18, 2014
commit f88d80dd1b0578d4282f2f0114547457dc0526c2
2 changes: 1 addition & 1 deletion pybrain/rl/environments/functions/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FunctionEnvironment(Environment, FitnessEvaluator):
# does the function already include a penalization term, to keep search near the origin?
penalized = False

def __init__(self, xdim = None, xopt = None, xbound=5, feasible=True, constrained=False, violation=False, **args):
def __init__(self, xdim = None, xopt = None, xbound=None, feasible=True, constrained=False, violation=False, **args):
self.feasible=feasible
self.constrained=constrained
self.violation=violation
Expand Down