From ea3d2facd42034c9116db4b6f2f55667ed2bb0fb Mon Sep 17 00:00:00 2001 From: Claudio Scheer Date: Mon, 6 Apr 2020 01:52:17 -0300 Subject: [PATCH] Add output for MLP network --- {mpl-xor => mlp-xor}/.gitignore | 0 {mpl-xor => mlp-xor}/README.md | 4 +++- {mpl-xor => mlp-xor}/main.py | 0 mlp-xor/output.txt | 5 +++++ 4 files changed, 8 insertions(+), 1 deletion(-) rename {mpl-xor => mlp-xor}/.gitignore (100%) rename {mpl-xor => mlp-xor}/README.md (57%) rename {mpl-xor => mlp-xor}/main.py (100%) create mode 100644 mlp-xor/output.txt diff --git a/mpl-xor/.gitignore b/mlp-xor/.gitignore similarity index 100% rename from mpl-xor/.gitignore rename to mlp-xor/.gitignore diff --git a/mpl-xor/README.md b/mlp-xor/README.md similarity index 57% rename from mpl-xor/README.md rename to mlp-xor/README.md index c51b614..17cb3ab 100644 --- a/mpl-xor/README.md +++ b/mlp-xor/README.md @@ -1,3 +1,5 @@ # About -This is an example of a multilayer perceptron neural network that can learn how to deal with the XOR operator. The activation function cannot be linear. \ No newline at end of file +This is an example of a multilayer perceptron neural network that can learn how to deal with the XOR operator. The activation function can not be linear. + +This example is extremely dependent on the inicialization of the weigths. \ No newline at end of file diff --git a/mpl-xor/main.py b/mlp-xor/main.py similarity index 100% rename from mpl-xor/main.py rename to mlp-xor/main.py diff --git a/mlp-xor/output.txt b/mlp-xor/output.txt new file mode 100644 index 0000000..3b60143 --- /dev/null +++ b/mlp-xor/output.txt @@ -0,0 +1,5 @@ +tensor(1.9984e-15, device='cuda:0', grad_fn=) +tensor([[5.9605e-08], + [1.0000e+00], + [1.0000e+00], + [2.9802e-08]], device='cuda:0', grad_fn=) -- GitLab