Skip to content

Commit

Permalink
feat: integrate version 0.28.0 of the safe-ds Python library (#1237)
Browse files Browse the repository at this point in the history
### Summary of Changes

Integrate version 0.28.0 of the `safe-ds` Python library ([release
notes](https://github.com/Safe-DS/Library/releases/tag/v0.28.0)).
  • Loading branch information
lars-reimann authored Sep 25, 2024
1 parent 6bdf1ed commit 1b742e7
Show file tree
Hide file tree
Showing 69 changed files with 3,293 additions and 376 deletions.
9 changes: 9 additions & 0 deletions docs/api/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,20 @@ search:
- [Row](safeds/data/tabular/containers/Row.md)
- [StringCell](safeds/data/tabular/containers/StringCell.md)
- [Table](safeds/data/tabular/containers/Table.md)
- [TemporalCell](safeds/data/tabular/containers/TemporalCell.md)
- plotting
- [ColumnPlotter](safeds/data/tabular/plotting/ColumnPlotter.md)
- [TablePlotter](safeds/data/tabular/plotting/TablePlotter.md)
- transformation
- [Discretizer](safeds/data/tabular/transformation/Discretizer.md)
- [FunctionalTableTransformer](safeds/data/tabular/transformation/FunctionalTableTransformer.md)
- [InvertibleTableTransformer](safeds/data/tabular/transformation/InvertibleTableTransformer.md)
- [KNearestNeighborsImputer](safeds/data/tabular/transformation/KNearestNeighborsImputer.md)
- [LabelEncoder](safeds/data/tabular/transformation/LabelEncoder.md)
- [OneHotEncoder](safeds/data/tabular/transformation/OneHotEncoder.md)
- [RangeScaler](safeds/data/tabular/transformation/RangeScaler.md)
- [RobustScaler](safeds/data/tabular/transformation/RobustScaler.md)
- [SequentialTableTransformer](safeds/data/tabular/transformation/SequentialTableTransformer.md)
- [SimpleImputer](safeds/data/tabular/transformation/SimpleImputer.md)
- [StandardScaler](safeds/data/tabular/transformation/StandardScaler.md)
- [TableTransformer](safeds/data/tabular/transformation/TableTransformer.md)
Expand Down Expand Up @@ -70,6 +75,7 @@ search:
- classical
- classification
- [AdaBoostClassifier](safeds/ml/classical/classification/AdaBoostClassifier.md)
- [BaselineClassifier](safeds/ml/classical/classification/BaselineClassifier.md)
- [Classifier](safeds/ml/classical/classification/Classifier.md)
- [DecisionTreeClassifier](safeds/ml/classical/classification/DecisionTreeClassifier.md)
- [GradientBoostingClassifier](safeds/ml/classical/classification/GradientBoostingClassifier.md)
Expand All @@ -80,6 +86,7 @@ search:
- regression
- [AdaBoostRegressor](safeds/ml/classical/regression/AdaBoostRegressor.md)
- [ArimaRegressor](safeds/ml/classical/regression/ArimaRegressor.md)
- [BaselineRegressor](safeds/ml/classical/regression/BaselineRegressor.md)
- [DecisionTreeRegressor](safeds/ml/classical/regression/DecisionTreeRegressor.md)
- [ElasticNetRegressor](safeds/ml/classical/regression/ElasticNetRegressor.md)
- [GradientBoostingRegressor](safeds/ml/classical/regression/GradientBoostingRegressor.md)
Expand All @@ -106,8 +113,10 @@ search:
- [AveragePooling2DLayer](safeds/ml/nn/layers/AveragePooling2DLayer.md)
- [Convolutional2DLayer](safeds/ml/nn/layers/Convolutional2DLayer.md)
- [ConvolutionalTranspose2DLayer](safeds/ml/nn/layers/ConvolutionalTranspose2DLayer.md)
- [DropoutLayer](safeds/ml/nn/layers/DropoutLayer.md)
- [FlattenLayer](safeds/ml/nn/layers/FlattenLayer.md)
- [ForwardLayer](safeds/ml/nn/layers/ForwardLayer.md)
- [GRULayer](safeds/ml/nn/layers/GRULayer.md)
- [Layer](safeds/ml/nn/layers/Layer.md)
- [LSTMLayer](safeds/ml/nn/layers/LSTMLayer.md)
- [MaxPooling2DLayer](safeds/ml/nn/layers/MaxPooling2DLayer.md)
Expand Down
34 changes: 20 additions & 14 deletions docs/api/safeds/data/image/containers/Image.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ pipeline example {
/**
* Return a new `Image` that is converted to grayscale.
*
* The new image will have the same amount of channels as the original image. If you want to change the amount of
* channels used, please use the method [changeChannel][safeds.data.image.containers.Image.changeChannel].
*
* The original image is not modified.
*
* @result newImage The grayscale image.
Expand Down Expand Up @@ -486,7 +489,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="254"
```sds linenums="257"
@Pure
@PythonName("add_noise")
fun addNoise(
Expand Down Expand Up @@ -525,7 +528,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="231"
```sds linenums="234"
@Pure
@PythonName("adjust_brightness")
fun adjustBrightness(
Expand Down Expand Up @@ -564,7 +567,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="306"
```sds linenums="309"
@Pure
@PythonName("adjust_color_balance")
fun adjustColorBalance(
Expand Down Expand Up @@ -603,7 +606,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="280"
```sds linenums="283"
@Pure
@PythonName("adjust_contrast")
fun adjustContrast(
Expand Down Expand Up @@ -642,7 +645,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="330"
```sds linenums="333"
@Pure
fun blur(
const radius: Int
Expand Down Expand Up @@ -692,6 +695,9 @@ pipeline example {

Return a new `Image` that is converted to grayscale.

The new image will have the same amount of channels as the original image. If you want to change the amount of
channels used, please use the method [changeChannel][safeds.data.image.containers.Image.changeChannel].

The original image is not modified.

**Results:**
Expand All @@ -711,7 +717,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="143"
```sds linenums="146"
@Pure
@PythonName("convert_to_grayscale")
fun convertToGrayscale() -> newImage: Image
Expand Down Expand Up @@ -749,7 +755,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="165"
```sds linenums="168"
@Pure
fun crop(
const x: Int,
Expand Down Expand Up @@ -787,7 +793,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="426"
```sds linenums="429"
@Pure
@PythonName("find_edges")
fun findEdges() -> newImage: Image
Expand Down Expand Up @@ -816,7 +822,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="208"
```sds linenums="211"
@Pure
@PythonName("flip_horizontally")
fun flipHorizontally() -> newImage: Image
Expand Down Expand Up @@ -845,7 +851,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="191"
```sds linenums="194"
@Pure
@PythonName("flip_vertically")
fun flipVertically() -> newImage: Image
Expand Down Expand Up @@ -874,7 +880,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="375"
```sds linenums="378"
@Pure
@PythonName("invert_colors")
fun invertColors() -> newImage: Image
Expand Down Expand Up @@ -944,7 +950,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="409"
```sds linenums="412"
@Pure
@PythonName("rotate_left")
fun rotateLeft() -> newImage: Image
Expand Down Expand Up @@ -973,7 +979,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="392"
```sds linenums="395"
@Pure
@PythonName("rotate_right")
fun rotateRight() -> newImage: Image
Expand Down Expand Up @@ -1008,7 +1014,7 @@ pipeline example {

??? quote "Stub code in `Image.sdsstub`"

```sds linenums="355"
```sds linenums="358"
@Pure
fun sharpen(
const factor: Float
Expand Down
38 changes: 22 additions & 16 deletions docs/api/safeds/data/image/containers/ImageList.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ To create an `ImageList` call one of the following static methods:
*
* @param image the image to check
*
* @result hasImage Weather the given image is in this image list
* @result hasImage Whether the given image is in this image list
*/
@Pure
@PythonName("has_image")
Expand Down Expand Up @@ -300,6 +300,9 @@ To create an `ImageList` call one of the following static methods:
/**
* Return a new `ImageList` with all images converted to grayscale.
*
* The new image will have the same amount of channels as the original image. If you want to change the amount of
* channels used, please use the method [changeChannel][safeds.data.image.containers.ImageList.changeChannel].
*
* The original image list is not modified.
*
* @result imageList The image list with all images converted to grayscale.
Expand Down Expand Up @@ -627,7 +630,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="388"
```sds linenums="391"
@Pure
@PythonName("add_noise")
fun addNoise(
Expand Down Expand Up @@ -657,7 +660,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="371"
```sds linenums="374"
@Pure
@PythonName("adjust_brightness")
fun adjustBrightness(
Expand Down Expand Up @@ -687,7 +690,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="428"
```sds linenums="431"
@Pure
@PythonName("adjust_color_balance")
fun adjustColorBalance(
Expand Down Expand Up @@ -717,7 +720,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="408"
```sds linenums="411"
@Pure
@PythonName("adjust_contrast")
fun adjustContrast(
Expand Down Expand Up @@ -747,7 +750,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="446"
```sds linenums="449"
@Pure
fun blur(
const radius: Int
Expand Down Expand Up @@ -788,6 +791,9 @@ The original image list is not modified.

Return a new `ImageList` with all images converted to grayscale.

The new image will have the same amount of channels as the original image. If you want to change the amount of
channels used, please use the method [changeChannel][safeds.data.image.containers.ImageList.changeChannel].

The original image list is not modified.

**Results:**
Expand All @@ -798,7 +804,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="307"
```sds linenums="310"
@Pure
@PythonName("convert_to_grayscale")
fun convertToGrayscale() -> imageList: ImageList
Expand Down Expand Up @@ -827,7 +833,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="323"
```sds linenums="326"
@Pure
fun crop(
const x: Int,
Expand Down Expand Up @@ -856,7 +862,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="512"
```sds linenums="515"
@Pure
@PythonName("find_edges")
fun findEdges() -> imageList: ImageList
Expand All @@ -876,7 +882,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="354"
```sds linenums="357"
@Pure
@PythonName("flip_horizontally")
fun flipHorizontally() -> imageList: ImageList
Expand All @@ -896,7 +902,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="343"
```sds linenums="346"
@Pure
@PythonName("flip_vertically")
fun flipVertically() -> imageList: ImageList
Expand Down Expand Up @@ -942,7 +948,7 @@ Return whether the given image is in this image list.

| Name | Type | Description |
|------|------|-------------|
| `hasImage` | [`Boolean`][safeds.lang.Boolean] | Weather the given image is in this image list |
| `hasImage` | [`Boolean`][safeds.lang.Boolean] | Whether the given image is in this image list |

??? quote "Stub code in `ImageList.sdsstub`"

Expand Down Expand Up @@ -995,7 +1001,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="479"
```sds linenums="482"
@Pure
@PythonName("invert_colors")
fun invertColors() -> imageList: ImageList
Expand Down Expand Up @@ -1187,7 +1193,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="501"
```sds linenums="504"
@Pure
@PythonName("rotate_left")
fun rotateLeft() -> imageList: ImageList
Expand All @@ -1207,7 +1213,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="490"
```sds linenums="493"
@Pure
@PythonName("rotate_right")
fun rotateRight() -> imageList: ImageList
Expand All @@ -1233,7 +1239,7 @@ The original image list is not modified.

??? quote "Stub code in `ImageList.sdsstub`"

```sds linenums="465"
```sds linenums="468"
@Pure
fun sharpen(
const factor: Float
Expand Down
Loading

0 comments on commit 1b742e7

Please sign in to comment.