scalar-autograd 0.1.0 → 0.1.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/Optimizers.ts +2 -2
- package/README.md +8 -0
- package/Value.ts +1 -1
- package/package.json +1 -1
package/Optimizers.ts
CHANGED
|
@@ -53,7 +53,7 @@ export abstract class Optimizer {
|
|
|
53
53
|
* @property weightDecay: L2 regularization multiplier (default 0). Ignored for plain SGD.
|
|
54
54
|
* @property gradientClip: Maximum absolute value for gradient updates (default 0: no clipping).
|
|
55
55
|
*/
|
|
56
|
-
interface OptimizerOptions {
|
|
56
|
+
export interface OptimizerOptions {
|
|
57
57
|
learningRate?: number;
|
|
58
58
|
weightDecay?: number;
|
|
59
59
|
gradientClip?: number;
|
|
@@ -96,7 +96,7 @@ export class SGD extends Optimizer {
|
|
|
96
96
|
* @property beta2: Exponential decay rate for 2nd moment (default 0.999).
|
|
97
97
|
* @property epsilon: Numerical stability fudge factor (default 1e-8).
|
|
98
98
|
*/
|
|
99
|
-
interface AdamOptions extends OptimizerOptions {
|
|
99
|
+
export interface AdamOptions extends OptimizerOptions {
|
|
100
100
|
beta1?: number;
|
|
101
101
|
beta2?: number;
|
|
102
102
|
epsilon?: number;
|
package/README.md
CHANGED
|
@@ -101,6 +101,7 @@ This pattern—forward pass, backward for gradients, and calling `optimizer.step
|
|
|
101
101
|
|
|
102
102
|
All API operations work with both `Value` and raw number inputs (numbers are automatically wrapped as non-grad constants).
|
|
103
103
|
|
|
104
|
+
|
|
104
105
|
## Testing
|
|
105
106
|
|
|
106
107
|
To run the test suite and verify the correctness of ScalarAutograd, execute the following command in your project directory:
|
|
@@ -109,5 +110,12 @@ To run the test suite and verify the correctness of ScalarAutograd, execute the
|
|
|
109
110
|
npm run test
|
|
110
111
|
```
|
|
111
112
|
|
|
113
|
+
## Deploy to npm
|
|
114
|
+
|
|
115
|
+
Start "Git Bash" terminal
|
|
116
|
+
Type ./release.sh
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
112
120
|
## License
|
|
113
121
|
MIT
|
package/Value.ts
CHANGED