Skip to content

Commit

Permalink
✨ 🦙 Make DistMult the default interaction function in R-GCN (pykeen#548)
Browse files Browse the repository at this point in the history
* Update rgcn.py

Trigger CI

* Fix type annotation

Trigger CI
  • Loading branch information
cthoyt authored Jul 23, 2021
1 parent bf97684 commit e1ccdfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pykeen/models/unimodal/rgcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Any, Mapping, Optional

import torch
from class_resolver import Hint
from class_resolver import Hint, HintOrType
from torch import nn

from ..nbase import ERModel, EmbeddingSpecificationHint
Expand Down Expand Up @@ -71,7 +71,7 @@ def __init__(
relation_initializer: Hint[Initializer] = nn.init.xavier_uniform_,
relation_initializer_kwargs: Optional[Mapping[str, Any]] = None,
relation_representations: EmbeddingSpecificationHint = None,
interaction: Interaction[torch.FloatTensor, RelationRepresentation, torch.FloatTensor],
interaction: HintOrType[Interaction[torch.FloatTensor, RelationRepresentation, torch.FloatTensor]] = 'DistMult',
interaction_kwargs: Optional[Mapping[str, Any]] = None,
use_bias: bool = True,
use_batch_norm: bool = False,
Expand Down

0 comments on commit e1ccdfc

Please sign in to comment.