Guys, how can you get assignment 5 (4th lesson) to work?

The 3rd block of code:

def read_data(filename):
  f = zipfile.ZipFile(filename)
  for name in f.namelist():
    return tf.compat.as_str(f.read(name)).split()
  f.close()

words = read_data(filename)
print('Data size %d' % len(words))

tf.compat does not seem to exist in the TensorFlow version mentioned in lesson 1. Besides, how is a return value inside a cycle supposed to work?!

EDIT: I see that you need to use TensorFlow 6.0: http://stackoverflow.com/questions/35248476/tensorflow-compat-modules-issues

-- Ricardo Cruz

date: 2016-01-25 21:06:07

name: ud730

date: 2016-01-25 21:06:07 name: ud730

Just saying about the previous comment, you need to raise everything to a power of (e) like "e^3.0" so yeah, probably why it's not working


Is this ud730 learning from us ..?? wondering

I do agree with the previous comment: I did a simple X divided by the sum of the whole array but it did not pass the test case. I would be very grateful to see the test cases used and have the criteria fleshed out more precisely. At the moment this is barrier exercise for anyone unfamiliar with the function or trying to implement functions of this sort. Prerequisites: Basic Machine Learning, Python programming basics+, algebra, basic calculus date: 2016-01-25 21:06:07

name: ud730

Starting off and having to make us provide a softmax function..... no wonder people can't do AI.

date: 2016-01-25 21:06:07

name: ud730

date: 2016-01-25 21:06:07

This guy knows the subject but may have never taught!!! Asks vague questions, provides no material, etc....

^Hey man I agree that some supplemental material would be nice but I think that otherwise he's doing a great job.

name: ud730

ud730

.___________. _______ .__   __.      _______.  ______   .______      _______  __        ______   ____    __    ____ 
|           ||   ____||  \ |  |     /       | /  __  \  |   _  \    |   ____||  |      /  __  \  \   \  /  \  /   / 
`---|  |----`|  |__   |   \|  |    |   (----`|  |  |  | |  |_)  |   |  |__   |  |     |  |  |  |  \   \/    \/   /  
    |  |     |   __|  |  . `  |     \   \    |  |  |  | |      /    |   __|  |  |     |  |  |  |   \            /   
    |  |     |  |____ |  |\   | .----)   |   |  `--'  | |  |\  \.   |  |     |  `----.|  `--'  |    \    /\    /    
    |__|     |_______||__| \__| |_______/     \______/  | _| `._|   |__|     |_______| \______/      \__/  \__/
                                                                                                                                                
TTTTTTTTTTTTTTTTTTTTTTHHHHHHHHH     HHHHHHHHEEEEEEEEEEEEEEEEEEEEEE              AAA              NNNNNNNN        NNNNNNNN    OOOOOOOOO     
T:::::::::::::::::::::H:::::::H     H:::::::E::::::::::::::::::::E             A:::A             N:::::::N       N::::::N  OO:::::::::OO   
T:::::::::::::::::::::H:::::::H     H:::::::E::::::::::::::::::::E            A:::::A            N::::::::N      N::::::NOO:::::::::::::OO 
T:::::TT:::::::TT:::::HH::::::H     H::::::HEE::::::EEEEEEEEE::::E           A:::::::A           N:::::::::N     N::::::O:::::::OOO:::::::O
TTTTTT  T:::::T  TTTTTT H:::::H     H:::::H   E:::::E       EEEEEE          A:::::::::A          N::::::::::N    N::::::O::::::O   O::::::O
        T:::::T         H:::::H     H:::::H   E:::::E                      A:::::A:::::A         N:::::::::::N   N::::::O:::::O     O:::::O
        T:::::T         H::::::HHHHH::::::H   E::::::EEEEEEEEEE           A:::::A A:::::A        N:::::::N::::N  N::::::O:::::O     O:::::O
        T:::::T         H:::::::::::::::::H   E:::::::::::::::E          A:::::A   A:::::A       N::::::N N::::N N::::::O:::::O     O:::::O
        T:::::T         H:::::::::::::::::H   E:::::::::::::::E         A:::::A     A:::::A      N::::::N  N::::N:::::::O:::::O     O:::::O
        T:::::T         H::::::HHHHH::::::H   E::::::EEEEEEEEEE        A:::::AAAAAAAAA:::::A     N::::::N   N:::::::::::O:::::O     O:::::O
        T:::::T         H:::::H     H:::::H   E:::::E                 A:::::::::::::::::::::A    N::::::N    N::::::::::O:::::O     O:::::O
        T:::::T         H:::::H     H:::::H   E:::::E       EEEEEE   A:::::AAAAAAAAAAAAA:::::A   N::::::N     N:::::::::O::::::O   O::::::O
      TT:::::::TT     HH::::::H     H::::::HEE::::::EEEEEEEE:::::E  A:::::A             A:::::A  N::::::N      N::::::::O:::::::OOO:::::::O
      T:::::::::T     H:::::::H     H:::::::E::::::::::::::::::::E A:::::A               A:::::A N::::::N       N:::::::NOO:::::::::::::OO 
      T:::::::::T     H:::::::H     H:::::::E::::::::::::::::::::EA:::::A                 A:::::AN::::::N        N::::::N  OO:::::::::OO   
      TTTTTTTTTTT     HHHHHHHHH     HHHHHHHHEEEEEEEEEEEEEEEEEEEEEAAAAAAA                   AAAAAANNNNNNNN         NNNNNNN    OOOOOOOOO     

ud730 is ..what??

ud730 = status 200 OK!

very.

What's this page for?

def CourseMaterial(object):
    return "object"

why isn't this course's material available

^.^!

:)

Use your time wisely. (By 'wisely' I mean 'in editing a wiki page on a Udacity course')

Hmm...

Thanks for the course However, does this mean I have to provide the materials myself?

Too 1337 for me ._.

++++++++++++[>++++++>+<<-]
>>-[>+++++++++>++++++++++>++++>+++>+++++>+<<<<<<-]
<.>>++.>--..+++.>.>-.
<<++++++.<-.>>>>.----.---.<+.>>-.

FYI the above code prints "Hello, ud730!"