-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- {dann,daws}_hda methods have 2 feature extractors - pass is_target into eval_step() during eval to know which FE to use - script to test how Python's multiple inheritance works
- Loading branch information
Showing
5 changed files
with
247 additions
and
23 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
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,48 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Test heterogeneous multiple inheritance | ||
""" | ||
|
||
|
||
class MethodBase: | ||
def __init__(self): | ||
print("MethodBase") | ||
|
||
|
||
class MethodDann(MethodBase): | ||
def __init__(self): | ||
super().__init__() | ||
print("MethodDann") | ||
|
||
|
||
class MethodDaws(MethodBase): | ||
def __init__(self): | ||
super().__init__() | ||
print("MethodDaws") | ||
|
||
|
||
class HeterogeneousBase: | ||
def __init__(self): | ||
super().__init__() | ||
print("HeterogeneousBase") | ||
|
||
|
||
class HeterogeneousDann(HeterogeneousBase, MethodDann): | ||
pass | ||
# def __init__(self): | ||
# super().__init__() | ||
# print("HeterogeneousDann") | ||
# print(HeterogeneousDann.__mro__) | ||
|
||
|
||
class HeterogeneousDaws(HeterogeneousBase, MethodDaws): | ||
pass | ||
# def __init__(self): | ||
# super().__init__() | ||
# print("HeterogeneousDaws") | ||
# print(HeterogeneousDaws.__mro__) | ||
|
||
|
||
if __name__ == "__main__": | ||
a = HeterogeneousDann() | ||
# b = HeterogeneousDaws() |