Skip to content

Commit

Permalink
fix typos (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirjagranfors authored Jan 31, 2025
1 parent 95bbf56 commit fdeb3e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorials/3-advanced-topics/DTAT311_image.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"source": [
"## 1. What is an Image?\n",
"\n",
"An `Image` is a container used by a feature to store both the generated image and the properties used to generate it. It is a subclass of numpy `ndarray`, so that any operation that works for `ndarrays` will also work for `Image`. `Image` has also a field `properties`, which contains the information about how the image has been generated (see also [properties_example](properties_example.ipynb)). Specifically, `properties` is a list of dictionaries, where each dictionary holds the current values of the properties of a feature (with the names of the properties as keys). This list is ordered as the features have been resolved.\n",
"An `Image` is a container used by a feature to store both the generated image and the properties used to generate it. It is a subclass of numpy `ndarray`, meaning that any operation that works for `ndarrays` will also work for `Image`. `Image` has also a field `properties`, which contains the information about how the image has been generated (see also [properties_example](DTAT306_properties.ipynb)). Specifically, `properties` is a list of dictionaries, where each dictionary holds the current values of the properties of a feature (with the names of the properties as keys). This list is ordered as the features have been resolved.\n",
"\n",
"By storing the properties used to resolve the image, information about the image can be accessed without access to the feature series. This allows features to change their behaviour depending on what is already in the image. This also allows to extract numeric information about the image (e.g., to be used in supervised learning).\n",
"\n",
"**NOTE:** By default, feartures return numerical arrays. To return objects of the `Image` class, you need to call the `.store_properties()` method on the individual feature."
"**NOTE:** By default, features return numerical arrays. To return objects of the `Image` class, you need to call the `.store_properties()` method on the individual feature."
]
},
{
Expand Down Expand Up @@ -104,7 +104,7 @@
"metadata": {},
"source": [
"You can use the method `.merge_properties_from()` to merge the properties of two images.\n",
"If the two images are intetical (they are resolved from the same feature without an update), only one set of properties is kept."
"If the two images are identical (they are resolved from the same feature without an update), only one set of properties is kept."
]
},
{
Expand Down

0 comments on commit fdeb3e8

Please sign in to comment.