|
<< Click to Display Table of Contents >> Navigation: PySMILE reference > Learning > pysmile.learning.Pattern |
get_edge(self: pysmile.learning.Pattern, from: int, to: int) -> pysmile.learning.Pattern.EdgeType
Gets the edge type between two nodes
get_size(self: pysmile.learning.Pattern) -> int
Gets the number of nodes in the pattern
has_cycle(self: pysmile.learning.Pattern) -> bool
Checks if the pattern contains a cycle
is_dag(self: pysmile.learning.Pattern) -> bool
Checks if the pattern is a DAG
make_network(self: pysmile.learning.Pattern, ds: pysmile.learning.DataSet) -> pysmile.Network
Creates a network from the pattern
set_edge(self: pysmile.learning.Pattern, from: int, to: int, type: pysmile.learning.Pattern.EdgeType) -> None
Sets the edge type between two nodes
set_size(self: pysmile.learning.Pattern, size: int) -> None
Sets the number of nodes in the pattern