Skip to content

Commit

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

Integrate version 0.25.0 of the `safe-ds` Python library ([release
notes](https://github.com/Safe-DS/Library/releases/tag/v0.25.0)).
  • Loading branch information
lars-reimann authored May 16, 2024
1 parent d89511e commit f357c38
Show file tree
Hide file tree
Showing 182 changed files with 10,913 additions and 17,651 deletions.
75 changes: 34 additions & 41 deletions docs/api/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,30 @@ search:
- [ImageSize](safeds/data/image/typing/ImageSize.md)
- labeled
- containers
- [ExperimentalTabularDataset](safeds/data/labeled/containers/ExperimentalTabularDataset.md)
- [Dataset](safeds/data/labeled/containers/Dataset.md)
- [ImageDataset](safeds/data/labeled/containers/ImageDataset.md)
- [TabularDataset](safeds/data/labeled/containers/TabularDataset.md)
- [TimeSeriesDataset](safeds/data/labeled/containers/TimeSeriesDataset.md)
- tabular
- containers
- [Cell](safeds/data/tabular/containers/Cell.md)
- [Column](safeds/data/tabular/containers/Column.md)
- [ExperimentalCell](safeds/data/tabular/containers/ExperimentalCell.md)
- [ExperimentalColumn](safeds/data/tabular/containers/ExperimentalColumn.md)
- [ExperimentalRow](safeds/data/tabular/containers/ExperimentalRow.md)
- [ExperimentalTable](safeds/data/tabular/containers/ExperimentalTable.md)
- [Row](safeds/data/tabular/containers/Row.md)
- [Table](safeds/data/tabular/containers/Table.md)
- plotting
- [ExperimentalColumnPlotter](safeds/data/tabular/plotting/ExperimentalColumnPlotter.md)
- [ExperimentalTablePlotter](safeds/data/tabular/plotting/ExperimentalTablePlotter.md)
- [ColumnPlotter](safeds/data/tabular/plotting/ColumnPlotter.md)
- [TablePlotter](safeds/data/tabular/plotting/TablePlotter.md)
- transformation
- [Discretizer](safeds/data/tabular/transformation/Discretizer.md)
- [ExperimentalDiscretizer](safeds/data/tabular/transformation/ExperimentalDiscretizer.md)
- [ExperimentalInvertibleTableTransformer](safeds/data/tabular/transformation/ExperimentalInvertibleTableTransformer.md)
- [ExperimentalLabelEncoder](safeds/data/tabular/transformation/ExperimentalLabelEncoder.md)
- [ExperimentalOneHotEncoder](safeds/data/tabular/transformation/ExperimentalOneHotEncoder.md)
- [ExperimentalRangeScaler](safeds/data/tabular/transformation/ExperimentalRangeScaler.md)
- [ExperimentalSimpleImputer](safeds/data/tabular/transformation/ExperimentalSimpleImputer.md)
- [ExperimentalStandardScaler](safeds/data/tabular/transformation/ExperimentalStandardScaler.md)
- [ExperimentalTableTransformer](safeds/data/tabular/transformation/ExperimentalTableTransformer.md)
- [Imputer](safeds/data/tabular/transformation/Imputer.md)
- [InvertibleTableTransformer](safeds/data/tabular/transformation/InvertibleTableTransformer.md)
- [LabelEncoder](safeds/data/tabular/transformation/LabelEncoder.md)
- [OneHotEncoder](safeds/data/tabular/transformation/OneHotEncoder.md)
- [RangeScaler](safeds/data/tabular/transformation/RangeScaler.md)
- [SimpleImputer](safeds/data/tabular/transformation/SimpleImputer.md)
- [StandardScaler](safeds/data/tabular/transformation/StandardScaler.md)
- [TableTransformer](safeds/data/tabular/transformation/TableTransformer.md)
- typing
- [ColumnType](safeds/data/tabular/typing/ColumnType.md)
- [ExperimentalDataType](safeds/data/tabular/typing/ExperimentalDataType.md)
- [ExperimentalSchema](safeds/data/tabular/typing/ExperimentalSchema.md)
- [DataType](safeds/data/tabular/typing/DataType.md)
- [Schema](safeds/data/tabular/typing/Schema.md)
- lang
- [AnnotationTarget](safeds/lang/AnnotationTarget.md)
Expand Down Expand Up @@ -84,9 +71,9 @@ search:
- [DecisionTreeClassifier](safeds/ml/classical/classification/DecisionTreeClassifier.md)
- [GradientBoostingClassifier](safeds/ml/classical/classification/GradientBoostingClassifier.md)
- [KNearestNeighborsClassifier](safeds/ml/classical/classification/KNearestNeighborsClassifier.md)
- [LogisticRegressionClassifier](safeds/ml/classical/classification/LogisticRegressionClassifier.md)
- [LogisticClassifier](safeds/ml/classical/classification/LogisticClassifier.md)
- [RandomForestClassifier](safeds/ml/classical/classification/RandomForestClassifier.md)
- [SupportVectorMachineClassifier](safeds/ml/classical/classification/SupportVectorMachineClassifier.md)
- [SupportVectorClassifier](safeds/ml/classical/classification/SupportVectorClassifier.md)
- regression
- [AdaBoostRegressor](safeds/ml/classical/regression/AdaBoostRegressor.md)
- [ArimaRegressor](safeds/ml/classical/regression/ArimaRegressor.md)
Expand All @@ -95,29 +82,35 @@ search:
- [GradientBoostingRegressor](safeds/ml/classical/regression/GradientBoostingRegressor.md)
- [KNearestNeighborsRegressor](safeds/ml/classical/regression/KNearestNeighborsRegressor.md)
- [LassoRegressor](safeds/ml/classical/regression/LassoRegressor.md)
- [LinearRegressionRegressor](safeds/ml/classical/regression/LinearRegressionRegressor.md)
- [LinearRegressor](safeds/ml/classical/regression/LinearRegressor.md)
- [RandomForestRegressor](safeds/ml/classical/regression/RandomForestRegressor.md)
- [Regressor](safeds/ml/classical/regression/Regressor.md)
- [RidgeRegressor](safeds/ml/classical/regression/RidgeRegressor.md)
- [SupportVectorMachineRegressor](safeds/ml/classical/regression/SupportVectorMachineRegressor.md)
- [SupportVectorRegressor](safeds/ml/classical/regression/SupportVectorRegressor.md)
- [SupervisedModel](safeds/ml/classical/SupervisedModel.md)
- metrics
- [ClassificationMetrics](safeds/ml/metrics/ClassificationMetrics.md)
- [RegressionMetrics](safeds/ml/metrics/RegressionMetrics.md)
- nn
- [AvgPooling2DLayer](safeds/ml/nn/AvgPooling2DLayer.md)
- [Convolutional2DLayer](safeds/ml/nn/Convolutional2DLayer.md)
- [ConvolutionalTranspose2DLayer](safeds/ml/nn/ConvolutionalTranspose2DLayer.md)
- [FlattenLayer](safeds/ml/nn/FlattenLayer.md)
- [ForwardLayer](safeds/ml/nn/ForwardLayer.md)
- [InputConversion](safeds/ml/nn/InputConversion.md)
- [InputConversionImage](safeds/ml/nn/InputConversionImage.md)
- [InputConversionTable](safeds/ml/nn/InputConversionTable.md)
- [InputConversionTimeSeries](safeds/ml/nn/InputConversionTimeSeries.md)
- [Layer](safeds/ml/nn/Layer.md)
- [LSTMLayer](safeds/ml/nn/LSTMLayer.md)
- [MaxPooling2DLayer](safeds/ml/nn/MaxPooling2DLayer.md)
- converters
- [InputConversion](safeds/ml/nn/converters/InputConversion.md)
- [InputConversionImage](safeds/ml/nn/converters/InputConversionImage.md)
- [InputConversionTable](safeds/ml/nn/converters/InputConversionTable.md)
- [InputConversionTimeSeries](safeds/ml/nn/converters/InputConversionTimeSeries.md)
- [OutputConversion](safeds/ml/nn/converters/OutputConversion.md)
- [OutputConversionImageToColumn](safeds/ml/nn/converters/OutputConversionImageToColumn.md)
- [OutputConversionImageToImage](safeds/ml/nn/converters/OutputConversionImageToImage.md)
- [OutputConversionImageToTable](safeds/ml/nn/converters/OutputConversionImageToTable.md)
- [OutputConversionTable](safeds/ml/nn/converters/OutputConversionTable.md)
- [OutputConversionTimeSeries](safeds/ml/nn/converters/OutputConversionTimeSeries.md)
- layers
- [AveragePooling2DLayer](safeds/ml/nn/layers/AveragePooling2DLayer.md)
- [Convolutional2DLayer](safeds/ml/nn/layers/Convolutional2DLayer.md)
- [ConvolutionalTranspose2DLayer](safeds/ml/nn/layers/ConvolutionalTranspose2DLayer.md)
- [FlattenLayer](safeds/ml/nn/layers/FlattenLayer.md)
- [ForwardLayer](safeds/ml/nn/layers/ForwardLayer.md)
- [Layer](safeds/ml/nn/layers/Layer.md)
- [LSTMLayer](safeds/ml/nn/layers/LSTMLayer.md)
- [MaxPooling2DLayer](safeds/ml/nn/layers/MaxPooling2DLayer.md)
- [NeuralNetworkClassifier](safeds/ml/nn/NeuralNetworkClassifier.md)
- [NeuralNetworkRegressor](safeds/ml/nn/NeuralNetworkRegressor.md)
- [OutputConversion](safeds/ml/nn/OutputConversion.md)
- [OutputConversionImageToColumn](safeds/ml/nn/OutputConversionImageToColumn.md)
- [OutputConversionImageToImage](safeds/ml/nn/OutputConversionImageToImage.md)
- [OutputConversionImageToTable](safeds/ml/nn/OutputConversionImageToTable.md)
- [OutputConversionTable](safeds/ml/nn/OutputConversionTable.md)
- [OutputConversionTimeSeries](safeds/ml/nn/OutputConversionTimeSeries.md)
12 changes: 6 additions & 6 deletions docs/api/safeds/data/image/containers/ImageList.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To create an `ImageList` call one of the following static methods:
/**
* Return the number of images in this image list.
*/
@PythonName("number_of_images") attr numberOfImages: Int
@PythonName("number_of_images") attr imageCount: Int
/**
* Return a list of all widths in this image list.
*/
Expand All @@ -36,7 +36,7 @@ To create an `ImageList` call one of the following static methods:
/**
* Return the number of different sizes of images in this image list.
*/
@PythonName("number_of_sizes") attr numberOfSizes: Int
@PythonName("number_of_sizes") attr sizeCount: Int

/**
* Create an ImageList from a list of images.
Expand Down Expand Up @@ -131,7 +131,7 @@ To create an `ImageList` call one of the following static methods:
/**
* Return a list of all images in this image list.
*
* @param indices a list of all indices to include in the output. If None, all indices will be included
* @param indices a list of all indices to include in the output. If null, all indices will be included
*
* @result images the list of all images
*/
Expand Down Expand Up @@ -525,13 +525,13 @@ Return a list of all heights in this image list.

**Type:** [`List<Int>`][safeds.lang.List]

## `#!sds attr` numberOfImages {#safeds.data.image.containers.ImageList.numberOfImages data-toc-label='numberOfImages'}
## `#!sds attr` imageCount {#safeds.data.image.containers.ImageList.imageCount data-toc-label='imageCount'}

Return the number of images in this image list.

**Type:** [`Int`][safeds.lang.Int]

## `#!sds attr` numberOfSizes {#safeds.data.image.containers.ImageList.numberOfSizes data-toc-label='numberOfSizes'}
## `#!sds attr` sizeCount {#safeds.data.image.containers.ImageList.sizeCount data-toc-label='sizeCount'}

Return the number of different sizes of images in this image list.

Expand Down Expand Up @@ -1268,7 +1268,7 @@ Return a list of all images in this image list.

| Name | Type | Description | Default |
|------|------|-------------|---------|
| `indices` | [`List<Int>?`][safeds.lang.List] | a list of all indices to include in the output. If None, all indices will be included | `#!sds null` |
| `indices` | [`List<Int>?`][safeds.lang.List] | a list of all indices to include in the output. If null, all indices will be included | `#!sds null` |

**Results:**

Expand Down
19 changes: 19 additions & 0 deletions docs/api/safeds/data/labeled/containers/Dataset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
search:
boost: 0.5
---

# `#!sds abstract class` Dataset {#safeds.data.labeled.containers.Dataset data-toc-label='Dataset'}

A dataset is used as input to machine learning models.

**Inheritors:**

- [`ImageDataset`][safeds.data.labeled.containers.ImageDataset]
- [`TabularDataset`][safeds.data.labeled.containers.TabularDataset]

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

```sds linenums="6"
class Dataset
```
106 changes: 0 additions & 106 deletions docs/api/safeds/data/labeled/containers/ExperimentalTabularDataset.md

This file was deleted.

12 changes: 7 additions & 5 deletions docs/api/safeds/data/labeled/containers/ImageDataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A Dataset for ImageLists as input and ImageLists, Tables or Columns as output.

**Parent type:** [`Dataset`][safeds.data.labeled.containers.Dataset]

**Parameters:**

| Name | Type | Description | Default |
Expand All @@ -19,13 +21,13 @@ A Dataset for ImageLists as input and ImageLists, Tables or Columns as output.

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

```sds linenums="16"
```sds linenums="17"
class ImageDataset<T>(
@PythonName("input_data") inputData: ImageList,
@PythonName("output_data") outputData: T,
@PythonName("batch_size") batchSize: Int = 1,
shuffle: Boolean = false
) {
) sub Dataset {
/**
* Get the input `ImageSize` of this dataset.
*/
Expand Down Expand Up @@ -89,7 +91,7 @@ Get the input data of this dataset.

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

```sds linenums="36"
```sds linenums="37"
@Pure
@PythonName("get_input")
fun getInput() -> input: ImageList
Expand All @@ -107,7 +109,7 @@ Get the output data of this dataset.

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

```sds linenums="45"
```sds linenums="46"
@Pure
@PythonName("get_output")
fun getOutput() -> output: T
Expand All @@ -127,7 +129,7 @@ The original dataset list is not modified.

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

```sds linenums="56"
```sds linenums="57"
@Pure
fun shuffle() -> imageDataset: ImageDataset<T>
```
Loading

0 comments on commit f357c38

Please sign in to comment.