-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create carnival experiments notebook, improve plotting function
- Loading branch information
1 parent
48d24b2
commit 4cc35f9
Showing
8 changed files
with
8,275 additions
and
2,925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
from corneto import DEFAULT_BACKEND | ||
from corneto._graph import BaseGraph | ||
|
||
|
||
class CornetoMethod(ABC): | ||
def __init__(self, backend=DEFAULT_BACKEND): | ||
self._backend = backend | ||
self._annotated_flow_graph = None | ||
self.problem = None | ||
|
||
@abstractmethod | ||
def create_problem(self): | ||
raise NotImplementedError | ||
|
||
@abstractmethod | ||
def map_data(self, graph: BaseGraph, data) -> BaseGraph: | ||
raise NotImplementedError | ||
|
||
@abstractmethod | ||
def transform_graph(self, graph: BaseGraph) -> BaseGraph: | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.