Skip to content

Commit 63a2197

Browse files
committed
more updates
1 parent 8163483 commit 63a2197

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/docs/python.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ Turns into
4747
#### javascript
4848

4949
```js
50-
import { LinearRegression } from 'scikitjs'
50+
import * as tf from '@tensorflow/tfjs'
51+
import { LinearRegression, setBackend } from 'scikitjs'
52+
setBackend(tf)
5153

5254
let X = [[1], [2]]
5355
let y = [10, 20]
@@ -77,7 +79,9 @@ Turns into
7779
#### javascript
7880

7981
```js
80-
import { LinearRegression } from 'scikitjs'
82+
import * as tf from '@tensorflow/tfjs'
83+
import { LinearRegression, setBackend } from 'scikitjs'
84+
setBackend(tf)
8185

8286
let X = [[1], [2]]
8387
let y = [10, 20]
@@ -112,7 +116,9 @@ Turns into
112116
#### javascript
113117

114118
```js
115-
import { LogisticRegression } from 'scikitjs'
119+
import * as tf from '@tensorflow/tfjs'
120+
import { LogisticRegression, setBackend } from 'scikitjs'
121+
setBackend(tf)
116122

117123
let X = [[1], [-1]]
118124
let y = [1, 0]

0 commit comments

Comments
 (0)