Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dayu11/Differentially-Private-Deep-Learning
/ functions
Functions
3,168 in github.com/dayu11/Differentially-Private-Deep-Learning
⨍
Functions
3,168
◇
Types & classes
374
↓ 7 callers
Method
__init__
(self, pad_left, pad_right)
language/bert/bert_code/fairseq/models/wav2vec.py:302
↓ 7 callers
Function
base_architecture
(args)
language/bert/bert_code/fairseq/models/roberta/model.py:337
↓ 7 callers
Function
data_file_path
(prefix_path)
language/bert/bert_code/fairseq/data/indexed_dataset.py:106
↓ 7 callers
Method
dataset
Return a loaded dataset split. Args: split (str): name of the split (e.g., train, valid, test) Returns:
language/bert/bert_code/fairseq/tasks/fairseq_task.py:75
↓ 7 callers
Method
finalize
Sort symbols by frequency in descending order, ignoring special ones. Args: - threshold defines the minimum word count
language/bert/bert_code/fairseq/data/dictionary.py:120
↓ 7 callers
Function
functionParams
Build a dictionary of var/value from :param: args. Parameters can be either named or unnamed. In the latter case, their name is taken fro
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:1342
↓ 7 callers
Method
save
Stores dictionary into a text file
language/bert/bert_code/fairseq/data/dictionary.py:241
↓ 7 callers
Method
setup_task
(cls, args, **kwargs)
language/bert/bert_code/fairseq/tasks/mcbert.py:71
↓ 7 callers
Method
stop
(self, n=1)
language/bert/bert_code/fairseq/meters.py:61
↓ 6 callers
Function
Embedding
(num_embeddings, embedding_dim, padding_idx)
language/bert/bert_code/fairseq/models/transformer.py:690
↓ 6 callers
Function
Linear
Linear layer (input: N x T x C)
language/bert/bert_code/fairseq/models/lstm.py:494
↓ 6 callers
Function
__Pyx_BufFmt_ProcessTypeChunk
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23285
↓ 6 callers
Function
__Pyx_BufFmt_ProcessTypeChunk
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:20636
↓ 6 callers
Function
__Pyx_BufFmt_RaiseUnexpectedChar
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23114
↓ 6 callers
Function
__Pyx_BufFmt_RaiseUnexpectedChar
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:20465
↓ 6 callers
Function
__Pyx_GetException
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25074
↓ 6 callers
Function
__Pyx_GetException
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:21901
↓ 6 callers
Function
__Pyx_ImportType
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25633
↓ 6 callers
Function
__Pyx_ImportType
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:22882
↓ 6 callers
Function
__Pyx_PyErr_GivenExceptionMatches
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25326
↓ 6 callers
Function
__Pyx_PyErr_GivenExceptionMatches
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:22543
↓ 6 callers
Function
__Pyx_PyInt_As_int
CIntFromPy */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:26962
↓ 6 callers
Function
__Pyx_PyList_Append
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:1661
↓ 6 callers
Function
__Pyx_PyList_Append
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:1498
↓ 6 callers
Function
__Pyx_PyUnicode_Equals
UnicodeEquals */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:24167
↓ 6 callers
Function
__pyx_memoryview_refcount_copying
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:20206
↓ 6 callers
Function
__pyx_memoryview_refcount_copying
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:17769
↓ 6 callers
Method
_set_input_buffer
(self, incremental_state, new_buffer)
language/bert/bert_code/fairseq/modules/dynamic_convolution.py:228
↓ 6 callers
Method
alter_dataset_langtok
(self, lang_pair_dataset, src_eos=None, src_lang=None, tgt_eos=None, tgt_lang=No
language/bert/bert_code/fairseq/tasks/multilingual_translation.py:171
↓ 6 callers
Function
base_architecture
(args)
language/bert/bert_code/fairseq/models/transformer.py:706
↓ 6 callers
Function
base_lm_architecture
(args)
language/bert/bert_code/fairseq/models/transformer_lm.py:142
↓ 6 callers
Method
device
(self)
language/bert/bert_code/fairseq/hub_utils.py:99
↓ 6 callers
Function
dict_path
(lang)
language/bert/bert_code/preprocess.py:44
↓ 6 callers
Method
generate
Score a batch of translations.
language/bert/bert_code/fairseq/sequence_scorer.py:22
↓ 6 callers
Method
get_batch_iterator
Get an iterator that yields batches of data from the given dataset. Args: dataset (~fairseq.data.FairseqDataset): datase
language/bert/bert_code/fairseq/tasks/fairseq_task.py:92
↓ 6 callers
Method
index
Returns the index of the specified symbol
language/bert/bert_code/fairseq/data/dictionary.py:60
↓ 6 callers
Function
index_file_path
(prefix_path)
language/bert/bert_code/fairseq/data/indexed_dataset.py:102
↓ 6 callers
Method
load_dictionary
Load the dictionary from the filename Args: filename (str): the filename
language/bert/bert_code/fairseq/tasks/fairseq_task.py:30
↓ 6 callers
Method
maybe_layer_norm
(self, layer_norm, x, before=False, after=False)
language/bert/bert_code/fairseq/modules/transformer_layer.py:295
↓ 6 callers
Method
maybe_layer_norm
(self, layer_norm, x, before=False, after=False)
language/bert/bert_code/fairseq/models/lightconv.py:635
↓ 6 callers
Method
model
(self)
language/bert/bert_code/fairseq/trainer.py:103
↓ 6 callers
Method
next_epoch_itr
Return a new iterator over the dataset. Args: shuffle (bool, optional): shuffle batches before returning the iter
language/bert/bert_code/fairseq/data/iterators.py:173
↓ 6 callers
Method
open
(self, filename)
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:2411
↓ 6 callers
Method
output_layer
(self, features, masked_tokens=None, **unused)
language/bert/bert_code/fairseq/models/mcbert/model.py:364
↓ 6 callers
Function
split_exists
(split, src, tgt, lang, data_path)
language/bert/bert_code/fairseq/tasks/translation.py:29
↓ 6 callers
Method
transform
Transforms wiki markup. @see https://www.mediawiki.org/wiki/Help:Formatting
language/bert/bert_code/preprocess/pretrain/WikiExtractor.py:620
↓ 5 callers
Function
PositionalEmbedding
( num_embeddings: int, embedding_dim: int, padding_idx: int, learned: bool = F
language/bert/bert_code/fairseq/modules/positional_embedding.py:12
↓ 5 callers
Function
__Pyx_ParseOptionalKeywords
ParseKeywords */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:21480
↓ 5 callers
Function
__Pyx_PyCFunction_FastCall
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23797
↓ 5 callers
Function
__Pyx_PyCFunction_FastCall
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:20973
↓ 5 callers
Function
__Pyx_PyInt_As_int
CIntFromPy */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:23965
↓ 5 callers
Function
__Pyx_PyObject_Call
language/bert/bert_code/fastbpe/fastBPE/fastBPE.cpp:3061
↓ 5 callers
Function
__Pyx_SafeReleaseBuffer
BufferGetAndValidate */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:20919
↓ 5 callers
Function
__Pyx_setup_reduce
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25571
↓ 5 callers
Method
__init__
(self, *args, **kwargs)
language/bert/bert_code/fairseq/models/fairseq_model.py:256
↓ 5 callers
Method
__init__
(self, args, dictionary)
language/bert/bert_code/fairseq/models/mcbert/model.py:299
↓ 5 callers
Method
__init__
(self, args, gen_encoder, disc_encoder)
language/bert/bert_code/fairseq/models/electra/model.py:41
↓ 5 callers
Function
__pyx_memoryview_get_slice_from_memoryview
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:17869
↓ 5 callers
Function
__pyx_memoryview_get_slice_from_memoryview
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:15432
↓ 5 callers
Function
__pyx_memoryview_slice_copy
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:17969
↓ 5 callers
Function
__pyx_memoryview_slice_copy
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:15532
↓ 5 callers
Method
_map_index
(self, key, index)
language/bert/bert_code/fairseq/data/round_robin_zip_datasets.py:42
↓ 5 callers
Method
add_args
Add optimizer-specific arguments to the parser.
language/bert/bert_code/fairseq/optim/sgd.py:18
↓ 5 callers
Function
base_architecture
(args)
language/bert/bert_code/fairseq/models/fconv.py:603
↓ 5 callers
Method
build_optimizer
Args: args (argparse.Namespace): fairseq args params (iterable): iterable of parameters to optimize
language/bert/bert_code/fairseq/optim/fp16_optimizer.py:199
↓ 5 callers
Method
create_aligned
Create a domain instance that is aligned with the origin. The actual domain might be slightly larger than [t_min, t_max] but
language/bert/prv_accountant/prv_accountant/domain.py:26
↓ 5 callers
Function
die
language/bert/bert_code/preprocess/pretrain/calc_wordfreq.cpp:13
↓ 5 callers
Method
forward
(self, features, masked_tokens=None, **kwargs)
language/bert/bert_code/profiling.py:51
↓ 5 callers
Method
forward_decoder
(self, tokens, encoder_outs, temperature=1.)
language/bert/bert_code/fairseq/sequence_generator.py:543
↓ 5 callers
Method
forward_embedding
(self, prev_output_tokens, states=None)
language/bert/bert_code/fairseq/models/nonautoregressive_transformer.py:415
↓ 5 callers
Function
get_parser
(desc, default_task='translation')
language/bert/bert_code/fairseq/options.py:158
↓ 5 callers
Method
load_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
language/bert/bert_code/fairseq/tasks/mcbert.py:78
↓ 5 callers
Function
make_dataset
(path, impl, fix_lua_indexing=False, dictionary=None)
language/bert/bert_code/fairseq/data/indexed_dataset.py:51
↓ 5 callers
Function
merge
(key, is_list=False)
language/bert/bert_code/fairseq/data/monolingual_dataset.py:16
↓ 5 callers
Function
readText
language/bert/bert_code/fastbpe/fastBPE/fastBPE.hpp:44
↓ 5 callers
Method
shift_right
Shift the domain right by `dt`
language/bert/prv_accountant/prv_accountant/domain.py:51
↓ 5 callers
Function
train_path
(lang)
language/bert/bert_code/preprocess.py:32
↓ 4 callers
Function
Embedding
(num_embeddings, embedding_dim, padding_idx)
language/bert/bert_code/fairseq/models/lstm.py:471
↓ 4 callers
Function
Linear
(in_features, out_features, bias=True)
language/bert/bert_code/fairseq/modules/transformer_layer.py:306
↓ 4 callers
Function
__Pyx_BufFmt_RaiseExpected
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:23261
↓ 4 callers
Function
__Pyx_BufFmt_RaiseExpected
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:20612
↓ 4 callers
Function
__Pyx_Import
Import */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:22402
↓ 4 callers
Function
__Pyx_PyErr_GivenExceptionMatches
language/bert/bert_code/fastbpe/fastBPE/fastBPE.cpp:4316
↓ 4 callers
Function
__Pyx_RaiseBufferFallbackError
BufferFallbackError */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:24269
↓ 4 callers
Function
__Pyx_SetVtable
SetVTable */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25537
↓ 4 callers
Function
__Pyx_copy_spec_to_module
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:22599
↓ 4 callers
Function
__Pyx_copy_spec_to_module
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:19993
↓ 4 callers
Function
__Pyx_copy_spec_to_module
language/bert/bert_code/fastbpe/fastBPE/fastBPE.cpp:2559
↓ 4 callers
Function
__Pyx_decode_c_string
decode_c_string */
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:25182
↓ 4 callers
Function
__Pyx_decode_c_string
decode_c_string */
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:22258
↓ 4 callers
Function
__Pyx_is_valid_index
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:647
↓ 4 callers
Function
__Pyx_is_valid_index
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:646
↓ 4 callers
Function
__Pyx_setup_reduce
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:22820
↓ 4 callers
Method
__init__
(self, iterable, epoch=None, prefix=None)
language/bert/bert_code/fairseq/progress_bar.py:69
↓ 4 callers
Method
__init__
(self, tgt_dict)
language/bert/bert_code/fairseq/search.py:13
↓ 4 callers
Method
__init__
(self, encoder, decoder)
language/bert/bert_code/fairseq/models/lightconv.py:50
↓ 4 callers
Function
__pyx_memoryview_err_dim
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:19329
↓ 4 callers
Function
__pyx_memoryview_err_dim
language/bert/bert_code/fairseq/data/data_utils_fast.cpp:16892
↓ 4 callers
Function
__pyx_memoryview_fromslice
language/bert/bert_code/fairseq/data/token_block_utils_fast.cpp:17486
↓ 4 callers
Method
_compute_loss
outputs: batch x len x d_model targets: batch x len masks: batch x len policy_logprob: if there is
language/bert/bert_code/fairseq/criterions/nat_loss.py:29
← previous
next →
101–200 of 3,168, ranked by callers