Skip to content

Commit

Permalink
Fixed a minor misinformation on how to use --config and --config_str. (
Browse files Browse the repository at this point in the history
…#363)

* Fixed a minor missinformation on how to use --config and --config_str.

* Fixed style anti-pattern, which issued a flake8 fail for rule E201

---------

Co-authored-by: m.habedank <[email protected]>
  • Loading branch information
mhabedank and m.habedank authored Jun 25, 2024
1 parent 2d28987 commit c423ee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/user_guide/command_line_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Finally the `--logging_level` argument lets you set the amount of logging that y
Example:

```bash
ludwig train --dataset reuters-allcats.csv --config "{input_features: [{name: text, type: text, encoder: {type: parallel_cnn}}], output_features: [{name: class, type: category}]}"
ludwig train --dataset reuters-allcats.csv --config_str "{input_features: [{name: text, type: text, encoder: {type: parallel_cnn}}], output_features: [{name: class, type: category}]}"
```

# predict
Expand Down Expand Up @@ -487,7 +487,7 @@ The output directory will contain the outputs both commands produce.
Example:

```bash
ludwig experiment --dataset reuters-allcats.csv --config "{input_features: [{name: text, type: text, encoder: {type: parallel_cnn}}], output_features: [{name: class, type: category}]}"
ludwig experiment --dataset reuters-allcats.csv --config_str "{input_features: [{name: text, type: text, encoder: {type: parallel_cnn}}], output_features: [{name: class, type: category}]}"
```

# hyperopt
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def render_field(name, field, details):
' :octicons-bookmark-fill-24:{ title="High impact parameter" }'
)

s = f"- **`{ name }`** {default_str}{impact_badge}: { field.metadata['description'] }"
s = f"- **`{name}`** {default_str}{impact_badge}: {field.metadata['description']}"
if field.validate is not None and hasattr(field.validate, "choices"):
options = ", ".join(
[f"`{dump_value(opt)}`" for opt in field.validate.choices]
Expand Down

0 comments on commit c423ee4

Please sign in to comment.