File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,35 @@ Documentation site: [www.scikitjs.org](https://www.scikitjs.org)
20
20
21
21
For use with modern bundlers in a frontend application, simply
22
22
23
- ``` js
23
+ ``` bash
24
24
npm i scikitjs
25
25
```
26
26
27
+ Usage is similar to other js libraries.
28
+
29
+ ``` js
30
+ import { LinearRegression } from ' scikitjs'
31
+ ```
32
+
27
33
### Backend Users
28
34
29
35
For Node.js users who wish to bind to the Tensorflow C++ library, simply
30
36
37
+ ``` bash
38
+ npm i scikitjs
39
+ ```
40
+
41
+ But then import the node bindings
42
+
43
+ ``` js
44
+ import { LinearRegression } from ' scikitjs/node'
45
+ ```
46
+
47
+ The ` scikitjs/node ` path uses the new "exports" feature of node (which is available in node v13.3+).
48
+ If you are using an older version of node, simply pass in the path to the cjs build
49
+
31
50
``` js
32
- npm i scikitjs- node
51
+ import { LinearRegression } from ' scikitjs/dist/cjs/index.js '
33
52
```
34
53
35
54
### Script src
You can’t perform that action at this time.
0 commit comments