Skip to content

ml/american_option.ipynb is working but unable to save the policy #12

@Daman2461

Description

@Daman2461

ml/american_option.ipynb is working but unable to save the policy. It gives an error of ..TypeError Traceback (most recent call last)
in <cell line: 11>()
9
10 # Create a policy saver
---> 11 tf_policy_saver = policy_saver.PolicySaver(agent.policy)
12
13 # Save the policy

10 frames
/usr/lib/python3.10/inspect.py in _check_instance(obj, attr)
1688 instance_dict = {}
1689 try:
-> 1690 instance_dict = object.getattribute(obj, "dict")
1691 except AttributeError:
1692 pass

TypeError: this dict descriptor does not support '_DictWrapper' objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions