Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
updated and added formatted outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
yawetse committed Jul 28, 2018
1 parent 123ea11 commit 62afc93
Show file tree
Hide file tree
Showing 15 changed files with 2,486 additions and 1,840 deletions.
14 changes: 9 additions & 5 deletions docs/API.md
Expand Up @@ -6,23 +6,27 @@ Mulitple Linear Regression with Tensorflow

### `constructor(options: Object, customTF: Object)`

### `yShape: *`

### `xShape: *`

### `model: *`

### `train(x_matrix: *, y_matrix: *): Object`
### `train(x_matrix: Array<Array<number>>, y_matrix: Array<Array<number>>): Object`

Asynchronously trains tensorflow model

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| x_matrix | * | | independent variables |
| y_matrix | * | | dependent variables |
| x_matrix | Array<Array<number>> | | independent variables |
| y_matrix | Array<Array<number>> | | dependent variables |

### `calculate(matrix: *): Promise`
### `calculate(matrix: Array<Array<number>>|Array<number>): {data: Promise}`

Predicts new dependent variables

| Name | Type | Attribute | Description |
| --- | --- | --- | --- |
| matrix | * | | new test independent variables |
| matrix | Array<Array<number>>|Array<number> | | new test independent variables |

# Function

0 comments on commit 62afc93

Please sign in to comment.