@xyo-network/diviner-forecasting-method-arima 2.110.18 → 2.111.0
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/dist/browser/{index.js → index.mjs} +1 -1
- package/dist/{node/index.js → neutral/index.mjs} +1 -1
- package/dist/{neutral/index.js → node/index.mjs} +1 -1
- package/package.json +8 -8
- package/src/arima/configured/spec/seasonalArima.spec.ts +1 -1
- package/src/types/index.d.ts +1 -1
- package/tsconfig.json +1 -1
- /package/dist/browser/{index.js.map → index.mjs.map} +0 -0
- /package/dist/neutral/{index.js.map → index.mjs.map} +0 -0
- /package/dist/node/{index.js.map → index.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.
|
|
7
|
+
"version": "2.111.0",
|
|
8
8
|
"description": "XYO Archivist",
|
|
9
9
|
"sideeffects": false,
|
|
10
10
|
"engines": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"import": {
|
|
22
22
|
"types": "./dist/browser/index.d.mts",
|
|
23
|
-
"default": "./dist/browser/index.
|
|
23
|
+
"default": "./dist/browser/index.mjs"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"node": {
|
|
@@ -30,24 +30,24 @@
|
|
|
30
30
|
},
|
|
31
31
|
"import": {
|
|
32
32
|
"types": "./dist/node/index.d.mts",
|
|
33
|
-
"default": "./dist/node/index.
|
|
33
|
+
"default": "./dist/node/index.mjs"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"main": "dist/node/index.cjs",
|
|
40
|
-
"module": "dist/node/index.
|
|
40
|
+
"module": "dist/node/index.mjs",
|
|
41
41
|
"author": "Arie Trouw",
|
|
42
42
|
"license": "LGPL-3.0-only",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/diviner-forecasting-model": "^2.
|
|
45
|
-
"@xyo-network/payload-model": "^2.
|
|
44
|
+
"@xyo-network/diviner-forecasting-model": "^2.111.0",
|
|
45
|
+
"@xyo-network/payload-model": "^2.111.0",
|
|
46
46
|
"arima": "^0.2.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
50
|
-
"@xylabs/tsconfig": "^3.
|
|
49
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.5",
|
|
50
|
+
"@xylabs/tsconfig": "^3.15.5",
|
|
51
51
|
"typescript": "^5.5.4"
|
|
52
52
|
},
|
|
53
53
|
"type": "module"
|
|
@@ -9,7 +9,7 @@ const transformer = (payload: Payload) => (payload as Payload<{ data: number }>)
|
|
|
9
9
|
describe('seasonalArimaForecasting', () => {
|
|
10
10
|
it('should forecast', async () => {
|
|
11
11
|
const length = 10
|
|
12
|
-
const actual: number[] = Array.from({ length }, (_, i) => (i / (length - 1)) * twoPi).map(
|
|
12
|
+
const actual: number[] = Array.from({ length }, (_, i) => (i / (length - 1)) * twoPi).map(x => Math.sin(x) + 1)
|
|
13
13
|
const payloads = actual.map((data) => {
|
|
14
14
|
return { data, schema: 'network.xyo.test' }
|
|
15
15
|
})
|
package/src/types/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare interface ARIMAOptions {
|
|
|
28
28
|
s?: number
|
|
29
29
|
method?: ARIMAMethod // ARIMA method (default: 0)
|
|
30
30
|
optimizer?: OptimizationMethod // optimization method (default: 6)
|
|
31
|
-
transpose?: boolean //transpose exogenous array when fitting SARIMAX (default: false)
|
|
31
|
+
transpose?: boolean // transpose exogenous array when fitting SARIMAX (default: false)
|
|
32
32
|
verbose?: boolean // verbose output (default: true)
|
|
33
33
|
}
|
|
34
34
|
|
package/tsconfig.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|