Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrescim committed May 21, 2022
1 parent 0ede241 commit 45c4305
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const sk = require('scikitjs')
sk.setBackend(tf)
```

Note: If you have ESM enabled (by setting type="module" in your package.json), then you can consume this libary with import / export, like in the following code block.
Note: If you have ESM enabled (by setting type="module" in your package.json), then you can consume this library with import / export, like in the following code block.

```js
import * as tf from '@tensorflow/tfjs-node'
Expand Down
8 changes: 5 additions & 3 deletions docs/docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ Let's discover **Scikit.js in less than 5 minutes**.
Get started by **installing the library**.

```shell
npm install scikitjs
npm install scikitjs @tensorflow/tfjs
```

or

```shell
yarn add scikitjs
yarn add scikitjs @tensorflow/tfjs
```

## Build a model

Build a simple Linear Regression

```js
import { LinearRegression } from 'scikitjs'
import * as tf from '@tensorflow/tfjs'
import { LinearRegression, setBackend } from 'scikitjs'
setBackend(tf)

let X = [
[2, 3],
Expand Down

0 comments on commit 45c4305

Please sign in to comment.