mirror of
https://github.com/clearml/clearml-docs
synced 2025-03-03 10:42:51 +00:00
Add task argument clarification (#902)
This commit is contained in:
parent
1dc9e9e81e
commit
04a7436e1b
@ -214,9 +214,20 @@ task = Task.create(
|
|||||||
script='examples/reporting/html_reporting.py',
|
script='examples/reporting/html_reporting.py',
|
||||||
working_directory='.',
|
working_directory='.',
|
||||||
docker=None,
|
docker=None,
|
||||||
|
argparse_args=[
|
||||||
|
("lr", 0.01),
|
||||||
|
("epochs", 10)
|
||||||
|
]
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
:::info Argument Specification
|
||||||
|
When specifying arguments in `argparse_args`, use the full argument name (e.g., `--lr`) instead of the short form
|
||||||
|
(e.g., `-l`). ClearML works by connecting with the argument parser and replacing the associated variable name, not the
|
||||||
|
flag. In most cases, the full argument name and the variable name are the same, but the short version is different and
|
||||||
|
will not work.
|
||||||
|
:::
|
||||||
|
|
||||||
For more information, see [`Task.create()`](../references/sdk/task.md#taskcreate).
|
For more information, see [`Task.create()`](../references/sdk/task.md#taskcreate).
|
||||||
|
|
||||||
## Tracking Task Progress
|
## Tracking Task Progress
|
||||||
|
Loading…
Reference in New Issue
Block a user