Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/docs/alexsherstinsky/overall/fix_va…
Browse files Browse the repository at this point in the history
…rios_typos-2023_11_24-1
  • Loading branch information
alexsherstinsky committed Nov 29, 2023
2 parents b63c878 + b44f37b commit ce1a874
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/configuration/defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ defaults:
type: rnn
cell_type: lstm
num_layers: 2
training:
trainer:
learning_rate: 0.001
optimizer:
type: adam
Expand All @@ -271,5 +271,5 @@ training:
Example CLI command:

```
ludwig train --dataset spam.csv --config_str "{input_features: [{name: title, type: text}, {name: body, type: text}, {name: num_characters, type: number, preprocessing: {normalization: zscore}}], output_features: [{name: spam, type: category}], combiner: {type: concat, num_fc_layers: 1}, defaults: {text: {preprocessing: {word_vocab_size: 10000}, encoder: {type: rnn, cell_type: lstm, num_layers: 2}}}, training: {learning_rate: 0.001, optimizer: {type: adam}}"
ludwig train --dataset spam.csv --config_str "{input_features: [{name: title, type: text}, {name: body, type: text}, {name: num_characters, type: number, preprocessing: {normalization: zscore}}], output_features: [{name: spam, type: category}], combiner: {type: concat, num_fc_layers: 1}, defaults: {text: {preprocessing: {word_vocab_size: 10000}, encoder: {type: rnn, cell_type: lstm, num_layers: 2}}}, trainer: {learning_rate: 0.001, optimizer: {type: adam}}"
```
4 changes: 2 additions & 2 deletions docs/configuration/hyperparameter_optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ defaults:
text:
preprocessing:
word_vocab_size: 10000
training:
trainer:
learning_rate: 0.001
optimizer:
type: adam
Expand Down Expand Up @@ -282,5 +282,5 @@ hyperopt:
Example CLI command:

```
ludwig hyperopt --dataset reuters-allcats.csv --config_str "{input_features: [{name: title, type: text, encoder: {type: rnn, cell_type: lstm, num_layers: 2}}], output_features: [{name: class, type: category}], training: {learning_rate: 0.001}, hyperopt: {goal: maximize, output_feature: class, metric: accuracy, split: validation, parameters: {trainer.learning_rate: {space: loguniform, lower: 0.0001, upper: 0.1}, title.encoder.cell_type: {space: choice, categories: [rnn, gru, lstm]}}, search_alg: {type: variant_generator},executor: {type: ray, num_samples: 10}}}"
ludwig hyperopt --dataset reuters-allcats.csv --config_str "{input_features: [{name: title, type: text, encoder: {type: rnn, cell_type: lstm, num_layers: 2}}], output_features: [{name: class, type: category}], trainer: {learning_rate: 0.001}, hyperopt: {goal: maximize, output_feature: class, metric: accuracy, split: validation, parameters: {trainer.learning_rate: {space: loguniform, lower: 0.0001, upper: 0.1}, title.encoder.cell_type: {space: choice, categories: [rnn, gru, lstm]}}, search_alg: {type: variant_generator},executor: {type: ray, num_samples: 10}}}"
```
4 changes: 1 addition & 3 deletions docs/examples/fuel_efficiency.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ludwig experiment \
With `config.yaml`:

```yaml
training:
trainer:
batch_size: 32
epochs: 1000
early_stop: 50
Expand Down Expand Up @@ -49,8 +49,6 @@ output_features:
-
name: MPG
type: number
optimizer:
type: mean_squared_error
decoder:
num_fc_layers: 2
output_size: 64
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/machine_translation.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ output_features:
preprocessing:
tokenizer: italian_tokenize

training:
trainer:
batch_size: 96
```
2 changes: 1 addition & 1 deletion docs/examples/seq2seq.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ output_features:
loss:
type: softmax_cross_entropy

training:
trainer:
batch_size: 96
```
2 changes: 1 addition & 1 deletion docs/examples/speech_recognition.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ output_features:
name: label
type: category

training:
trainer:
early_stop: 10
```

0 comments on commit ce1a874

Please sign in to comment.