SYMBOL INDEX (144 symbols across 18 files) FILE: ConvKB_pytorch/Config.py class MyDataParallel (line 20) | class MyDataParallel(nn.DataParallel): method _getattr__ (line 21) | def _getattr__(self, name): function to_var (line 25) | def to_var(x): class Config (line 29) | class Config(object): method __init__ (line 30) | def __init__(self): method init (line 139) | def init(self): method set_test_link (line 215) | def set_test_link(self, test_link): method set_test_triple (line 218) | def set_test_triple(self, test_triple): method set_margin (line 221) | def set_margin(self, margin): method set_in_path (line 224) | def set_in_path(self, in_path): method set_test_file_path (line 227) | def set_test_file_path(self, test_file_path): method set_nbatches (line 230) | def set_nbatches(self, nbatches): method set_p_norm (line 233) | def set_p_norm(self, p_norm): method set_valid_steps (line 236) | def set_valid_steps(self, valid_steps): method set_save_steps (line 239) | def set_save_steps(self, save_steps): method set_checkpoint_dir (line 242) | def set_checkpoint_dir(self, checkpoint_dir): method set_result_dir (line 245) | def set_result_dir(self, result_dir): method set_alpha (line 248) | def set_alpha(self, alpha): method set_lmbda (line 251) | def set_lmbda(self, lmbda): method set_lmbda_two (line 254) | def set_lmbda_two(self, lmbda_two): method set_lr_decay (line 257) | def set_lr_decay(self, lr_decay): method set_weight_decay (line 260) | def set_weight_decay(self, weight_decay): method set_opt_method (line 263) | def set_opt_method(self, opt_method): method set_bern (line 266) | def set_bern(self, bern): method set_init_embeddings (line 269) | def set_init_embeddings(self, entity_embs, rel_embs): method set_config_CNN (line 274) | def set_config_CNN(self, num_of_filters, drop_prob, kernel_size=1): method set_dimension (line 279) | def set_dimension(self, dim): method set_ent_dimension (line 284) | def set_ent_dimension(self, dim): method set_rel_dimension (line 287) | def set_rel_dimension(self, dim): method set_train_times (line 290) | def set_train_times(self, train_times): method set_work_threads (line 293) | def set_work_threads(self, work_threads): method set_ent_neg_rate (line 296) | def set_ent_neg_rate(self, rate): method set_rel_neg_rate (line 299) | def set_rel_neg_rate(self, rate): method set_ent_dropout (line 302) | def set_ent_dropout(self, ent_dropout): method set_rel_dropout (line 305) | def set_rel_dropout(self, rel_dropout): method set_early_stopping_patience (line 308) | def set_early_stopping_patience(self, early_stopping_patience): method set_pretrain_model (line 311) | def set_pretrain_model(self, pretrain_model): method get_parameters (line 314) | def get_parameters(self, param_dict, mode="numpy"): method save_embedding_matrix (line 327) | def save_embedding_matrix(self, best_model): method set_train_model (line 333) | def set_train_model(self, model): method set_test_model (line 369) | def set_test_model(self, model, path=None): method sampling (line 380) | def sampling(self): method save_checkpoint (line 391) | def save_checkpoint(self, model, epoch): method save_best_checkpoint (line 397) | def save_best_checkpoint(self, best_model): method train_one_step (line 401) | def train_one_step(self): method test_one_step (line 416) | def test_one_step(self, model, test_h, test_t, test_r): method valid (line 424) | def valid(self, model): method training_model (line 444) | def training_model(self): method valid_triple_classification (line 495) | def valid_triple_classification(self, model): method training_triple_classification (line 522) | def training_triple_classification(self): method link_prediction (line 572) | def link_prediction(self): method triple_classification (line 590) | def triple_classification(self): method test (line 631) | def test(self): FILE: ConvKB_pytorch/ConvKB.py class ConvKB (line 15) | class ConvKB(Model): method __init__ (line 17) | def __init__(self, config): method init_parameters (line 33) | def init_parameters(self): method _calc (line 45) | def _calc(self, h, r, t): method loss (line 64) | def loss(self, score, regul): method forward (line 67) | def forward(self): method predict (line 82) | def predict(self): FILE: ConvKB_pytorch/ConvKB_1D.py class ConvKB (line 15) | class ConvKB(Model): method __init__ (line 17) | def __init__(self, config): method init_parameters (line 33) | def init_parameters(self): method _calc (line 45) | def _calc(self, h, r, t): method loss (line 61) | def loss(self, score, regul): method forward (line 64) | def forward(self): method predict (line 79) | def predict(self): FILE: ConvKB_pytorch/Model.py class Model (line 8) | class Model(nn.Module): method __init__ (line 9) | def __init__(self, config): method get_positive_score (line 17) | def get_positive_score(self, score): method get_negative_score (line 20) | def get_negative_score(self, score): method forward (line 26) | def forward(self): method predict (line 29) | def predict(self): FILE: ConvKB_pytorch/base/Base.cpp type Parameter (line 52) | struct Parameter { function sampling (line 117) | void sampling(INT *batch_h, INT *batch_t, INT *batch_r, REAL *batch_y, I... function main (line 137) | int main() { FILE: ConvKB_pytorch/base/Corrupt.h function INT (line 7) | INT corrupt_head(INT id, INT h, INT r) { function INT (line 39) | INT corrupt_tail(INT id, INT t, INT r) { function INT (line 72) | INT corrupt_rel(INT id, INT h, INT t) { function _find (line 105) | bool _find(INT h, INT t, INT r) { function INT (line 118) | INT corrupt(INT h, INT r){ FILE: ConvKB_pytorch/base/Random.h function randReset (line 9) | void randReset() { function randd (line 15) | unsigned long long randd(INT id) { function INT (line 20) | INT rand_max(INT id, INT x) { function INT (line 28) | INT rand(INT a, INT b){ FILE: ConvKB_pytorch/base/Reader.h function importTrainFiles (line 23) | void importTrainFiles() { function importTestFiles (line 128) | void importTestFiles() { function importTypeFiles (line 213) | void importTypeFiles() { FILE: ConvKB_pytorch/base/Setting.h function setInPath (line 14) | void setInPath(char *path) { function setTestFilePath (line 23) | void setTestFilePath(char *path) { function setOutPath (line 32) | void setOutPath(char *path) { function setWorkThreads (line 47) | void setWorkThreads(INT threads) { function INT (line 52) | INT getWorkThreads() { function INT (line 68) | INT getEntityTotal() { function INT (line 73) | INT getRelationTotal() { function INT (line 78) | INT getTripleTotal() { function INT (line 83) | INT getTrainTotal() { function INT (line 88) | INT getTestTotal() { function INT (line 93) | INT getValidTotal() { function setBern (line 103) | void setBern(INT con) { FILE: ConvKB_pytorch/base/Test.h function initTest (line 18) | void initTest() { function getHeadBatch (line 28) | void getHeadBatch(INT *ph, INT *pt, INT *pr) { function getTailBatch (line 37) | void getTailBatch(INT *ph, INT *pt, INT *pr) { function testHead (line 46) | void testHead(REAL *con) { function testTail (line 109) | void testTail(REAL *con) { function test_link_prediction (line 170) | void test_link_prediction() { function getNegTest (line 219) | void getNegTest() { function getNegValid (line 237) | void getNegValid() { function getTestBatch (line 254) | void getTestBatch(INT *ph, INT *pt, INT *pr, INT *nh, INT *nt, INT *nr) { function getValidBatch (line 267) | void getValidBatch(INT *ph, INT *pt, INT *pr, INT *nh, INT *nt, INT *nr) { function getBestThreshold (line 280) | void getBestThreshold(REAL *relThresh, REAL *score_pos, REAL *score_neg) { function REAL (line 321) | REAL test_triple_classification(REAL *relThresh, REAL *score_pos, REAL *... FILE: ConvKB_pytorch/base/Triple.h function cmp_list (line 5) | struct Triple { function cmp_head (line 18) | static bool cmp_head(const Triple &a, const Triple &b) { function cmp_tail (line 22) | static bool cmp_tail(const Triple &a, const Triple &b) { function cmp_rel (line 26) | static bool cmp_rel(const Triple &a, const Triple &b) { function cmp_rel2 (line 30) | static bool cmp_rel2(const Triple &a, const Triple &b) { FILE: ConvKB_pytorch/base/Valid.h function validInit (line 14) | void validInit() { function getValidHeadBatch (line 22) | void getValidHeadBatch(INT *ph, INT *pt, INT *pr) { function getValidTailBatch (line 31) | void getValidTailBatch(INT *ph, INT *pt, INT *pr) { function validHead (line 40) | void validHead(REAL *con) { function validTail (line 60) | void validTail(REAL *con) { function REAL (line 81) | REAL getValidHit10() { FILE: ConvKB_pytorch/train_ConvKB.py function get_term_id (line 69) | def get_term_id(filename): function get_init_embeddings (line 80) | def get_init_embeddings(relinit, entinit): FILE: ConvKB_tf/batching.py function randn (line 26) | def randn(*args): return np.random.randn(*args).astype('f') class Batch_Loader (line 28) | class Batch_Loader(object): method __init__ (line 29) | def __init__(self, train_triples, words_indexes, indexes_words, headTa... method __call__ (line 57) | def __call__(self): FILE: ConvKB_tf/builddata.py function read_from_id (line 8) | def read_from_id(filename='../data/WN18RR/entity2id.txt'): function init_norm_Vector (line 20) | def init_norm_Vector(relinit, entinit, embedding_size): function getID (line 39) | def getID(folder='data/WN18RR/'): function parse_line (line 85) | def parse_line(line): function load_triples_from_txt (line 97) | def load_triples_from_txt(filename, words_indexes=None, parse_line=parse... function build_data (line 150) | def build_data(name='WN18', path='../data'): function dic_of_chars (line 198) | def dic_of_chars(words_indexes): function convert_to_seq_chars (line 208) | def convert_to_seq_chars(x_batch, lstChars, indexes_words): function _pad_sequences (line 217) | def _pad_sequences(sequences, pad_tok, max_length): function pad_sequences (line 228) | def pad_sequences(sequences, pad_tok): FILE: ConvKB_tf/eval.py function predict (line 171) | def predict(x_batch, y_batch, writer=None): function test_prediction (line 181) | def test_prediction(x_batch, y_batch, head_or_tail='head'): FILE: ConvKB_tf/model.py class ConvKB (line 4) | class ConvKB(object): method __init__ (line 6) | def __init__(self, sequence_length, num_classes, embedding_size, filte... FILE: ConvKB_tf/train.py function train_step (line 128) | def train_step(x_batch, y_batch):