Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de57940

Browse files
cleaned
1 parent 565871c commit de57940

File tree

14 files changed

+15
-10
lines changed

14 files changed

+15
-10
lines changed

‎lib/__init__.py‎

Whitespace-only changes.

‎example_conv.py‎ renamed to ‎lib/example_conv.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
from network import *
21
import numpy as np
32

3+
from network import Network
4+
from network.layers import ConvLayer, ActivationLayer
5+
from network.activations import tanh, tanh_prime
6+
from network.losses import mse, mse_prime
7+
48
# training data
59
x_train = [np.random.rand(10,10,1)]
610
y_train = [np.random.rand(4,4,2)]

‎example_xor.py‎ renamed to ‎lib/example_xor.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
from network import *
21
import numpy as np
32

3+
from network import Network
4+
from network.layers import FCLayer, ActivationLayer
5+
from network.activations import tanh, tanh_prime
6+
from network.losses import mse, mse_prime
7+
48
# training data
59
x_train = np.array([[[0,0]], [[0,1]], [[1,0]], [[1,1]]])
610
y_train = np.array([[[0]], [[1]], [[1]], [[0]]])

‎lib/network/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .network import Network
File renamed without changes.

‎lib/network/layers/__init__.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from .layer import Layer
2+
from .fc_layer import FCLayer
3+
from .activation_layer import ActivationLayer
4+
from .conv_layer import ConvLayer
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /