Skip to content

Commit

Permalink
Merge pull request #74 from dev-coop/integration
Browse files Browse the repository at this point in the history
Integration
  • Loading branch information
levithomason committed Oct 31, 2015
2 parents 277aed7 + 125888d commit 25f8984
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "anny",
"version": "0.1.0",
"description": "An artificial neural network, yo!",
"main": "index.js",
"main": "dist/anny.js",
"files": [
"dist",
"src"
],
"scripts": {
"coverage-check": "istanbul check-coverage",
"coverage-report": "codeclimate-test-reporter < coverage/lcov.info",
Expand Down Expand Up @@ -30,7 +34,7 @@
},
"homepage": "https://github.com/dev-coop/anny#readme",
"dependencies": {
"babel": "^5.8.23",
"babel": "^5.8.29",
"babel-eslint": "^4.1.3",
"babel-loader": "^5.3.2",
"bower": "^1.4.1",
Expand Down
17 changes: 17 additions & 0 deletions src/Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,43 @@
* @namespace
*/
const DATA = {
/**
* The 4 possible input patterns to a OR gate.
* 2 inputs, 1 output, 4 samples
*/
ORGate: [
{input: [0, 0], output: [0]},
{input: [0, 1], output: [1]},
{input: [1, 0], output: [1]},
{input: [1, 1], output: [1]},
],

/**
* The 4 possible input patterns to a XOR gate.
* 2 inputs, 1 output, 4 samples
*/
XORGate: [
{input: [0, 0], output: [0]},
{input: [0, 1], output: [1]},
{input: [1, 0], output: [1]},
{input: [1, 1], output: [0]},
],

/**
* The 4 possible input patterns to a AND gate.
* 2 inputs, 1 output, 4 samples
*/
ANDGate: [
{input: [0, 0], output: [0]},
{input: [0, 1], output: [0]},
{input: [1, 0], output: [0]},
{input: [1, 1], output: [1]},
],

/**
* The 4 possible input patterns to a NAND gate.
* 2 inputs, 1 output, 4 samples
*/
NANDGate: [
{input: [0, 0], output: [1]},
{input: [0, 1], output: [1]},
Expand All @@ -35,6 +51,7 @@ const DATA = {
/**
* Iris flower data set. The output labels are: Iris setosa, Iris versicolor,
* Iris virginica. https://www.wikiwand.com/en/Iris_flower_data_set
* 4 inputs, 3 output, 150 samples
*/
irisFlower: [
{input: [5.1, 3.5, 1.4, 0.2], output: [1, 0, 0]},
Expand Down

0 comments on commit 25f8984

Please sign in to comment.