MCPcopy Create free account

hub / github.com/Koukyosyumei/AIJack / functions

Functions1,327 in github.com/Koukyosyumei/AIJack

↓ 2 callersFunctionget_delta_of_fedmd_nfdp
Return delta of FedMD-NFDP Args: n (int): training set size k (int): sampling size replacement (bool, optional): sampling
src/aijack/collaborative/fedmd/nfdp.py:21
↓ 2 callersMethodget_hidden_states
(self)
test/collaborative/moon/test_moon.py:34
↓ 2 callersMethodget_noise_multiplier
Get noise multiplier. Args: noise_multiplier_key (str): Key for noise multiplier. target_epsilon (float): Target epsi
src/aijack/defense/dp/manager/accountant.py:151
↓ 2 callersFunctionget_num_parties_per_process
src/aijack/collaborative/tree/utils/utils.h:97
↓ 2 callersFunctionget_simillar_boxes
Get similar boxes between two frames based on the peak signal-to-noise ratio (PSNR). Args: frame_1 (numpy.ndarray): The first frame.
src/aijack/defense/debugging/assertions/assertions.py:100
↓ 2 callersFunctionget_spans
* @brief Gets the span of partitioned dataframe * * @param df * @param partition * @param scale_map * @return std::map<std::string, float> */
src/aijack/defense/kanonymity/core/utils.h:94
↓ 2 callersMethodinsert_continuous
* @brief Inserts a continuous value * * @param column * @param value */
src/aijack/defense/kanonymity/core/dataframe.h:105
↓ 2 callersFunctioninternal_default_instance
FOR INTERNAL USE ONLY
aivalut/src/storage/data.pb.h:137
↓ 2 callersFunctionis_k_anonymous
* @brief Checks whether the dataframe and partition meet k-anonymous property * * @param df * @param partition * @param sensitive_column * @param
src/aijack/defense/kanonymity/core/anonymizer.h:25
↓ 2 callersMethodkernel
(xm)
src/aijack/attack/evasion/evasion_attack.py:98
↓ 2 callersFunctionlcm
src/aijack/defense/paillier/src/prime.h:25
↓ 2 callersMethodlocal_train
(self, i)
src/aijack/collaborative/fedprox/api.py:13
↓ 2 callersMethodlocal_train
(self, i)
src/aijack/collaborative/fedavg/api.py:59
↓ 2 callersMethodloss
Compute loss. Args: y (torch.Tensor): Target tensor. result_dict (dict): Dictionary containing sampled outpu
src/aijack/defense/mid/nn.py:96
↓ 2 callersMethodmpi_download
(self)
src/aijack/collaborative/fedmd/client.py:96
↓ 2 callersMethodpersist
aivalut/src/storage/disk.h:67
↓ 2 callersMethodpredict
aivalut/src/ml/logisticregression.h:194
↓ 2 callersMethodpredict
* @brief Return the predicted value of the give new sample X * * @param X the new sample to be predicted * @return vector<vector<float>> *
src/aijack/collaborative/tree/core/tree.h:28
↓ 2 callersMethodpredict_proba
(self, X)
src/aijack/utils/utils.py:151
↓ 2 callersMethodpredict_proba
get probabilities of whether the given prediction came from training data or not Args: y_pred_prob (torch.Tensor): pre
src/aijack/attack/membership/utils.py:151
↓ 2 callersMethodprivatize
Privatizes the optimizer. Args: noise_multiplier (float): Noise multiplier for privacy. Returns: tu
src/aijack/defense/dp/manager/dp_manager.py:47
↓ 2 callersMethodputPage
aivalut/src/storage/bufpool.h:116
↓ 2 callersMethodreadIndex
aivalut/src/storage/disk.h:104
↓ 2 callersMethodreceive
Receive the local models Args: use_gradients (bool, optional): If True, receive the local gradients. Otherwise, receive the local
src/aijack/collaborative/fedavg/server.py:65
↓ 2 callersMethodreceive
(self)
src/aijack/collaborative/fedmd/server.py:30
↓ 2 callersFunctionroc_auc_score
src/aijack/collaborative/tree/utils/metric.h:39
↓ 2 callersMethodsample_noise
Sample noise for the given input. Args: x (torch.Tensor): Input tensor. Returns: torch.Tensor: Samp
src/aijack/defense/crobustness/pixeldp.py:199
↓ 2 callersMethodsaveMLModel
aivalut/src/storage/storage.h:116
↓ 2 callersMethodset_hash
src/aijack/defense/tsl/robin_hash.h:128
↓ 2 callersMethodset_instance_space
src/aijack/collaborative/tree/secureboost/mpiparty.h:340
↓ 2 callersMethodset_publickey
src/aijack/collaborative/tree/secureboost/party.h:19
↓ 2 callersFunctionsigmoid
aivalut/src/ml/loss.h:11
↓ 2 callersMethodstep
Update the parameters with the give gradient Args: grads (List[torch.Tensor]): list of gradients
src/aijack/collaborative/optimizer/sgd.py:16
↓ 2 callersMethodstep
Update the parameters with the give gradient Args: grads (List[torch.Tensor]): list of gradients
src/aijack/collaborative/optimizer/adam.py:35
↓ 2 callersMethodsub
(input, other)
src/aijack/defense/paillier/torch_wrapper.py:80
↓ 2 callersMethodsubsample_columns
src/aijack/collaborative/tree/secureboost/mpiparty.h:62
↓ 2 callersMethodswap
src/aijack/defense/tsl/robin_hash.h:928
↓ 2 callersMethodtensor
(self, sk=None)
src/aijack/defense/paillier/torch_wrapper.py:39
↓ 2 callersMethodtry_emplace_hint
src/aijack/defense/tsl/robin_hash.h:816
↓ 2 callersMethodupdate
Update the global model Args: use_gradients (bool, optional): If True, update the global model with aggregated local gradients. D
src/aijack/collaborative/fedavg/server.py:76
↓ 2 callersMethodupdate
(self)
src/aijack/collaborative/fedmd/server.py:33
↓ 2 callersMethodupload
Upload the output logits on the public dataset to the server. Returns: torch.Tensor: the output logits of the public dataset.
src/aijack/collaborative/dsfl/client.py:42
↓ 2 callersMethodupload
(self)
src/aijack/collaborative/fedmd/client.py:42
↓ 2 callersMethodupload_parameters
Upload the model parameters
src/aijack/collaborative/fedavg/client.py:74
↓ 1 callersMethodAbort
aivalut/src/storage/tran.h:37
↓ 1 callersMethodAnalyzeMain
aivalut/src/compiler/analyze.h:356
↓ 1 callersMethodBCELoss
aivalut/src/ml/loss.h:64
↓ 1 callersMethodBeginTransaction
aivalut/src/storage/tran.h:24
↓ 1 callersMethodClear
aivalut/src/storage/data.pb.cc:201
↓ 1 callersMethodCommit
aivalut/src/storage/tran.h:31
↓ 1 callersMethodConvertTable
aivalut/src/storage/base.h:77
↓ 1 callersFunctionDeserializePage
aivalut/src/storage/page.h:36
↓ 1 callersMethodExecute
aivalut/src/core/db.h:59
↓ 1 callersMethodFrontPgid
aivalut/src/storage/bufpool.h:54
↓ 1 callersMethodGetAll
aivalut/src/utils/lru.h:50
↓ 1 callersMethodGetCurrentTxID
aivalut/src/storage/tran.h:43
↓ 1 callersMethodGetState
aivalut/src/storage/tran.h:14
↓ 1 callersMethodHost
aivalut/src/core/http.h:52
↓ 1 callersMethodInit
aivalut/src/core/db.h:53
↓ 1 callersFunctionKL_between_normals
(mu_q, sigma_q, mu_p, sigma_p)
src/aijack/defense/mid/loss.py:4
↓ 1 callersMethodLen
aivalut/src/utils/lru.h:45
↓ 1 callersFunctionNewEmptyCatalog
aivalut/src/storage/catalog.h:40
↓ 1 callersFunctionNewMyDb
aivalut/src/core/db.h:138
↓ 1 callersFunctionNewPage
aivalut/src/storage/page.h:19
↓ 1 callersMethodParseFromString
aivalut/src/utils/bptree.h:535
↓ 1 callersFunctionSerializePage
aivalut/src/storage/page.h:25
↓ 1 callersFunctionTupleData_Type_IsValid
aivalut/src/storage/data.pb.cc:119
↓ 1 callersFunctionTupleData_Type_Parse
aivalut/src/storage/data.pb.h:93
↓ 1 callersMethod__add__
(self, other)
src/aijack/defense/paillier/torch_wrapper.py:111
↓ 1 callersMethod__init__
(self)
test/attack/inversion/test_ganattack.py:46
↓ 1 callersMethod__init__
(self, train_features)
test/attack/labelleakage/test_labelleakage.py:20
↓ 1 callersMethod__init__
(self, *args, mu=0.01, **kwargs)
src/aijack/collaborative/fedprox/api.py:9
↓ 1 callersMethod__init__
( self, model, user_id=0, lr=0.1, send_gradient=True, optimize
src/aijack/collaborative/fedavg/client.py:23
↓ 1 callersMethod__init__
( self, clients, global_model, server_id=0, lr=0.1, optimizer_
src/aijack/collaborative/fedavg/server.py:23
↓ 1 callersMethod__init__
( self, model, public_dataloader, output_dim=1, batch_size=8,
src/aijack/collaborative/fedmd/client.py:15
↓ 1 callersMethod__init__
( self, clients, server_model=None, server_id=0, device="cpu", )
src/aijack/collaborative/fedmd/server.py:7
↓ 1 callersMethod__init__
(self, target_model, X_train, y_train, t=0.5)
src/aijack/attack/poison/poison_attack.py:28
↓ 1 callersMethod__init__
Initialize a FlickerException. Args: message (str): The error message.
src/aijack/defense/debugging/assertions/assertions.py:66
↓ 1 callersMethod__init__
(self, *args, **kwargs)
src/aijack/defense/sparse/topk.py:18
↓ 1 callersMethod__init__
Initialize the BaseMomentAccountant. Args: search (str, optional): The search strategy. Defaults to "ternary".
src/aijack/defense/dp/manager/accountant.py:24
↓ 1 callersMethod__len__
(self)
src/aijack/defense/dp/manager/dataloader.py:20
↓ 1 callersMethod__mul__
(self, other)
src/aijack/defense/paillier/torch_wrapper.py:129
↓ 1 callersMethod__sub__
(self, other)
src/aijack/defense/paillier/torch_wrapper.py:120
↓ 1 callersFunction_apply_side_infor_adam
Apply side information for Adam optimizer. Args: opt: Optimizer instance.
src/aijack/defense/dp/manager/adadps.py:53
↓ 1 callersFunction_apply_side_infor_rmsprop
Apply side information for RMSprop optimizer. Args: opt: Optimizer instance.
src/aijack/defense/dp/manager/adadps.py:24
↓ 1 callersMethod_calc_regularization_term
calculates the regularization term Args: fake_x: reconstructed images fake_pred: the predicted value of reconstructed
src/aijack/attack/inversion/gradientinversion.py:228
↓ 1 callersMethod_client_backward
Client-side back propagation Args: grad_from_server: gradient which the server send to the client
src/aijack/collaborative/splitnn/client.py:33
↓ 1 callersMethod_detect_type_of_classifier
Sets proper attributes based on the type of classifier Returns: return True (bool) if there is no error Raises:
src/aijack/attack/evasion/evasion_attack.py:81
↓ 1 callersMethod_detect_type_of_classifier
detect the type of classifier and prepare proper settings Returns: return true if no error occurs Raises: Va
src/aijack/attack/poison/poison_attack.py:40
↓ 1 callersMethod_entropy_reduction_aggregation
Aggregate the received logits with ERA
src/aijack/collaborative/dsfl/server.py:107
↓ 1 callersFunction_estimate_label
Estimates the secret labels from the received gradients this function is based on the following papers: batch_size == 1: https://arxiv.org/ab
src/aijack/attack/inversion/utils/utils.py:31
↓ 1 callersMethod_fit
Trains shadow models on given data Args: X (np.array): training data for shadow models y (np.array): training label f
src/aijack/attack/membership/utils.py:62
↓ 1 callersFunction_generate_fake_gradients
( target_model, lossfunc, optimize_label, fake_x, fake_label )
src/aijack/attack/inversion/utils/utils.py:110
↓ 1 callersMethod_get_delta_p
Calculates deviation of the estimated density p(xm−1 |yc = −1) Args: xm (np.array) : an adversarial example Returns:
src/aijack/attack/evasion/evasion_attack.py:136
↓ 1 callersMethod_get_grad_f
Calculates deviation of objective function F Args: xm (np.array) : an adversarial example norm (str) : type of distan
src/aijack/attack/evasion/evasion_attack.py:155
↓ 1 callersMethod_get_hook_for_input
Returns a hook function to extract the input of the specified layer of the target model Args: name: the key of self.bn_reg_layer_
src/aijack/attack/inversion/gradientinversion.py:213
↓ 1 callersMethod_get_knowledge_from_clients
(self, x, y)
src/aijack/collaborative/fedgems/server.py:112
↓ 1 callersMethod_init_cov_tracker
(self)
src/aijack/defense/debugging/neuroncoverage/neuroncoverage.py:87
↓ 1 callersFunction_initialize_label
Inits the fake labels Args: batch_size: the batch size Returns: randomly initialized or estimated labels
src/aijack/attack/inversion/utils/utils.py:17
↓ 1 callersFunction_initialize_x
Inits the fake images Args: batch_size: the batch size Returns: randomly generated torch.Tensor whose shape is (batch_size,
src/aijack/attack/inversion/utils/utils.py:4
← previousnext →201–300 of 1,327, ranked by callers