GraphModel
- class mowl.base_models.GraphModel(*args, **kwargs)[source]
Bases:
Model
Abstract class for graph embedding methods.
Attributes Summary
Returns the edges of the graph as a list of
mowl.projection.edge.Edge
objects.Returns a dictionary that maps graph nodes to ids.
Returns a dictionary that maps graph relations (edge labels) to ids.
Returns the projector of the graph model.
Methods Summary
set_projector
(projector)Sets the projector of the graph model.
Attributes Documentation
- edges
Returns the edges of the graph as a list of
mowl.projection.edge.Edge
objects.- Return type:
list of
Edge
objects
- graph_relation_to_id
Returns a dictionary that maps graph relations (edge labels) to ids.
- Return type:
- projector
Returns the projector of the graph model.
- Return type:
ProjectionModel
object
Methods Documentation