MCPcopy Create free account

hub / github.com/YichenGong/Densely-Interactive-Inference-Network / functions

Functions181 in github.com/YichenGong/Densely-Interactive-Inference-Network

↓ 1 callersFunctionzip_save
(args)
python/my/zip_save.py:18
MethodLogJSON
(self, message_obj, level=INFO)
python/util/logger.py:38
FunctionPRelu
(_x)
python/models/attmix_CNN.py:1477
Method__call__
(self, inputs, state, scope=None)
python/my/tensorflow/rnn_cell.py:15
Method__call__
:param inputs: [N*B, I + B] :param state: [N*B, d] :param scope: :return: [N*B, d]
python/my/tensorflow/rnn_cell.py:34
Method__call__
:param inputs: [N, d + JQ + JQ * d] :param state: [N, d] :param scope: :return:
python/my/tensorflow/rnn_cell.py:93
Method__call__
(self, inputs, state, scope=None)
python/my/tensorflow/rnn_cell.py:148
Method__init__
(self)
python/train_quora.py:86
Method__init__
(self)
python/train_mnli.py:97
Method__init__
(self, url, port)
python/my/corenlp_interface.py:11
Method__init__
(self, cell, is_train, input_keep_prob=1.0, output_keep_prob=1.0, seed=None)
python/my/tensorflow/rnn_cell.py:9
Method__init__
(self, cell, input_size, reduce_func)
python/my/tensorflow/rnn_cell.py:29
Method__init__
(self, cell, input_size, q_len)
python/my/tensorflow/rnn_cell.py:79
Method__init__
Early fusion attention cell: uses the (inputs, state) to control the current attention. :param cell: :param memory: [N, M, m
python/my/tensorflow/rnn_cell.py:117
Method__init__
(self, config, seq_length, emb_dim, hidden_dim, emb_train, embeddings = None, pred_size = 3, context_seq_len
python/models/attmix_CNN.py:12
Method__init__
(self, config, seq_length, emb_dim, hidden_dim, emb_train, embeddings = None, pred_size = 3, context_seq_len
python/models/DIIN.py:8
Method__init__
log_path: The full path for the log file to write. The file will be appended to if it exists. min_print_level: Only messages with lev
python/util/logger.py:16
Method__repr__
(self)
python/my/utils.py:40
Function_initializer
(shape, dtype=None, partition_info=None, **kwargs)
python/my/tensorflow/general.py:15
Functionargmax
(x)
python/my/utils.py:55
Functionaverage_gradients
Calculate the average gradient for each shared variable across all towers. Note that this function provides a synchronization point across all to
python/my/tensorflow/general.py:59
FunctionbiLSTM
A Bi-Directional LSTM layer. Returns forward and backward hidden states as a tuple, and cell states as a tuple. Ouput of hidden states: [(ba
python/util/blocks.py:28
Functionbidirectional_dynamic_rnn
(cell_fw, cell_bw, inputs, sequence_length=None, initial_state_fw=None, initial_
python/my/tensorflow/rnn.py:51
Functionbw_dynamic_rnn
(cell, inputs, sequence_length=None, initial_state=None, dtype=None, parallel_iterations=No
python/my/tensorflow/rnn.py:30
Methodclassify
(self, examples)
python/train_quora.py:378
Methodclassify
(self, examples)
python/train_mnli.py:374
Methodconcat_mapper
:param inputs: [N, i] :param state: [N, d] :param sel_mem: [N, m] :return: (new_inputs, new_state) t
python/my/tensorflow/rnn_cell.py:201
Methoddep2tree
(dep)
python/my/corenlp_interface.py:51
Methoddouble_linear_controller
:param inputs: [N, i] :param state: [N, d] :param memory: [N, M, m] :return: [N, M]
python/my/tensorflow/rnn_cell.py:157
Functiondynamic_rnn
(cell, inputs, sequence_length=None, initial_state=None, dtype=None, parallel_iterations=None,
python/my/tensorflow/rnn.py:9
Methodemb_drop
(E, x)
python/models/attmix_CNN.py:69
Methodemb_drop
(E, x)
python/models/DIIN.py:42
Functionevaluate_classifier_genre
Function to get accuracy and cost of the model by genre, evaluated on a chosen dataset. It returns a dictionary of accuracies by genre and cost f
python/util/evaluate.py:53
Functionfill
(l, shape, dtype=None)
python/my/utils.py:24
Functionfind_max_f1_span
(tree, span)
python/my/nltk_utils.py:75
Functiongenerate_manual_sample_minibatch
(s1_tokenize, s2_tokenize, word_indices, char_indices)
python/util/data_processing.py:432
Methodget_const_tree
(self, sent)
python/my/corenlp_interface.py:46
Methodget_dep
(self, sent)
python/my/corenlp_interface.py:38
Methodget_double_linear_controller
(size, bias, input_keep_prob=1.0, is_train=None)
python/my/tensorflow/rnn_cell.py:156
Functionget_initializer
(matrix)
python/my/tensorflow/general.py:14
Functionget_subword_list
(token)
python/util/data_processing.py:285
Functionindex
(l, i)
python/my/utils.py:20
Functionis_antonyms
(token1, token2)
python/util/data_processing.py:103
Functionjson_pretty_dump
(obj, fh)
python/my/utils.py:16
Functionlast_output
To get the last hidden layer form a dynamically unrolled RNN. Input of shape (batch_size, max_seq_length, hidden_dim). true_length: Tens
python/util/blocks.py:46
Functionlength
Get true length of sequences (without padding), and mask for true-length in max-length. Input of shape: (batch_size, max_seq_length, hidden_
python/util/blocks.py:12
Methodlinear_controller
(inputs, state, memory)
python/my/tensorflow/rnn_cell.py:183
FunctionloadEmbedding_fully_rand
(path, word_indices, divident = 1.0)
python/util/data_processing.py:519
FunctionloadEmbedding_with_lemma
(path, word_indices)
python/util/data_processing.py:568
FunctionloadEmbedding_zeros
Load GloVe embeddings. Initializng OOV words to vector of zeros.
python/util/data_processing.py:502
Functionload_compressed_tree
(s)
python/my/nltk_utils.py:109
Functionload_nli_data_genre
Load a specific genre's examples from MultiNLI, or load SNLI data and assign a "snli" genre to the examples. If the "snli" parameter is set t
python/util/data_processing.py:59
Functionload_parameters
()
python/util/parameters.py:189
Functionload_subword_list
(sentences, rand = False)
python/util/data_processing.py:294
Functionmask
(val, mask, name=None)
python/my/tensorflow/general.py:99
Functionmasked_softmax
Used to calculcate a softmax score with true sequence length (without padding), rather than max-sequence length. Input shape: (batch_size, m
python/util/blocks.py:60
Methodmodel_one_side
(config, main, support, main_length, support_length, main_mask, support_mask, scope)
python/models/attmix_CNN.py:337
Methodmodel_one_side
(config, main, support, main_length, support_length, main_mask, support_mask, scope)
python/models/DIIN.py:110
Functionmytqdm
(list_, desc="", show=True)
python/my/utils.py:8
Methodoutput_size
(self)
python/my/tensorflow/rnn_cell.py:58
Methodoutput_size
(self)
python/my/tensorflow/rnn_cell.py:74
Methodoutput_size
(self)
python/my/tensorflow/rnn_cell.py:90
Methodoutput_size
(self)
python/my/tensorflow/rnn_cell.py:145
Functionpadded_reshape
(tensor, shape, mode='CONSTANT', name=None)
python/my/tensorflow/general.py:169
Functionparse_to_pos_vector
(parse, left_padding_and_cropping_pair = (0,0))
python/util/data_processing.py:321
Functionselu
(x)
python/models/attmix_CNN.py:1471
Functionshort_floats
(o, precision)
python/my/utils.py:38
Methodsim_mapper
Assume that inputs and sel_mem are the same size :param inputs: [N, i] :param state: [N, d] :param se
python/my/tensorflow/rnn_cell.py:214
Methodsplit_doc
(self, doc)
python/my/corenlp_interface.py:30
Methodsplit_sent
(self, sent)
python/my/corenlp_interface.py:34
Methodstate_size
(self)
python/my/tensorflow/rnn_cell.py:54
Methodstate_size
(self)
python/my/tensorflow/rnn_cell.py:70
Methodstate_size
(self)
python/my/tensorflow/rnn_cell.py:86
Methodstate_size
(self)
python/my/tensorflow/rnn_cell.py:141
Functionsubtypes
(s)
python/util/parameters.py:24
Functiontrain_or_test
()
python/util/parameters.py:218
Functiontree2matrix
(tree, node2num, row_size=None, col_size=None, dtype='int32')
python/my/nltk_utils.py:83
Functiontree_contains_span
Assumes that tree span has been set with set_span Returns true if any subtree of t has exact span as the given span :param t: :param
python/my/nltk_utils.py:30
Functiontypes
(s)
python/util/parameters.py:16
Functionvariable_with_weight_decay
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution. A wei
python/my/tensorflow/general.py:35
Functionworker
(shared_content, dataset)
python/util/data_processing.py:123
← previous101–181 of 181, ranked by callers