Hello
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
import re | |
import typer | |
import typer.core | |
class AliasGroup(typer.core.TyperGroup): | |
"""Typer Group subclass that supports commands with aliases. | |
To alias a command, include the aliases in the command name, |
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
# Work-around to get train flags into eval run | |
import pprint | |
import yaml | |
print("Merging training flags") | |
flags = yaml.load(open(".guild/attrs/flags")) | |
train_flags = yaml.load(open("train_flags")) | |
for name, val in train_flags.items(): |
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
up: guild.pass | |
down: | |
main: guild.pass | |
requires: | |
- operation: up | |
warn-if-empty: no | |
up-steps: | |
steps: |
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
with open("bigbatch.csv", "w") as f: | |
f.write("""x,y | |
1,2 | |
3,4 | |
""") |
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
with open("bigbatch.csv", "w") as f: | |
f.write("""x,y | |
1,2 | |
3,4 | |
""") |
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
train: | |
flags-dest: global:config | |
flags-import: all | |
train2: | |
flags-dest: namespace:config | |
flags-import: all |
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
[FLAGS] | |
lr = 0.01 | |
dropout = 0.2 | |
[OTHER] | |
foo = hello | |
bar = 123.0 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder