Skip to content

TypeError: __init__() got an unexpected keyword argument 'initial_amount' #518

Closed
@shintafiaa

Description

@shintafiaa

I got a bug on cell number [18]. Line code number 14 is red underlined.

here is the code which is red underlined:
e_train_gym = StockTradingEnv(df = train, **env_kwargs)

here is the error warning:
TypeError Traceback (most recent call last)
in ()
12 }
13
---> 14 e_train_gym = StockTradingEnv(df = train, **env_kwargs)

TypeError: init() got an unexpected keyword argument 'initial_amount'

How to solve this bug? thank's before.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions