mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Capitalized examples task name, updated example requirements (#573)
This commit is contained in:
@@ -7,7 +7,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name="autokeras", task_name="autokeras imdb example with scalars")
|
||||
task = Task.init(project_name="autokeras", task_name="AutoKeras IMDB example with scalars")
|
||||
|
||||
|
||||
def imdb_raw():
|
||||
|
||||
@@ -6,7 +6,7 @@ from clearml import Task
|
||||
@click.option('--print-something/--dont-print-something', default=True)
|
||||
@click.option('--what-to-print', default='something')
|
||||
def cli(print_something, what_to_print):
|
||||
Task.init(project_name='examples', task_name='click multi command')
|
||||
Task.init(project_name='examples', task_name='Click multi command')
|
||||
if print_something:
|
||||
print(what_to_print)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from clearml import Task
|
||||
@click.option('--name', prompt='Your name',
|
||||
help='The person to greet.')
|
||||
def hello(count, name):
|
||||
task = Task.init(project_name='examples', task_name='click single command')
|
||||
task = Task.init(project_name='examples', task_name='Click single command')
|
||||
|
||||
"""Simple program that greets NAME for a total of COUNT times."""
|
||||
for x in range(count):
|
||||
|
||||
@@ -8,7 +8,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name="examples", task_name="fastai with tensorboard callback")
|
||||
task = Task.init(project_name="examples", task_name="Fastai with TensorBoard callback")
|
||||
|
||||
path = untar_data(URLs.MNIST_SAMPLE)
|
||||
|
||||
|
||||
@@ -17,5 +17,5 @@ class BrokenCalculator(object):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Task.init(project_name="examples", task_name="fire class command")
|
||||
Task.init(project_name="examples", task_name="Fire class command")
|
||||
fire.Fire(BrokenCalculator)
|
||||
|
||||
@@ -14,7 +14,7 @@ def multiply(x, y):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Task.init(project_name="examples", task_name="fire dict command")
|
||||
Task.init(project_name="examples", task_name="Fire dict command")
|
||||
fire.Fire(
|
||||
{
|
||||
"add": add,
|
||||
|
||||
@@ -40,5 +40,5 @@ class Pipeline(object):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Task.init(project_name="examples", task_name="fire grouping command")
|
||||
Task.init(project_name="examples", task_name="Fire grouping command")
|
||||
fire.Fire(Pipeline)
|
||||
|
||||
@@ -18,5 +18,5 @@ def serve(addr, port, should_serve=False):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Task.init(project_name="examples", task_name="fire multi command")
|
||||
Task.init(project_name="examples", task_name="Fire multi command")
|
||||
fire.Fire()
|
||||
|
||||
@@ -14,6 +14,6 @@ class Calculator(object):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Task.init(project_name="examples", task_name="fire object command")
|
||||
Task.init(project_name="examples", task_name="Fire object command")
|
||||
calculator = Calculator()
|
||||
fire.Fire(calculator)
|
||||
|
||||
@@ -11,5 +11,5 @@ def hello(count, name="clearml", prefix="prefix_", suffix="_suffix", **kwargs):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Task.init(project_name="examples", task_name="fire single command")
|
||||
Task.init(project_name="examples", task_name="Fire single command")
|
||||
fire.Fire(hello)
|
||||
|
||||
@@ -10,7 +10,7 @@ from clearml import Task
|
||||
@hydra.main(config_path="config_files", config_name="config")
|
||||
def my_app(cfg):
|
||||
# type (DictConfig) -> None
|
||||
task = Task.init(project_name="examples", task_name="hydra configuration")
|
||||
task = Task.init(project_name="examples", task_name="Hydra configuration")
|
||||
logger = task.get_logger()
|
||||
logger.report_text("You can view your full hydra configuration under Configuration tab in the UI")
|
||||
print(OmegaConf.to_yaml(cfg))
|
||||
|
||||
@@ -19,7 +19,7 @@ from clearml import Task, StorageManager
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='image classification CIFAR10')
|
||||
task = Task.init(project_name='examples', task_name='Image classification CIFAR10')
|
||||
params = {'number_of_epochs': 20, 'batch_size': 64, 'dropout': 0.25, 'base_lr': 0.001, 'momentum': 0.9, 'loss_report': 100}
|
||||
params = task.connect(params) # enabling configuration override by clearml
|
||||
print(params) # printing actual configuration (after override in remote mode)
|
||||
|
||||
@@ -94,7 +94,7 @@ def train(dataloader, args):
|
||||
|
||||
|
||||
def main():
|
||||
task = Task.init(project_name="examples", task_name="megengine mnist train") # noqa
|
||||
task = Task.init(project_name="examples", task_name="MegEngine MNIST train") # noqa
|
||||
|
||||
parser = argparse.ArgumentParser(description="MegEngine MNIST Example")
|
||||
parser.add_argument(
|
||||
|
||||
@@ -55,7 +55,7 @@ class LitClassifier(pl.LightningModule):
|
||||
if __name__ == '__main__':
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name="examples", task_name="pytorch lightning mnist example")
|
||||
task = Task.init(project_name="examples", task_name="PyTorch lightning MNIST example")
|
||||
|
||||
pl.seed_everything(0)
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ def test(args, model, device, test_loader, epoch):
|
||||
def main(_):
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name="examples", task_name="pytorch mnist train with abseil")
|
||||
task = Task.init(project_name="examples", task_name="PyTorch MNIST train with abseil")
|
||||
|
||||
use_cuda = FLAGS.cuda and torch.cuda.is_available()
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='pytorch with matplotlib example', task_type=Task.TaskTypes.testing)
|
||||
task = Task.init(project_name='examples', task_name='PyTorch with Matplotlib example', task_type=Task.TaskTypes.testing)
|
||||
|
||||
|
||||
######################################################################
|
||||
|
||||
@@ -76,7 +76,7 @@ def test(args, model, device, test_loader, epoch):
|
||||
def main():
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='pytorch mnist train')
|
||||
task = Task.init(project_name='examples', task_name='PyTorch MNIST train')
|
||||
|
||||
# Training settings
|
||||
parser = argparse.ArgumentParser(description='PyTorch MNIST Example')
|
||||
|
||||
@@ -23,7 +23,7 @@ def main():
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(
|
||||
project_name="examples",
|
||||
task_name="Model update pytorch",
|
||||
task_name="Model update PyTorch",
|
||||
auto_connect_frameworks={"pytorch": False},
|
||||
)
|
||||
params = {
|
||||
|
||||
@@ -102,7 +102,7 @@ def main():
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='pytorch with tensorboard') # noqa: F841
|
||||
task = Task.init(project_name='examples', task_name='PyTorch with TensorBoard') # noqa: F841
|
||||
|
||||
writer = SummaryWriter('runs')
|
||||
writer.add_text('TEXT', 'This is some text', 0)
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
matplotlib
|
||||
tensorboardX
|
||||
tensorboard>=1.14.0
|
||||
torch>=1.1.0
|
||||
torchvision>=0.3.0
|
||||
torch >= 1.1.0 ; python_version >= '3.8'
|
||||
torch <= 1.5.1 ; python_version < '3.8'
|
||||
torchvision
|
||||
tqdm
|
||||
clearml
|
||||
jsonschema==3.2.0 ; python_version <= '3.5'
|
||||
clearml
|
||||
|
||||
@@ -10,7 +10,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='pytorch tensorboard toy example')
|
||||
task = Task.init(project_name='examples', task_name='PyTorch TensorBoard toy example')
|
||||
|
||||
writer = SummaryWriter(log_dir=os.path.join(gettempdir(), 'tensorboard_logs'))
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name="examples", task_name="scikit-learn joblib example")
|
||||
task = Task.init(project_name="examples", task_name="Scikit-learn joblib example")
|
||||
|
||||
iris = datasets.load_iris()
|
||||
X = iris.data
|
||||
|
||||
@@ -102,7 +102,7 @@ def main():
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='pytorch with tensorboardX')
|
||||
task = Task.init(project_name='examples', task_name='PyTorch with tensorboardX')
|
||||
|
||||
writer = SummaryWriter('runs')
|
||||
writer.add_text('TEXT', 'This is some text', 0)
|
||||
|
||||
@@ -42,7 +42,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='tensorboard pr_curve')
|
||||
task = Task.init(project_name='examples', task_name='TensorBoard pr_curve')
|
||||
|
||||
tf.compat.v1.disable_v2_behavior()
|
||||
FLAGS = flags.FLAGS
|
||||
|
||||
@@ -12,7 +12,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='tensorboard toy example')
|
||||
task = Task.init(project_name='examples', task_name='TensorBoard toy example')
|
||||
|
||||
k = tf.placeholder(tf.float32)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ tf.compat.v1.enable_eager_execution()
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='Tensorflow eager mode')
|
||||
task = Task.init(project_name='examples', task_name='TensorFlow eager mode')
|
||||
|
||||
FLAGS = tf.app.flags.FLAGS
|
||||
tf.app.flags.DEFINE_integer('data_num', 100, """Flag of type integer""")
|
||||
|
||||
@@ -37,7 +37,7 @@ FLAGS = None
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='Tensorflow mnist with summaries example')
|
||||
task = Task.init(project_name='examples', task_name='TensorFlow MNIST with summaries example')
|
||||
|
||||
|
||||
def train():
|
||||
|
||||
@@ -41,7 +41,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='tensorboard pr_curve')
|
||||
task = Task.init(project_name='examples', task_name='TensorBoard pr_curve')
|
||||
|
||||
tf.compat.v1.disable_v2_behavior()
|
||||
FLAGS = flags.FLAGS
|
||||
|
||||
@@ -61,7 +61,7 @@ def generate_summary(k, step):
|
||||
tf.summary.image("test_rgba", image_rgba, max_outputs=10, step=step)
|
||||
|
||||
|
||||
task = Task.init(project_name='examples', task_name='tensorboard toy example')
|
||||
task = Task.init(project_name='examples', task_name='TensorbBoard toy example')
|
||||
|
||||
# create the tensorboard file writer in a temp folder
|
||||
writer = tf.summary.create_file_writer(os.path.join(gettempdir(), "toy_tb_example"))
|
||||
|
||||
@@ -13,7 +13,7 @@ from clearml import Task
|
||||
|
||||
# Connecting ClearML with the current process,
|
||||
# from here on everything is logged automatically
|
||||
task = Task.init(project_name='examples', task_name='Tensorflow v2 mnist with summaries')
|
||||
task = Task.init(project_name='examples', task_name='TensorFlow v2 MNIST with summaries')
|
||||
|
||||
|
||||
# Load and prepare the MNIST dataset.
|
||||
|
||||
@@ -4,7 +4,7 @@ from sklearn.model_selection import train_test_split
|
||||
|
||||
from clearml import Task
|
||||
|
||||
task = Task.init(project_name="examples", task_name="xgboost metric auto reporting")
|
||||
task = Task.init(project_name="examples", task_name="XGBoost metric auto reporting")
|
||||
|
||||
X, y = load_iris(return_X_y=True)
|
||||
X_train, X_test, y_train, y_test = train_test_split(
|
||||
|
||||
Reference in New Issue
Block a user