MCPcopy Create free account

hub / github.com/AnubhavGupta3377/Text-Classification-Models-Pytorch / functions

Functions145 in github.com/AnubhavGupta3377/Text-Classification-Models-Pytorch

↓ 4 callersFunctionevaluate_model
(model, iterator)
Model_CharCNN/utils.py:105
↓ 4 callersFunctionevaluate_model
(model, iterator)
Model_CharCNN/without_torchtext/utils.py:80
↓ 4 callersFunctionevaluate_model
(model, iterator)
Model_Transformer/utils.py:100
↓ 4 callersFunctionevaluate_model
(model, iterator)
Model_Seq2Seq_Attention/utils.py:105
↓ 4 callersFunctionevaluate_model
(model, iterator)
Model_TextRNN/utils.py:104
↓ 4 callersFunctionevaluate_model
(model, iterator)
Model_TextCNN/utils.py:104
↓ 4 callersFunctionevaluate_model
(model, iterator)
Model_fastText/utils.py:104
↓ 4 callersFunctionevaluate_model
(model, iterator)
Model_RCNN/utils.py:104
↓ 3 callersFunctionclones
Produce N identical layers.
Model_Transformer/train_utils.py:9
↓ 3 callersFunctiondata_iterator
Generate batches of training data for training (for single epoch) Inputs: train_df (pd.DataFrame) : complete training data ba
Model_TextCNN/old_code/utils.py:141
↓ 3 callersFunctiondata_iterator
Generate batches of training data for training (for single epoch) Inputs: train_df (pd.DataFrame) : complete training data ba
Model_fastText/old_code/utils.py:144
↓ 3 callersFunctionencode_text
Encode a sequence of words into corresponding vector representation Input: text (string) : text (space separated words, etc..)
Model_TextCNN/old_code/utils.py:124
↓ 3 callersFunctionencode_text
Encode a sequence of words into corresponding vector representation Input: text (string) : text (space separated words, etc..)
Model_fastText/old_code/utils.py:124
↓ 3 callersFunctionget_accuracy
(model, test_x, test_y)
Model_TextCNN/old_code/train.py:15
↓ 3 callersFunctionget_accuracy
(model, test_x, test_y)
Model_fastText/old_code/train.py:15
↓ 3 callersMethodget_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_CharCNN/utils.py:32
↓ 3 callersMethodget_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_Transformer/utils.py:29
↓ 3 callersMethodget_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_Seq2Seq_Attention/utils.py:30
↓ 3 callersMethodget_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_TextRNN/utils.py:30
↓ 3 callersMethodget_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_TextCNN/utils.py:30
↓ 3 callersMethodget_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_fastText/utils.py:30
↓ 3 callersMethodget_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_RCNN/utils.py:30
↓ 2 callersMethodadd_word
Add a word to the vocabulary Inputs: word (string) : Word to be added to vocabulary
Model_TextCNN/old_code/utils.py:16
↓ 2 callersMethodadd_word
Add a word to the vocabulary Inputs: word (string) : Word to be added to vocabulary
Model_fastText/old_code/utils.py:16
↓ 2 callersFunctionget_data
Loads the data from file Inputs: filename (String): absolute path to the datafile Returns: X (list[string]): list of contents
Model_TextCNN/old_code/utils.py:64
↓ 2 callersFunctionget_data
Loads the data from file Inputs: filename (String): absolute path to the datafile Returns: X (list[string]): list of contents
Model_fastText/old_code/utils.py:64
↓ 1 callersMethod__init__
(self, features, eps=1e-6)
Model_Transformer/sublayer.py:8
↓ 1 callersMethod__init__
(self, layer, N)
Model_Transformer/encoder.py:13
↓ 1 callersMethod__init__
(self, d_model, vocab)
Model_Transformer/train_utils.py:17
↓ 1 callersMethod_create_weights
(self, mean=0.0, std=0.05)
Model_CharCNN/without_torchtext/model.py:68
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_CharCNN/model.py:79
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_CharCNN/without_torchtext/model.py:83
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_Transformer/model.py:49
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_Seq2Seq_Attention/model.py:85
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_TextRNN/model.py:50
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_TextCNN/model.py:60
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_TextCNN/old_code/model.py:69
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_fastText/model.py:35
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_fastText/old_code/model.py:32
↓ 1 callersMethodadd_loss_op
(self, loss_op)
Model_RCNN/model.py:73
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_CharCNN/model.py:76
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_CharCNN/without_torchtext/model.py:80
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_Transformer/model.py:46
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_Seq2Seq_Attention/model.py:82
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_TextRNN/model.py:47
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_TextCNN/model.py:57
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_TextCNN/old_code/model.py:66
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_fastText/model.py:32
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_fastText/old_code/model.py:29
↓ 1 callersMethodadd_optimizer
(self, optimizer)
Model_RCNN/model.py:70
↓ 1 callersMethodapply_attention
Apply Attention on RNN output Input: rnn_output (batch_size, seq_len, num_directions * hidden_size): tensor repr
Model_Seq2Seq_Attention/model.py:36
↓ 1 callersFunctionattention
Implementation of Scaled dot product attention
Model_Transformer/attention.py:9
↓ 1 callersMethodconstruct
Construct the vocabulary Inputs: words (list[string]) : List of words defining the vocabulary
Model_TextCNN/old_code/utils.py:27
↓ 1 callersMethodconstruct
Construct the vocabulary Inputs: words (list[string]) : List of words defining the vocabulary
Model_fastText/old_code/utils.py:27
↓ 1 callersFunctionget_embedding_matrix
(vocab_chars)
Model_CharCNN/utils.py:9
↓ 1 callersFunctionget_iterators
(config, train_file, test_file, val_file=None)
Model_CharCNN/without_torchtext/utils.py:63
↓ 1 callersFunctionget_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_CharCNN/without_torchtext/utils.py:50
↓ 1 callersFunctionget_word_embeddings
For each word in our vocabulary, get the word2vec encoding of the word Inputs: w2vfile (string) : Path to the file containing (pre-tr
Model_TextCNN/old_code/utils.py:84
↓ 1 callersFunctionget_word_embeddings
For each word in our vocabulary, get the word2vec encoding of the word Inputs: w2vfile (string) : Path to the file containing (pre-tr
Model_fastText/old_code/utils.py:84
↓ 1 callersMethodload_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_CharCNN/utils.py:45
↓ 1 callersMethodload_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_Transformer/utils.py:42
↓ 1 callersMethodload_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_Seq2Seq_Attention/utils.py:43
↓ 1 callersMethodload_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_TextRNN/utils.py:43
↓ 1 callersMethodload_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_TextCNN/utils.py:43
↓ 1 callersMethodload_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_fastText/utils.py:43
↓ 1 callersMethodload_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_RCNN/utils.py:43
↓ 1 callersFunctionparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns: label (int) : in
Model_CharCNN/without_torchtext/utils.py:40
↓ 1 callersFunctionparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns: label (int) : in
Model_TextCNN/old_code/utils.py:54
↓ 1 callersFunctionparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns: label (int) : in
Model_fastText/old_code/utils.py:54
↓ 1 callersMethodparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_CharCNN/utils.py:22
↓ 1 callersMethodparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_Transformer/utils.py:19
↓ 1 callersMethodparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_Seq2Seq_Attention/utils.py:20
↓ 1 callersMethodparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_TextRNN/utils.py:20
↓ 1 callersMethodparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_TextCNN/utils.py:20
↓ 1 callersMethodparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_fastText/utils.py:20
↓ 1 callersMethodparse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_RCNN/utils.py:20
↓ 1 callersMethodreduce_lr
(self)
Model_CharCNN/model.py:82
↓ 1 callersMethodreduce_lr
(self)
Model_CharCNN/without_torchtext/model.py:86
↓ 1 callersMethodreduce_lr
(self)
Model_Transformer/model.py:52
↓ 1 callersMethodreduce_lr
(self)
Model_Seq2Seq_Attention/model.py:88
↓ 1 callersMethodreduce_lr
(self)
Model_TextRNN/model.py:53
↓ 1 callersMethodreduce_lr
(self)
Model_TextCNN/model.py:63
↓ 1 callersMethodreduce_lr
(self)
Model_fastText/model.py:38
↓ 1 callersMethodreduce_lr
(self)
Model_RCNN/model.py:76
↓ 1 callersMethodrun_epoch
(self, train_iterator, val_iterator, epoch)
Model_CharCNN/model.py:87
↓ 1 callersMethodrun_epoch
(self, train_iterator, val_iterator, epoch)
Model_CharCNN/without_torchtext/model.py:91
↓ 1 callersMethodrun_epoch
(self, train_iterator, val_iterator, epoch)
Model_Transformer/model.py:57
↓ 1 callersMethodrun_epoch
(self, train_iterator, val_iterator, epoch)
Model_Seq2Seq_Attention/model.py:93
↓ 1 callersMethodrun_epoch
(self, train_iterator, val_iterator, epoch)
Model_TextRNN/model.py:58
↓ 1 callersMethodrun_epoch
(self, train_iterator, val_iterator, epoch)
Model_TextCNN/model.py:68
↓ 1 callersMethodrun_epoch
(self, train_data, val_data)
Model_TextCNN/old_code/model.py:72
↓ 1 callersMethodrun_epoch
(self, train_iterator, val_iterator, epoch)
Model_fastText/model.py:43
↓ 1 callersMethodrun_epoch
(self, train_data, val_data)
Model_fastText/old_code/model.py:35
↓ 1 callersMethodrun_epoch
(self, train_iterator, val_iterator, epoch)
Model_RCNN/model.py:81
Method__getitem__
(self, index)
Model_CharCNN/without_torchtext/utils.py:26
Method__init__
(self, config)
Model_CharCNN/utils.py:16
Method__init__
(self, config, vocab_size, embeddings)
Model_CharCNN/model.py:9
Method__init__
(self, data_path, config)
Model_CharCNN/without_torchtext/utils.py:14
Method__init__
(self, config)
Model_CharCNN/without_torchtext/model.py:10
Method__init__
(self, config)
Model_Transformer/utils.py:11
next →1–100 of 145, ranked by callers