File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff 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
5254let X = [[1 ], [2 ]]
5355let 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
8286let X = [[1 ], [2 ]]
8387let 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
117123let X = [[1 ], [- 1 ]]
118124let y = [1 , 0 ]
You can’t perform that action at this time.
0 commit comments