mini-jstorch 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Docs/About.md +6 -6
- package/README.md +2 -3
- package/index.js +10 -2
- package/package.json +4 -4
- package/src/jstorch.js +6 -0
package/Docs/About.md
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
## General Information
|
|
6
6
|
|
|
7
|
-
- **Project Name:**
|
|
8
|
-
- **Internal Name:** JST (
|
|
7
|
+
- **Project Name:** mini-jstorch
|
|
8
|
+
- **Internal Name:** JST (JST-orch)
|
|
9
9
|
|
|
10
10
|
> Note:
|
|
11
|
-
> Early versions of
|
|
11
|
+
> Early versions of JST do not strictly follow semantic versioning conventions
|
|
12
12
|
> (e.g. `0.0.1` for patches, `0.1.0` for minor releases, `1.0.0` for major releases).
|
|
13
13
|
> This inconsistency reflects the early learning and experimental phase of the project.
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
## 1. Engine Architecture Limitations (
|
|
17
|
+
## 1. Engine Architecture Limitations (JST Core)
|
|
18
18
|
|
|
19
|
-
This section outlines the known structural weaknesses of the
|
|
19
|
+
This section outlines the known structural weaknesses of the JST engine.
|
|
20
20
|
Although the architecture may appear complex, it is currently sensitive and tightly coupled.
|
|
21
21
|
|
|
22
22
|
### Identified Limitations
|
|
@@ -68,7 +68,7 @@ In short, `fu_` exists to ensure safety, clarity, and consistency for end users
|
|
|
68
68
|
|
|
69
69
|
## 3. SJK (Shortcut JST Keywords) Reference
|
|
70
70
|
|
|
71
|
-
This section lists commonly used abbreviations and keywords within the
|
|
71
|
+
This section lists commonly used abbreviations and keywords within the mini-jstorch ecosystem.
|
|
72
72
|
|
|
73
73
|
**Format:** `"KEYWORD" : "Full Name / Meaning"`
|
|
74
74
|
|
package/README.md
CHANGED
|
@@ -6,8 +6,7 @@ A lightweight JavaScript neural network library for rapid frontend AI experiment
|
|
|
6
6
|
|
|
7
7
|
Mini-JSTorch is a high-performance, minimalist JavaScript library for building neural networks. It runs efficiently in Frontend environments, including low-end devices. The library enables quick experimentation and learning in AI without compromising stability, accuracy, or training reliability.
|
|
8
8
|
|
|
9
|
-
This release, **
|
|
10
|
-
|
|
9
|
+
This release, **1.7.1** allows users to access the JST package from the `browser global scope` or `via HTML` (Sorry I was forgot this feature for a long time).
|
|
11
10
|
---
|
|
12
11
|
|
|
13
12
|
## New Features Highlights
|
|
@@ -23,7 +22,7 @@ This release, **version 1.7.0:** We introduce **Softmax Layer**, **Tokenizer**,
|
|
|
23
22
|
- **Layers:** Linear, Flatten, Conv2D
|
|
24
23
|
- **Activations:** ReLU, Sigmoid, Tanh, LeakyReLU, GELU, Mish, SiLU, ELU
|
|
25
24
|
- **Loss Functions:** MSELoss, CrossEntropyLoss
|
|
26
|
-
- **Optimizers:** Adam, SGD, LION,
|
|
25
|
+
- **Optimizers:** Adam, SGD, LION, AdamW
|
|
27
26
|
- **Schedulers:** StepLR, LambdaLR, ReduceLROnPlateau
|
|
28
27
|
- **Regularization:** Dropout, BatchNorm2D
|
|
29
28
|
- **Utilities:** zeros, randomMatrix, softmax, crossEntropy, dot, addMatrices, reshape, stack, flatten, eye, concat
|
package/index.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
// package root
|
|
2
|
-
//
|
|
3
|
-
|
|
2
|
+
// ugh, i forgot provide JST can use in browser global scope...
|
|
3
|
+
|
|
4
|
+
// now we provided JST use in browser global scope
|
|
5
|
+
import * as JST from './src/jstorch.js';
|
|
6
|
+
|
|
7
|
+
if (typeof window !== 'undefined') {
|
|
8
|
+
window.JST = JST; // Global JST (JSTorch) object
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export * from './src/jstorch.js';
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mini-jstorch",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A lightweight JavaScript neural network library for learning AI concepts and rapid Frontend experimentation. PyTorch-inspired, zero dependencies, perfect for educational use.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"neural-network",
|
|
9
|
+
"JST",
|
|
9
10
|
"javascript",
|
|
10
11
|
"lightweight-torch",
|
|
11
12
|
"lightweight",
|
|
12
13
|
"small-torch",
|
|
13
14
|
"javascript-torch",
|
|
14
|
-
"ai-model",
|
|
15
15
|
"jstorch",
|
|
16
|
-
"
|
|
17
|
-
"front-end",
|
|
16
|
+
"front-end-torch",
|
|
18
17
|
"machine-learning",
|
|
19
18
|
"tiny-ml",
|
|
19
|
+
"frontend-nn",
|
|
20
20
|
"frontend-ai",
|
|
21
21
|
"mini-neural-network"
|
|
22
22
|
],
|
package/src/jstorch.js
CHANGED
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
* SOFTWARE.
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
+
// --------------------------------------------------------------
|
|
28
|
+
// PLEASE READ THE README.md FILE BEFORE USING THIS PACKAGE!
|
|
29
|
+
// This package is designed to be used in a Node.js/browser environment.
|
|
30
|
+
// See the Documentation for more details.
|
|
31
|
+
// --------------------------------------------------------------
|
|
32
|
+
|
|
27
33
|
// ---------------------- DONOT USE THESE (ENGINE INTERNALS) ----------------------
|
|
28
34
|
export function zeros(rows, cols) {
|
|
29
35
|
return Array.from({length:rows},()=>Array(cols).fill(0));
|