Git Product home page Git Product logo

homework2's People

Contributors

yenchenlin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

homework2's Issues

When I ran cells of HW2_Policy_Graident, it appeared 3 errors. But I couldn't find a solution.

ImportError Traceback (most recent call last)
in ()
2 import tensorflow as tf
3 import numpy as np
----> 4 from policy_gradient import util
5 from policy_gradient.policy import CategoricalPolicy
6 from policy_gradient.baselines.linear_feature_baseline import LinearFeatureBaseline

/home/haiyang/homework2/policy_gradient/util.py in ()
1 from gym.spaces import Box, Discrete
2 import numpy as np
----> 3 from scipy.signal import lfilter
4
5 def flatten_space(space):

ImportError: No module named 'scipy'

NameError Traceback (most recent call last)
in ()
2
3 # Construct a neural network to represent policy which maps observed state to action.
----> 4 in_dim = util.flatten_space(env.observation_space)
5 out_dim = util.flatten_space(env.action_space)
6 hidden_dim = 8

NameError: name 'util' is not defined

NameError Traceback (most recent call last)
in ()
3 path_length = 200
4 discount_rate = 0.99
----> 5 baseline = LinearFeatureBaseline(env.spec)
6
7 po = PolicyOptimizer(env, policy, baseline, n_iter, n_episode, path_length,

NameError: name 'LinearFeatureBaseline' is not defined

.py version of HW2

Hi all, for people who suffer from using iPython, you can also download and work on this assignment using HW2_Policy_Graident.py provided here.

Basically, this file contains the same code as HW2_Policy_Graident.ipynb.

Assignment Submission

When submitting assignment, just add the newly downloaded HW2_Policy_Graident.py file into your homework2 repo and push it to your forked repository.

Then, open a Pull Request to this repository.

Math Formula

If you are writing assignment in this manner, you can find math formula provided in the description of problem 2 here:

screen shot 2016-10-07 at 5 31 21 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.