__init__(self, ent_tot, rel_tot, dim_e=100, dim_r=100, p_norm=1, norm_flag=True, rand_init=False, margin=None) (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
_calc(self, h, t, r, mode) (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | protected |
_transfer(self, e, r_transfer) (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | protected |
dim_e (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
dim_r (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
ent_embeddings (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
forward(self, data) (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
margin (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
margin_flag (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
norm_flag (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
p_norm (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
predict(self, data) (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
rand_init (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
regularization(self, data) (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
rel_embeddings (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
rel_tot (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |
transfer_matrix (defined in OpenKE.module.model.TransR.TransR) | OpenKE.module.model.TransR.TransR | |