diff --git a/docs/stdlib/safeds/data/tabular/typing/Schema.md b/docs/stdlib/safeds/data/tabular/typing/Schema.md index 29c112457..16ea63c59 100644 --- a/docs/stdlib/safeds/data/tabular/typing/Schema.md +++ b/docs/stdlib/safeds/data/tabular/typing/Schema.md @@ -45,28 +45,6 @@ Store column names and corresponding data types for a `Table` or `Row`. @Pure @PythonName("to_dict") fun toDict() -> result1: Map - - /** - * Merge multiple schemas into one. - * - * For each type missmatch the new schema will have the least common supertype. - * - * The type hierarchy is as follows: - * * Anything - * * RealNumber - * * Integer - * * Boolean - * * String - * - * @param schemas the list of schemas you want to merge - * - * @result result1 the new merged schema - */ - @Pure - @PythonName("merge_multiple_schemas") - static fun mergeMultipleSchemas( - schemas: List - ) -> result1: Schema } ``` @@ -145,38 +123,3 @@ Return a dictionary that maps column names to column types. @PythonName("to_dict") fun toDict() -> result1: Map ``` - -## `#!sds static fun` mergeMultipleSchemas {#safeds.data.tabular.typing.Schema.mergeMultipleSchemas data-toc-label='mergeMultipleSchemas'} - -Merge multiple schemas into one. - -For each type missmatch the new schema will have the least common supertype. - -The type hierarchy is as follows: -* Anything - * RealNumber - * Integer - * Boolean - * String - -**Parameters:** - -| Name | Type | Description | Default | -|------|------|-------------|---------| -| `schemas` | [`List`][safeds.lang.List] | the list of schemas you want to merge | - | - -**Results:** - -| Name | Type | Description | -|------|------|-------------| -| `result1` | [`Schema`][safeds.data.tabular.typing.Schema] | the new merged schema | - -??? quote "Source code in `schema.sdsstub`" - - ```sds linenums="67" - @Pure - @PythonName("merge_multiple_schemas") - static fun mergeMultipleSchemas( - schemas: List - ) -> result1: Schema - ``` diff --git a/docs/stdlib/safeds/ml/classical/classification/AdaBoostClassifier.md b/docs/stdlib/safeds/ml/classical/classification/AdaBoostClassifier.md index 1cccc8fc8..dd3c183c6 100644 --- a/docs/stdlib/safeds/ml/classical/classification/AdaBoostClassifier.md +++ b/docs/stdlib/safeds/ml/classical/classification/AdaBoostClassifier.md @@ -14,7 +14,7 @@ Ada Boost classification. ??? quote "Source code in `ada_boost.sdsstub`" - ```sds linenums="16" + ```sds linenums="15" class AdaBoostClassifier( learner: Classifier = DecisionTreeClassifier(), @PythonName("maximum_number_of_learners") const maximumNumberOfLearners: Int = 50, @@ -90,7 +90,7 @@ This classifier is not modified. ??? quote "Source code in `ada_boost.sdsstub`" - ```sds linenums="46" + ```sds linenums="45" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/classification/DecisionTreeClassifier.md b/docs/stdlib/safeds/ml/classical/classification/DecisionTreeClassifier.md index f9986675b..4e473d16e 100644 --- a/docs/stdlib/safeds/ml/classical/classification/DecisionTreeClassifier.md +++ b/docs/stdlib/safeds/ml/classical/classification/DecisionTreeClassifier.md @@ -6,7 +6,7 @@ Decision tree classification. ??? quote "Source code in `decision_tree.sdsstub`" - ```sds linenums="10" + ```sds linenums="9" class DecisionTreeClassifier() sub Classifier { /** * Create a copy of this classifier and fit it with the given training data. @@ -44,7 +44,7 @@ This classifier is not modified. ??? quote "Source code in `decision_tree.sdsstub`" - ```sds linenums="20" + ```sds linenums="19" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/classification/GradientBoostingClassifier.md b/docs/stdlib/safeds/ml/classical/classification/GradientBoostingClassifier.md index 7e5ea6990..e7ed2f365 100644 --- a/docs/stdlib/safeds/ml/classical/classification/GradientBoostingClassifier.md +++ b/docs/stdlib/safeds/ml/classical/classification/GradientBoostingClassifier.md @@ -13,7 +13,7 @@ Gradient boosting classification. ??? quote "Source code in `gradient_boosting.sdsstub`" - ```sds linenums="15" + ```sds linenums="14" class GradientBoostingClassifier( @PythonName("number_of_trees") const numberOfTrees: Int = 100, @PythonName("learning_rate") const learningRate: Float = 0.1 @@ -78,7 +78,7 @@ This classifier is not modified. ??? quote "Source code in `gradient_boosting.sdsstub`" - ```sds linenums="40" + ```sds linenums="39" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/classification/KNearestNeighborsClassifier.md b/docs/stdlib/safeds/ml/classical/classification/KNearestNeighborsClassifier.md index 4b7492126..01e307006 100644 --- a/docs/stdlib/safeds/ml/classical/classification/KNearestNeighborsClassifier.md +++ b/docs/stdlib/safeds/ml/classical/classification/KNearestNeighborsClassifier.md @@ -12,7 +12,7 @@ K-nearest-neighbors classification. ??? quote "Source code in `k_nearest_neighbors.sdsstub`" - ```sds linenums="13" + ```sds linenums="12" class KNearestNeighborsClassifier( @PythonName("number_of_neighbors") const numberOfNeighbors: Int ) sub Classifier where { @@ -65,7 +65,7 @@ This classifier is not modified. ??? quote "Source code in `k_nearest_neighbors.sdsstub`" - ```sds linenums="32" + ```sds linenums="31" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/classification/LogisticRegressionClassifier.md b/docs/stdlib/safeds/ml/classical/classification/LogisticRegressionClassifier.md index f72f8b6a2..fc7b69854 100644 --- a/docs/stdlib/safeds/ml/classical/classification/LogisticRegressionClassifier.md +++ b/docs/stdlib/safeds/ml/classical/classification/LogisticRegressionClassifier.md @@ -6,7 +6,7 @@ Regularized logistic regression. ??? quote "Source code in `logistic_regression.sdsstub`" - ```sds linenums="10" + ```sds linenums="9" class LogisticRegressionClassifier() sub Classifier { /** * Create a copy of this classifier and fit it with the given training data. @@ -44,7 +44,7 @@ This classifier is not modified. ??? quote "Source code in `logistic_regression.sdsstub`" - ```sds linenums="20" + ```sds linenums="19" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/classification/RandomForestClassifier.md b/docs/stdlib/safeds/ml/classical/classification/RandomForestClassifier.md index 16646b85a..3aba56d0f 100644 --- a/docs/stdlib/safeds/ml/classical/classification/RandomForestClassifier.md +++ b/docs/stdlib/safeds/ml/classical/classification/RandomForestClassifier.md @@ -12,7 +12,7 @@ Random forest classification. ??? quote "Source code in `random_forest.sdsstub`" - ```sds linenums="12" + ```sds linenums="11" class RandomForestClassifier( @PythonName("number_of_trees") const numberOfTrees: Int = 100 ) sub Classifier where { @@ -65,7 +65,7 @@ This classifier is not modified. ??? quote "Source code in `random_forest.sdsstub`" - ```sds linenums="31" + ```sds linenums="30" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/classification/SupportVectorMachineClassifier.md b/docs/stdlib/safeds/ml/classical/classification/SupportVectorMachineClassifier.md index f2afbfe77..fc66fe696 100644 --- a/docs/stdlib/safeds/ml/classical/classification/SupportVectorMachineClassifier.md +++ b/docs/stdlib/safeds/ml/classical/classification/SupportVectorMachineClassifier.md @@ -13,7 +13,7 @@ Support vector machine. ??? quote "Source code in `support_vector_machine.sdsstub`" - ```sds linenums="13" + ```sds linenums="12" class SupportVectorMachineClassifier( const c: Float = 1.0, kernel: SupportVectorMachineClassifier.Kernel = SupportVectorMachineClassifier.Kernel.RadialBasisFunction @@ -104,7 +104,7 @@ This classifier is not modified. ??? quote "Source code in `support_vector_machine.sdsstub`" - ```sds linenums="64" + ```sds linenums="63" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable @@ -117,7 +117,7 @@ The kernel functions that can be used in the support vector machine. ??? quote "Source code in `support_vector_machine.sdsstub`" - ```sds linenums="22" + ```sds linenums="21" enum Kernel { /** * A linear kernel. diff --git a/docs/stdlib/safeds/ml/classical/regression/AdaBoostRegressor.md b/docs/stdlib/safeds/ml/classical/regression/AdaBoostRegressor.md index 87ace8f02..2d28e644f 100644 --- a/docs/stdlib/safeds/ml/classical/regression/AdaBoostRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/AdaBoostRegressor.md @@ -14,7 +14,7 @@ Ada Boost regression. ??? quote "Source code in `ada_boost.sdsstub`" - ```sds linenums="16" + ```sds linenums="15" class AdaBoostRegressor( learner: Regressor = DecisionTreeRegressor(), @PythonName("maximum_number_of_learners") const maximumNumberOfLearners: Int = 50, @@ -90,7 +90,7 @@ This regressor is not modified. ??? quote "Source code in `ada_boost.sdsstub`" - ```sds linenums="46" + ```sds linenums="45" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/DecisionTreeRegressor.md b/docs/stdlib/safeds/ml/classical/regression/DecisionTreeRegressor.md index 4429d0b1a..1bbf21521 100644 --- a/docs/stdlib/safeds/ml/classical/regression/DecisionTreeRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/DecisionTreeRegressor.md @@ -6,7 +6,7 @@ Decision tree regression. ??? quote "Source code in `decision_tree.sdsstub`" - ```sds linenums="10" + ```sds linenums="9" class DecisionTreeRegressor() sub Regressor { /** * Create a copy of this regressor and fit it with the given training data. @@ -44,7 +44,7 @@ This regressor is not modified. ??? quote "Source code in `decision_tree.sdsstub`" - ```sds linenums="20" + ```sds linenums="19" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/ElasticNetRegressor.md b/docs/stdlib/safeds/ml/classical/regression/ElasticNetRegressor.md index 16f025ecd..8ddcb56ec 100644 --- a/docs/stdlib/safeds/ml/classical/regression/ElasticNetRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/ElasticNetRegressor.md @@ -13,7 +13,7 @@ Elastic net regression. ??? quote "Source code in `elastic_net_regression.sdsstub`" - ```sds linenums="14" + ```sds linenums="13" class ElasticNetRegressor( const alpha: Float = 1.0, @PythonName("lasso_ratio") const lassoRatio: Float = 0.5 @@ -79,7 +79,7 @@ This regressor is not modified. ??? quote "Source code in `elastic_net_regression.sdsstub`" - ```sds linenums="40" + ```sds linenums="39" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/GradientBoostingRegressor.md b/docs/stdlib/safeds/ml/classical/regression/GradientBoostingRegressor.md index 49213cb07..90e34bc22 100644 --- a/docs/stdlib/safeds/ml/classical/regression/GradientBoostingRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/GradientBoostingRegressor.md @@ -13,7 +13,7 @@ Gradient boosting regression. ??? quote "Source code in `gradient_boosting.sdsstub`" - ```sds linenums="15" + ```sds linenums="14" class GradientBoostingRegressor( @PythonName("number_of_trees") const numberOfTrees: Int = 100, @PythonName("learning_rate") const learningRate: Float = 0.1 @@ -78,7 +78,7 @@ This regressor is not modified. ??? quote "Source code in `gradient_boosting.sdsstub`" - ```sds linenums="40" + ```sds linenums="39" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/KNearestNeighborsRegressor.md b/docs/stdlib/safeds/ml/classical/regression/KNearestNeighborsRegressor.md index fe4890886..d52a10f68 100644 --- a/docs/stdlib/safeds/ml/classical/regression/KNearestNeighborsRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/KNearestNeighborsRegressor.md @@ -12,7 +12,7 @@ K-nearest-neighbors regression. ??? quote "Source code in `k_nearest_neighbors.sdsstub`" - ```sds linenums="13" + ```sds linenums="12" class KNearestNeighborsRegressor( @PythonName("number_of_neighbors") const numberOfNeighbors: Int ) sub Regressor where { @@ -65,7 +65,7 @@ This regressor is not modified. ??? quote "Source code in `k_nearest_neighbors.sdsstub`" - ```sds linenums="32" + ```sds linenums="31" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/LassoRegressor.md b/docs/stdlib/safeds/ml/classical/regression/LassoRegressor.md index 4454d91db..0defefe30 100644 --- a/docs/stdlib/safeds/ml/classical/regression/LassoRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/LassoRegressor.md @@ -12,7 +12,7 @@ Lasso regression. ??? quote "Source code in `lasso_regression.sdsstub`" - ```sds linenums="12" + ```sds linenums="11" class LassoRegressor( const alpha: Float = 1.0 ) sub Regressor where { @@ -65,7 +65,7 @@ This regressor is not modified. ??? quote "Source code in `lasso_regression.sdsstub`" - ```sds linenums="31" + ```sds linenums="30" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/LinearRegressionRegressor.md b/docs/stdlib/safeds/ml/classical/regression/LinearRegressionRegressor.md index e25c09a53..7e7eca34a 100644 --- a/docs/stdlib/safeds/ml/classical/regression/LinearRegressionRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/LinearRegressionRegressor.md @@ -6,7 +6,7 @@ Linear regression. ??? quote "Source code in `linear_regression.sdsstub`" - ```sds linenums="10" + ```sds linenums="9" class LinearRegressionRegressor() sub Regressor { /** * Create a copy of this regressor and fit it with the given training data. @@ -44,7 +44,7 @@ This regressor is not modified. ??? quote "Source code in `linear_regression.sdsstub`" - ```sds linenums="20" + ```sds linenums="19" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/RandomForestRegressor.md b/docs/stdlib/safeds/ml/classical/regression/RandomForestRegressor.md index 4de421cdc..456a45de6 100644 --- a/docs/stdlib/safeds/ml/classical/regression/RandomForestRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/RandomForestRegressor.md @@ -12,7 +12,7 @@ Random forest regression. ??? quote "Source code in `random_forest.sdsstub`" - ```sds linenums="12" + ```sds linenums="11" class RandomForestRegressor( @PythonName("number_of_trees") const numberOfTrees: Int = 100 ) sub Regressor where { @@ -65,7 +65,7 @@ This regressor is not modified. ??? quote "Source code in `random_forest.sdsstub`" - ```sds linenums="31" + ```sds linenums="30" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/RidgeRegressor.md b/docs/stdlib/safeds/ml/classical/regression/RidgeRegressor.md index 1b11544fc..1a93a9865 100644 --- a/docs/stdlib/safeds/ml/classical/regression/RidgeRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/RidgeRegressor.md @@ -12,7 +12,7 @@ Ridge regression. ??? quote "Source code in `ridge_regression.sdsstub`" - ```sds linenums="12" + ```sds linenums="11" class RidgeRegressor( const alpha: Float = 1.0 ) sub Regressor where { @@ -65,7 +65,7 @@ This regressor is not modified. ??? quote "Source code in `ridge_regression.sdsstub`" - ```sds linenums="31" + ```sds linenums="30" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable diff --git a/docs/stdlib/safeds/ml/classical/regression/SupportVectorMachineRegressor.md b/docs/stdlib/safeds/ml/classical/regression/SupportVectorMachineRegressor.md index f6f861a14..479700e72 100644 --- a/docs/stdlib/safeds/ml/classical/regression/SupportVectorMachineRegressor.md +++ b/docs/stdlib/safeds/ml/classical/regression/SupportVectorMachineRegressor.md @@ -13,7 +13,7 @@ Support vector machine. ??? quote "Source code in `support_vector_machine.sdsstub`" - ```sds linenums="13" + ```sds linenums="12" class SupportVectorMachineRegressor( const c: Float = 1.0, kernel: SupportVectorMachineRegressor.Kernel = SupportVectorMachineRegressor.Kernel.RadialBasisFunction @@ -104,7 +104,7 @@ This regressor is not modified. ??? quote "Source code in `support_vector_machine.sdsstub`" - ```sds linenums="64" + ```sds linenums="63" @Pure fun fit( @PythonName("training_set") trainingSet: TaggedTable @@ -117,7 +117,7 @@ The kernel functions that can be used in the support vector machine. ??? quote "Source code in `support_vector_machine.sdsstub`" - ```sds linenums="22" + ```sds linenums="21" enum Kernel { /** * A linear kernel. diff --git a/docs/stdlib/safeds/ml/nn/NeuralNetworkClassifier.md b/docs/stdlib/safeds/ml/nn/NeuralNetworkClassifier.md index e8ab9bf99..e5a7fabb3 100644 --- a/docs/stdlib/safeds/ml/nn/NeuralNetworkClassifier.md +++ b/docs/stdlib/safeds/ml/nn/NeuralNetworkClassifier.md @@ -8,7 +8,7 @@ ??? quote "Source code in `classifier.sdsstub`" - ```sds linenums="7" + ```sds linenums="6" class NeuralNetworkClassifier( layers: List ) { @@ -88,7 +88,7 @@ The original model is not modified. ??? quote "Source code in `classifier.sdsstub`" - ```sds linenums="28" + ```sds linenums="27" @Pure fun fit( @PythonName("train_data") trainData: TaggedTable, @@ -122,7 +122,7 @@ The original Model is not modified. ??? quote "Source code in `classifier.sdsstub`" - ```sds linenums="49" + ```sds linenums="48" @Pure fun predict( @PythonName("test_data") testData: Table diff --git a/docs/stdlib/safeds/ml/nn/NeuralNetworkRegressor.md b/docs/stdlib/safeds/ml/nn/NeuralNetworkRegressor.md index b2e1e4aa2..f8a5f759c 100644 --- a/docs/stdlib/safeds/ml/nn/NeuralNetworkRegressor.md +++ b/docs/stdlib/safeds/ml/nn/NeuralNetworkRegressor.md @@ -4,13 +4,13 @@ | Name | Type | Description | Default | |------|------|-------------|---------| -| `layers` | [`List`][safeds.lang.List] | - | - | +| `layers` | [`List`][safeds.lang.List] | - | - | ??? quote "Source code in `regressor.sdsstub`" - ```sds linenums="7" + ```sds linenums="6" class NeuralNetworkRegressor( - layers: List + layers: List ) { /** * Check if the model is fitted. @@ -88,7 +88,7 @@ The original model is not modified. ??? quote "Source code in `regressor.sdsstub`" - ```sds linenums="28" + ```sds linenums="27" @Pure fun fit( @PythonName("train_data") trainData: TaggedTable, @@ -122,7 +122,7 @@ The original Model is not modified. ??? quote "Source code in `regressor.sdsstub`" - ```sds linenums="49" + ```sds linenums="48" @Pure fun predict( @PythonName("test_data") testData: Table