Handling records with no actual data in the target time series data

0

We are using AWS Forecast to predict the price trends of a certain product. When preparing the target time series data, we are considering using past price records for each product. However, some products are only available for certain periods, resulting in days without price data. When making predictions in this situation, it feels like the forecasts are slightly lower than the actual prices. Is this because the missing data days were predicted as zeros? Additionally, how can we interpret the days with missing data not as zeros but as "days when the product is not available" for better prediction?

질문됨 8달 전184회 조회
1개 답변
0

If you don't specify a filling logic then by default Amazon Forecast will fill any missing values with zeros. To change this default behavior you need to perform missing value filling, by specifying the types of filling to implement when you call the CreatePredictor operation. Filling logic is specified in FeaturizationMethod objects using JSON like the example below: [ { "AttributeName": "target_value", "FeaturizationPipeline": [ { "FeaturizationMethodName": "filling", "FeaturizationMethodParameters": { "aggregation": "sum", "middlefill": "zero", "backfill": "nan" } } ] }, { "AttributeName": "price", "FeaturizationPipeline": [ { "FeaturizationMethodName": "filling", "FeaturizationMethodParameters": { "middlefill": "median", "backfill": "value", "backfill_value": "2", "futurefill": "max" } } ] } ]

Your target time series data supports the following filling methods:

  • "zero" - 0 filling.
  • "value" - an integer or float number.
  • "nan" - not a number.
  • "mean" - the mean value from the data series.
  • "median" - the median value from the data series.
  • "min" - the minimum value from the data series.
  • "max" - the maximum value from the data series.

You can also reference the documentation here for more information - https://docs.aws.amazon.com/forecast/latest/dg/howitworks-missing-values.html

AWS
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠