-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from pytorch-lumo/dev1
Weakly update 2023.03.13
- Loading branch information
Showing
92 changed files
with
5,559 additions
and
1,337 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
paths: ./src/lumo/ | ||
badge: ./images # Path | ||
exclude: | ||
|
||
verbose: 3 # int (0-4) | ||
skip_magic: True # Boolean | ||
skip_file_doc: True # Boolean | ||
skip_property: True | ||
skip_init: True # Boolean | ||
#skip_class_def: True # Boolean | ||
skip_private: True # Boolean | ||
follow_links: True # Boolean | ||
accept_empty: True # Boolean | ||
ignore_names_file: .*/test # regex | ||
#fail_under: 90 # int | ||
#percentage_only: True # Boolean | ||
ignore_patterns: | ||
callbacks: | ||
- ".*" | ||
exphook: | ||
- ".*" |
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 |
---|---|---|
|
@@ -165,4 +165,5 @@ lumo_temp | |
|
||
wandb | ||
.lumorc.json | ||
docs/ | ||
.lumorc.public.json | ||
docs/ |
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 was deleted.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -14,4 +14,5 @@ dbrecord | |
packaging | ||
pandas | ||
hydra-core | ||
tensorboard | ||
tensorboard | ||
filelock |
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,56 @@ | ||
import fire | ||
|
||
|
||
def rerun(test_name, **kwarg): | ||
""" | ||
rerun a test | ||
lumo rerun <test_name> | ||
lumo rerun <test_name> --device=0 | ||
Args: | ||
test_name: | ||
Returns: | ||
""" | ||
from lumo.exp.finder import retrieval_experiment | ||
exp = retrieval_experiment(test_name) | ||
if exp is not None: | ||
exp.rerun([f'--{k}={v}' for k, v in kwarg.items()]) | ||
else: | ||
exit(1) | ||
|
||
|
||
def note(test_name, description): | ||
""" | ||
Add note to a test: | ||
lumo note <test_name> description ; | ||
Args: | ||
test_name: | ||
description: | ||
Returns: | ||
""" | ||
print(f"Adding note '{description}' to {test_name}") | ||
|
||
|
||
def server(port=8080): | ||
""" | ||
Args: | ||
port: | ||
Returns: | ||
""" | ||
print(f"Starting server on port {port}") | ||
|
||
|
||
def main(): | ||
fire.Fire({ | ||
'rerun': rerun, | ||
'note': note, | ||
'server': server, | ||
}) |
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,5 @@ | ||
import fire | ||
from lumo.cli import main | ||
|
||
if __name__ == '__main__': | ||
main() |
Oops, something went wrong.