Skip to content

Commit 4da866e

Browse files
author
Yusuke Sugomori
committed
rm MLP
1 parent 48a3d5c commit 4da866e

File tree

3 files changed

+12
-82
lines changed

3 files changed

+12
-82
lines changed

DeepBeliefNets.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33

44
'''
55
Deep Belief Nets
6+
7+
References :
8+
- Y. Bengio, P. Lamblin, D. Popovici, H. Larochelle: Greedy Layer-Wise
9+
Training of Deep Networks, Advances in Neural Information Processing
10+
Systems 19, 2007
11+
12+
13+
- DeepLearningTutorials
14+
https://github.com/lisa-lab/DeepLearningTutorials
15+
16+
617
'''
718

819
import sys

HiddenLayer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ def __init__(self, input, n_in, n_out,\
4343
self.b = b
4444

4545
self.activation = activation
46-
47-
# linear_output = numpy.dot(input, self.W) + self.b
48-
# self.output = (linear_output if activation is None
49-
# else activation(linear_output))
5046

5147
# self.params = [self.W, self.b]
5248

@@ -55,7 +51,7 @@ def output(self, input=None):
5551
self.input = input
5652

5753
linear_output = numpy.dot(self.input, self.W) + self.b
58-
# linear_output = numpy.dot(self.input, self.W) + self.b
54+
5955
return (linear_output if self.activation is None
6056
else self.activation(linear_output))
6157

MultiLayerPerceptron.py

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)