Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TrustAIResearch/MLHospital
/ mia_example.py
File
mia_example.py
mlh/examples/mia_example.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
torchvision
2
from
mlh.attacks.membership_inference.attacks
import
AttackDataset, BlackBoxMIA, MetricBasedMIA, LabelOnlyMIA
3
from
tqdm
import
tqdm
4
import
torch
Callers
nothing calls this directly
Calls
10
GetDataLoader
Class · 0.90
LabelOnlyMIA
Class · 0.90
AttackDataset
Class · 0.90
BlackBoxMIA
Class · 0.90
MetricBasedMIA
Class · 0.90
get_data_supervised
Method · 0.80
Infer
Method · 0.80
parse_args
Function · 0.70
get_target_model
Function · 0.70
eval
Method · 0.45
Tested by
no test coverage detected