Skip to content

Instantly share code, notes, and snippets.

@sbugrov
Last active July 23, 2017 19:31
Show Gist options
  • Save sbugrov/63f94354eadd3caa9c60abb5d6cc32fe to your computer and use it in GitHub Desktop.
Save sbugrov/63f94354eadd3caa9c60abb5d6cc32fe to your computer and use it in GitHub Desktop.
// XOR Dataset
vector<float> X {
0.0, 0.0,
0.0, 1.0,
1.0, 0.0,
1.0, 1.0};
// Quasi random numbers
vector<float> W0 {
-0.07555777, -0.04661271, -0.0982434, 0.01800294,
-0.03213882, -0.09211904, -0.0674924, 0.04203922};
vector<float> W1 {
0.03445321,
0.07976875,
-0.0502343,
-0.0995293};
// All 0.1s
vector<float> W0_b {
0.1, 0.1, 0.1, 0.1,
0.1, 0.1, 0.1, 0.1};
vector<float> W1_b {
0.1,
0.1,
0.1,
0.1};
vector<float> y {
0.0,
1.0,
1.0,
0.0 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment