KGEModel

class mowl.base_models.KGEModel(*args, **kwargs)[source]

Bases: GraphModel

Base class for graph embedding methods that use knowledge graph embedding methods.

Attributes Summary

kge_method

Returns the knowledge graph embedding method of the KGE model.

Methods Summary

set_kge_method(kge_method)

Sets the knowledge graph embedding method of the KGE model.

Attributes Documentation

kge_method

Returns the knowledge graph embedding method of the KGE model.

Return type:

Defined in child classes

Methods Documentation

set_kge_method(kge_method)[source]

Sets the knowledge graph embedding method of the KGE model.

Parameters:

kge_method (Defined in child classes) – the kge method to be set