This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2019 Uber Technologies, Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"). | |
# You may not use this file except in compliance with the License. | |
# A copy of the License is located at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# or in the "license" file accompanying this file. This file is distributed | |
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
# uncomment to deactivate progress bar | |
#from gluonts.env import env | |
#env._push(use_tqdm=False) | |
from gluonts.dataset.common import ListDataset | |
from gluonts.dataset.field_names import FieldName | |
from gluonts.model.deepar import DeepAREstimator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import pandas as pd | |
import cudf | |
import numpy as np | |
start = pd.Timestamp(datetime.strptime('2021-03-12 00:00+0000', '%Y-%m-%d %H:%M%z')) | |
end = pd.Timestamp(datetime.strptime('2021-03-12 11:00+0000', '%Y-%m-%d %H:%M%z')) | |
timestamps = pd.date_range(start, end, freq='1H') | |
value = np.random.normal(size=12) | |
df = pd.DataFrame(value, index=timestamps, columns=['value']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import numpy as np | |
import cupy as cp | |
import imageio | |
from random import shuffle | |
from nvidia.dali import Pipeline | |
import nvidia.dali.fn as fn | |
import nvidia.dali.plugin.tf as dali_tf | |
import tensorflow as tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import numpy as np | |
import cupy as cp | |
import imageio | |
from random import shuffle | |
from nvidia.dali import Pipeline | |
import nvidia.dali.fn as fn | |
import nvidia.dali.plugin.tf as dali_tf | |
import tensorflow as tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import numpy as np | |
import cupy as cp | |
import imageio | |
from random import shuffle | |
from nvidia.dali import Pipeline | |
import nvidia.dali.fn as fn | |
import nvidia.dali.plugin.tf as dali_tf | |
import tensorflow as tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gluonts.dataset.repository.datasets import get_dataset | |
from gluonts.model.simple_feedforward import SimpleFeedForwardEstimator | |
from gluonts.model.deepar import DeepAREstimator | |
from gluonts.mx.distribution.gaussian import GaussianOutput | |
from gluonts.mx import Trainer | |
from gluonts.mx.trainer.callback import TrainingHistory | |
from gluonts.evaluation import Evaluator | |
from gluonts.dataset.common import Dataset | |
from gluonts.mx import copy_parameters | |
from gluonts.model.predictor import Predictor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gluonts.dataset.repository.datasets import get_dataset | |
from gluonts.model.simple_feedforward import SimpleFeedForwardEstimator | |
from gluonts.model.deepar import DeepAREstimator | |
from gluonts.mx.distribution.gaussian import GaussianOutput | |
from gluonts.mx import Trainer | |
from gluonts.mx.trainer.callback import TrainingHistory | |
from gluonts.evaluation import Evaluator | |
from gluonts.dataset.common import Dataset | |
from gluonts.mx import copy_parameters | |
from gluonts.model.predictor import Predictor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import pandas as pd | |
import cudf | |
import numpy as np | |
start = pd.Timestamp(datetime.strptime('2021-03-12 00:00+0000', '%Y-%m-%d %H:%M%z')) | |
end = pd.Timestamp(datetime.strptime('2021-03-12 11:00+0000', '%Y-%m-%d %H:%M%z')) | |
timestamps = pd.date_range(start, end, freq='1H') | |
value = np.random.normal(size=12) | |
df = pd.DataFrame(value, index=timestamps, columns=['value']) |
OlderNewer