Skip to content

Commit 603d2a9

Browse files
committed
sentiment.rb: odd numbers in net layout are no longer needed with AVX.
1 parent 7c1c90d commit 603d2a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sentiment.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_sentences(filename)
3636
# This trivial approach works, getting around 80% with 3000 inputs and
3737
# 150 hidden layers.
3838

39-
NumInputs = 3003
39+
NumInputs = 3000
4040
NumSections = 2
4141

4242
def sentences_to_inputs(sentences)
@@ -119,7 +119,7 @@ def interactive(r)
119119
r = Redis.new(:driver => :hiredis)
120120
r.del(:sentiment)
121121

122-
r.send('nr.create',:sentiment,:classifier,NumInputs,51,'->',2,:DATASET,1400,:TEST,600)
122+
r.send('nr.create',:sentiment,:classifier,NumInputs,50,'->',2,:DATASET,1400,:TEST,600)
123123

124124
insert_data(r,"sentiment/txt_sentoken/neg/",SentimentNeg)
125125
insert_data(r,"sentiment/txt_sentoken/pos/",SentimentPos)

0 commit comments

Comments
 (0)