Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlackford committed Feb 16, 2019
1 parent dfca645 commit d1ddda9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Black Or White

## About

This is a small module that uses a neural network to determine whether the text colour should be black or white. The neural network library that this uses is [Brain.js](https://github.com/BrainJS/brain.js).

# Examples
Expand Down Expand Up @@ -90,7 +88,7 @@ The data is an array of objects that have two keys: input and output.

If the appendDefaultData config option is true then the data passed in will be appended to the default data.

Default:
### Default
```javascript
const data = [
{input: { r: 0.0, g: 0.0, b: 0.0 }, output: { white: 1 }},
Expand All @@ -106,7 +104,7 @@ const data = [

## nn_config

This config object is for the Brain.js neural network constructor. (The following is )
This config object is for the Brain.js neural network constructor.

### activation
There are four types of activation functions that Brain.js (and BlackOrWhite) can support:
Expand Down

0 comments on commit d1ddda9

Please sign in to comment.