admin管理员组文章数量:1336728
I used this example code to create my own time series forecasting example. All seems to work just fine but I do feel uneasy when "item_id" is used in training but not allowed in prediction. After creating an endpoint, if I create an input template I need to create the request like
"start": str(fcstDate),
> "target": group["target_value"].fillna("NaN").tolist()[:-prediction_length],
> "dynamic_feat": [
> group[feature_name].tolist()
> for feature_name in dynamic_feat_list
> ],
> "cat": [int(group.iloc[0]["static_feature_1"])],
which in sample code given as:
{'instances': [{'target': [33.1595, 30.1788, 28.5022, 27.5708, 27.7571], 'start': '2014-05-30 01:00:00', 'dynamic_feat': [[1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 5.0], [1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 5.0], [1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 5.0]], 'cat': [0, 1]}]}
where item_id is not present. If I add item_id which I believe necessary, I get an error. This becomes a bigger issue when I use TimeSeriesDataConfig for explainability (TSX) work as specified in the sample code. item_id issue is back again. To construct TimeSeriesDataConfig, you must specify item_id, How does the endpoint accept item_id in SageMakerClarifyProcessor but not in sagemaker.predictor.Predictor. This is a bit confusing. Any guidance here would be greatly appreciated.
本文标签: deepar in sagemaker env issue with itemid columnStack Overflow
版权声明:本文标题:deepar in sagemaker env.. issue with item_id column - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742395853a2466903.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论