Skip to content

Commit df7822c

Browse files
committed
Fix typos in tutorials
1 parent ff16f7b commit df7822c

3 files changed

+4
-4
lines changed

docs/create_your_first_nn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ val model = Sequential.of(
7777
Quite simple, right? Let's take a closer look at what we have defined here.
7878
First, we specify the kind of input we will pass to this neural network.
7979
We have images that are 28 x 28 pixels and only have one color channel.
80-
Thus the input will be an array of size 28 x 28 x 1.
80+
Thus, the input will be an array of size 28 x 28 x 1.
8181

8282
The first layer is `Flatten()`. It simply reformats the data,
8383
transforming the three-dimensional input array into a one-dimensional array

docs/importing_keras_model.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Non-trainable params: 0
6767

6868
You can find a Jupyter notebook with the Python code used to train this model [here](CIFAR-10.ipynb).
6969

70-
Once this model has been trained, it's important to save it properly so we can load it from KotlinDL:
70+
Once this model has been trained, it's important to save it properly, so we can load it from KotlinDL:
7171
```python
7272
model.save('keras-cifar-10/weights', save_format='h5')
7373

@@ -124,7 +124,7 @@ fun main() {
124124
```
125125

126126
As you can see, loading and using a model trained with Keras is quite simple.
127-
If the architecture is supported, all you need to do is save the weights and JSON configuration after training,
127+
If the architecture is supported, all you need to do is to save the weights and JSON configuration after training,
128128
load it from KotlinDL, and make sure to preprocess your data again before running the inference task.
129129

130130

docs/loading_trained_model_for_inference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ we'll use the test data subset to generate a prediction example that the model h
77
The example images in the test data have the same size and format as the ones the model has been trained on,
88
so we do not need to do any additional preprocessing.
99
However, if you are going to train the model on your own data,
10-
make sure to use the same image preprocessing before using an image for inference as you did training your model.
10+
make sure to use the same image preprocessing before using an image for inference as you did while training your model.
1111
Every model expects to get exactly the same input as it was trained on.
1212

1313
To load the model simply use the path to it, tell it how incoming images should be reshaped (if needed), and call the

0 commit comments

Comments
 (0)