-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a38b035
commit 95b7216
Showing
9 changed files
with
135 additions
and
89 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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
from .ft_transformer_conv import FTTransformerConvs | ||
|
||
from .ft_transformer_conv import FTTransformerConv | ||
from .tab_transformer_conv import TabTransformerConv | ||
|
||
__all__ = [ | ||
'FTTransformerConvs', | ||
'TabTransformerConv' | ||
] | ||
__all__ = ["FTTransformerConv", "TabTransformerConv"] |
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,40 @@ | ||
import os | ||
import subprocess | ||
|
||
EXAMPLE_ROOT = os.path.join( | ||
os.path.dirname(os.path.relpath(__file__)), | ||
"..", | ||
"..", | ||
"examples", | ||
"bridge", | ||
) | ||
|
||
|
||
def test_bridge_tml1m(): | ||
script = os.path.join(EXAMPLE_ROOT, "bridge_tml1m.py") | ||
out = subprocess.run(["python", str(script)], capture_output=True) | ||
assert ( | ||
out.returncode == 0 | ||
), f"stdout: {out.stdout.decode('utf-8')}\nstderr: {out.stderr.decode('utf-8')}" | ||
stdout = out.stdout.decode("utf-8") | ||
assert float(stdout[-9:]) > 0.42 | ||
|
||
|
||
def test_gat(): | ||
script = os.path.join(EXAMPLE_ROOT, "bridge_tlf2k.py") | ||
out = subprocess.run(["python", str(script)], capture_output=True) | ||
assert ( | ||
out.returncode == 0 | ||
), f"stdout: {out.stdout.decode('utf-8')}\nstderr: {out.stderr.decode('utf-8')}" | ||
stdout = out.stdout.decode("utf-8") | ||
assert float(stdout[-9:]) > 0.49 | ||
|
||
|
||
def test_han(): | ||
script = os.path.join(EXAMPLE_ROOT, "bridge_tacm12k.py") | ||
out = subprocess.run(["python", str(script)], capture_output=True) | ||
assert ( | ||
out.returncode == 0 | ||
), f"stdout: {out.stdout.decode('utf-8')}\nstderr: {out.stderr.decode('utf-8')}" | ||
stdout = out.stdout.decode("utf-8") | ||
assert float(stdout[-9:]) > 0.32 |
Oops, something went wrong.