Skip to content

Commit

Permalink
better tutorial docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrescim committed May 21, 2022
1 parent 45c4305 commit 8163483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Let's discover **Scikit.js in less than 5 minutes**.

## Getting Started

Get started by **installing the library**.
Get started by **installing the library as well as it's dependencies**.

```shell
npm install scikitjs @tensorflow/tfjs
Expand All @@ -25,10 +25,12 @@ yarn add scikitjs @tensorflow/tfjs
Build a simple Linear Regression

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

// Perform a linear regression
let X = [
[2, 3],
[1, 4],
Expand Down

0 comments on commit 8163483

Please sign in to comment.