-
-
Notifications
You must be signed in to change notification settings - Fork 530
Open
Description
Hi there,
It's the very first time that I want to use Tensorforce. I have a problem with creating an agent. I get an error as follows:
from tensorforce.agents import Agent
from tensorforce.environments import Environment
from environment import ASLenvironment
from tensorforce.execution import Runner
from ALB_parser import ABLparser
from AssemblyLine import AssemblyLine
assy_info = ABLparser("instance_n=20_2.txt")
assy = AssemblyLine(assy_info.task_times, assy_info.precedence_rels, 5, 588)
environment = Environment.create(environment=ASLenvironment(assy), max_episode_timesteps=1000)
agent = Agent.create(
agent='tensorforce', environment=environment, update=64,
optimizer=dict(optimizer='adam', learning_rate=1e-3),
objective='policy_gradient', reward_estimation=dict(horizon=20)
)
...\pythonProject\venv\lib\site-packages\tensorforce\core\module.py", line 569, in fn
Module.scope_stack.append(scope)
AttributeError: 'NoneType' object has no attribute 'append'
I reviewed the Module class and I realized that the scope_stack variable is not initialized by initialize().
what is the problem?
thank you
Metadata
Metadata
Assignees
Labels
No labels