|
| __init__ (self, ent_tot, rel_tot, dim=100) |
|
| forward (self, data) |
|
| regularization (self, data) |
|
| predict (self, data) |
|
| load_checkpoint (self, path) |
|
| save_checkpoint (self, path) |
|
| load_parameters (self, path) |
|
| save_parameters (self, path) |
|
| get_parameters (self, mode="numpy", param_dict=None) |
|
| set_parameters (self, parameters) |
|
|
| dim = dim |
|
| ent_embeddings = nn.Embedding(self.ent_tot, self.dim) |
|
| rel_matrices = nn.Embedding(self.rel_tot, self.dim * self.dim) |
|
| ent_tot = ent_tot |
|
| rel_tot = rel_tot |
|
| zero_const = nn.Parameter(torch.Tensor([0])) |
|
| pi_const = nn.Parameter(torch.Tensor([3.14159265358979323846])) |
|
◆ __init__()
OpenKE.module.model.RESCAL.RESCAL.__init__ |
( |
| self, |
|
|
| ent_tot, |
|
|
| rel_tot, |
|
|
| dim = 100 ) |
◆ forward()
OpenKE.module.model.RESCAL.RESCAL.forward |
( |
| self, |
|
|
| data ) |
◆ predict()
OpenKE.module.model.RESCAL.RESCAL.predict |
( |
| self, |
|
|
| data ) |
The documentation for this class was generated from the following file:
- seed_embeddings/OpenKE/module/model/RESCAL.py