Skip to content

Commit bc6b625

Browse files
committed
Make formatting more readable in tutorial index
1 parent b3a3365 commit bc6b625

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

docs/tutorials/basics.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ We also show how to perform inference on speech recognition, speech separation,
6868

6969
One key component of deep learning is iterating the dataset multiple times and performing parameter updates.
7070
This process is sometimes called the "training loop" and there are usually many stages to this loop.
71+
7172
SpeechBrain provides a convenient framework for organizing the training loop, in the form of a class known as the "Brain" class,
72-
implemented in speechbrain/core.py. In each recipe, we sub-class this class and override the methods for which the default
73+
implemented in `speechbrain/core.py`. In each recipe, we sub-class this class and override the methods for which the default
7374
implementation doesn't do what is required for that particular recipe.
7475

7576
.. rubric:: `🔗 HyperPyYAML Tutorial <basics/hyperpyyaml.html>`_
@@ -88,9 +89,11 @@ implementation doesn't do what is required for that particular recipe.
8889

8990
An essential part of any deep learning pipeline is the definition of hyperparameters and other metadata.
9091
These data in conjunction with the deep learning algorithms control the various aspects of the pipeline,
91-
such as model architecture, training, and decoding. At SpeechBrain, we decided that the distinction between
92+
such as model architecture, training, and decoding.
93+
94+
At SpeechBrain, we decided that the distinction between
9295
hyperparameters and learning algorithms ought to be evident in the structure of our toolkit, so we split our
93-
recipes into two primary files: experiment.py and hyperparams.yaml. The hyperparams.yaml file is in a
96+
recipes into two primary files: `train.py` and `hyperparams.yaml`. The `hyperparams.yaml` file is in a
9497
SpeechBrain-developed format, which we call "HyperPyYAML". We chose to extend YAML since it is a highly
9598
readable format for data serialization. By extending an already useful format, we were able to create an
9699
expanded definition of hyperparameter, keeping our actual experimental code small and highly readable.
@@ -111,7 +114,7 @@ expanded definition of hyperparameter, keeping our actual experimental code smal
111114

112115
Setting up an efficient data loading pipeline is often a tedious task which involves creating the examples,
113116
defining your torch.utils.data.Dataset class as well as different data sampling and augmentations strategies.
114-
In SpeechBrain we provide efficient abstractions to simplify this time-consuming process without sacrificing
117+
In SpeechBrain, we provide efficient abstractions to simplify this time-consuming process without sacrificing
115118
flexibility. In fact our data pipeline is built around the Pytorch one.
116119

117120
.. rubric:: `🔗 Checkpointing <basics/checkpointing.html>`_

docs/tutorials/preprocessing.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ that normally helps neural networks improving generalization and thus achieve be
4949

5050

5151
In speech and audio processing, the signal in the time-domain is often transformed into another domain.
52-
Ok, but why do we need to transform an audio signal? Some speech characteristics/patterns of the signal (e.g, pitch, formats)
52+
But why do we need to transform an audio signal? This is because some speech characteristics/patterns of the signal (e.g, pitch, formats)
5353
might not be very evident when looking at the audio in the time-domain. With properly designed transformations,
54-
it might be easier to extract the needed information from the signal itself. The most popular transformation is the
54+
it might be easier to extract the needed information from the signal itself.
55+
56+
The most popular transformation is the
5557
Fourier Transform, which turns the time-domain signal into an equivalent representation in the frequency domain.
5658
In the following sections, we will describe the Fourier transforms along with other related transformations such as
5759
Short-Term Fourier Transform (STFT) and spectrograms.

0 commit comments

Comments
 (0)