Skip to content

Commit

Permalink
Capitalize and add punctuation to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbo committed Aug 13, 2018
1 parent 520b1c2 commit 3646d64
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_theano.py
Expand Up @@ -5,16 +5,16 @@

class TestTheano(unittest.TestCase):
def test_addition(self):
# declare two symbolic floating-point scalars
# Declare two symbolic floating-point scalars.
a = tensor.dscalar()
b = tensor.dscalar()

# create a simple expression
# Create a simple expression.
c = a + b

# convert the expression into a callable object that takes (a,b)
# values as input and computes a value for c
# Convert the expression into a callable object that takes (a,b)
# values as input and computes a value for 'c'.
f = theano.function([a,b], c)

# bind 1.5 to 'a', 2.5 to 'b', and evaluate 'c'
# Bind 1.5 to 'a', 2.5 to 'b', and evaluate 'c'.
self.assertEqual(4.0, f(1.5, 2.5))

0 comments on commit 3646d64

Please sign in to comment.