Skip to content

Commit

Permalink
Use static categorical feature in benchmark_m4 (awslabs#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
rshyamsundar authored and Ayed committed Nov 29, 2019
1 parent bcc2568 commit de4e485
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/benchmark_m4.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ def evaluate(dataset_name, estimator):
estimator = estimator(
prediction_length=dataset.metadata.prediction_length,
freq=dataset.metadata.freq,
use_feat_static_cat=True,
cardinality=[
feat_static_cat.cardinality
for feat_static_cat in dataset.metadata.feat_static_cat
],
)

print(f"evaluating {estimator} on {dataset}")
Expand Down

0 comments on commit de4e485

Please sign in to comment.