Constant

class ampligraph.latent_features.Constant(initializer_params={}, verbose=True, seed=0)

Initializes with the constant values provided by the user

Methods

__init__([initializer_params, verbose, seed])

Initialize the the constant values provided by the user

__init__(initializer_params={}, verbose=True, seed=0)

Initialize the the constant values provided by the user

Parameters
  • initializer_params (dict) –

    Consists of key-value pairs. The initializer will check the keys to get the corresponding params:

    • entity: (np.ndarray.float32). Initial values for entity embeddings

    • relation: (np.ndarray.float32). Initial values for relation embeddings

    Example: initializer_params={'entity': ent_init_value, 'relation': rel_init_value}

  • verbose (bool) – Enable/disable verbose mode

  • seed (int/np.random.RandomState) – random state for random number generator