attck metrics
This commit is contained in:
@@ -114,7 +114,7 @@ class WeightFiltration(Strategy):
|
||||
model.eval()
|
||||
|
||||
if self.wf_model is None:
|
||||
print(">> Initializing and compiling global WF-Net matrix (Run Once for all classes)...")
|
||||
print("Initializing and compiling global WF-Net matrix (Run Once for all classes)...")
|
||||
|
||||
self.wf_model = self._optimise_filter(
|
||||
model,
|
||||
@@ -123,10 +123,10 @@ class WeightFiltration(Strategy):
|
||||
device=device
|
||||
)
|
||||
else:
|
||||
print(f">> Gating matrix loaded. Switching layout to target class index: {self.target_class_index}")
|
||||
print(f"Gating matrix loaded. Switching layout to target class index: {self.target_class_index}")
|
||||
self.wf_model.target_class_index = self.target_class_index
|
||||
|
||||
return self.wf_model
|
||||
return self.wf_model.get()
|
||||
|
||||
def _split_data(self, dataset):
|
||||
return vertical_split(
|
||||
|
||||
Reference in New Issue
Block a user