-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
__init__.py
44 lines (40 loc) · 1017 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""
The Adversarial Robustness Toolbox (ART).
"""
import logging.config
# Project Imports
from art import attacks
from art import defences
from art import estimators
from art import evaluations
from art import metrics
from art import preprocessing
# Semantic Version
__version__ = "1.12.1"
# pylint: disable=C0103
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"std": {
"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s",
"datefmt": "%Y-%m-%d %H:%M",
}
},
"handlers": {
"default": {
"class": "logging.NullHandler",
},
"test": {
"class": "logging.StreamHandler",
"formatter": "std",
"level": logging.INFO,
},
},
"loggers": {
"art": {"handlers": ["default"]},
"tests": {"handlers": ["test"], "level": "INFO", "propagate": True},
},
}
logging.config.dictConfig(LOGGING)
logger = logging.getLogger(__name__)