Skip to content

Commit 04ee7e5

Browse files
authored
[Add] Copyright by SI-Analytics (#61)
* Add copyright * Add github token * Add original copyright
1 parent 997cf51 commit 04ee7e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+76
-2
lines changed

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ repos:
3737
hooks:
3838
- id: docformatter
3939
args: ["--in-place", "--wrap-descriptions", "79"]
40+
- repo: https://github.com/SIAnalytics/pre-commit-hooks
41+
rev: v0.1.0 # Use the ref you want to point at
42+
hooks:
43+
- id: check-copyright
44+
args: ["mmtune"] # replace the dir_to_check with your expected directory to check

mmtune/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .mm import * # noqa F403
23
from .ray import * # noqa F403
34
from .utils import * # noqa F403

mmtune/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
"""The mmtune entry point."""
23
from .run import main
34

mmtune/apis/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .analysis import log_analysis
23
from .tune import tune
34

mmtune/apis/analysis.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import time
23
from os import path as osp
34
from pprint import pformat

mmtune/apis/tune.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from os import path as osp
23

34
import mmcv

mmtune/mm/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .context import * # noqa F403
23
from .hooks import * # noqa F403
34
from .tasks import * # noqa F403

mmtune/mm/context/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .manager import ContextManager
23
from .rewriters import REWRITERS, build_rewriter
34

mmtune/mm/context/manager.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import collections
23
from typing import List
34

mmtune/mm/context/rewriters/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .base import BaseRewriter
23
from .builder import REWRITERS, build_rewriter
34
from .dump import Dump

mmtune/mm/context/rewriters/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from abc import ABCMeta, abstractmethod
23
from typing import Dict
34

mmtune/mm/context/rewriters/builder.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Dict
23

34
from mmcv.utils import Registry

mmtune/mm/context/rewriters/dump.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import tempfile
23
from os import path as osp
34
from typing import Dict

mmtune/mm/context/rewriters/instantiate.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Dict, Optional
23

34
from mmcv import Config

mmtune/mm/context/rewriters/merge.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from mmcv.utils import Config, ConfigDict
23
from mmcv.utils.config import DELETE_KEY
34

mmtune/mm/context/rewriters/patch.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import re
23
from typing import Dict, Tuple
34

mmtune/mm/context/rewriters/path.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from os import path as osp
23

34
import ray

mmtune/mm/context/rewriters/register.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Dict, List
23

34
from .base import BaseRewriter

mmtune/mm/context/rewriters/resume.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from os import path as osp
23
from typing import Dict
34

mmtune/mm/hooks/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .checkpoint import RayCheckpointHook
23
from .reporter import RayTuneLoggerHook
34

mmtune/mm/hooks/checkpoint.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import os
23
import time
34
from typing import Optional

mmtune/mm/hooks/reporter.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import ray
23
from mmcv.runner import HOOKS, BaseRunner
34
from mmcv.runner.dist_utils import get_dist_info

mmtune/mm/tasks/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .base import BaseTask
23
from .blackbox import BlackBoxTask
34
from .builder import TASKS, build_task_processor

mmtune/mm/tasks/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import argparse
23
from abc import ABCMeta, abstractmethod
34
from copy import deepcopy

mmtune/mm/tasks/blackbox.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import argparse
23
from abc import ABCMeta
34
from typing import Callable, Sequence

mmtune/mm/tasks/builder.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Dict
23

34
from mmcv.utils import Registry

mmtune/mm/tasks/cont_test_func.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# https://github.com/facebookresearch/nevergrad/blob/main/nevergrad/functions/corefuncs.py
1+
# Copyright (c) SI-Analytics. All rights reserved.
2+
#
3+
# Brought from https://github.com/facebookresearch/nevergrad/blob/main/nevergrad/functions/corefuncs.py # noqa E501
4+
# Copyright (c) Meta Platforms, Inc. and affiliates.
5+
#
6+
# This source code is licensed under the MIT license found in the
7+
# LICENSE file in the root directory of this source tree.
28
import argparse
39
from math import exp, sqrt, tanh
410

mmtune/mm/tasks/disc_test_func.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# https://github.com/facebookresearch/nevergrad/blob/main/nevergrad/functions/corefuncs.py
1+
# Copyright (c) SI-Analytics. All rights reserved.
2+
#
3+
# Brought from https://github.com/facebookresearch/nevergrad/blob/main/nevergrad/functions/corefuncs.py # noqa E501
4+
# Copyright (c) Meta Platforms, Inc. and affiliates.
5+
#
6+
# This source code is licensed under the MIT license found in the
7+
# LICENSE file in the root directory of this source tree.
28
import argparse
39

410
import numpy as np

mmtune/mm/tasks/mmcls.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import argparse
23
import copy
34
import os

mmtune/mm/tasks/mmdet.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import argparse
23
import copy
34
import os

mmtune/mm/tasks/mmseg.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import argparse
23
import copy
34
import os

mmtune/mm/tasks/mmtrainbase.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import os
23
from abc import ABCMeta, abstractmethod
34
from functools import partial

mmtune/ray/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .schedulers import * # noqa F403
23
from .spaces import * # noqa F403
34
from .stoppers import * # noqa F403

mmtune/ray/callbacks/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .builder import CALLBACKS, build_callback
23
from .mlflow import MLflowLoggerCallback
34

mmtune/ray/callbacks/builder.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from mmcv.utils import Config, Registry
23
from ray.tune.logger import (CSVLoggerCallback, JsonLoggerCallback,
34
LegacyLoggerCallback, LoggerCallback,

mmtune/ray/callbacks/mlflow.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import List
23

34
from ray.tune.integration.mlflow import \

mmtune/ray/schedulers/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .builder import SCHEDULERS, build_scheduler
23
from .pbt import PopulationBasedTraining
34

mmtune/ray/schedulers/builder.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import inspect
23

34
from mmcv.utils import Config, Registry

mmtune/ray/schedulers/pbt.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import copy
23
import random
34
from typing import Callable, Dict, Optional

mmtune/ray/searchers/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .builder import SEARCHERS, build_searcher
23
from .flaml import BlendSearch, CFOSearch
34
from .hyperopt import HyperOptSearch

mmtune/ray/searchers/builder.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from mmcv.utils import Config, Registry
23
from ray import tune
34

mmtune/ray/searchers/flaml.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from ray.tune.suggest.flaml import CFO as _CFO
23
from ray.tune.suggest.flaml import BlendSearch as _BlendSearch
34

mmtune/ray/searchers/hyperopt.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from ray.tune.suggest.hyperopt import HyperOptSearch as _HyperOptSearch
23

34
from .builder import SEARCHERS

mmtune/ray/searchers/nevergrad.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Dict, List, Optional, Union
23

34
from ray.tune.result import DEFAULT_METRIC

mmtune/ray/spaces/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .base import (BaseSpace, Lograndint, Loguniform, Qlograndint, Qloguniform,
23
Qrandint, Qrandn, Quniform, Randint, Randn, Uniform)
34
from .builder import SPACES, build_space

mmtune/ray/spaces/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from abc import ABCMeta
23
from typing import Callable
34

mmtune/ray/spaces/builder.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Mapping, Sequence
23

34
from mmcv.utils import Registry

mmtune/ray/spaces/choice.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Callable, Optional, Sequence
23

34
import ray.tune as tune

mmtune/ray/spaces/grid_search.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Callable, Optional, Sequence
23

34
import ray.tune as tune

mmtune/ray/spaces/sample_from.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from typing import Callable, Union
23

34
import ray.tune as tune

mmtune/ray/stoppers/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .builder import STOPPERS, build_stopper
23
from .dict_stop import DictionaryStopper
34
from .early_drop import EarlyDroppingStopper

mmtune/ray/stoppers/builder.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import inspect
23

34
from mmcv.utils import Config, Registry

mmtune/ray/stoppers/dict_stop.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .builder import STOPPERS
23

34

mmtune/ray/stoppers/early_drop.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from collections import defaultdict
23
from typing import Dict
34

mmtune/run.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from argparse import REMAINDER, ArgumentParser, Namespace
23
from os import path as osp
34

mmtune/utils/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from .config import dump_cfg
23
from .container import ImmutableContainer
34
from .logger import get_root_logger

mmtune/utils/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
from mmcv.utils import Config
23

34

mmtune/utils/container.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import copy
23
from typing import Any, Optional
34

mmtune/utils/logger.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
import logging
23
from typing import Optional
34

mmtune/version.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) SI-Analytics. All rights reserved.
12
__version__ = '0.0.1'
23
from typing import Tuple
34

0 commit comments

Comments
 (0)