Skip to content

Commit

Permalink
Adding trackers back from older repository folder
Browse files Browse the repository at this point in the history
  • Loading branch information
zangobot committed Feb 20, 2024
1 parent 23ebdfe commit 83df166
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/secml2/adv/evasion/composite_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from secml2.optimization.gradient_processing import GradientProcessing
from secml2.optimization.initializer import Initializer
from secml2.optimization.optimizer_factory import OptimizerFactory
from secml2.trackers.tracker import Tracker, TensorboardTracker
from src.secml2.trackers.tracker import Tracker

CE_LOSS = "ce_loss"
LOGIT_LOSS = "logits_loss"
Expand Down
3 changes: 1 addition & 2 deletions src/secml2/adv/evasion/foolbox_attacks/foolbox_base.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import logging
from typing import Optional
from secml2.adv.evasion.base_evasion_attack import BaseEvasionAttack
from secml2.models.base_model import BaseModel
from secml2.models.pytorch.base_pytorch_nn import BasePytorchClassifier
from secml2.models.base_model import BaseModel
from foolbox.attacks.base import Attack
from foolbox.models.pytorch import PyTorchModel
from foolbox.criteria import Misclassification, TargetedMisclassification
import torch

from secml2.trackers.tracker import Tracker
from src.secml2.trackers.tracker import Tracker


class BaseFoolboxEvasionAttack(BaseEvasionAttack):
Expand Down
4 changes: 2 additions & 2 deletions src/secml2/adv/evasion/pgd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, List
from typing import Optional

from secml2.adv.backends import Backends
from secml2.adv.evasion.base_evasion_attack import (
Expand All @@ -16,7 +16,7 @@
from secml2.optimization.gradient_processing import LinearProjectionGradientProcessing
from secml2.optimization.initializer import Initializer
from secml2.optimization.optimizer_factory import OptimizerFactory
from secml2.trackers.tracker import Tracker
from src.secml2.trackers.tracker import Tracker


class PGD(BaseEvasionAttackCreator):
Expand Down
Empty file added src/secml2/trackers/__init__.py
Empty file.
File renamed without changes.

0 comments on commit 83df166

Please sign in to comment.