-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+More OOP: Mutation as a class itself Data processing as class itself (used through staticmethod) Layer initializer as layer's function Now it is easier to modificate and support +Minor fixes with imports +Naming fixes +Example provided in main.py
- Loading branch information
Showing
18 changed files
with
322 additions
and
191 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from . import evolution | ||
from . import evaluation | ||
from .evolution import Evolution | ||
from .evaluation import Evaluator | ||
from .mutation import Mutator |
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 @@ | ||
from .architecture_interface import cradle |
4 changes: 2 additions & 2 deletions
4
neuvol/architecture.py → ...ol/architecture/architecture_interface.py
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from .individ_text import Individ_text | ||
from .individ_text import IndividText | ||
|
||
|
||
def cradle(stage, data_type='text', task_type='classification', parents=None, freeze=None, **kwargs): | ||
""" | ||
Factory method for different data types | ||
""" | ||
if data_type == 'text': | ||
return Individ_text(stage, task_type='classification', parents=None, freeze=None, **kwargs) | ||
return IndividText(stage, task_type='classification', parents=None, freeze=None, **kwargs) |
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.