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 c51b614545c975d162218a7799cb482beb9ac4cf..17cb3ab3cc7ccfb607a0f31978ab645da404bc31 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 0000000000000000000000000000000000000000..3b601431bd6e79eae35c8070a31c0b496e3bb09f --- /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=)