diff --git a/NOTICE b/NOTICE index 4a8d8d912f..4124f4f783 100644 --- a/NOTICE +++ b/NOTICE @@ -1,2 +1,2 @@ -Gluon Ts Core -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Gluon Time Series +Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/examples/benchmark_m4.py b/examples/benchmark_m4.py index 861c80dbf8..be91be8ce1 100644 --- a/examples/benchmark_m4.py +++ b/examples/benchmark_m4.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + """ This example shows how to fit a model and evaluate its predictions. """ diff --git a/examples/evaluate_model.py b/examples/evaluate_model.py index 92743f8655..5768de0759 100644 --- a/examples/evaluate_model.py +++ b/examples/evaluate_model.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + """ This example shows how to fit a model and evaluate its predictions. """ diff --git a/gluonts/__init__.py b/gluonts/__init__.py index 3188ed459c..10429c7737 100644 --- a/gluonts/__init__.py +++ b/gluonts/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # !!! DO NOT MODIFY !!! (pkgutil-style namespace package) from pkgutil import extend_path diff --git a/gluonts/block/__init__.py b/gluonts/block/__init__.py index a64d299ea0..a3b0ea4dbd 100644 --- a/gluonts/block/__init__.py +++ b/gluonts/block/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # !!! DO NOT MODIFY !!! (pkgutil-style namespace package) from pkgutil import extend_path diff --git a/gluonts/block/cnn.py b/gluonts/block/cnn.py index a3f27d30b6..c18481e23f 100644 --- a/gluonts/block/cnn.py +++ b/gluonts/block/cnn.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Optional, Union, List, Tuple diff --git a/gluonts/block/decoder.py b/gluonts/block/decoder.py index b929b4ef89..8e0727f134 100644 --- a/gluonts/block/decoder.py +++ b/gluonts/block/decoder.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import List diff --git a/gluonts/block/enc2dec.py b/gluonts/block/enc2dec.py index 1cd60c948c..7f61a63f59 100644 --- a/gluonts/block/enc2dec.py +++ b/gluonts/block/enc2dec.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Tuple diff --git a/gluonts/block/encoder.py b/gluonts/block/encoder.py index f2530e233e..caf4958ad3 100644 --- a/gluonts/block/encoder.py +++ b/gluonts/block/encoder.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import List, Tuple diff --git a/gluonts/block/feature.py b/gluonts/block/feature.py index 3fdb77e980..e97fa5ae83 100644 --- a/gluonts/block/feature.py +++ b/gluonts/block/feature.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Callable, List, Optional # noqa: F401 diff --git a/gluonts/block/mlp.py b/gluonts/block/mlp.py index 259ec579fe..d766765d63 100644 --- a/gluonts/block/mlp.py +++ b/gluonts/block/mlp.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import List diff --git a/gluonts/block/quantile_output.py b/gluonts/block/quantile_output.py index e281a5c77b..9b0fd38950 100644 --- a/gluonts/block/quantile_output.py +++ b/gluonts/block/quantile_output.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import List, Optional, Tuple diff --git a/gluonts/block/rnn.py b/gluonts/block/rnn.py index 2cf5d411c9..535012dc3e 100644 --- a/gluonts/block/rnn.py +++ b/gluonts/block/rnn.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Third-party imports from mxnet.gluon import HybridBlock, rnn diff --git a/gluonts/block/scaler.py b/gluonts/block/scaler.py index c1465b8292..e9df6ed5d2 100644 --- a/gluonts/block/scaler.py +++ b/gluonts/block/scaler.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Tuple diff --git a/gluonts/core/__init__.py b/gluonts/core/__init__.py index 8dbbadfa93..56e654fd9e 100644 --- a/gluonts/core/__init__.py +++ b/gluonts/core/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Relative imports from ._base import fqname_for diff --git a/gluonts/core/_base.py b/gluonts/core/_base.py index d3bd0ded7d..277e7fa013 100644 --- a/gluonts/core/_base.py +++ b/gluonts/core/_base.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + def fqname_for(cls: type) -> str: """Returns the fully qualified name of `cls`.""" return f'{cls.__module__}.{cls.__qualname__}' diff --git a/gluonts/core/component.py b/gluonts/core/component.py index 89197e2324..8f9324f9c2 100644 --- a/gluonts/core/component.py +++ b/gluonts/core/component.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import functools import inspect diff --git a/gluonts/core/exception.py b/gluonts/core/exception.py index e58a134445..4a714c94b7 100644 --- a/gluonts/core/exception.py +++ b/gluonts/core/exception.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import functools diff --git a/gluonts/core/log.py b/gluonts/core/log.py index fbbe872c09..cf4951a804 100644 --- a/gluonts/core/log.py +++ b/gluonts/core/log.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import logging import os diff --git a/gluonts/core/serde.py b/gluonts/core/serde.py index 29dc44b969..e960d5c112 100644 --- a/gluonts/core/serde.py +++ b/gluonts/core/serde.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import importlib import itertools diff --git a/gluonts/dataset/__init__.py b/gluonts/dataset/__init__.py index a64d299ea0..a3b0ea4dbd 100644 --- a/gluonts/dataset/__init__.py +++ b/gluonts/dataset/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # !!! DO NOT MODIFY !!! (pkgutil-style namespace package) from pkgutil import extend_path diff --git a/gluonts/dataset/common.py b/gluonts/dataset/common.py index 62dd7abc86..a4747a0bd5 100644 --- a/gluonts/dataset/common.py +++ b/gluonts/dataset/common.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import shutil from functools import lru_cache diff --git a/gluonts/dataset/jsonl.py b/gluonts/dataset/jsonl.py index b0c66ed6eb..b350cee117 100644 --- a/gluonts/dataset/jsonl.py +++ b/gluonts/dataset/jsonl.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import functools from pathlib import Path diff --git a/gluonts/dataset/loader.py b/gluonts/dataset/loader.py index 7269edbfe1..b3c11b4766 100644 --- a/gluonts/dataset/loader.py +++ b/gluonts/dataset/loader.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import itertools from collections import defaultdict diff --git a/gluonts/dataset/stat.py b/gluonts/dataset/stat.py index e1502e021d..aa3156d94f 100644 --- a/gluonts/dataset/stat.py +++ b/gluonts/dataset/stat.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import math from collections import defaultdict diff --git a/gluonts/dataset/util.py b/gluonts/dataset/util.py index 6237f74fe0..ea2891e840 100644 --- a/gluonts/dataset/util.py +++ b/gluonts/dataset/util.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import logging import os diff --git a/gluonts/dataset/validate.py b/gluonts/dataset/validate.py index a493b2de0e..d030e2b1fd 100644 --- a/gluonts/dataset/validate.py +++ b/gluonts/dataset/validate.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # First-party imports from gluonts.dataset.common import TimeSeriesItem from gluonts.dataset.jsonl import JsonLinesFile diff --git a/gluonts/distribution/__init__.py b/gluonts/distribution/__init__.py index 52aaf15f87..ac77857030 100644 --- a/gluonts/distribution/__init__.py +++ b/gluonts/distribution/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Relative imports from . import bijection from .binned import Binned, BinnedOutput diff --git a/gluonts/distribution/bijection.py b/gluonts/distribution/bijection.py index 0aec25d78d..981da9cdf4 100644 --- a/gluonts/distribution/bijection.py +++ b/gluonts/distribution/bijection.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Optional diff --git a/gluonts/distribution/bijection_output.py b/gluonts/distribution/bijection_output.py index c2155e33a8..63bc1b1708 100644 --- a/gluonts/distribution/bijection_output.py +++ b/gluonts/distribution/bijection_output.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Tuple diff --git a/gluonts/distribution/binned.py b/gluonts/distribution/binned.py index a589599e75..18f22a0b28 100644 --- a/gluonts/distribution/binned.py +++ b/gluonts/distribution/binned.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Tuple, List diff --git a/gluonts/distribution/box_cox_tranform.py b/gluonts/distribution/box_cox_tranform.py index 5438f85895..87b126f59c 100644 --- a/gluonts/distribution/box_cox_tranform.py +++ b/gluonts/distribution/box_cox_tranform.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Dict, List, Tuple diff --git a/gluonts/distribution/distribution.py b/gluonts/distribution/distribution.py index f583a1552b..98b1463eed 100644 --- a/gluonts/distribution/distribution.py +++ b/gluonts/distribution/distribution.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import List, Optional, Tuple diff --git a/gluonts/distribution/distribution_output.py b/gluonts/distribution/distribution_output.py index 058f32539b..8fd56ab585 100644 --- a/gluonts/distribution/distribution_output.py +++ b/gluonts/distribution/distribution_output.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Callable, Dict, Optional, Tuple diff --git a/gluonts/distribution/gaussian.py b/gluonts/distribution/gaussian.py index 804fb7d6a0..b878970ebc 100644 --- a/gluonts/distribution/gaussian.py +++ b/gluonts/distribution/gaussian.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import math from typing import Dict, Optional, Tuple diff --git a/gluonts/distribution/laplace.py b/gluonts/distribution/laplace.py index 2d819f0719..7bcc313dd8 100644 --- a/gluonts/distribution/laplace.py +++ b/gluonts/distribution/laplace.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Dict, Tuple diff --git a/gluonts/distribution/lds.py b/gluonts/distribution/lds.py index 90e190cb46..bd17a2c707 100644 --- a/gluonts/distribution/lds.py +++ b/gluonts/distribution/lds.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + from typing import Tuple, Optional import mxnet as mx diff --git a/gluonts/distribution/lowrank_multivariate_gaussian.py b/gluonts/distribution/lowrank_multivariate_gaussian.py index 07f6f31a83..1b2881b4d9 100644 --- a/gluonts/distribution/lowrank_multivariate_gaussian.py +++ b/gluonts/distribution/lowrank_multivariate_gaussian.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import math from typing import Optional, Tuple diff --git a/gluonts/distribution/mixture.py b/gluonts/distribution/mixture.py index 2f29ba9bdd..73e5631baf 100644 --- a/gluonts/distribution/mixture.py +++ b/gluonts/distribution/mixture.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import List, Optional, Tuple diff --git a/gluonts/distribution/multivariate_gaussian.py b/gluonts/distribution/multivariate_gaussian.py index dac5e91534..48cb906782 100644 --- a/gluonts/distribution/multivariate_gaussian.py +++ b/gluonts/distribution/multivariate_gaussian.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import math from typing import Optional, Tuple diff --git a/gluonts/distribution/neg_binomial.py b/gluonts/distribution/neg_binomial.py index 7d3b6604b7..c684fb0601 100644 --- a/gluonts/distribution/neg_binomial.py +++ b/gluonts/distribution/neg_binomial.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Dict, Optional, Tuple diff --git a/gluonts/distribution/piecewise_linear.py b/gluonts/distribution/piecewise_linear.py index cf7cdd3248..a4c52c362c 100644 --- a/gluonts/distribution/piecewise_linear.py +++ b/gluonts/distribution/piecewise_linear.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Dict, Optional, Tuple, cast diff --git a/gluonts/distribution/student_t.py b/gluonts/distribution/student_t.py index e47cdf89f7..cc41970b77 100644 --- a/gluonts/distribution/student_t.py +++ b/gluonts/distribution/student_t.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import math from typing import Dict, Optional, Tuple diff --git a/gluonts/distribution/transformed_distribution.py b/gluonts/distribution/transformed_distribution.py index 61c4d712a5..73ea349816 100644 --- a/gluonts/distribution/transformed_distribution.py +++ b/gluonts/distribution/transformed_distribution.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Optional, Tuple diff --git a/gluonts/distribution/transformed_distribution_output.py b/gluonts/distribution/transformed_distribution_output.py index 4241004ae3..5bacfeecd7 100644 --- a/gluonts/distribution/transformed_distribution_output.py +++ b/gluonts/distribution/transformed_distribution_output.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from collections import ChainMap from typing import Optional, Tuple diff --git a/gluonts/distribution/uniform.py b/gluonts/distribution/uniform.py index efa340e638..3da18025d3 100644 --- a/gluonts/distribution/uniform.py +++ b/gluonts/distribution/uniform.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Dict, Optional, Tuple diff --git a/gluonts/evaluation/__init__.py b/gluonts/evaluation/__init__.py index 9e6f7ba8d3..2bac171fa2 100644 --- a/gluonts/evaluation/__init__.py +++ b/gluonts/evaluation/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Relative imports from ._base import Evaluator, MultivariateEvaluator, get_seasonality diff --git a/gluonts/evaluation/_base.py b/gluonts/evaluation/_base.py index e68aff1478..13dd6c68a7 100644 --- a/gluonts/evaluation/_base.py +++ b/gluonts/evaluation/_base.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import logging import re diff --git a/gluonts/evaluation/backtest.py b/gluonts/evaluation/backtest.py index 063285ae73..676a8377b8 100644 --- a/gluonts/evaluation/backtest.py +++ b/gluonts/evaluation/backtest.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import logging import re diff --git a/gluonts/gluonts_tqdm.py b/gluonts/gluonts_tqdm.py index e851b9a3c3..4b769fac5e 100644 --- a/gluonts/gluonts_tqdm.py +++ b/gluonts/gluonts_tqdm.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import functools import sys diff --git a/gluonts/gp/__init__.py b/gluonts/gp/__init__.py index e16b85a660..4cfa180fad 100644 --- a/gluonts/gp/__init__.py +++ b/gluonts/gp/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Relative imports from .gaussian_process import GaussianProcess diff --git a/gluonts/gp/gaussian_process.py b/gluonts/gp/gaussian_process.py index 374a84ebf9..ea8589f89e 100644 --- a/gluonts/gp/gaussian_process.py +++ b/gluonts/gp/gaussian_process.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import List, Optional, Tuple diff --git a/gluonts/kernels/__init__.py b/gluonts/kernels/__init__.py index 3adec3e44f..58a73a1e93 100644 --- a/gluonts/kernels/__init__.py +++ b/gluonts/kernels/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Relative imports from .kernel import Kernel from .kernel_output import KernelOutput, KernelOutputDict diff --git a/gluonts/kernels/kernel.py b/gluonts/kernels/kernel.py index 5cc96f20ab..f05e8c396a 100644 --- a/gluonts/kernels/kernel.py +++ b/gluonts/kernels/kernel.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # First-party imports from gluonts.model.common import Tensor diff --git a/gluonts/kernels/kernel_output.py b/gluonts/kernels/kernel_output.py index 958ac3c92c..0cfadaa396 100644 --- a/gluonts/kernels/kernel_output.py +++ b/gluonts/kernels/kernel_output.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Dict, Tuple diff --git a/gluonts/kernels/periodic_kernel.py b/gluonts/kernels/periodic_kernel.py index 8d19435648..8f615e76e4 100644 --- a/gluonts/kernels/periodic_kernel.py +++ b/gluonts/kernels/periodic_kernel.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import math from typing import Dict, Tuple diff --git a/gluonts/kernels/rbf_kernel.py b/gluonts/kernels/rbf_kernel.py index 10a669eec5..755307c26b 100644 --- a/gluonts/kernels/rbf_kernel.py +++ b/gluonts/kernels/rbf_kernel.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import math from typing import Dict, Tuple diff --git a/gluonts/model/__init__.py b/gluonts/model/__init__.py index a64d299ea0..a3b0ea4dbd 100644 --- a/gluonts/model/__init__.py +++ b/gluonts/model/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # !!! DO NOT MODIFY !!! (pkgutil-style namespace package) from pkgutil import extend_path diff --git a/gluonts/model/common.py b/gluonts/model/common.py index 9d7b2a1954..44f14054f1 100644 --- a/gluonts/model/common.py +++ b/gluonts/model/common.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import types import typing diff --git a/gluonts/model/estimator.py b/gluonts/model/estimator.py index 3c93530f80..7743518693 100644 --- a/gluonts/model/estimator.py +++ b/gluonts/model/estimator.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Third-party imports from typing import Tuple diff --git a/gluonts/model/forecast.py b/gluonts/model/forecast.py index f45255ad31..826b9245e8 100644 --- a/gluonts/model/forecast.py +++ b/gluonts/model/forecast.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import re import typing diff --git a/gluonts/model/predictor.py b/gluonts/model/predictor.py index 222f3bbee1..90630d09fc 100644 --- a/gluonts/model/predictor.py +++ b/gluonts/model/predictor.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import itertools import logging diff --git a/gluonts/model/testutil.py b/gluonts/model/testutil.py index a92fa9ebc4..75d947c4b1 100644 --- a/gluonts/model/testutil.py +++ b/gluonts/model/testutil.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Iterator diff --git a/gluonts/monkey_patch/__init__.py b/gluonts/monkey_patch/__init__.py index a64d299ea0..a3b0ea4dbd 100644 --- a/gluonts/monkey_patch/__init__.py +++ b/gluonts/monkey_patch/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # !!! DO NOT MODIFY !!! (pkgutil-style namespace package) from pkgutil import extend_path diff --git a/gluonts/monkey_patch/monkey_patch_property_metaclass.py b/gluonts/monkey_patch/monkey_patch_property_metaclass.py index 8d4a316330..4401876a76 100644 --- a/gluonts/monkey_patch/monkey_patch_property_metaclass.py +++ b/gluonts/monkey_patch/monkey_patch_property_metaclass.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Third-party imports import mxnet as mx diff --git a/gluonts/support/__init__.py b/gluonts/support/__init__.py index a64d299ea0..a3b0ea4dbd 100644 --- a/gluonts/support/__init__.py +++ b/gluonts/support/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # !!! DO NOT MODIFY !!! (pkgutil-style namespace package) from pkgutil import extend_path diff --git a/gluonts/support/linalg_util.py b/gluonts/support/linalg_util.py index c895fbf5db..a2f75f5cfd 100644 --- a/gluonts/support/linalg_util.py +++ b/gluonts/support/linalg_util.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports from typing import Optional diff --git a/gluonts/support/util.py b/gluonts/support/util.py index 725e6abc9b..f0fe78249b 100644 --- a/gluonts/support/util.py +++ b/gluonts/support/util.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import inspect import signal diff --git a/gluonts/testutil.py b/gluonts/testutil.py index 7e4535b8c7..e686e6f6c8 100644 --- a/gluonts/testutil.py +++ b/gluonts/testutil.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import shutil import tempfile diff --git a/gluonts/time_feature/__init__.py b/gluonts/time_feature/__init__.py index a90d0005b8..58baf4e829 100644 --- a/gluonts/time_feature/__init__.py +++ b/gluonts/time_feature/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Relative imports from ._base import ( DayOfMonth, diff --git a/gluonts/time_feature/_base.py b/gluonts/time_feature/_base.py index 500f1399b2..e7b906cdc5 100644 --- a/gluonts/time_feature/_base.py +++ b/gluonts/time_feature/_base.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Third-party imports import numpy as np import pandas as pd diff --git a/gluonts/time_feature/holiday.py b/gluonts/time_feature/holiday.py index 9e8e48f1ac..2ddef5a9c4 100644 --- a/gluonts/time_feature/holiday.py +++ b/gluonts/time_feature/holiday.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + from typing import List, Callable import numpy as np diff --git a/gluonts/time_feature/lag.py b/gluonts/time_feature/lag.py index 8c9d98174e..88aed3a6d7 100644 --- a/gluonts/time_feature/lag.py +++ b/gluonts/time_feature/lag.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import re from typing import List, Tuple, Optional diff --git a/gluonts/trainer/__init__.py b/gluonts/trainer/__init__.py index bd5c5cb7eb..281709eb3d 100644 --- a/gluonts/trainer/__init__.py +++ b/gluonts/trainer/__init__.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Relative imports from . import learning_rate_scheduler as lrs from ._base import Trainer diff --git a/gluonts/trainer/_base.py b/gluonts/trainer/_base.py index 7bca69976e..91f3344e64 100644 --- a/gluonts/trainer/_base.py +++ b/gluonts/trainer/_base.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import logging import os diff --git a/gluonts/trainer/learning_rate_scheduler.py b/gluonts/trainer/learning_rate_scheduler.py index a9af1750b9..4a6217ef00 100644 --- a/gluonts/trainer/learning_rate_scheduler.py +++ b/gluonts/trainer/learning_rate_scheduler.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Third-party imports import mxnet as mx import numpy as np diff --git a/gluonts/transform.py b/gluonts/transform.py index 3acbd19ed9..b44bf0daea 100644 --- a/gluonts/transform.py +++ b/gluonts/transform.py @@ -1,3 +1,16 @@ +# 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 +# express or implied. See the License for the specific language governing +# permissions and limitations under the License. + # Standard library imports import abc from collections import Counter