MCPcopy Create free account

hub / github.com/K-Quant/HiDy / functions

Functions461 in github.com/K-Quant/HiDy

Method__init__
(self, in_features, out_features, dropout, alpha, concat=True)
other_experiment/FFD_ablation/GAT_exp/layers.py:76
Method__init__
(self, nfeat, nhid, nclass, dropout, alpha, nheads)
other_experiment/FFD_ablation/GAT_exp/models.py:27
Method__init__
(self, df_feature, df_label, df_market_value, df_stock_index, batch_size=800, pin_memory=True,
application/SMP/utils/dataloader.py:18
Method__init__
(self, num_relation, d_feat=6, hidden_size=64, num_layers=2, dropout=0.0, base_model="GRU")
application/SMP/models/model.py:8
Method__init__
(self, n_in, n_hidden, n_out)
application/FFD/ffd.py:51
Method__len__
(self)
ner/data_utils/data_utils.py:232
Method__len__
(self)
ner/data_utils/data_utils.py:303
Method__repr__
(self)
ner/data_utils/data_utils.py:35
Method__repr__
(self)
ner/data_utils/data_utils.py:102
Method__repr__
(self)
other_experiment/ner_model_selection/bert_based/models/layers/crf.py:49
Method__repr__
(self)
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:24
Method__repr__
(self)
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:43
Method__repr__
(self)
other_experiment/ner_model_selection/bert_based/processors/ner_span.py:16
Method__repr__
(self)
other_experiment/ner_model_selection/bert_based/processors/ner_span.py:38
Method__repr__
(self)
other_experiment/FFD_ablation/GAT_exp/layers.py:44
Method__repr__
(self)
other_experiment/FFD_ablation/GAT_exp/layers.py:117
Method__setstate__
(self, state)
other_experiment/ner_model_selection/bert_based/callback/optimizater/sgdw.py:42
Method__setstate__
(self, state)
other_experiment/ner_model_selection/bert_based/callback/optimizater/lars.py:40
Method__setstate__
(self, state)
other_experiment/ner_model_selection/bert_based/callback/optimizater/ralamb.py:17
Method__setstate__
(self, state)
other_experiment/ner_model_selection/bert_based/callback/optimizater/radam.py:22
Method__setstate__
(self, state)
other_experiment/ner_model_selection/bert_based/callback/optimizater/adafactor.py:35
Method__setstate__
(self, state)
other_experiment/ner_model_selection/bert_based/callback/optimizater/adabound.py:47
Method__setstate__
(self, state)
other_experiment/ner_model_selection/bert_based/callback/optimizater/planradam.py:11
Method_backup_and_load_cache
Useful for performing evaluation on the slow weights (which typically generalize better)
other_experiment/ner_model_selection/bert_based/callback/optimizater/lookahead.py:63
Method_clear_and_load_backup
(self)
other_experiment/ner_model_selection/bert_based/callback/optimizater/lookahead.py:73
Method_exp_range_scale_fn
(self, x)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:201
Method_read_tsv
Reads a tab separated value file.
other_experiment/ner_model_selection/bert_based/processors/utils_ner.py:22
Method_repr_html_
(self,portid)
ner/data_utils/data_utils.py:188
Method_triangular2_scale_fn
(self, x)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:198
Method_triangular_scale_fn
(self, x)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:195
Functionaccuracy
(output, labels)
other_experiment/FFD_ablation/GAT_exp/utils.py:117
Methodattack
(self)
other_experiment/ner_model_selection/bert_based/callback/adversarial.py:28
Methodattack
(self,is_first_attack=False)
other_experiment/ner_model_selection/bert_based/callback/adversarial.py:77
Methodbackup_grad
(self)
other_experiment/ner_model_selection/bert_based/callback/adversarial.py:101
Methodbatch_length
(self)
application/SMP/utils/dataloader.py:46
Methodbatch_step
(self,training_step)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:123
Methodbatch_step
(self)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:484
Methodbatch_step
update parameters and rate :return:
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:528
Methodbert_epoch_step
适合bert类型模型,适合pytorch_transformer模块 :param state: :param current: :return:
other_experiment/ner_model_selection/bert_based/callback/modelcheckpoint.py:68
Functionbert_extract_item
(start_logits, end_logits)
other_experiment/ner_model_selection/bert_based/processors/utils_ner.py:175
Functioncal_loss
计算损失 参数: logits: [B, L, out_size] targets: [B, L] lengths: [B]
other_experiment/ner_model_selection/bilstm_based/models/util.py:63
Functioncal_lstm_crf_loss
计算双向LSTM-CRF模型的损失 该损失函数的计算可以参考:https://arxiv.org/pdf/1603.01360.pdf
other_experiment/ner_model_selection/bilstm_based/models/util.py:88
Functionchebyshev_polynomials
Calculate Chebyshev polynomials up to order k. Return a list of sparse matrices (tuple representation).
other_experiment/FFD_ablation/GCN_exp/data.py:177
Functioncollate_fn
batch should be a list of (sequence, target, length) tuples... Returns a padded tensor of sequences sorted from longest to shortest,
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:55
Functioncollate_fn
batch should be a list of (sequence, target, length) tuples... Returns a padded tensor of sequences sorted from longest to shortest,
other_experiment/ner_model_selection/bert_based/processors/ner_span.py:50
Functionconvert_cls_examples
Convert labeled data export from doccano for classification task.
tax_policy/utils.py:291
Functionconvert_example
example: { title prompt content result_list }
tax_policy/utils.py:578
Functionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s `cls_token_at_end` define the location of the CLS token: - False (Default, BERT/XL
other_experiment/ner_model_selection/bert_based/processors/ner_span.py:64
Functionconvert_ext_examples
Convert labeled data export from doccano for extraction and aspect-level classification task.
tax_policy/utils.py:310
Functioncrf_train_eval
(train_data, test_data, args, remove_O=False)
other_experiment/ner_model_selection/bilstm_based/evaluate.py:41
Methoddaily_length
:return: number of days in the dataloader
application/SMP/utils/dataloader.py:55
Functiondot
(x, y, sparse=False)
other_experiment/FFD_ablation/GCN_exp/utils.py:42
Functionencode_onehot
(labels)
other_experiment/FFD_ablation/GAT_exp/utils.py:7
Methodepoch_step
正常模型 :param state: 需要保存的信息 :param current: 当前判断指标 :return:
other_experiment/ner_model_selection/bert_based/callback/modelcheckpoint.py:46
Methodepoch_step
(self,epoch)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:85
Methodepoch_step
(self, metrics, epoch)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:301
Methodepoch_step
(self, metrics, epoch)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:351
Methodepoch_step
(self, logs={})
other_experiment/ner_model_selection/bert_based/callback/trainingmonitor.py:34
Methodextract_undirected_triple
(self, index)
other_experiment/fusion/DART.py:167
Functionfind_chinese
(file)
material/material_extraction.py:11
Methodforward
(self, input_ids, attention_mask=None, token_type_ids=None,labels=None)
other_experiment/ner_model_selection/bert_based/models/bert_for_ner.py:22
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None,labels=None)
other_experiment/ner_model_selection/bert_based/models/bert_for_ner.py:56
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, start_positions=None,end_positions=None)
other_experiment/ner_model_selection/bert_based/models/bert_for_ner.py:82
Methodforward
(self, x)
other_experiment/ner_model_selection/bert_based/models/layers/linears.py:12
Methodforward
(self, hidden_states, p_mask=None)
other_experiment/ner_model_selection/bert_based/models/layers/linears.py:23
Methodforward
(self, hidden_states, start_positions=None, p_mask=None)
other_experiment/ner_model_selection/bert_based/models/layers/linears.py:35
Methodforward
Compute the conditional log likelihood of a sequence of tags given emission scores. Args: emissions (`~torch.Tensor`): Emission sc
other_experiment/ner_model_selection/bert_based/models/layers/crf.py:52
Methodforward
(self, output, target)
other_experiment/ner_model_selection/bert_based/losses/label_smoothing.py:11
Methodforward
input: [N, C] target: [N, ]
other_experiment/ner_model_selection/bert_based/losses/focal_loss.py:13
Methodforward
(self, z)
other_experiment/FFD_ablation/HAN_exp/model.py:18
Methodforward
(self, gs, h)
other_experiment/FFD_ablation/HAN_exp/model.py:50
Methodforward
(self, g, h)
other_experiment/FFD_ablation/HAN_exp/model.py:86
Methodforward
(self, inputs)
other_experiment/FFD_ablation/GCN_exp/layer.py:32
Methodforward
(self, inputs)
other_experiment/FFD_ablation/GCN_exp/model.py:29
Methodforward
(self, h, adj)
other_experiment/FFD_ablation/GAT_exp/layers.py:23
Methodforward
(ctx, indices, values, shape, b)
other_experiment/FFD_ablation/GAT_exp/layers.py:50
Methodforward
(self, indices, values, shape, b)
other_experiment/FFD_ablation/GAT_exp/layers.py:71
Methodforward
(self, input, adj)
other_experiment/FFD_ablation/GAT_exp/layers.py:93
Methodforward
(self, x, adj)
other_experiment/FFD_ablation/GAT_exp/models.py:18
Methodforward
(self, x, adj)
other_experiment/FFD_ablation/GAT_exp/models.py:45
Methodforward
(self, x, relation_matrix)
application/SMP/models/model.py:33
Methodforward
(self, x)
application/FFD/ffd.py:57
Functionget_binary_mask
(total_size, indices)
other_experiment/FFD_ablation/HAN_exp/utils.py:75
Functionget_constant_schedule
Create a schedule with a constant learning rate.
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:7
Functionget_constant_schedule_with_warmup
Create a schedule with a constant learning rate preceded by a warmup period during which the learning rate increases linearly between 0 and 1.
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:13
Functionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between 0 and `pi * cycles` after a warmup
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:37
Functionget_cosine_with_hard_restarts_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function with several hard restarts, after a warmup
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:51
Functionget_date_postfix
()
other_experiment/FFD_ablation/HAN_exp/utils.py:36
Methodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
other_experiment/ner_model_selection/bert_based/processors/utils_ner.py:13
Methodget_dev_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:208
Methodget_dev_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_span.py:185
Methodget_dev_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_span.py:224
Methodget_labels
Gets the list of labels for this data set.
other_experiment/ner_model_selection/bert_based/processors/utils_ner.py:17
Methodget_labels
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:175
Methodget_labels
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:216
Methodget_labels
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_span.py:193
Methodget_labels
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_span.py:232
Methodget_main_domain
(self)
other_experiment/fusion/DART.py:456
Methodget_objects_lists
(self)
other_experiment/fusion/DART.py:329
Methodget_test_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:212
← previousnext →301–400 of 461, ranked by callers