@aws-sdk/client-forecast 3.28.0 → 3.32.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/CHANGELOG.md +35 -0
- package/Forecast.ts +10 -12
- package/commands/GetAccuracyMetricsCommand.ts +10 -12
- package/dist/cjs/Forecast.js.map +1 -1
- package/dist/cjs/commands/GetAccuracyMetricsCommand.js +10 -12
- package/dist/cjs/commands/GetAccuracyMetricsCommand.js.map +1 -1
- package/dist/cjs/models/models_0.js +11 -3
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_json1_1.js +66 -59
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/Forecast.js.map +1 -1
- package/dist/es/commands/GetAccuracyMetricsCommand.js +10 -12
- package/dist/es/commands/GetAccuracyMetricsCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +8 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_json1_1.js +68 -62
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/types/Forecast.d.ts +10 -12
- package/dist/types/commands/GetAccuracyMetricsCommand.d.ts +10 -12
- package/dist/types/models/models_0.d.ts +69 -35
- package/dist/types/ts3.4/Forecast.d.ts +10 -12
- package/dist/types/ts3.4/commands/GetAccuracyMetricsCommand.d.ts +10 -12
- package/dist/types/ts3.4/models/models_0.d.ts +69 -35
- package/models/models_0.ts +76 -35
- package/package.json +31 -31
- package/protocols/Aws_json1_1.ts +72 -61
package/models/models_0.ts
CHANGED
|
@@ -1509,6 +1509,14 @@ export namespace InputDataConfig {
|
|
|
1509
1509
|
});
|
|
1510
1510
|
}
|
|
1511
1511
|
|
|
1512
|
+
export enum OptimizationMetric {
|
|
1513
|
+
AverageWeightedQuantileLoss = "AverageWeightedQuantileLoss",
|
|
1514
|
+
MAPE = "MAPE",
|
|
1515
|
+
MASE = "MASE",
|
|
1516
|
+
RMSE = "RMSE",
|
|
1517
|
+
WAPE = "WAPE",
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1512
1520
|
export interface CreatePredictorRequest {
|
|
1513
1521
|
/**
|
|
1514
1522
|
* <p>A name for the predictor.</p>
|
|
@@ -1588,7 +1596,12 @@ export interface CreatePredictorRequest {
|
|
|
1588
1596
|
PerformAutoML?: boolean;
|
|
1589
1597
|
|
|
1590
1598
|
/**
|
|
1591
|
-
* <
|
|
1599
|
+
* <note>
|
|
1600
|
+
* <p> The <code>LatencyOptimized</code> AutoML override strategy is only available in private beta.
|
|
1601
|
+
* Contact AWS Support or your account manager to learn more about access privileges.
|
|
1602
|
+
* </p>
|
|
1603
|
+
* </note>
|
|
1604
|
+
* <p>Used to overide the default AutoML strategy, which is to optimize predictor accuracy.
|
|
1592
1605
|
* To apply an AutoML strategy that minimizes training time, use
|
|
1593
1606
|
* <code>LatencyOptimized</code>.</p>
|
|
1594
1607
|
* <p>This parameter is only valid for predictors trained using AutoML.</p>
|
|
@@ -1685,6 +1698,11 @@ export interface CreatePredictorRequest {
|
|
|
1685
1698
|
* </ul>
|
|
1686
1699
|
*/
|
|
1687
1700
|
Tags?: Tag[];
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* <p>The accuracy metric used to optimize the predictor.</p>
|
|
1704
|
+
*/
|
|
1705
|
+
OptimizationMetric?: OptimizationMetric | string;
|
|
1688
1706
|
}
|
|
1689
1707
|
|
|
1690
1708
|
export namespace CreatePredictorRequest {
|
|
@@ -2785,7 +2803,12 @@ export interface DescribePredictorResponse {
|
|
|
2785
2803
|
PerformAutoML?: boolean;
|
|
2786
2804
|
|
|
2787
2805
|
/**
|
|
2788
|
-
* <
|
|
2806
|
+
* <note>
|
|
2807
|
+
* <p> The <code>LatencyOptimized</code> AutoML override strategy is only available in private beta.
|
|
2808
|
+
* Contact AWS Support or your account manager to learn more about access privileges.
|
|
2809
|
+
* </p>
|
|
2810
|
+
* </note>
|
|
2811
|
+
* <p>The AutoML strategy used to train the predictor. Unless <code>LatencyOptimized</code>
|
|
2789
2812
|
* is specified, the AutoML strategy optimizes predictor accuracy.</p>
|
|
2790
2813
|
* <p>This parameter is only valid for predictors trained using AutoML.</p>
|
|
2791
2814
|
*/
|
|
@@ -2923,6 +2946,11 @@ export interface DescribePredictorResponse {
|
|
|
2923
2946
|
* </ul>
|
|
2924
2947
|
*/
|
|
2925
2948
|
LastModificationTime?: Date;
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* <p>The accuracy metric used to optimize the predictor.</p>
|
|
2952
|
+
*/
|
|
2953
|
+
OptimizationMetric?: OptimizationMetric | string;
|
|
2926
2954
|
}
|
|
2927
2955
|
|
|
2928
2956
|
export namespace DescribePredictorResponse {
|
|
@@ -3071,32 +3099,34 @@ export enum EvaluationType {
|
|
|
3071
3099
|
}
|
|
3072
3100
|
|
|
3073
3101
|
/**
|
|
3074
|
-
* <p>
|
|
3075
|
-
*
|
|
3076
|
-
* part of the <a>Metrics</a> object.
|
|
3077
|
-
* </p>
|
|
3102
|
+
* <p> Provides detailed error metrics to evaluate the performance of a predictor. This object
|
|
3103
|
+
* is part of the <a>Metrics</a> object. </p>
|
|
3078
3104
|
*/
|
|
3079
3105
|
export interface ErrorMetric {
|
|
3080
3106
|
/**
|
|
3081
|
-
* <p>
|
|
3082
|
-
* The Forecast type used to compute WAPE and RMSE.
|
|
3083
|
-
* </p>
|
|
3107
|
+
* <p> The Forecast type used to compute WAPE, MAPE, MASE, and RMSE. </p>
|
|
3084
3108
|
*/
|
|
3085
3109
|
ForecastType?: string;
|
|
3086
3110
|
|
|
3087
3111
|
/**
|
|
3088
|
-
* <p>
|
|
3089
|
-
* The weighted absolute percentage error (WAPE).
|
|
3090
|
-
* </p>
|
|
3112
|
+
* <p> The weighted absolute percentage error (WAPE). </p>
|
|
3091
3113
|
*/
|
|
3092
3114
|
WAPE?: number;
|
|
3093
3115
|
|
|
3094
3116
|
/**
|
|
3095
|
-
* <p>
|
|
3096
|
-
* The root-mean-square error (RMSE).
|
|
3097
|
-
* </p>
|
|
3117
|
+
* <p> The root-mean-square error (RMSE). </p>
|
|
3098
3118
|
*/
|
|
3099
3119
|
RMSE?: number;
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* <p>The Mean Absolute Scaled Error (MASE)</p>
|
|
3123
|
+
*/
|
|
3124
|
+
MASE?: number;
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* <p>The Mean Absolute Percentage Error (MAPE)</p>
|
|
3128
|
+
*/
|
|
3129
|
+
MAPE?: number;
|
|
3100
3130
|
}
|
|
3101
3131
|
|
|
3102
3132
|
export namespace ErrorMetric {
|
|
@@ -3109,14 +3139,13 @@ export namespace ErrorMetric {
|
|
|
3109
3139
|
}
|
|
3110
3140
|
|
|
3111
3141
|
/**
|
|
3112
|
-
* <p>The weighted loss value for a quantile. This object is part of the
|
|
3113
|
-
* <a>Metrics</a> object.</p>
|
|
3142
|
+
* <p>The weighted loss value for a quantile. This object is part of the <a>Metrics</a> object.</p>
|
|
3114
3143
|
*/
|
|
3115
3144
|
export interface WeightedQuantileLoss {
|
|
3116
3145
|
/**
|
|
3117
3146
|
* <p>The quantile. Quantiles divide a probability distribution into regions of equal
|
|
3118
|
-
* probability. For example, if the distribution was divided into 5 regions of equal
|
|
3119
|
-
*
|
|
3147
|
+
* probability. For example, if the distribution was divided into 5 regions of equal probability,
|
|
3148
|
+
* the quantiles would be 0.2, 0.4, 0.6, and 0.8.</p>
|
|
3120
3149
|
*/
|
|
3121
3150
|
Quantile?: number;
|
|
3122
3151
|
|
|
@@ -3137,8 +3166,8 @@ export namespace WeightedQuantileLoss {
|
|
|
3137
3166
|
}
|
|
3138
3167
|
|
|
3139
3168
|
/**
|
|
3140
|
-
* <p>Provides metrics that are used to evaluate the performance of a predictor. This object
|
|
3141
|
-
*
|
|
3169
|
+
* <p>Provides metrics that are used to evaluate the performance of a predictor. This object is
|
|
3170
|
+
* part of the <a>WindowSummary</a> object.</p>
|
|
3142
3171
|
*/
|
|
3143
3172
|
export interface Metrics {
|
|
3144
3173
|
/**
|
|
@@ -3155,12 +3184,16 @@ export interface Metrics {
|
|
|
3155
3184
|
WeightedQuantileLosses?: WeightedQuantileLoss[];
|
|
3156
3185
|
|
|
3157
3186
|
/**
|
|
3158
|
-
* <p>
|
|
3159
|
-
*
|
|
3160
|
-
* average percentage error (WAPE).
|
|
3161
|
-
* </p>
|
|
3187
|
+
* <p> Provides detailed error metrics for each forecast type. Metrics include root-mean
|
|
3188
|
+
* square-error (RMSE), mean absolute percentage error (MAPE), mean absolute scaled error (MASE),
|
|
3189
|
+
* and weighted average percentage error (WAPE). </p>
|
|
3162
3190
|
*/
|
|
3163
3191
|
ErrorMetrics?: ErrorMetric[];
|
|
3192
|
+
|
|
3193
|
+
/**
|
|
3194
|
+
* <p>The average value of all weighted quantile losses.</p>
|
|
3195
|
+
*/
|
|
3196
|
+
AverageWeightedQuantileLoss?: number;
|
|
3164
3197
|
}
|
|
3165
3198
|
|
|
3166
3199
|
export namespace Metrics {
|
|
@@ -3173,11 +3206,10 @@ export namespace Metrics {
|
|
|
3173
3206
|
}
|
|
3174
3207
|
|
|
3175
3208
|
/**
|
|
3176
|
-
* <p>The metrics for a time range within the evaluation portion of a dataset. This object
|
|
3177
|
-
*
|
|
3178
|
-
* <p>The <code>TestWindowStart</code> and <code>TestWindowEnd</code> parameters are
|
|
3179
|
-
*
|
|
3180
|
-
* <a>EvaluationParameters</a> object.</p>
|
|
3209
|
+
* <p>The metrics for a time range within the evaluation portion of a dataset. This object is
|
|
3210
|
+
* part of the <a>EvaluationResult</a> object.</p>
|
|
3211
|
+
* <p>The <code>TestWindowStart</code> and <code>TestWindowEnd</code> parameters are determined
|
|
3212
|
+
* by the <code>BackTestWindowOffset</code> parameter of the <a>EvaluationParameters</a> object.</p>
|
|
3181
3213
|
*/
|
|
3182
3214
|
export interface WindowSummary {
|
|
3183
3215
|
/**
|
|
@@ -3226,8 +3258,7 @@ export namespace WindowSummary {
|
|
|
3226
3258
|
}
|
|
3227
3259
|
|
|
3228
3260
|
/**
|
|
3229
|
-
* <p>The results of evaluating an algorithm. Returned as part of the
|
|
3230
|
-
* <a>GetAccuracyMetrics</a> response.</p>
|
|
3261
|
+
* <p>The results of evaluating an algorithm. Returned as part of the <a>GetAccuracyMetrics</a> response.</p>
|
|
3231
3262
|
*/
|
|
3232
3263
|
export interface EvaluationResult {
|
|
3233
3264
|
/**
|
|
@@ -3237,8 +3268,8 @@ export interface EvaluationResult {
|
|
|
3237
3268
|
|
|
3238
3269
|
/**
|
|
3239
3270
|
* <p>The array of test windows used for evaluating the algorithm. The
|
|
3240
|
-
*
|
|
3241
|
-
*
|
|
3271
|
+
* <code>NumberOfBacktestWindows</code> from the <a>EvaluationParameters</a> object
|
|
3272
|
+
* determines the number of windows in the array.</p>
|
|
3242
3273
|
*/
|
|
3243
3274
|
TestWindows?: WindowSummary[];
|
|
3244
3275
|
}
|
|
@@ -3259,11 +3290,21 @@ export interface GetAccuracyMetricsResponse {
|
|
|
3259
3290
|
PredictorEvaluationResults?: EvaluationResult[];
|
|
3260
3291
|
|
|
3261
3292
|
/**
|
|
3262
|
-
* <
|
|
3293
|
+
* <note>
|
|
3294
|
+
* <p> The <code>LatencyOptimized</code> AutoML override strategy is only available in private beta.
|
|
3295
|
+
* Contact AWS Support or your account manager to learn more about access privileges.
|
|
3296
|
+
* </p>
|
|
3297
|
+
* </note>
|
|
3298
|
+
* <p>The AutoML strategy used to train the predictor. Unless <code>LatencyOptimized</code>
|
|
3263
3299
|
* is specified, the AutoML strategy optimizes predictor accuracy.</p>
|
|
3264
3300
|
* <p>This parameter is only valid for predictors trained using AutoML.</p>
|
|
3265
3301
|
*/
|
|
3266
3302
|
AutoMLOverrideStrategy?: AutoMLOverrideStrategy | string;
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* <p>The accuracy metric used to optimize the predictor.</p>
|
|
3306
|
+
*/
|
|
3307
|
+
OptimizationMetric?: OptimizationMetric | string;
|
|
3267
3308
|
}
|
|
3268
3309
|
|
|
3269
3310
|
export namespace GetAccuracyMetricsResponse {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-forecast",
|
|
3
3
|
"description": "AWS SDK for JavaScript Forecast Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,45 +27,45 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"downlevel-dts": "0.7.0",
|
|
64
64
|
"jest": "^26.1.0",
|
|
65
65
|
"rimraf": "^3.0.0",
|
|
66
66
|
"ts-jest": "^26.4.1",
|
|
67
67
|
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.3.
|
|
68
|
+
"typescript": "~4.3.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=10.0.0"
|