diff --git a/docs/api/safeds/data/image/containers/Image.md b/docs/api/safeds/data/image/containers/Image.md index 1ab5a9d67..cee23b5d5 100644 --- a/docs/api/safeds/data/image/containers/Image.md +++ b/docs/api/safeds/data/image/containers/Image.md @@ -47,6 +47,7 @@ pipeline example { */ @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_file") + @Category(DataScienceCategory.DataImport) static fun fromFile( path: String ) -> image: Image @@ -64,6 +65,7 @@ pipeline example { */ @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_jpeg_file") + @Category(DataScienceCategory.DataExport) fun toJpegFile( path: String ) @@ -81,6 +83,7 @@ pipeline example { */ @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_png_file") + @Category(DataScienceCategory.DataExport) fun toPngFile( path: String ) @@ -102,6 +105,7 @@ pipeline example { */ @Pure @PythonName("change_channel") + @Category(DataScienceCategory.DataProcessingQImage) fun changeChannel( channel: Int ) -> newImage: Image @@ -123,6 +127,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataProcessingQImage) fun resize( @PythonName("new_width") const newWidth: Int, @PythonName("new_height") const newHeight: Int @@ -149,6 +154,7 @@ pipeline example { */ @Pure @PythonName("convert_to_grayscale") + @Category(DataScienceCategory.DataProcessingQImage) fun convertToGrayscale() -> newImage: Image /** @@ -170,6 +176,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataProcessingQImage) fun crop( const x: Int, const y: Int, @@ -197,6 +204,7 @@ pipeline example { */ @Pure @PythonName("flip_vertically") + @Category(DataScienceCategory.DataProcessingQImage) fun flipVertically() -> newImage: Image /** @@ -214,6 +222,7 @@ pipeline example { */ @Pure @PythonName("flip_horizontally") + @Category(DataScienceCategory.DataProcessingQImage) fun flipHorizontally() -> newImage: Image /** @@ -237,6 +246,7 @@ pipeline example { */ @Pure @PythonName("adjust_brightness") + @Category(DataScienceCategory.DataProcessingQImage) fun adjustBrightness( const factor: Float ) -> newImage: Image where { @@ -260,6 +270,7 @@ pipeline example { */ @Pure @PythonName("add_noise") + @Category(DataScienceCategory.DataProcessingQImage) fun addNoise( @PythonName("standard_deviation") const standardDeviation: Float ) -> newImage: Image where { @@ -286,6 +297,7 @@ pipeline example { */ @Pure @PythonName("adjust_contrast") + @Category(DataScienceCategory.DataProcessingQImage) fun adjustContrast( const factor: Float ) -> newImage: Image where { @@ -312,6 +324,7 @@ pipeline example { */ @Pure @PythonName("adjust_color_balance") + @Category(DataScienceCategory.DataProcessingQImage) fun adjustColorBalance( const factor: Float ) -> newImage: Image where { @@ -335,6 +348,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataProcessingQImage) fun blur( const radius: Int ) -> newImage: Image where { @@ -360,6 +374,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataProcessingQImage) fun sharpen( const factor: Float ) -> newImage: Image where { @@ -381,6 +396,7 @@ pipeline example { */ @Pure @PythonName("invert_colors") + @Category(DataScienceCategory.DataProcessingQImage) fun invertColors() -> newImage: Image /** @@ -398,6 +414,7 @@ pipeline example { */ @Pure @PythonName("rotate_right") + @Category(DataScienceCategory.DataProcessingQImage) fun rotateRight() -> newImage: Image /** @@ -415,6 +432,7 @@ pipeline example { */ @Pure @PythonName("rotate_left") + @Category(DataScienceCategory.DataProcessingQImage) fun rotateLeft() -> newImage: Image /** @@ -432,6 +450,7 @@ pipeline example { */ @Pure @PythonName("find_edges") + @Category(DataScienceCategory.DataProcessingQImage) fun findEdges() -> newImage: Image } ``` @@ -490,9 +509,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="257" + ```sds linenums="267" @Pure @PythonName("add_noise") + @Category(DataScienceCategory.DataProcessingQImage) fun addNoise( @PythonName("standard_deviation") const standardDeviation: Float ) -> newImage: Image where { @@ -530,9 +550,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="234" + ```sds linenums="243" @Pure @PythonName("adjust_brightness") + @Category(DataScienceCategory.DataProcessingQImage) fun adjustBrightness( const factor: Float ) -> newImage: Image where { @@ -570,9 +591,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="309" + ```sds linenums="321" @Pure @PythonName("adjust_color_balance") + @Category(DataScienceCategory.DataProcessingQImage) fun adjustColorBalance( const factor: Float ) -> newImage: Image where { @@ -610,9 +632,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="283" + ```sds linenums="294" @Pure @PythonName("adjust_contrast") + @Category(DataScienceCategory.DataProcessingQImage) fun adjustContrast( const factor: Float ) -> newImage: Image where { @@ -650,8 +673,9 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="333" + ```sds linenums="346" @Pure + @Category(DataScienceCategory.DataProcessingQImage) fun blur( const radius: Int ) -> newImage: Image where { @@ -689,9 +713,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="99" + ```sds linenums="102" @Pure @PythonName("change_channel") + @Category(DataScienceCategory.DataProcessingQImage) fun changeChannel( channel: Int ) -> newImage: Image @@ -724,9 +749,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="146" + ```sds linenums="151" @Pure @PythonName("convert_to_grayscale") + @Category(DataScienceCategory.DataProcessingQImage) fun convertToGrayscale() -> newImage: Image ``` { data-search-exclude } @@ -763,8 +789,9 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="168" + ```sds linenums="174" @Pure + @Category(DataScienceCategory.DataProcessingQImage) fun crop( const x: Int, const y: Int, @@ -802,9 +829,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="429" + ```sds linenums="447" @Pure @PythonName("find_edges") + @Category(DataScienceCategory.DataProcessingQImage) fun findEdges() -> newImage: Image ``` { data-search-exclude } @@ -832,9 +860,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="211" + ```sds linenums="219" @Pure @PythonName("flip_horizontally") + @Category(DataScienceCategory.DataProcessingQImage) fun flipHorizontally() -> newImage: Image ``` { data-search-exclude } @@ -862,9 +891,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="194" + ```sds linenums="201" @Pure @PythonName("flip_vertically") + @Category(DataScienceCategory.DataProcessingQImage) fun flipVertically() -> newImage: Image ``` { data-search-exclude } @@ -892,9 +922,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="378" + ```sds linenums="393" @Pure @PythonName("invert_colors") + @Category(DataScienceCategory.DataProcessingQImage) fun invertColors() -> newImage: Image ``` { data-search-exclude } @@ -929,8 +960,9 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="121" + ```sds linenums="125" @Pure + @Category(DataScienceCategory.DataProcessingQImage) fun resize( @PythonName("new_width") const newWidth: Int, @PythonName("new_height") const newHeight: Int @@ -964,9 +996,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="412" + ```sds linenums="429" @Pure @PythonName("rotate_left") + @Category(DataScienceCategory.DataProcessingQImage) fun rotateLeft() -> newImage: Image ``` { data-search-exclude } @@ -994,9 +1027,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="395" + ```sds linenums="411" @Pure @PythonName("rotate_right") + @Category(DataScienceCategory.DataProcessingQImage) fun rotateRight() -> newImage: Image ``` { data-search-exclude } @@ -1030,8 +1064,9 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="358" + ```sds linenums="372" @Pure + @Category(DataScienceCategory.DataProcessingQImage) fun sharpen( const factor: Float ) -> newImage: Image where { @@ -1061,9 +1096,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="61" + ```sds linenums="62" @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_jpeg_file") + @Category(DataScienceCategory.DataExport) fun toJpegFile( path: String ) @@ -1091,9 +1127,10 @@ pipeline example { ??? quote "Stub code in `Image.sdsstub`" - ```sds linenums="78" + ```sds linenums="80" @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_png_file") + @Category(DataScienceCategory.DataExport) fun toPngFile( path: String ) @@ -1129,6 +1166,7 @@ pipeline example { ```sds linenums="44" @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_file") + @Category(DataScienceCategory.DataImport) static fun fromFile( path: String ) -> image: Image diff --git a/docs/api/safeds/data/image/containers/ImageList.md b/docs/api/safeds/data/image/containers/ImageList.md index b712cced6..f33a85308 100644 --- a/docs/api/safeds/data/image/containers/ImageList.md +++ b/docs/api/safeds/data/image/containers/ImageList.md @@ -49,6 +49,7 @@ To create an `ImageList` call one of the following static methods: */ @Pure @PythonName("from_images") + @Category(DataScienceCategory.DataImport) static fun fromImages( images: List ) -> imageList: ImageList @@ -64,6 +65,7 @@ To create an `ImageList` call one of the following static methods: */ @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_files") + @Category(DataScienceCategory.DataImport) static fun fromFiles( path: union, String> ) -> imageList: ImageList @@ -77,6 +79,7 @@ To create an `ImageList` call one of the following static methods: */ @Pure @PythonName("get_image") + @Category(DataScienceCategory.UtilitiesQImage) fun getImage( index: Int ) -> image: Image @@ -91,6 +94,7 @@ To create an `ImageList` call one of the following static methods: * @result indices all occurrences of the image */ @Pure + @Category(DataScienceCategory.UtilitiesQImage) fun index( image: Image ) -> indices: List @@ -104,6 +108,7 @@ To create an `ImageList` call one of the following static methods: */ @Pure @PythonName("has_image") + @Category(DataScienceCategory.UtilitiesQImage) fun hasImage( image: Image ) -> hasImage: Boolean @@ -115,6 +120,7 @@ To create an `ImageList` call one of the following static methods: */ @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_jpeg_files") + @Category(DataScienceCategory.DataExport) fun toJpegFiles( path: union, String> ) @@ -126,6 +132,7 @@ To create an `ImageList` call one of the following static methods: */ @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_png_files") + @Category(DataScienceCategory.DataExport) fun toPngFiles( path: union, String> ) @@ -139,6 +146,7 @@ To create an `ImageList` call one of the following static methods: */ @Pure @PythonName("to_images") + @Category(DataScienceCategory.UtilitiesQConversion) fun toImages( indices: List? = null ) -> images: List @@ -575,7 +583,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="170" + ```sds linenums="178" @Pure @PythonName("add_image") fun addImage( @@ -604,7 +612,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="185" + ```sds linenums="193" @Pure @PythonName("add_images") fun addImages( @@ -633,7 +641,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="391" + ```sds linenums="399" @Pure @PythonName("add_noise") fun addNoise( @@ -664,7 +672,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="374" + ```sds linenums="382" @Pure @PythonName("adjust_brightness") fun adjustBrightness( @@ -695,7 +703,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="431" + ```sds linenums="439" @Pure @PythonName("adjust_color_balance") fun adjustColorBalance( @@ -726,7 +734,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="411" + ```sds linenums="419" @Pure @PythonName("adjust_contrast") fun adjustContrast( @@ -757,7 +765,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="449" + ```sds linenums="457" @Pure fun blur( const radius: Int @@ -787,7 +795,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="155" + ```sds linenums="163" @Pure @PythonName("change_channel") fun changeChannel( @@ -813,7 +821,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="310" + ```sds linenums="318" @Pure @PythonName("convert_to_grayscale") fun convertToGrayscale() -> imageList: ImageList @@ -843,7 +851,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="326" + ```sds linenums="334" @Pure fun crop( const x: Int, @@ -873,7 +881,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="515" + ```sds linenums="523" @Pure @PythonName("find_edges") fun findEdges() -> imageList: ImageList @@ -894,7 +902,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="357" + ```sds linenums="365" @Pure @PythonName("flip_horizontally") fun flipHorizontally() -> imageList: ImageList @@ -915,7 +923,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="346" + ```sds linenums="354" @Pure @PythonName("flip_vertically") fun flipVertically() -> imageList: ImageList @@ -940,9 +948,10 @@ Return the image at the given index. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="78" + ```sds linenums="80" @Pure @PythonName("get_image") + @Category(DataScienceCategory.UtilitiesQImage) fun getImage( index: Int ) -> image: Image @@ -967,9 +976,10 @@ Return whether the given image is in this image list. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="105" + ```sds linenums="109" @Pure @PythonName("has_image") + @Category(DataScienceCategory.UtilitiesQImage) fun hasImage( image: Image ) -> hasImage: Boolean @@ -996,8 +1006,9 @@ If the image has multiple occurrences, all indices will be returned ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="93" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.UtilitiesQImage) fun index( image: Image ) -> indices: List @@ -1018,7 +1029,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="482" + ```sds linenums="490" @Pure @PythonName("invert_colors") fun invertColors() -> imageList: ImageList @@ -1041,7 +1052,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="266" + ```sds linenums="274" @Pure @PythonName("remove_duplicate_images") fun removeDuplicateImages() -> imageList: ImageList @@ -1070,7 +1081,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="202" + ```sds linenums="210" @Pure @PythonName("remove_image") fun removeImage( @@ -1099,7 +1110,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="234" + ```sds linenums="242" @Pure @PythonName("remove_image_by_index") fun removeImageByIndex( @@ -1130,7 +1141,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="219" + ```sds linenums="227" @Pure @PythonName("remove_images") fun removeImages( @@ -1160,7 +1171,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="250" + ```sds linenums="258" @Pure @PythonName("remove_images_with_size") fun removeImagesWithSize( @@ -1191,7 +1202,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="291" + ```sds linenums="299" @Pure fun resize( @PythonName("new_width") const newWidth: Int, @@ -1217,7 +1228,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="504" + ```sds linenums="512" @Pure @PythonName("rotate_left") fun rotateLeft() -> imageList: ImageList @@ -1238,7 +1249,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="493" + ```sds linenums="501" @Pure @PythonName("rotate_right") fun rotateRight() -> imageList: ImageList @@ -1265,7 +1276,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="468" + ```sds linenums="476" @Pure fun sharpen( const factor: Float @@ -1289,7 +1300,7 @@ The original image list is not modified. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="277" + ```sds linenums="285" @Pure @PythonName("shuffle_images") fun shuffleImages() -> imageList: ImageList @@ -1314,9 +1325,10 @@ Return a list of all images in this image list. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="140" + ```sds linenums="147" @Pure @PythonName("to_images") + @Category(DataScienceCategory.UtilitiesQConversion) fun toImages( indices: List? = null ) -> images: List @@ -1335,9 +1347,10 @@ Save all images as jpeg files. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="116" + ```sds linenums="121" @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_jpeg_files") + @Category(DataScienceCategory.DataExport) fun toJpegFiles( path: union, String> ) @@ -1356,9 +1369,10 @@ Save all images as png files. ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="127" + ```sds linenums="133" @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_png_files") + @Category(DataScienceCategory.DataExport) fun toPngFiles( path: union, String> ) @@ -1385,9 +1399,10 @@ If you provide a path to a directory the images will be sorted alphabetically wh ??? quote "Stub code in `ImageList.sdsstub`" - ```sds linenums="65" + ```sds linenums="66" @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_files") + @Category(DataScienceCategory.DataImport) static fun fromFiles( path: union, String> ) -> imageList: ImageList @@ -1415,6 +1430,7 @@ Create an ImageList from a list of images. ```sds linenums="50" @Pure @PythonName("from_images") + @Category(DataScienceCategory.DataImport) static fun fromImages( images: List ) -> imageList: ImageList diff --git a/docs/api/safeds/data/tabular/containers/Column.md b/docs/api/safeds/data/tabular/containers/Column.md index 46ba5c304..b3e179f9b 100644 --- a/docs/api/safeds/data/tabular/containers/Column.md +++ b/docs/api/safeds/data/tabular/containers/Column.md @@ -27,7 +27,7 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="18" + ```sds linenums="19" class Column( name: String, data: List = [] @@ -143,6 +143,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQGeneral) fun all( predicate: (cell: Cell) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -186,6 +187,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQGeneral) fun any( predicate: (cell: Cell) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -224,6 +226,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQGeneral) fun countIf( predicate: (cell: Cell) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -267,6 +270,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQGeneral) fun none( predicate: (cell: Cell) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -289,6 +293,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataProcessingQColumn) fun rename( @PythonName("new_name") newName: String ) -> renamedColumn: Column @@ -310,6 +315,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataProcessingQColumn) fun transform( transformer: (cell: Cell) -> transformedCell: Cell ) -> transformedColumn: Column @@ -359,6 +365,7 @@ pipeline example { */ @Pure @PythonName("correlation_with") + @Category(DataScienceCategory.DataExplorationQMetric) fun correlationWith( other: Column ) -> correlation: Float @@ -378,6 +385,7 @@ pipeline example { */ @Pure @PythonName("distinct_value_count") + @Category(DataScienceCategory.DataExplorationQMetric) fun distinctValueCount( @PythonName("ignore_missing_values") ignoreMissingValues: Boolean = true ) -> distinctValueCount: Int @@ -406,6 +414,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun idness() -> idness: Float /** @@ -420,6 +429,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun max() -> max: T? /** @@ -436,6 +446,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun mean() -> mean: T /** @@ -453,6 +464,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun median() -> median: T /** @@ -467,6 +479,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun min() -> min: T? /** @@ -482,6 +495,7 @@ pipeline example { */ @Pure @PythonName("missing_value_count") + @Category(DataScienceCategory.DataExplorationQMetric) fun missingValueCount() -> missingValueCount: Int /** @@ -503,6 +517,7 @@ pipeline example { */ @Pure @PythonName("missing_value_ratio") + @Category(DataScienceCategory.DataExplorationQMetric) fun missingValueRatio() -> missingValueRatio: Float /** @@ -522,6 +537,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun mode( @PythonName("ignore_missing_values") ignoreMissingValues: Boolean = true, ) -> mode: List @@ -544,6 +560,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun stability() -> stability: Float /** @@ -562,6 +579,7 @@ pipeline example { */ @Pure @PythonName("standard_deviation") + @Category(DataScienceCategory.DataExplorationQMetric) fun standardDeviation() -> standardDeviation: Float /** @@ -579,6 +597,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun variance() -> variance: Float /** @@ -594,6 +613,7 @@ pipeline example { */ @Pure @PythonName("to_list") + @Category(DataScienceCategory.UtilitiesQConversion) fun toList() -> values: List /** @@ -610,6 +630,7 @@ pipeline example { */ @Pure @PythonName("to_table") + @Category(DataScienceCategory.UtilitiesQConversion) fun toTable() -> table: Table } ``` @@ -702,8 +723,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="132" + ```sds linenums="133" @Pure + @Category(DataScienceCategory.DataExplorationQGeneral) fun all( predicate: (cell: Cell) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -762,8 +784,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="175" + ```sds linenums="177" @Pure + @Category(DataScienceCategory.DataExplorationQGeneral) fun any( predicate: (cell: Cell) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -813,9 +836,10 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="347" + ```sds linenums="354" @Pure @PythonName("correlation_with") + @Category(DataScienceCategory.DataExplorationQMetric) fun correlationWith( other: Column ) -> correlation: Float @@ -868,8 +892,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="213" + ```sds linenums="216" @Pure + @Category(DataScienceCategory.DataExplorationQGeneral) fun countIf( predicate: (cell: Cell) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -904,9 +929,10 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="366" + ```sds linenums="374" @Pure @PythonName("distinct_value_count") + @Category(DataScienceCategory.DataExplorationQMetric) fun distinctValueCount( @PythonName("ignore_missing_values") ignoreMissingValues: Boolean = true ) -> distinctValueCount: Int @@ -941,7 +967,7 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="61" + ```sds linenums="62" @Pure @PythonName("get_distinct_values") fun getDistinctValues( @@ -986,7 +1012,7 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="89" + ```sds linenums="90" @Pure @PythonName("get_value") fun getValue( @@ -1028,8 +1054,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="395" + ```sds linenums="404" @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun idness() -> idness: Float ``` { data-search-exclude } @@ -1055,8 +1082,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="409" + ```sds linenums="419" @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun max() -> max: T? ``` { data-search-exclude } @@ -1084,8 +1112,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="425" + ```sds linenums="436" @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun mean() -> mean: T ``` { data-search-exclude } @@ -1114,8 +1143,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="442" + ```sds linenums="454" @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun median() -> median: T ``` { data-search-exclude } @@ -1141,8 +1171,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="456" + ```sds linenums="469" @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun min() -> min: T? ``` { data-search-exclude } @@ -1168,9 +1199,10 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="470" + ```sds linenums="484" @Pure @PythonName("missing_value_count") + @Category(DataScienceCategory.DataExplorationQMetric) fun missingValueCount() -> missingValueCount: Int ``` { data-search-exclude } @@ -1202,9 +1234,10 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="491" + ```sds linenums="506" @Pure @PythonName("missing_value_ratio") + @Category(DataScienceCategory.DataExplorationQMetric) fun missingValueRatio() -> missingValueRatio: Float ``` { data-search-exclude } @@ -1239,8 +1272,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="511" + ```sds linenums="527" @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun mode( @PythonName("ignore_missing_values") ignoreMissingValues: Boolean = true, ) -> mode: List @@ -1298,8 +1332,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="256" + ```sds linenums="260" @Pure + @Category(DataScienceCategory.DataExplorationQGeneral) fun none( predicate: (cell: Cell) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -1337,8 +1372,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="278" + ```sds linenums="283" @Pure + @Category(DataScienceCategory.DataProcessingQColumn) fun rename( @PythonName("new_name") newName: String ) -> renamedColumn: Column @@ -1372,8 +1408,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="533" + ```sds linenums="550" @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun stability() -> stability: Float ``` { data-search-exclude } @@ -1401,9 +1438,10 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="550" + ```sds linenums="568" @Pure @PythonName("standard_deviation") + @Category(DataScienceCategory.DataExplorationQMetric) fun standardDeviation() -> standardDeviation: Float ``` { data-search-exclude } @@ -1429,7 +1467,7 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="315" + ```sds linenums="322" @Pure @PythonName("summarize_statistics") fun summarizeStatistics() -> statistics: Table @@ -1457,9 +1495,10 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="582" + ```sds linenums="602" @Pure @PythonName("to_list") + @Category(DataScienceCategory.UtilitiesQConversion) fun toList() -> values: List ``` { data-search-exclude } @@ -1486,9 +1525,10 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="598" + ```sds linenums="619" @Pure @PythonName("to_table") + @Category(DataScienceCategory.UtilitiesQConversion) fun toTable() -> table: Table ``` { data-search-exclude } @@ -1529,8 +1569,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="299" + ```sds linenums="305" @Pure + @Category(DataScienceCategory.DataProcessingQColumn) fun transform( transformer: (cell: Cell) -> transformedCell: Cell ) -> transformedColumn: Column @@ -1560,8 +1601,9 @@ pipeline example { ??? quote "Stub code in `Column.sdsstub`" - ```sds linenums="568" + ```sds linenums="587" @Pure + @Category(DataScienceCategory.DataExplorationQMetric) fun variance() -> variance: Float ``` { data-search-exclude } diff --git a/docs/api/safeds/data/tabular/containers/Row.md b/docs/api/safeds/data/tabular/containers/Row.md index 145b73d1c..13a3bd126 100644 --- a/docs/api/safeds/data/tabular/containers/Row.md +++ b/docs/api/safeds/data/tabular/containers/Row.md @@ -26,7 +26,7 @@ This class cannot be instantiated directly. It is only used for arguments of cal /** * The schema of the row. */ - attr ^schema: Schema + attr schema: Schema /** * Get the value of the specified column. This is equivalent to the `[]` operator (indexed access). diff --git a/docs/api/safeds/data/tabular/containers/Table.md b/docs/api/safeds/data/tabular/containers/Table.md index 7127190d8..b19ac100d 100644 --- a/docs/api/safeds/data/tabular/containers/Table.md +++ b/docs/api/safeds/data/tabular/containers/Table.md @@ -30,7 +30,7 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="32" + ```sds linenums="33" class Table( data: Map>? = null ) { @@ -55,7 +55,7 @@ pipeline example { /** * The schema of the table. */ - attr ^schema: Schema + attr schema: Schema /** * Create a table from a list of columns. @@ -73,6 +73,7 @@ pipeline example { */ @Pure @PythonName("from_columns") + @Category(DataScienceCategory.UtilitiesQConversion) static fun fromColumns( columns: union> ) -> table: Table @@ -92,6 +93,7 @@ pipeline example { */ @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_csv_file") + @Category(DataScienceCategory.DataImport) static fun fromCsvFile( path: String, separator: String = "," @@ -112,6 +114,7 @@ pipeline example { */ @Pure @PythonName("from_dict") + @Category(DataScienceCategory.DataImport) static fun fromMap( data: Map> ) -> table: Table @@ -130,6 +133,7 @@ pipeline example { */ @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_json_file") + @Category(DataScienceCategory.DataImport) static fun fromJsonFile( path: String ) -> table: Table @@ -148,6 +152,7 @@ pipeline example { */ @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_parquet_file") + @Category(DataScienceCategory.DataImport) static fun fromParquetFile( path: String ) -> table: Table @@ -173,6 +178,7 @@ pipeline example { */ @Pure @PythonName("add_columns") + @Category(DataScienceCategory.DataProcessingQTable) fun addColumns( columns: union> ) -> newTable: Table @@ -195,6 +201,7 @@ pipeline example { */ @Pure @PythonName("add_computed_column") + @Category(DataScienceCategory.DataProcessingQTable) fun addComputedColumn( name: String, computer: (row: Row) -> computedCell: Cell @@ -216,6 +223,7 @@ pipeline example { */ @Pure @PythonName("get_column") + @Category(DataScienceCategory.UtilitiesQTable) fun getColumn( name: String ) -> column: Column @@ -235,6 +243,7 @@ pipeline example { */ @Pure @PythonName("get_column_type") + @Category(DataScienceCategory.UtilitiesQTable) fun getColumnType( name: String ) -> type: DataType @@ -254,6 +263,7 @@ pipeline example { */ @Pure @PythonName("has_column") + @Category(DataScienceCategory.UtilitiesQTable) fun hasColumn( name: String ) -> hasColumn: Boolean @@ -285,6 +295,7 @@ pipeline example { */ @Pure @PythonName("remove_columns") + @Category(DataScienceCategory.DataProcessingQTable) fun removeColumns( names: union, String>, @PythonName("ignore_unknown_names") ignoreUnknownNames: Boolean = false @@ -306,6 +317,7 @@ pipeline example { */ @Pure @PythonName("remove_columns_except") + @Category(DataScienceCategory.DataProcessingQTable) fun removeColumnsExcept( names: union, String> ) -> newTable: Table @@ -329,6 +341,7 @@ pipeline example { */ @Pure @PythonName("remove_columns_with_missing_values") + @Category(DataScienceCategory.DataProcessingQTable) fun removeColumnsWithMissingValues() -> newTable: Table /** @@ -347,6 +360,7 @@ pipeline example { */ @Pure @PythonName("remove_non_numeric_columns") + @Category(DataScienceCategory.DataProcessingQTable) fun removeNonNumericColumns() -> newTable: Table /** @@ -368,6 +382,7 @@ pipeline example { */ @Pure @PythonName("rename_column") + @Category(DataScienceCategory.DataProcessingQTable) fun renameColumn( @PythonName("old_name") oldName: String, @PythonName("new_name") newName: String @@ -416,6 +431,7 @@ pipeline example { */ @Pure @PythonName("replace_column") + @Category(DataScienceCategory.DataProcessingQTable) fun replaceColumn( @PythonName("old_name") oldName: String, @PythonName("new_columns") newColumns: union, Table> @@ -440,6 +456,7 @@ pipeline example { */ @Pure @PythonName("transform_column") + @Category(DataScienceCategory.DataProcessingQTable) fun transformColumn( name: String, transformer: (cell: Cell) -> transformedCell: Cell @@ -479,6 +496,7 @@ pipeline example { */ @Pure @PythonName("count_row_if") + @Category(DataScienceCategory.DataExplorationQGeneral) fun countRowIf( predicate: (cell: Row) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -500,6 +518,7 @@ pipeline example { */ @Pure @PythonName("remove_duplicate_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun removeDuplicateRows() -> newTable: Table /** @@ -520,6 +539,7 @@ pipeline example { */ @Pure @PythonName("remove_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun removeRows( query: (row: Row) -> shouldRemoveRow: Cell ) -> newTable: Table @@ -543,6 +563,7 @@ pipeline example { */ @Pure @PythonName("remove_rows_by_column") + @Category(DataScienceCategory.DataProcessingQTable) fun removeRowsByColumn( name: String, query: (cell: Cell) -> shouldRemoveRow: Cell @@ -566,6 +587,7 @@ pipeline example { */ @Pure @PythonName("remove_rows_with_missing_values") + @Category(DataScienceCategory.DataProcessingQTable) fun removeRowsWithMissingValues( @PythonName("column_names") columnNames: List? = null ) -> newTable: Table @@ -605,6 +627,7 @@ pipeline example { */ @Pure @PythonName("remove_rows_with_outliers") + @Category(DataScienceCategory.DataProcessingQTable) fun removeRowsWithOutliers( @PythonName("column_names") columnNames: List? = null, @PythonName("z_score_threshold") zScoreThreshold: Float = 3.0 @@ -626,6 +649,7 @@ pipeline example { */ @Pure @PythonName("shuffle_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun shuffleRows() -> newTable: Table /** @@ -655,6 +679,7 @@ pipeline example { */ @Pure @PythonName("slice_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun sliceRows( start: Int = 0, length: Int? = null @@ -679,6 +704,7 @@ pipeline example { */ @Pure @PythonName("sort_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun sortRows( @PythonName("key_selector") keySelector: (row: Row) -> key: Cell, descending: Boolean = false @@ -703,6 +729,7 @@ pipeline example { */ @Pure @PythonName("sort_rows_by_column") + @Category(DataScienceCategory.DataProcessingQTable) fun sortRowsByColumn( name: String, descending: Boolean = false @@ -733,6 +760,7 @@ pipeline example { */ @Pure @PythonName("split_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun splitRows( @PythonName("percentage_in_first") percentageInFirst: Float, shuffle: Boolean = true @@ -760,6 +788,7 @@ pipeline example { */ @Pure @PythonName("add_table_as_columns") + @Category(DataScienceCategory.DataProcessingQTable) fun addTableAsColumns( other: Table ) -> newTable: Table @@ -786,6 +815,7 @@ pipeline example { */ @Pure @PythonName("add_table_as_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun addTableAsRows( other: Table ) -> newTable: Table @@ -812,6 +842,7 @@ pipeline example { */ @Pure @PythonName("inverse_transform_table") + @Category(DataScienceCategory.DataProcessingQTable) fun inverseTransformTable( @PythonName("fitted_transformer") fittedTransformer: InvertibleTableTransformer ) -> newTable: Table @@ -835,6 +866,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataProcessingQTable) fun join( @PythonName("right_table") rightTable: Table, @PythonName("left_names") leftNames: union, String>, @@ -864,6 +896,7 @@ pipeline example { */ @Pure @PythonName("transform_table") + @Category(DataScienceCategory.DataProcessingQTable) fun transformTable( @PythonName("fitted_transformer") fittedTransformer: TableTransformer ) -> newTable: Table @@ -881,6 +914,7 @@ pipeline example { */ @Pure @PythonName("summarize_statistics") + @Category(DataScienceCategory.DataExplorationQMetric) fun summarizeStatistics() -> statistics: Table /** @@ -896,6 +930,7 @@ pipeline example { */ @Pure @PythonName("to_columns") + @Category(DataScienceCategory.UtilitiesQConversion) fun toColumns() -> columns: List /** @@ -914,6 +949,7 @@ pipeline example { */ @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_csv_file") + @Category(DataScienceCategory.DataExport) fun toCsvFile( path: String ) @@ -932,6 +968,7 @@ pipeline example { */ @Pure @PythonName("to_dict") + @Category(DataScienceCategory.UtilitiesQConversion) fun toMap() -> map: Map> /** @@ -952,6 +989,7 @@ pipeline example { */ @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_json_file") + @Category(DataScienceCategory.DataExport) fun toJsonFile( path: String ) @@ -972,6 +1010,7 @@ pipeline example { */ @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_parquet_file") + @Category(DataScienceCategory.DataExport) fun toParquetFile( path: String ) @@ -1007,6 +1046,7 @@ pipeline example { */ @Pure @PythonName("to_tabular_dataset") + @Category(DataScienceCategory.UtilitiesQConversion) fun toTabularDataset( @PythonName("target_name") targetName: String, @PythonName("extra_names") extraNames: List? = null @@ -1040,6 +1080,7 @@ pipeline example { */ @Pure @PythonName("to_time_series_dataset") + @Category(DataScienceCategory.UtilitiesQConversion) fun toTimeSeriesDataset( @PythonName("target_name") targetName: String, @PythonName("window_size") windowSize: Int, @@ -1116,9 +1157,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="172" + ```sds linenums="178" @Pure @PythonName("add_columns") + @Category(DataScienceCategory.DataProcessingQTable) fun addColumns( columns: union> ) -> newTable: Table @@ -1155,9 +1197,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="194" + ```sds linenums="201" @Pure @PythonName("add_computed_column") + @Category(DataScienceCategory.DataProcessingQTable) fun addComputedColumn( name: String, computer: (row: Row) -> computedCell: Cell @@ -1199,9 +1242,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="759" + ```sds linenums="788" @Pure @PythonName("add_table_as_columns") + @Category(DataScienceCategory.DataProcessingQTable) fun addTableAsColumns( other: Table ) -> newTable: Table @@ -1242,9 +1286,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="785" + ```sds linenums="815" @Pure @PythonName("add_table_as_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun addTableAsRows( other: Table ) -> newTable: Table @@ -1297,9 +1342,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="478" + ```sds linenums="496" @Pure @PythonName("count_row_if") + @Category(DataScienceCategory.DataExplorationQGeneral) fun countRowIf( predicate: (cell: Row) -> satisfiesPredicate: Cell, @PythonName("ignore_unknown") ignoreUnknown: Boolean = true, @@ -1335,9 +1381,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="215" + ```sds linenums="223" @Pure @PythonName("get_column") + @Category(DataScienceCategory.UtilitiesQTable) fun getColumn( name: String ) -> column: Column @@ -1371,9 +1418,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="234" + ```sds linenums="243" @Pure @PythonName("get_column_type") + @Category(DataScienceCategory.UtilitiesQTable) fun getColumnType( name: String ) -> type: DataType @@ -1407,9 +1455,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="253" + ```sds linenums="263" @Pure @PythonName("has_column") + @Category(DataScienceCategory.UtilitiesQTable) fun hasColumn( name: String ) -> hasColumn: Boolean @@ -1450,9 +1499,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="811" + ```sds linenums="842" @Pure @PythonName("inverse_transform_table") + @Category(DataScienceCategory.DataProcessingQTable) fun inverseTransformTable( @PythonName("fitted_transformer") fittedTransformer: InvertibleTableTransformer ) -> newTable: Table @@ -1491,8 +1541,9 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="835" + ```sds linenums="867" @Pure + @Category(DataScienceCategory.DataProcessingQTable) fun join( @PythonName("right_table") rightTable: Table, @PythonName("left_names") leftNames: union, String>, @@ -1540,9 +1591,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="284" + ```sds linenums="295" @Pure @PythonName("remove_columns") + @Category(DataScienceCategory.DataProcessingQTable) fun removeColumns( names: union, String>, @PythonName("ignore_unknown_names") ignoreUnknownNames: Boolean = false @@ -1578,9 +1630,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="305" + ```sds linenums="317" @Pure @PythonName("remove_columns_except") + @Category(DataScienceCategory.DataProcessingQTable) fun removeColumnsExcept( names: union, String> ) -> newTable: Table @@ -1614,9 +1667,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="328" + ```sds linenums="341" @Pure @PythonName("remove_columns_with_missing_values") + @Category(DataScienceCategory.DataProcessingQTable) fun removeColumnsWithMissingValues() -> newTable: Table ``` { data-search-exclude } @@ -1645,9 +1699,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="499" + ```sds linenums="518" @Pure @PythonName("remove_duplicate_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun removeDuplicateRows() -> newTable: Table ``` { data-search-exclude } @@ -1676,9 +1731,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="346" + ```sds linenums="360" @Pure @PythonName("remove_non_numeric_columns") + @Category(DataScienceCategory.DataProcessingQTable) fun removeNonNumericColumns() -> newTable: Table ``` { data-search-exclude } @@ -1713,9 +1769,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="519" + ```sds linenums="539" @Pure @PythonName("remove_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun removeRows( query: (row: Row) -> shouldRemoveRow: Cell ) -> newTable: Table @@ -1753,9 +1810,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="542" + ```sds linenums="563" @Pure @PythonName("remove_rows_by_column") + @Category(DataScienceCategory.DataProcessingQTable) fun removeRowsByColumn( name: String, query: (cell: Cell) -> shouldRemoveRow: Cell @@ -1793,9 +1851,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="565" + ```sds linenums="587" @Pure @PythonName("remove_rows_with_missing_values") + @Category(DataScienceCategory.DataProcessingQTable) fun removeRowsWithMissingValues( @PythonName("column_names") columnNames: List? = null ) -> newTable: Table @@ -1849,9 +1908,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="604" + ```sds linenums="627" @Pure @PythonName("remove_rows_with_outliers") + @Category(DataScienceCategory.DataProcessingQTable) fun removeRowsWithOutliers( @PythonName("column_names") columnNames: List? = null, @PythonName("z_score_threshold") zScoreThreshold: Float = 3.0 @@ -1890,9 +1950,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="367" + ```sds linenums="382" @Pure @PythonName("rename_column") + @Category(DataScienceCategory.DataProcessingQTable) fun renameColumn( @PythonName("old_name") oldName: String, @PythonName("new_name") newName: String @@ -1955,9 +2016,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="415" + ```sds linenums="431" @Pure @PythonName("replace_column") + @Category(DataScienceCategory.DataProcessingQTable) fun replaceColumn( @PythonName("old_name") oldName: String, @PythonName("new_columns") newColumns: union, Table> @@ -1989,9 +2051,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="625" + ```sds linenums="649" @Pure @PythonName("shuffle_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun shuffleRows() -> newTable: Table ``` { data-search-exclude } @@ -2034,9 +2097,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="654" + ```sds linenums="679" @Pure @PythonName("slice_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun sliceRows( start: Int = 0, length: Int? = null @@ -2075,9 +2139,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="678" + ```sds linenums="704" @Pure @PythonName("sort_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun sortRows( @PythonName("key_selector") keySelector: (row: Row) -> key: Cell, descending: Boolean = false @@ -2116,9 +2181,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="702" + ```sds linenums="729" @Pure @PythonName("sort_rows_by_column") + @Category(DataScienceCategory.DataProcessingQTable) fun sortRowsByColumn( name: String, descending: Boolean = false @@ -2163,9 +2229,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="732" + ```sds linenums="760" @Pure @PythonName("split_rows") + @Category(DataScienceCategory.DataProcessingQTable) fun splitRows( @PythonName("percentage_in_first") percentageInFirst: Float, shuffle: Boolean = true @@ -2194,9 +2261,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="880" + ```sds linenums="914" @Pure @PythonName("summarize_statistics") + @Category(DataScienceCategory.DataExplorationQMetric) fun summarizeStatistics() -> statistics: Table ``` { data-search-exclude } @@ -2222,9 +2290,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="895" + ```sds linenums="930" @Pure @PythonName("to_columns") + @Category(DataScienceCategory.UtilitiesQConversion) fun toColumns() -> columns: List ``` { data-search-exclude } @@ -2253,9 +2322,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="913" + ```sds linenums="949" @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_csv_file") + @Category(DataScienceCategory.DataExport) fun toCsvFile( path: String ) @@ -2288,9 +2358,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="951" + ```sds linenums="989" @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_json_file") + @Category(DataScienceCategory.DataExport) fun toJsonFile( path: String ) @@ -2319,9 +2390,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="931" + ```sds linenums="968" @Pure @PythonName("to_dict") + @Category(DataScienceCategory.UtilitiesQConversion) fun toMap() -> map: Map> ``` { data-search-exclude } @@ -2350,9 +2422,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="971" + ```sds linenums="1010" @Impure([ImpurityReason.FileWriteToParameterizedPath("path")]) @PythonName("to_parquet_file") + @Category(DataScienceCategory.DataExport) fun toParquetFile( path: String ) @@ -2401,9 +2474,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="1006" + ```sds linenums="1046" @Pure @PythonName("to_tabular_dataset") + @Category(DataScienceCategory.UtilitiesQConversion) fun toTabularDataset( @PythonName("target_name") targetName: String, @PythonName("extra_names") extraNames: List? = null @@ -2450,9 +2524,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="1039" + ```sds linenums="1080" @Pure @PythonName("to_time_series_dataset") + @Category(DataScienceCategory.UtilitiesQConversion) fun toTimeSeriesDataset( @PythonName("target_name") targetName: String, @PythonName("window_size") windowSize: Int, @@ -2494,9 +2569,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="439" + ```sds linenums="456" @Pure @PythonName("transform_column") + @Category(DataScienceCategory.DataProcessingQTable) fun transformColumn( name: String, transformer: (cell: Cell) -> transformedCell: Cell @@ -2538,9 +2614,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="863" + ```sds linenums="896" @Pure @PythonName("transform_table") + @Category(DataScienceCategory.DataProcessingQTable) fun transformTable( @PythonName("fitted_transformer") fittedTransformer: TableTransformer ) -> newTable: Table @@ -2575,9 +2652,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="72" + ```sds linenums="73" @Pure @PythonName("from_columns") + @Category(DataScienceCategory.UtilitiesQConversion) static fun fromColumns( columns: union> ) -> table: Table @@ -2611,9 +2689,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="91" + ```sds linenums="93" @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_csv_file") + @Category(DataScienceCategory.DataImport) static fun fromCsvFile( path: String, separator: String = "," @@ -2647,9 +2726,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="129" + ```sds linenums="133" @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_json_file") + @Category(DataScienceCategory.DataImport) static fun fromJsonFile( path: String ) -> table: Table @@ -2683,9 +2763,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="111" + ```sds linenums="114" @Pure @PythonName("from_dict") + @Category(DataScienceCategory.DataImport) static fun fromMap( data: Map> ) -> table: Table @@ -2718,9 +2799,10 @@ pipeline example { ??? quote "Stub code in `Table.sdsstub`" - ```sds linenums="147" + ```sds linenums="152" @Impure([ImpurityReason.FileReadFromParameterizedPath("path")]) @PythonName("from_parquet_file") + @Category(DataScienceCategory.DataImport) static fun fromParquetFile( path: String ) -> table: Table diff --git a/docs/api/safeds/data/tabular/plotting/ColumnPlotter.md b/docs/api/safeds/data/tabular/plotting/ColumnPlotter.md index e6ce8815f..c3649f1c4 100644 --- a/docs/api/safeds/data/tabular/plotting/ColumnPlotter.md +++ b/docs/api/safeds/data/tabular/plotting/ColumnPlotter.md @@ -21,7 +21,7 @@ pipeline example { ??? quote "Stub code in `ColumnPlotter.sdsstub`" - ```sds linenums="16" + ```sds linenums="17" class ColumnPlotter( column: Column ) { @@ -40,6 +40,7 @@ pipeline example { */ @Pure @PythonName("box_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun boxPlot( theme: literal<"dark", "light"> = "light" ) -> plot: Image @@ -59,6 +60,7 @@ pipeline example { */ @Pure @PythonName("violin_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun violinPlot( theme: literal<"dark", "light"> = "light" ) -> plot: Image @@ -78,6 +80,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQVisualization) fun histogram( @PythonName("max_bin_count") const maxBinCount: Int = 10, theme: literal<"dark", "light"> = "light" @@ -101,6 +104,7 @@ pipeline example { */ @Pure @PythonName("lag_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun lagPlot( lag: Int, theme: literal<"dark", "light"> = "light" @@ -136,9 +140,10 @@ pipeline example { ??? quote "Stub code in `ColumnPlotter.sdsstub`" - ```sds linenums="32" + ```sds linenums="33" @Pure @PythonName("box_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun boxPlot( theme: literal<"dark", "light"> = "light" ) -> plot: Image @@ -173,8 +178,9 @@ pipeline example { ??? quote "Stub code in `ColumnPlotter.sdsstub`" - ```sds linenums="71" + ```sds linenums="74" @Pure + @Category(DataScienceCategory.DataExplorationQVisualization) fun histogram( @PythonName("max_bin_count") const maxBinCount: Int = 10, theme: literal<"dark", "light"> = "light" @@ -212,9 +218,10 @@ pipeline example { ??? quote "Stub code in `ColumnPlotter.sdsstub`" - ```sds linenums="93" + ```sds linenums="97" @Pure @PythonName("lag_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun lagPlot( lag: Int, theme: literal<"dark", "light"> = "light" @@ -249,9 +256,10 @@ pipeline example { ??? quote "Stub code in `ColumnPlotter.sdsstub`" - ```sds linenums="51" + ```sds linenums="53" @Pure @PythonName("violin_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun violinPlot( theme: literal<"dark", "light"> = "light" ) -> plot: Image diff --git a/docs/api/safeds/data/tabular/plotting/TablePlotter.md b/docs/api/safeds/data/tabular/plotting/TablePlotter.md index 58e9d4618..60c63d23e 100644 --- a/docs/api/safeds/data/tabular/plotting/TablePlotter.md +++ b/docs/api/safeds/data/tabular/plotting/TablePlotter.md @@ -21,7 +21,7 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="17" + ```sds linenums="18" class TablePlotter( table: Table ) { @@ -40,6 +40,7 @@ pipeline example { */ @Pure @PythonName("box_plots") + @Category(DataScienceCategory.DataExplorationQVisualization) fun boxPlots( theme: literal<"dark", "light"> = "light" ) -> plot: Image @@ -59,6 +60,7 @@ pipeline example { */ @Pure @PythonName("violin_plots") + @Category(DataScienceCategory.DataExplorationQVisualization) fun violinPlots( theme: literal<"dark", "light"> = "light" ) -> plot: Image @@ -78,6 +80,7 @@ pipeline example { */ @Pure @PythonName("correlation_heatmap") + @Category(DataScienceCategory.DataExplorationQVisualization) fun correlationHeatmap( theme: literal<"dark", "light"> = "light" ) -> plot: Image @@ -97,6 +100,7 @@ pipeline example { * } */ @Pure + @Category(DataScienceCategory.DataExplorationQVisualization) fun histograms( @PythonName("max_bin_count") const maxBinCount: Int = 10, theme: literal<"dark", "light"> = "light" @@ -127,6 +131,7 @@ pipeline example { */ @Pure @PythonName("line_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun linePlot( @PythonName("x_name") xName: String, @PythonName("y_names") yNames: List, @@ -156,6 +161,7 @@ pipeline example { */ @Pure @PythonName("scatter_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun scatterPlot( @PythonName("x_name") xName: String, @PythonName("y_names") yNames: List, @@ -185,6 +191,7 @@ pipeline example { */ @Pure @PythonName("moving_average_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun movingAveragePlot( @PythonName("x_name") xName: String, @PythonName("y_name") yName: String, @@ -216,6 +223,7 @@ pipeline example { */ @Pure @PythonName("histogram_2d") + @Category(DataScienceCategory.DataExplorationQVisualization) fun histogram2d( @PythonName("x_name") xName: String, @PythonName("y_name") yName: String, @@ -254,9 +262,10 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="33" + ```sds linenums="34" @Pure @PythonName("box_plots") + @Category(DataScienceCategory.DataExplorationQVisualization) fun boxPlots( theme: literal<"dark", "light"> = "light" ) -> plot: Image @@ -290,9 +299,10 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="71" + ```sds linenums="74" @Pure @PythonName("correlation_heatmap") + @Category(DataScienceCategory.DataExplorationQVisualization) fun correlationHeatmap( theme: literal<"dark", "light"> = "light" ) -> plot: Image @@ -335,9 +345,10 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="209" + ```sds linenums="217" @Pure @PythonName("histogram_2d") + @Category(DataScienceCategory.DataExplorationQVisualization) fun histogram2d( @PythonName("x_name") xName: String, @PythonName("y_name") yName: String, @@ -376,8 +387,9 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="91" + ```sds linenums="95" @Pure + @Category(DataScienceCategory.DataExplorationQVisualization) fun histograms( @PythonName("max_bin_count") const maxBinCount: Int = 10, theme: literal<"dark", "light"> = "light" @@ -422,9 +434,10 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="120" + ```sds linenums="125" @Pure @PythonName("line_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun linePlot( @PythonName("x_name") xName: String, @PythonName("y_names") yNames: List, @@ -469,9 +482,10 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="178" + ```sds linenums="185" @Pure @PythonName("moving_average_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun movingAveragePlot( @PythonName("x_name") xName: String, @PythonName("y_name") yName: String, @@ -515,9 +529,10 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="149" + ```sds linenums="155" @Pure @PythonName("scatter_plot") + @Category(DataScienceCategory.DataExplorationQVisualization) fun scatterPlot( @PythonName("x_name") xName: String, @PythonName("y_names") yNames: List, @@ -553,9 +568,10 @@ pipeline example { ??? quote "Stub code in `TablePlotter.sdsstub`" - ```sds linenums="52" + ```sds linenums="54" @Pure @PythonName("violin_plots") + @Category(DataScienceCategory.DataExplorationQVisualization) fun violinPlots( theme: literal<"dark", "light"> = "light" ) -> plot: Image diff --git a/docs/api/safeds/data/tabular/transformation/FunctionalTableTransformer.md b/docs/api/safeds/data/tabular/transformation/FunctionalTableTransformer.md index 0a8769470..168b48188 100644 --- a/docs/api/safeds/data/tabular/transformation/FunctionalTableTransformer.md +++ b/docs/api/safeds/data/tabular/transformation/FunctionalTableTransformer.md @@ -26,6 +26,7 @@ Wraps a callable so that it conforms to the TableTransformer interface. * @result fittedTransformer Returns self, because this transformer is always fitted. */ @Pure + @Category(DataScienceCategory.DataProcessingQTransformer) fun fit( table: Table ) -> fittedTransformer: FunctionalTableTransformer @@ -40,6 +41,7 @@ Wraps a callable so that it conforms to the TableTransformer interface. */ @Pure @PythonName("fit_and_transform") + @Category(DataScienceCategory.DataProcessingQTransformer) fun fitAndTransform( table: Table ) -> (fittedTransformer: FunctionalTableTransformer, transformedTable: Table) @@ -73,6 +75,7 @@ Whether the transformer is fitted. ```sds linenums="21" @Pure + @Category(DataScienceCategory.DataProcessingQTransformer) fun fit( table: Table ) -> fittedTransformer: FunctionalTableTransformer @@ -98,9 +101,10 @@ Whether the transformer is fitted. ??? quote "Stub code in `FunctionalTableTransformer.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("fit_and_transform") + @Category(DataScienceCategory.DataProcessingQTransformer) fun fitAndTransform( table: Table ) -> (fittedTransformer: FunctionalTableTransformer, transformedTable: Table) diff --git a/docs/api/safeds/data/tabular/transformation/KNearestNeighborsImputer.md b/docs/api/safeds/data/tabular/transformation/KNearestNeighborsImputer.md index 48f6e43c5..684a51599 100644 --- a/docs/api/safeds/data/tabular/transformation/KNearestNeighborsImputer.md +++ b/docs/api/safeds/data/tabular/transformation/KNearestNeighborsImputer.md @@ -41,6 +41,7 @@ The KNearestNeighborsImputer replaces missing values in given Columns with the m * @result fittedTransformer The fitted transformer. */ @Pure + @Category(DataScienceCategory.DataProcessingQTransformer) fun fit( table: Table ) -> fittedTransformer: KNearestNeighborsImputer @@ -57,6 +58,7 @@ The KNearestNeighborsImputer replaces missing values in given Columns with the m */ @Pure @PythonName("fit_and_transform") + @Category(DataScienceCategory.DataProcessingQTransformer) fun fitAndTransform( table: Table ) -> (fittedTransformer: KNearestNeighborsImputer, transformedTable: Table) @@ -104,6 +106,7 @@ Learn a transformation for a set of columns in a table. ```sds linenums="36" @Pure + @Category(DataScienceCategory.DataProcessingQTransformer) fun fit( table: Table ) -> fittedTransformer: KNearestNeighborsImputer @@ -131,9 +134,10 @@ Learn a transformation for a set of columns in a table and apply the learned tra ??? quote "Stub code in `KNearestNeighborsImputer.sdsstub`" - ```sds linenums="51" + ```sds linenums="52" @Pure @PythonName("fit_and_transform") + @Category(DataScienceCategory.DataProcessingQTransformer) fun fitAndTransform( table: Table ) -> (fittedTransformer: KNearestNeighborsImputer, transformedTable: Table) diff --git a/docs/api/safeds/data/tabular/transformation/OneHotEncoder.md b/docs/api/safeds/data/tabular/transformation/OneHotEncoder.md index 3b6b103ab..ffe5f8be5 100644 --- a/docs/api/safeds/data/tabular/transformation/OneHotEncoder.md +++ b/docs/api/safeds/data/tabular/transformation/OneHotEncoder.md @@ -71,6 +71,7 @@ pipeline example { * @result fittedTransformer The fitted transformer. */ @Pure + @Category(DataScienceCategory.DataProcessingQTransformer) fun fit( table: Table ) -> fittedTransformer: OneHotEncoder @@ -87,6 +88,7 @@ pipeline example { */ @Pure @PythonName("fit_and_transform") + @Category(DataScienceCategory.DataProcessingQTransformer) fun fitAndTransform( table: Table ) -> (fittedTransformer: OneHotEncoder, transformedTable: Table) @@ -128,6 +130,7 @@ This transformer is not modified. ```sds linenums="63" @Pure + @Category(DataScienceCategory.DataProcessingQTransformer) fun fit( table: Table ) -> fittedTransformer: OneHotEncoder @@ -155,9 +158,10 @@ Learn a transformation for a set of columns in a table and apply the learned tra ??? quote "Stub code in `OneHotEncoder.sdsstub`" - ```sds linenums="78" + ```sds linenums="79" @Pure @PythonName("fit_and_transform") + @Category(DataScienceCategory.DataProcessingQTransformer) fun fitAndTransform( table: Table ) -> (fittedTransformer: OneHotEncoder, transformedTable: Table) diff --git a/docs/api/safeds/data/tabular/typing/Schema.md b/docs/api/safeds/data/tabular/typing/Schema.md index 79e2b4213..0cbec5ba9 100644 --- a/docs/api/safeds/data/tabular/typing/Schema.md +++ b/docs/api/safeds/data/tabular/typing/Schema.md @@ -28,7 +28,7 @@ The schema of a row or table. * @example * pipeline example { * val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - * val type = table.^schema.getColumnType("A"); + * val type = table.schema.getColumnType("A"); * } */ @Pure @@ -47,13 +47,13 @@ The schema of a row or table. * @example * pipeline example { * val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - * val contains = table.^schema.hasColumn("A"); // true + * val contains = table.schema.hasColumn("A"); // true * } * * @example * pipeline example { * val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - * val contains = table.^schema.hasColumn("C"); // false + * val contains = table.schema.hasColumn("C"); // false * } */ @Pure @@ -70,7 +70,7 @@ The schema of a row or table. * @example * pipeline example { * val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - * val map = table.^schema.toMap(); + * val map = table.schema.toMap(); * } */ @Pure @@ -107,7 +107,7 @@ Return the type of the given column. ```sds hl_lines="3" pipeline example { val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - val type = table.^schema.getColumnType("A"); + val type = table.schema.getColumnType("A"); } ``` @@ -143,13 +143,13 @@ Return whether the schema contains a given column. ```sds hl_lines="3" pipeline example { val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - val contains = table.^schema.hasColumn("A"); // true + val contains = table.schema.hasColumn("A"); // true } ``` ```sds hl_lines="3" pipeline example { val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - val contains = table.^schema.hasColumn("C"); // false + val contains = table.schema.hasColumn("C"); // false } ``` @@ -179,7 +179,7 @@ Return a dictionary that maps column names to column types. ```sds hl_lines="3" pipeline example { val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - val map = table.^schema.toMap(); + val map = table.schema.toMap(); } ``` diff --git a/docs/api/safeds/lang/AnnotationTarget.md b/docs/api/safeds/lang/AnnotationTarget.md index c963a3fa0..3f3da1085 100644 --- a/docs/api/safeds/lang/AnnotationTarget.md +++ b/docs/api/safeds/lang/AnnotationTarget.md @@ -59,11 +59,6 @@ The declaration types that can be targeted by annotations. */ Result - /** - * The annotation can be called on schemas. - */ - Schema - /** * The annotation can be called on segments. */ @@ -117,10 +112,6 @@ The annotation can be called on pipelines. The annotation can be called on results. -## `Schema` {#safeds.lang.AnnotationTarget.Schema data-toc-label='[variant] Schema'} - -The annotation can be called on schemas. - ## `Segment` {#safeds.lang.AnnotationTarget.Segment data-toc-label='[variant] Segment'} The annotation can be called on segments. diff --git a/docs/api/safeds/lang/DataScienceCategory.md b/docs/api/safeds/lang/DataScienceCategory.md index fd70dfed8..d07103674 100644 --- a/docs/api/safeds/lang/DataScienceCategory.md +++ b/docs/api/safeds/lang/DataScienceCategory.md @@ -3,48 +3,80 @@ # :test_tube:{ title="Experimental" } `DataScienceCategory` {#safeds.lang.DataScienceCategory data-toc-label='[enum] DataScienceCategory'} A step in the data science process. +The letter "Q" is used as a separator for subcategories. ??? quote "Stub code in `ideIntegration.sdsstub`" - ```sds linenums="26" + ```sds linenums="27" enum DataScienceCategory { + /** + * Basic building blocks. + */ + BasicElement + /** * Load your data into the program. */ DataImport /** - * Prepare your data for analysis. + * Save your data for later use. */ - DataPreparation + DataExport - /** + /** * Explore your data. */ - DataExploration + DataExplorationQMetric + DataExplorationQVisualization + DataExplorationQGeneral /** - * Save your data for later use. + * Prepare your data for analysis. */ - DataExport + DataProcessingQColumn + DataProcessingQTable + DataProcessingQImage + DataProcessingQImageList + DataProcessingQTransformer /** * Configure a model and train it on your data. */ - Modeling + ModelingQGeneral + ModelingQClassicalClassification + ModelingQClassicalRegression + ModelingQNeuralNetwork /** * Evaluate the performance of your model. */ - ModelEvaluation + ModelEvaluationQMetric + ModelEvaluationQVisualization + + /** + * Utility terms for general use and lambda functions. + */ + UtilitiesQConversion + UtilitiesQTable + UtilitiesQImage + UtilitiesQString } ``` { data-search-exclude } -## `DataExploration` {#safeds.lang.DataScienceCategory.DataExploration data-toc-label='[variant] DataExploration'} +## `BasicElement` {#safeds.lang.DataScienceCategory.BasicElement data-toc-label='[variant] BasicElement'} + +Basic building blocks. + +## `DataExplorationQGeneral` {#safeds.lang.DataScienceCategory.DataExplorationQGeneral data-toc-label='[variant] DataExplorationQGeneral'} + +## `DataExplorationQMetric` {#safeds.lang.DataScienceCategory.DataExplorationQMetric data-toc-label='[variant] DataExplorationQMetric'} Explore your data. +## `DataExplorationQVisualization` {#safeds.lang.DataScienceCategory.DataExplorationQVisualization data-toc-label='[variant] DataExplorationQVisualization'} + ## `DataExport` {#safeds.lang.DataScienceCategory.DataExport data-toc-label='[variant] DataExport'} Save your data for later use. @@ -53,14 +85,40 @@ Save your data for later use. Load your data into the program. -## `DataPreparation` {#safeds.lang.DataScienceCategory.DataPreparation data-toc-label='[variant] DataPreparation'} +## `DataProcessingQColumn` {#safeds.lang.DataScienceCategory.DataProcessingQColumn data-toc-label='[variant] DataProcessingQColumn'} Prepare your data for analysis. -## `ModelEvaluation` {#safeds.lang.DataScienceCategory.ModelEvaluation data-toc-label='[variant] ModelEvaluation'} +## `DataProcessingQImage` {#safeds.lang.DataScienceCategory.DataProcessingQImage data-toc-label='[variant] DataProcessingQImage'} + +## `DataProcessingQImageList` {#safeds.lang.DataScienceCategory.DataProcessingQImageList data-toc-label='[variant] DataProcessingQImageList'} + +## `DataProcessingQTable` {#safeds.lang.DataScienceCategory.DataProcessingQTable data-toc-label='[variant] DataProcessingQTable'} + +## `DataProcessingQTransformer` {#safeds.lang.DataScienceCategory.DataProcessingQTransformer data-toc-label='[variant] DataProcessingQTransformer'} + +## `ModelEvaluationQMetric` {#safeds.lang.DataScienceCategory.ModelEvaluationQMetric data-toc-label='[variant] ModelEvaluationQMetric'} Evaluate the performance of your model. -## `Modeling` {#safeds.lang.DataScienceCategory.Modeling data-toc-label='[variant] Modeling'} +## `ModelEvaluationQVisualization` {#safeds.lang.DataScienceCategory.ModelEvaluationQVisualization data-toc-label='[variant] ModelEvaluationQVisualization'} + +## `ModelingQClassicalClassification` {#safeds.lang.DataScienceCategory.ModelingQClassicalClassification data-toc-label='[variant] ModelingQClassicalClassification'} + +## `ModelingQClassicalRegression` {#safeds.lang.DataScienceCategory.ModelingQClassicalRegression data-toc-label='[variant] ModelingQClassicalRegression'} + +## `ModelingQGeneral` {#safeds.lang.DataScienceCategory.ModelingQGeneral data-toc-label='[variant] ModelingQGeneral'} Configure a model and train it on your data. + +## `ModelingQNeuralNetwork` {#safeds.lang.DataScienceCategory.ModelingQNeuralNetwork data-toc-label='[variant] ModelingQNeuralNetwork'} + +## `UtilitiesQConversion` {#safeds.lang.DataScienceCategory.UtilitiesQConversion data-toc-label='[variant] UtilitiesQConversion'} + +Utility terms for general use and lambda functions. + +## `UtilitiesQImage` {#safeds.lang.DataScienceCategory.UtilitiesQImage data-toc-label='[variant] UtilitiesQImage'} + +## `UtilitiesQString` {#safeds.lang.DataScienceCategory.UtilitiesQString data-toc-label='[variant] UtilitiesQString'} + +## `UtilitiesQTable` {#safeds.lang.DataScienceCategory.UtilitiesQTable data-toc-label='[variant] UtilitiesQTable'} diff --git a/docs/api/safeds/lang/Deprecated.md b/docs/api/safeds/lang/Deprecated.md index b1a41fe7e..213ad5394 100644 --- a/docs/api/safeds/lang/Deprecated.md +++ b/docs/api/safeds/lang/Deprecated.md @@ -23,12 +23,11 @@ The declaration should no longer be used. - `Function` - `Parameter` - `Result` -- `Schema` - `Segment` ??? quote "Stub code in `maturity.sdsstub`" - ```sds linenums="23" + ```sds linenums="22" annotation Deprecated( alternative: String? = null, reason: String? = null, diff --git a/docs/api/safeds/lang/Experimental.md b/docs/api/safeds/lang/Experimental.md index b821d0d9d..7b1ca0014 100644 --- a/docs/api/safeds/lang/Experimental.md +++ b/docs/api/safeds/lang/Experimental.md @@ -14,12 +14,11 @@ The declaration might change without a major version bump. - `Function` - `Parameter` - `Result` -- `Schema` - `Segment` ??? quote "Stub code in `maturity.sdsstub`" - ```sds linenums="45" + ```sds linenums="43" annotation Experimental ``` { data-search-exclude } diff --git a/docs/api/safeds/lang/Repeatable.md b/docs/api/safeds/lang/Repeatable.md index 2173314ff..1020a37ed 100644 --- a/docs/api/safeds/lang/Repeatable.md +++ b/docs/api/safeds/lang/Repeatable.md @@ -10,7 +10,7 @@ The annotation can be called multiple times for the same declaration. ??? quote "Stub code in `annotationUsage.sdsstub`" - ```sds linenums="88" + ```sds linenums="83" annotation Repeatable ``` { data-search-exclude } diff --git a/docs/api/safeds/lang/Tags.md b/docs/api/safeds/lang/Tags.md index 5816e012a..dd4883a77 100644 --- a/docs/api/safeds/lang/Tags.md +++ b/docs/api/safeds/lang/Tags.md @@ -17,12 +17,11 @@ Tags to associate with a declaration. They can be used for filtering. - `Enum` - `Function` - `Pipeline` -- `Schema` - `Segment` ??? quote "Stub code in `ideIntegration.sdsstub`" - ```sds linenums="71" + ```sds linenums="94" annotation Tags(tags: List) ``` { data-search-exclude } diff --git a/docs/api/safeds/ml/classical/classification/AdaBoostClassifier.md b/docs/api/safeds/ml/classical/classification/AdaBoostClassifier.md index 08e1c3f43..7f287108e 100644 --- a/docs/api/safeds/ml/classical/classification/AdaBoostClassifier.md +++ b/docs/api/safeds/ml/classical/classification/AdaBoostClassifier.md @@ -59,6 +59,7 @@ pipeline example { * @result fittedClassifier The fitted classifier. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: AdaBoostClassifier @@ -113,8 +114,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="56" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -145,9 +147,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="72" + ```sds linenums="75" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -177,6 +180,7 @@ This classifier is not modified. ```sds linenums="54" @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: AdaBoostClassifier @@ -291,8 +295,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="92" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -352,8 +357,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="111" + ```sds linenums="116" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -382,9 +388,10 @@ Summarize the classifier's metrics on the given data. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="35" + ```sds linenums="36" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any diff --git a/docs/api/safeds/ml/classical/classification/Classifier.md b/docs/api/safeds/ml/classical/classification/Classifier.md index de4cb97e3..ccb7b6a11 100644 --- a/docs/api/safeds/ml/classical/classification/Classifier.md +++ b/docs/api/safeds/ml/classical/classification/Classifier.md @@ -35,6 +35,7 @@ A model for classification tasks. * @result fittedModel The fitted model. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedModel: Classifier @@ -51,6 +52,7 @@ A model for classification tasks. */ @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -69,6 +71,7 @@ A model for classification tasks. * @result accuracy The classifier's accuracy. */ @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -88,6 +91,7 @@ A model for classification tasks. */ @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -107,6 +111,7 @@ A model for classification tasks. * @result precision The classifier's precision. */ @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -126,6 +131,7 @@ A model for classification tasks. * @result recall The classifier's recall. */ @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -163,8 +169,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="56" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -195,9 +202,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="72" + ```sds linenums="75" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -227,6 +235,7 @@ Create a copy of this model and fit it with the given training data. ```sds linenums="20" @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedModel: Classifier @@ -341,8 +350,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="92" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -402,8 +412,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="111" + ```sds linenums="116" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -432,9 +443,10 @@ Summarize the classifier's metrics on the given data. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="35" + ```sds linenums="36" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any diff --git a/docs/api/safeds/ml/classical/classification/DecisionTreeClassifier.md b/docs/api/safeds/ml/classical/classification/DecisionTreeClassifier.md index cdaf9d7b1..c46f89706 100644 --- a/docs/api/safeds/ml/classical/classification/DecisionTreeClassifier.md +++ b/docs/api/safeds/ml/classical/classification/DecisionTreeClassifier.md @@ -52,6 +52,7 @@ pipeline example { * @result fittedClassifier The fitted classifier. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: DecisionTreeClassifier @@ -108,8 +109,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="56" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -140,9 +142,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="72" + ```sds linenums="75" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -172,6 +175,7 @@ This classifier is not modified. ```sds linenums="44" @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: DecisionTreeClassifier @@ -274,7 +278,7 @@ Get the image of the decision tree. ??? quote "Stub code in `DecisionTreeClassifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="55" @Pure fun plot() -> plot: Image ``` @@ -304,8 +308,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="92" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -365,8 +370,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="111" + ```sds linenums="116" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -395,9 +401,10 @@ Summarize the classifier's metrics on the given data. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="35" + ```sds linenums="36" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any diff --git a/docs/api/safeds/ml/classical/classification/GradientBoostingClassifier.md b/docs/api/safeds/ml/classical/classification/GradientBoostingClassifier.md index 6d15ff071..48b67500a 100644 --- a/docs/api/safeds/ml/classical/classification/GradientBoostingClassifier.md +++ b/docs/api/safeds/ml/classical/classification/GradientBoostingClassifier.md @@ -53,6 +53,7 @@ pipeline example { * @result fittedClassifier The fitted classifier. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: GradientBoostingClassifier @@ -101,8 +102,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="56" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -133,9 +135,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="72" + ```sds linenums="75" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -165,6 +168,7 @@ This classifier is not modified. ```sds linenums="48" @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: GradientBoostingClassifier @@ -279,8 +283,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="92" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -340,8 +345,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="111" + ```sds linenums="116" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -370,9 +376,10 @@ Summarize the classifier's metrics on the given data. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="35" + ```sds linenums="36" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any diff --git a/docs/api/safeds/ml/classical/classification/KNearestNeighborsClassifier.md b/docs/api/safeds/ml/classical/classification/KNearestNeighborsClassifier.md index 7da5fa6d5..f89f2bbc6 100644 --- a/docs/api/safeds/ml/classical/classification/KNearestNeighborsClassifier.md +++ b/docs/api/safeds/ml/classical/classification/KNearestNeighborsClassifier.md @@ -46,6 +46,7 @@ pipeline example { * @result fittedClassifier The fitted classifier. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: KNearestNeighborsClassifier @@ -88,8 +89,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="56" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -120,9 +122,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="72" + ```sds linenums="75" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -152,6 +155,7 @@ This classifier is not modified. ```sds linenums="40" @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: KNearestNeighborsClassifier @@ -266,8 +270,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="92" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -327,8 +332,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="111" + ```sds linenums="116" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -357,9 +363,10 @@ Summarize the classifier's metrics on the given data. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="35" + ```sds linenums="36" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any diff --git a/docs/api/safeds/ml/classical/classification/LogisticClassifier.md b/docs/api/safeds/ml/classical/classification/LogisticClassifier.md index 88c0d8183..b6c7057f6 100644 --- a/docs/api/safeds/ml/classical/classification/LogisticClassifier.md +++ b/docs/api/safeds/ml/classical/classification/LogisticClassifier.md @@ -46,6 +46,7 @@ pipeline example { * @result fittedClassifier The fitted classifier. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: LogisticClassifier @@ -88,8 +89,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="56" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -120,9 +122,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="72" + ```sds linenums="75" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -152,6 +155,7 @@ This classifier is not modified. ```sds linenums="39" @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: LogisticClassifier @@ -266,8 +270,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="92" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -327,8 +332,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="111" + ```sds linenums="116" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -357,9 +363,10 @@ Summarize the classifier's metrics on the given data. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="35" + ```sds linenums="36" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any diff --git a/docs/api/safeds/ml/classical/classification/RandomForestClassifier.md b/docs/api/safeds/ml/classical/classification/RandomForestClassifier.md index 0ff4ea122..4e727e370 100644 --- a/docs/api/safeds/ml/classical/classification/RandomForestClassifier.md +++ b/docs/api/safeds/ml/classical/classification/RandomForestClassifier.md @@ -59,6 +59,7 @@ pipeline example { * @result fittedClassifier The fitted classifier. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: RandomForestClassifier @@ -113,8 +114,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="56" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -145,9 +147,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="72" + ```sds linenums="75" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -177,6 +180,7 @@ This classifier is not modified. ```sds linenums="52" @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: RandomForestClassifier @@ -291,8 +295,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="92" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -352,8 +357,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="111" + ```sds linenums="116" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -382,9 +388,10 @@ Summarize the classifier's metrics on the given data. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="35" + ```sds linenums="36" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any diff --git a/docs/api/safeds/ml/classical/classification/SupportVectorClassifier.md b/docs/api/safeds/ml/classical/classification/SupportVectorClassifier.md index 0a3ccb062..a7ec9de5b 100644 --- a/docs/api/safeds/ml/classical/classification/SupportVectorClassifier.md +++ b/docs/api/safeds/ml/classical/classification/SupportVectorClassifier.md @@ -87,6 +87,7 @@ pipeline example { * @result fittedClassifier The fitted classifier. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: SupportVectorClassifier @@ -135,8 +136,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="54" + ```sds linenums="56" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun accuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> accuracy: Float @@ -167,9 +169,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="72" + ```sds linenums="75" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun f1Score( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -199,6 +202,7 @@ This classifier is not modified. ```sds linenums="80" @Pure + @Category(DataScienceCategory.ModelingQClassicalClassification) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedClassifier: SupportVectorClassifier @@ -313,8 +317,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="92" + ```sds linenums="96" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun precision( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -374,8 +379,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="111" + ```sds linenums="116" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) fun recall( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any @@ -404,9 +410,10 @@ Summarize the classifier's metrics on the given data. ??? quote "Stub code in `Classifier.sdsstub`" - ```sds linenums="35" + ```sds linenums="36" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union, @PythonName("positive_class") positiveClass: Any diff --git a/docs/api/safeds/ml/classical/regression/AdaBoostRegressor.md b/docs/api/safeds/ml/classical/regression/AdaBoostRegressor.md index c50ca1022..a4c4a6e17 100644 --- a/docs/api/safeds/ml/classical/regression/AdaBoostRegressor.md +++ b/docs/api/safeds/ml/classical/regression/AdaBoostRegressor.md @@ -59,6 +59,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: AdaBoostRegressor @@ -126,9 +127,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -157,6 +159,7 @@ This regressor is not modified. ```sds linenums="54" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: AdaBoostRegressor @@ -272,9 +275,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -310,9 +314,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -346,9 +351,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -380,9 +386,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -437,9 +444,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/ArimaRegressor.md b/docs/api/safeds/ml/classical/regression/ArimaRegressor.md index bdebddf79..3b2a3f2da 100644 --- a/docs/api/safeds/ml/classical/regression/ArimaRegressor.md +++ b/docs/api/safeds/ml/classical/regression/ArimaRegressor.md @@ -31,6 +31,7 @@ pipeline example { * @result fittedArima The fitted ARIMA Model. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("time_series") timeSeries: TimeSeriesDataset ) -> fittedArima: ArimaRegressor @@ -43,6 +44,7 @@ pipeline example { * @result prediction A timeseries containing the predicted target vector and a time dummy as time column. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun predict( @PythonName("time_series") timeSeries: TimeSeriesDataset ) -> prediction: Table @@ -56,6 +58,7 @@ pipeline example { */ @Pure @PythonName("plot_predictions") + @Category(DataScienceCategory.ModelEvaluationQVisualization) fun plotPredictions( @PythonName("test_series") testSeries: TimeSeriesDataset ) -> image: Image @@ -91,6 +94,7 @@ This ARIMA Model is not modified. ```sds linenums="31" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("time_series") timeSeries: TimeSeriesDataset ) -> fittedArima: ArimaRegressor @@ -115,9 +119,10 @@ Plot the predictions of the trained model to the given target of the time series ??? quote "Stub code in `ArimaRegressor.sdsstub`" - ```sds linenums="55" + ```sds linenums="57" @Pure @PythonName("plot_predictions") + @Category(DataScienceCategory.ModelEvaluationQVisualization) fun plotPredictions( @PythonName("test_series") testSeries: TimeSeriesDataset ) -> image: Image @@ -142,8 +147,9 @@ Predict a target vector using a time series target column. The model has to be t ??? quote "Stub code in `ArimaRegressor.sdsstub`" - ```sds linenums="43" + ```sds linenums="44" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun predict( @PythonName("time_series") timeSeries: TimeSeriesDataset ) -> prediction: Table diff --git a/docs/api/safeds/ml/classical/regression/DecisionTreeRegressor.md b/docs/api/safeds/ml/classical/regression/DecisionTreeRegressor.md index 14ad37a7f..18d29b806 100644 --- a/docs/api/safeds/ml/classical/regression/DecisionTreeRegressor.md +++ b/docs/api/safeds/ml/classical/regression/DecisionTreeRegressor.md @@ -52,6 +52,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: DecisionTreeRegressor @@ -121,9 +122,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -152,6 +154,7 @@ This regressor is not modified. ```sds linenums="45" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: DecisionTreeRegressor @@ -267,9 +270,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -305,9 +309,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -341,9 +346,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -375,9 +381,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -396,7 +403,7 @@ Get the image of the decision tree. ??? quote "Stub code in `DecisionTreeRegressor.sdsstub`" - ```sds linenums="55" + ```sds linenums="56" @Pure fun plot() -> plot: Image ``` @@ -450,9 +457,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/ElasticNetRegressor.md b/docs/api/safeds/ml/classical/regression/ElasticNetRegressor.md index 35d83fb30..2847def95 100644 --- a/docs/api/safeds/ml/classical/regression/ElasticNetRegressor.md +++ b/docs/api/safeds/ml/classical/regression/ElasticNetRegressor.md @@ -61,6 +61,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: ElasticNetRegressor @@ -122,9 +123,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -153,6 +155,7 @@ This regressor is not modified. ```sds linenums="52" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: ElasticNetRegressor @@ -268,9 +271,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -306,9 +310,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -342,9 +347,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -376,9 +382,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -433,9 +440,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/GradientBoostingRegressor.md b/docs/api/safeds/ml/classical/regression/GradientBoostingRegressor.md index 3e410157b..633228689 100644 --- a/docs/api/safeds/ml/classical/regression/GradientBoostingRegressor.md +++ b/docs/api/safeds/ml/classical/regression/GradientBoostingRegressor.md @@ -53,6 +53,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: GradientBoostingRegressor @@ -114,9 +115,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -145,6 +147,7 @@ This regressor is not modified. ```sds linenums="48" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: GradientBoostingRegressor @@ -260,9 +263,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -298,9 +302,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -334,9 +339,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -368,9 +374,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -425,9 +432,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/KNearestNeighborsRegressor.md b/docs/api/safeds/ml/classical/regression/KNearestNeighborsRegressor.md index 12bf3563e..7e315f012 100644 --- a/docs/api/safeds/ml/classical/regression/KNearestNeighborsRegressor.md +++ b/docs/api/safeds/ml/classical/regression/KNearestNeighborsRegressor.md @@ -46,6 +46,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: KNearestNeighborsRegressor @@ -101,9 +102,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -132,6 +134,7 @@ This regressor is not modified. ```sds linenums="40" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: KNearestNeighborsRegressor @@ -247,9 +250,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -285,9 +289,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -321,9 +326,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -355,9 +361,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -412,9 +419,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/LassoRegressor.md b/docs/api/safeds/ml/classical/regression/LassoRegressor.md index 13d2d50dd..0a6c0666b 100644 --- a/docs/api/safeds/ml/classical/regression/LassoRegressor.md +++ b/docs/api/safeds/ml/classical/regression/LassoRegressor.md @@ -53,6 +53,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: LassoRegressor @@ -108,9 +109,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -139,6 +141,7 @@ This regressor is not modified. ```sds linenums="43" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: LassoRegressor @@ -254,9 +257,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -292,9 +296,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -328,9 +333,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -362,9 +368,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -419,9 +426,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/LinearRegressor.md b/docs/api/safeds/ml/classical/regression/LinearRegressor.md index 048d4bcba..6dd904835 100644 --- a/docs/api/safeds/ml/classical/regression/LinearRegressor.md +++ b/docs/api/safeds/ml/classical/regression/LinearRegressor.md @@ -96,6 +96,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: LinearRegressor @@ -151,9 +152,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -182,6 +184,7 @@ This regressor is not modified. ```sds linenums="89" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: LinearRegressor @@ -297,9 +300,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -335,9 +339,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -371,9 +376,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -405,9 +411,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -462,9 +469,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/RandomForestRegressor.md b/docs/api/safeds/ml/classical/regression/RandomForestRegressor.md index feff35ae3..9f2c16a72 100644 --- a/docs/api/safeds/ml/classical/regression/RandomForestRegressor.md +++ b/docs/api/safeds/ml/classical/regression/RandomForestRegressor.md @@ -59,6 +59,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: RandomForestRegressor @@ -126,9 +127,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -157,6 +159,7 @@ This regressor is not modified. ```sds linenums="52" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: RandomForestRegressor @@ -272,9 +275,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -310,9 +314,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -346,9 +351,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -380,9 +386,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -437,9 +444,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/Regressor.md b/docs/api/safeds/ml/classical/regression/Regressor.md index b57e92a67..070b9f0b4 100644 --- a/docs/api/safeds/ml/classical/regression/Regressor.md +++ b/docs/api/safeds/ml/classical/regression/Regressor.md @@ -38,6 +38,7 @@ A model for regression tasks. * @result fittedModel The fitted model. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedModel: Regressor @@ -53,6 +54,7 @@ A model for regression tasks. */ @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table @@ -84,6 +86,7 @@ A model for regression tasks. */ @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -104,6 +107,7 @@ A model for regression tasks. */ @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -128,6 +132,7 @@ A model for regression tasks. */ @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -150,6 +155,7 @@ A model for regression tasks. */ @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -170,6 +176,7 @@ A model for regression tasks. */ @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -219,9 +226,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -250,6 +258,7 @@ Create a copy of this model and fit it with the given training data. ```sds linenums="20" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedModel: Regressor @@ -365,9 +374,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -403,9 +413,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -439,9 +450,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -473,9 +485,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -530,9 +543,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/RidgeRegressor.md b/docs/api/safeds/ml/classical/regression/RidgeRegressor.md index c308871d3..686403059 100644 --- a/docs/api/safeds/ml/classical/regression/RidgeRegressor.md +++ b/docs/api/safeds/ml/classical/regression/RidgeRegressor.md @@ -53,6 +53,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: RidgeRegressor @@ -108,9 +109,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -139,6 +141,7 @@ This regressor is not modified. ```sds linenums="43" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: RidgeRegressor @@ -254,9 +257,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -292,9 +296,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -328,9 +333,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -362,9 +368,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -419,9 +426,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/classical/regression/SupportVectorRegressor.md b/docs/api/safeds/ml/classical/regression/SupportVectorRegressor.md index e38f36e74..823ecad85 100644 --- a/docs/api/safeds/ml/classical/regression/SupportVectorRegressor.md +++ b/docs/api/safeds/ml/classical/regression/SupportVectorRegressor.md @@ -87,6 +87,7 @@ pipeline example { * @result fittedRegressor The fitted regressor. */ @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: SupportVectorRegressor @@ -148,9 +149,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="65" + ```sds linenums="67" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun coefficientOfDetermination( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> coefficientOfDetermination: Float @@ -179,6 +181,7 @@ This regressor is not modified. ```sds linenums="80" @Pure + @Category(DataScienceCategory.ModelingQClassicalRegression) fun fit( @PythonName("training_set") trainingSet: TabularDataset ) -> fittedRegressor: SupportVectorRegressor @@ -294,9 +297,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="85" + ```sds linenums="88" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanAbsoluteError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanAbsoluteError: Float @@ -332,9 +336,10 @@ for other types of data. Because of this, it is not included in the `summarize_m ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="109" + ```sds linenums="113" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanDirectionalAccuracy( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanDirectionalAccuracy: Float @@ -368,9 +373,10 @@ infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="131" + ```sds linenums="136" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun meanSquaredError( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> meanSquaredError: Float @@ -402,9 +408,10 @@ positive infinity. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="151" + ```sds linenums="157" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun medianAbsoluteDeviation( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> medianAbsoluteDeviation: Float @@ -459,9 +466,10 @@ Summarize the regressor's metrics on the given data. ??? quote "Stub code in `Regressor.sdsstub`" - ```sds linenums="34" + ```sds linenums="35" @Pure @PythonName("summarize_metrics") + @Category(DataScienceCategory.ModelEvaluationQMetric) fun summarizeMetrics( @PythonName("validation_or_test_set") validationOrTestSet: union ) -> metrics: Table diff --git a/docs/api/safeds/ml/metrics/ClassificationMetrics.md b/docs/api/safeds/ml/metrics/ClassificationMetrics.md index 0de85e404..9e63bda85 100644 --- a/docs/api/safeds/ml/metrics/ClassificationMetrics.md +++ b/docs/api/safeds/ml/metrics/ClassificationMetrics.md @@ -18,6 +18,7 @@ A collection of classification metrics. * @result metrics A table containing the classification metrics. */ @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun summarize( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset>, @@ -36,6 +37,7 @@ A collection of classification metrics. * @result accuracy The calculated accuracy. */ @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun accuracy( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -55,6 +57,7 @@ A collection of classification metrics. */ @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun f1Score( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset>, @@ -74,6 +77,7 @@ A collection of classification metrics. * @result precision The calculated precision. */ @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun precision( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset>, @@ -93,6 +97,7 @@ A collection of classification metrics. * @result recall The calculated recall. */ @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun recall( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset>, @@ -124,8 +129,9 @@ better. Results range from 0.0 to 1.0. ??? quote "Stub code in `ClassificationMetrics.sdsstub`" - ```sds linenums="37" + ```sds linenums="38" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun accuracy( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -156,9 +162,10 @@ classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `ClassificationMetrics.sdsstub`" - ```sds linenums="55" + ```sds linenums="57" @Pure @PythonName("f1_score") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun f1Score( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset>, @@ -190,8 +197,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `ClassificationMetrics.sdsstub`" - ```sds linenums="75" + ```sds linenums="78" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun precision( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset>, @@ -223,8 +231,9 @@ better the classifier. Results range from 0.0 to 1.0. ??? quote "Stub code in `ClassificationMetrics.sdsstub`" - ```sds linenums="94" + ```sds linenums="98" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun recall( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset>, @@ -255,6 +264,7 @@ Summarize classification metrics on the given data. ```sds linenums="19" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun summarize( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset>, diff --git a/docs/api/safeds/ml/metrics/RegressionMetrics.md b/docs/api/safeds/ml/metrics/RegressionMetrics.md index 9ec2f7134..9856e4f90 100644 --- a/docs/api/safeds/ml/metrics/RegressionMetrics.md +++ b/docs/api/safeds/ml/metrics/RegressionMetrics.md @@ -17,6 +17,7 @@ A collection of regression metrics. * @result metrics A table containing the regression metrics. */ @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun summarize( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -47,6 +48,7 @@ A collection of regression metrics. */ @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun coefficientOfDetermination( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -66,6 +68,7 @@ A collection of regression metrics. */ @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun meanAbsoluteError( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -89,6 +92,7 @@ A collection of regression metrics. */ @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun meanDirectionalAccuracy( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -110,6 +114,7 @@ A collection of regression metrics. */ @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun meanSquaredError( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -129,6 +134,7 @@ A collection of regression metrics. */ @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun medianAbsoluteDeviation( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -171,9 +177,10 @@ to 1.0. You can interpret the coefficient of determination as follows: ??? quote "Stub code in `RegressionMetrics.sdsstub`" - ```sds linenums="47" + ```sds linenums="48" @Pure @PythonName("coefficient_of_determination") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun coefficientOfDetermination( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -204,9 +211,10 @@ infinity. ??? quote "Stub code in `RegressionMetrics.sdsstub`" - ```sds linenums="66" + ```sds linenums="68" @Pure @PythonName("mean_absolute_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun meanAbsoluteError( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -241,9 +249,10 @@ for other types of data. Because of this, it is not included in the `summarize` ??? quote "Stub code in `RegressionMetrics.sdsstub`" - ```sds linenums="89" + ```sds linenums="92" @Pure @PythonName("mean_directional_accuracy") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun meanDirectionalAccuracy( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -276,9 +285,10 @@ infinity. ??? quote "Stub code in `RegressionMetrics.sdsstub`" - ```sds linenums="110" + ```sds linenums="114" @Pure @PythonName("mean_squared_error") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun meanSquaredError( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -309,9 +319,10 @@ positive infinity. ??? quote "Stub code in `RegressionMetrics.sdsstub`" - ```sds linenums="129" + ```sds linenums="134" @Pure @PythonName("median_absolute_deviation") + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun medianAbsoluteDeviation( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> @@ -340,6 +351,7 @@ Summarize regression metrics on the given data. ```sds linenums="18" @Pure + @Category(DataScienceCategory.ModelEvaluationQMetric) static fun summarize( predicted: union, TabularDataset, TimeSeriesDataset>, expected: union, TabularDataset, TimeSeriesDataset> diff --git a/docs/api/safeds/ml/nn/layers/AveragePooling2DLayer.md b/docs/api/safeds/ml/nn/layers/AveragePooling2DLayer.md index 6e8fc255b..29765246f 100644 --- a/docs/api/safeds/ml/nn/layers/AveragePooling2DLayer.md +++ b/docs/api/safeds/ml/nn/layers/AveragePooling2DLayer.md @@ -16,7 +16,7 @@ An average pooling 2D Layer. ??? quote "Stub code in `AveragePooling2DLayer.sdsstub`" - ```sds linenums="14" + ```sds linenums="15" class AveragePooling2DLayer( @PythonName("kernel_size") kernelSize: Int, stride: Int = -1, diff --git a/docs/api/safeds/ml/nn/layers/Convolutional2DLayer.md b/docs/api/safeds/ml/nn/layers/Convolutional2DLayer.md index 63670b289..a4b950dae 100644 --- a/docs/api/safeds/ml/nn/layers/Convolutional2DLayer.md +++ b/docs/api/safeds/ml/nn/layers/Convolutional2DLayer.md @@ -21,7 +21,7 @@ A convolutional 2D Layer. ??? quote "Stub code in `Convolutional2DLayer.sdsstub`" - ```sds linenums="15" + ```sds linenums="16" class Convolutional2DLayer( @PythonName("output_channel") outputChannel: Int, @PythonName("kernel_size") kernelSize: Int, diff --git a/docs/api/safeds/ml/nn/layers/ConvolutionalTranspose2DLayer.md b/docs/api/safeds/ml/nn/layers/ConvolutionalTranspose2DLayer.md index 9d3da8d8f..3aa51dd63 100644 --- a/docs/api/safeds/ml/nn/layers/ConvolutionalTranspose2DLayer.md +++ b/docs/api/safeds/ml/nn/layers/ConvolutionalTranspose2DLayer.md @@ -18,7 +18,7 @@ A convolutional transpose 2D Layer. ??? quote "Stub code in `ConvolutionalTranspose2DLayer.sdsstub`" - ```sds linenums="16" + ```sds linenums="17" class ConvolutionalTranspose2DLayer( @PythonName("output_channel") outputChannel: Int, @PythonName("kernel_size") kernelSize: Int, diff --git a/docs/api/safeds/ml/nn/layers/DropoutLayer.md b/docs/api/safeds/ml/nn/layers/DropoutLayer.md index 5d8e8275f..9931af73b 100644 --- a/docs/api/safeds/ml/nn/layers/DropoutLayer.md +++ b/docs/api/safeds/ml/nn/layers/DropoutLayer.md @@ -14,7 +14,7 @@ A dropout layer. ??? quote "Stub code in `DropoutLayer.sdsstub`" - ```sds linenums="11" + ```sds linenums="12" class DropoutLayer( probability: Float ) sub Layer { diff --git a/docs/api/safeds/ml/nn/layers/FlattenLayer.md b/docs/api/safeds/ml/nn/layers/FlattenLayer.md index 96d468ac0..9c7ba558a 100644 --- a/docs/api/safeds/ml/nn/layers/FlattenLayer.md +++ b/docs/api/safeds/ml/nn/layers/FlattenLayer.md @@ -8,7 +8,7 @@ A flatten layer. ??? quote "Stub code in `FlattenLayer.sdsstub`" - ```sds linenums="10" + ```sds linenums="11" class FlattenLayer() sub Layer { /** * Get the input_size of this layer. diff --git a/docs/api/safeds/ml/nn/layers/ForwardLayer.md b/docs/api/safeds/ml/nn/layers/ForwardLayer.md index 3b6525fd5..36242217c 100644 --- a/docs/api/safeds/ml/nn/layers/ForwardLayer.md +++ b/docs/api/safeds/ml/nn/layers/ForwardLayer.md @@ -15,7 +15,7 @@ A fully connected forward layer. ??? quote "Stub code in `ForwardLayer.sdsstub`" - ```sds linenums="12" + ```sds linenums="13" class ForwardLayer( @PythonName("neuron_count") neuronCount: Int, @PythonName("overwrite_activation_function") activationFunction: literal<"sigmoid", "relu", "softmax", "none", "notset"> = "notset" diff --git a/docs/api/safeds/ml/nn/layers/GRULayer.md b/docs/api/safeds/ml/nn/layers/GRULayer.md index 00bd90467..130d23cc5 100644 --- a/docs/api/safeds/ml/nn/layers/GRULayer.md +++ b/docs/api/safeds/ml/nn/layers/GRULayer.md @@ -14,7 +14,7 @@ A gated recurrent unit (GRU) layer. ??? quote "Stub code in `GRULayer.sdsstub`" - ```sds linenums="10" + ```sds linenums="11" class GRULayer( @PythonName("neuron_count") neuronCount: Int ) sub Layer { diff --git a/docs/src/lexer/safe_ds_lexer/_safe_ds_lexer.py b/docs/src/lexer/safe_ds_lexer/_safe_ds_lexer.py index 5be9a27b3..93233b1ac 100644 --- a/docs/src/lexer/safe_ds_lexer/_safe_ds_lexer.py +++ b/docs/src/lexer/safe_ds_lexer/_safe_ds_lexer.py @@ -40,7 +40,6 @@ "literal", "out", "private", - "schema", "static", "this", "union", diff --git a/packages/safe-ds-lang/src/language/generation/safe-ds-markdown-generator.ts b/packages/safe-ds-lang/src/language/generation/safe-ds-markdown-generator.ts index b860ef504..194cc93dc 100644 --- a/packages/safe-ds-lang/src/language/generation/safe-ds-markdown-generator.ts +++ b/packages/safe-ds-lang/src/language/generation/safe-ds-markdown-generator.ts @@ -9,7 +9,6 @@ import { isSdsFunction, isSdsModule, isSdsPipeline, - isSdsSchema, isSdsSegment, SdsAnnotation, SdsAttribute, @@ -22,14 +21,12 @@ import { SdsModuleMember, SdsParameter, SdsResult, - SdsSchema, SdsSegment, SdsTypeParameter, } from '../generated/ast.js'; import { Class, getClassMembers, - getColumns, getEnumVariants, getModuleMembers, getPackageName, @@ -138,8 +135,6 @@ export class SafeDsMarkdownGenerator { } else if (isSdsPipeline(node)) { // Pipelines cannot be called, so they are not documented return undefined; - } else if (isSdsSchema(node)) { - return this.describeSchema(node, state); } else if (isSdsSegment(node)) { return this.describeSegment(node, state); } else { @@ -429,39 +424,6 @@ export class SafeDsMarkdownGenerator { return result; } - private describeSchema(node: SdsSchema, state: DetailsState): string { - let result = this.renderPreamble(node, state, 'schema'); - - // Columns - const columns = getColumns(node); - if (!isEmpty(columns)) { - result += '\n**Columns:**\n\n'; - result += '| Name | Type |\n'; - result += '|------|------|\n'; - - for (const column of columns) { - const name = column.columnName.value; - const type = this.typeComputer.computeType(column.columnType); - - result += `| \`${name}\` | ${this.renderType(type, state.knownPaths)} |\n`; - } - } - - // Examples - const examples = this.renderExamples(node); - if (examples) { - result += `\n**Examples:**\n\n${examples}`; - } - - // Source code - const sourceCode = this.renderSourceCode(node); - if (sourceCode) { - result += `\n${sourceCode}`; - } - - return result; - } - private describeSegment(node: SdsSegment, state: DetailsState): string { let result = this.renderPreamble(node, state, 'segment'); diff --git a/packages/safe-ds-lang/src/language/grammar/safe-ds.langium b/packages/safe-ds-lang/src/language/grammar/safe-ds.langium index a38a1b076..73ebf3849 100644 --- a/packages/safe-ds-lang/src/language/grammar/safe-ds.langium +++ b/packages/safe-ds-lang/src/language/grammar/safe-ds.langium @@ -138,9 +138,6 @@ SdsAnnotatedModuleMember returns SdsModuleMember: visibility=SdsVisibility? SdsFunctionFragment - | {SdsSchema.annotationCallList=current} - SdsSchemaFragment - | {SdsPipeline.annotationCallList=current} SdsPipelineFragment @@ -165,9 +162,6 @@ SdsUnannotatedModuleMember returns SdsModuleMember: visibility=SdsVisibility? SdsFunctionFragment - | {SdsSchema} - SdsSchemaFragment - | {SdsPipeline} SdsPipelineFragment @@ -1071,39 +1065,6 @@ SdsTypeArgument returns SdsTypeArgument: ; -// ----------------------------------------------------------------------------- -// Schemas -// ----------------------------------------------------------------------------- - -interface SdsSchema extends SdsModuleMember { - columnList: SdsColumnList -} - -fragment SdsSchemaFragment: - visibility=SdsVisibility? - 'schema' - name=ID - columnList=SdsColumnList -; - -interface SdsColumnList extends SdsObject { - columns: SdsColumn[] -} - -SdsColumnList returns SdsColumnList: - {SdsColumnList} '{' (columns+=SdsColumn (',' columns+=SdsColumn)* ','? )? '}' -; - -interface SdsColumn extends SdsObject { - columnName: SdsString - columnType: SdsType -} - -SdsColumn returns SdsColumn: - columnName=SdsString ":" columnType=SdsType -; - - // ----------------------------------------------------------------------------- // Terminals // ----------------------------------------------------------------------------- diff --git a/packages/safe-ds-lang/src/language/helpers/nodeProperties.ts b/packages/safe-ds-lang/src/language/helpers/nodeProperties.ts index ce157692d..cddb03906 100644 --- a/packages/safe-ds-lang/src/language/helpers/nodeProperties.ts +++ b/packages/safe-ds-lang/src/language/helpers/nodeProperties.ts @@ -23,7 +23,6 @@ import { isSdsPipeline, isSdsPlaceholder, isSdsQualifiedImport, - isSdsSchema, isSdsSegment, isSdsTypeArgumentList, isSdsTypeParameter, @@ -43,7 +42,6 @@ import { SdsCallable, SdsClass, SdsClassMember, - SdsColumn, SdsConstraint, SdsDeclaration, SdsEnum, @@ -62,7 +60,6 @@ import { SdsQualifiedImport, SdsResult, SdsResultList, - SdsSchema, SdsStatement, SdsType, SdsTypeArgument, @@ -200,14 +197,14 @@ export namespace TypeParameter { * Checks whether the declaration is valid in a pipeline file. */ export const isValidPipelineDeclaration = (node: SdsDeclaration): boolean => { - return isSdsPipeline(node) || isSdsSchema(node) || isSdsSegment(node); + return isSdsPipeline(node) || isSdsSegment(node); }; /** * Checks whether the declaration is valid in a stub file. */ export const isValidStubDeclaration = (node: SdsDeclaration): boolean => { - return isSdsAnnotation(node) || isSdsClass(node) || isSdsEnum(node) || isSdsFunction(node) || isSdsSchema(node); + return isSdsAnnotation(node) || isSdsClass(node) || isSdsEnum(node) || isSdsFunction(node); }; // ------------------------------------------------------------------------------------------------- @@ -303,10 +300,6 @@ export const getConstraints = (node: SdsCallable | undefined): SdsConstraint[] = } }; -export const getColumns = (node: SdsSchema | undefined): SdsColumn[] => { - return node?.columnList?.columns ?? []; -}; - export const getEnumVariants = (node: SdsEnum | undefined): SdsEnumVariant[] => { return node?.body?.variants ?? []; }; diff --git a/packages/safe-ds-lang/src/language/lsp/safe-ds-completion-provider.ts b/packages/safe-ds-lang/src/language/lsp/safe-ds-completion-provider.ts index 0810c2af3..2172f07aa 100644 --- a/packages/safe-ds-lang/src/language/lsp/safe-ds-completion-provider.ts +++ b/packages/safe-ds-lang/src/language/lsp/safe-ds-completion-provider.ts @@ -16,7 +16,6 @@ import { isSdsTypeParameter, SdsAnnotation, SdsPipeline, - SdsSchema, } from '../generated/ast.js'; import { Class, getPackageName } from '../helpers/nodeProperties.js'; import { isInPipelineFile, isInStubFile } from '../helpers/fileExtensions.js'; @@ -47,7 +46,7 @@ export class SafeDsCompletionProvider extends DefaultCompletionProvider { .filter((description) => this.filterReferenceCandidate(refInfo, description)); } - private illegalNodeTypesForReferences = new Set([SdsAnnotation, SdsPipeline, SdsSchema]); + private illegalNodeTypesForReferences = new Set([SdsAnnotation, SdsPipeline]); private filterReferenceCandidate(refInfo: ReferenceInfo, description: AstNodeDescription): boolean { if (isSdsNamedType(refInfo.container)) { diff --git a/packages/safe-ds-lang/src/language/lsp/safe-ds-formatter.ts b/packages/safe-ds-lang/src/language/lsp/safe-ds-formatter.ts index ce145db90..88c0e2559 100644 --- a/packages/safe-ds-lang/src/language/lsp/safe-ds-formatter.ts +++ b/packages/safe-ds-lang/src/language/lsp/safe-ds-formatter.ts @@ -180,17 +180,6 @@ export class SafeDsFormatter extends AbstractFormatter { } else if (ast.isSdsTypeArgument(node)) { this.formatSdsTypeArgument(node); } - - // ----------------------------------------------------------------------------- - // Schemas - // ----------------------------------------------------------------------------- - else if (ast.isSdsSchema(node)) { - this.formatSdsSchema(node); - } else if (ast.isSdsColumnList(node)) { - this.formatSdsColumnList(node); - } else if (ast.isSdsColumn(node)) { - this.formatSdsColumn(node); - } } // ----------------------------------------------------------------------------- @@ -960,38 +949,6 @@ export class SafeDsFormatter extends AbstractFormatter { } } - // ----------------------------------------------------------------------------- - // Schemas - // ----------------------------------------------------------------------------- - - private formatSdsSchema(node: ast.SdsSchema) { - const formatter = this.getNodeFormatter(node); - - this.formatVisibilityAndKeyword(formatter, node, 'schema'); - formatter.property('name').prepend(oneSpace()); - formatter.property('columnList').prepend(oneSpace()); - } - - private formatSdsColumnList(node: ast.SdsColumnList) { - const formatter = this.getNodeFormatter(node); - const columns = node.columns ?? []; - - if (columns.length === 0) { - formatter.keyword('{').append(noSpace()); - formatter.keyword('}').prepend(noSpace()); - } else { - formatter.nodes(...columns).prepend(indent()); - formatter.keywords(',').prepend(noSpace()); - formatter.keyword('}').prepend(newLine()); - } - } - - private formatSdsColumn(node: ast.SdsColumn) { - const formatter = this.getNodeFormatter(node); - - formatter.keyword(':').prepend(noSpace()).append(oneSpace()); - } - // ----------------------------------------------------------------------------- // Helpers // ----------------------------------------------------------------------------- diff --git a/packages/safe-ds-lang/src/language/lsp/safe-ds-node-kind-provider.ts b/packages/safe-ds-lang/src/language/lsp/safe-ds-node-kind-provider.ts index 05ef99b55..b27cfafac 100644 --- a/packages/safe-ds-lang/src/language/lsp/safe-ds-node-kind-provider.ts +++ b/packages/safe-ds-lang/src/language/lsp/safe-ds-node-kind-provider.ts @@ -15,7 +15,6 @@ import { SdsPipeline, SdsPlaceholder, SdsResult, - SdsSchema, SdsSegment, SdsTypeParameter, } from '../generated/ast.js'; @@ -56,8 +55,6 @@ export class SafeDsNodeKindProvider implements NodeKindProvider { return SymbolKind.Variable; case SdsResult: return SymbolKind.Variable; - case SdsSchema: - return SymbolKind.Struct; case SdsSegment: return SymbolKind.Function; case SdsTypeParameter: @@ -102,8 +99,6 @@ export class SafeDsNodeKindProvider implements NodeKindProvider { return CompletionItemKind.Variable; case SdsResult: return CompletionItemKind.Variable; - case SdsSchema: - return CompletionItemKind.Struct; case SdsSegment: return CompletionItemKind.Function; case SdsTypeParameter: diff --git a/packages/safe-ds-lang/src/language/lsp/safe-ds-semantic-token-provider.ts b/packages/safe-ds-lang/src/language/lsp/safe-ds-semantic-token-provider.ts index 19f0a0f99..1aa1a93a5 100644 --- a/packages/safe-ds-lang/src/language/lsp/safe-ds-semantic-token-provider.ts +++ b/packages/safe-ds-lang/src/language/lsp/safe-ds-semantic-token-provider.ts @@ -23,7 +23,6 @@ import { isSdsPlaceholder, isSdsReference, isSdsResult, - isSdsSchema, isSdsSegment, isSdsTypeArgument, isSdsTypeParameter, @@ -215,11 +214,6 @@ export class SafeDsSemanticTokenProvider extends AbstractSemanticTokenProvider { type: SemanticTokenTypes.parameter, modifier: additionalModifiers, }; - } else if (isSdsSchema(node)) { - return { - type: SemanticTokenTypes.type, - modifier: additionalModifiers, - }; } else if (isSdsSegment(node)) { return { type: SemanticTokenTypes.function, diff --git a/packages/safe-ds-lang/src/language/typing/safe-ds-type-computer.ts b/packages/safe-ds-lang/src/language/typing/safe-ds-type-computer.ts index 2dddb674d..03d4bb312 100644 --- a/packages/safe-ds-lang/src/language/typing/safe-ds-type-computer.ts +++ b/packages/safe-ds-lang/src/language/typing/safe-ds-type-computer.ts @@ -34,7 +34,6 @@ import { isSdsPrefixOperation, isSdsReference, isSdsResult, - isSdsSchema, isSdsSegment, isSdsTemplateString, isSdsThis, @@ -249,8 +248,6 @@ export class SafeDsTypeComputer { return UnknownType; } else if (isSdsResult(node)) { return this.computeType(node.type); - } else if (isSdsSchema(node)) { - return UnknownType; } else if (isSdsSegment(node)) { return this.computeTypeOfCallableWithManifestTypes(node); } else if (isSdsTypeParameter(node)) { diff --git a/packages/safe-ds-lang/src/language/validation/builtins/targets.ts b/packages/safe-ds-lang/src/language/validation/builtins/targets.ts index 7446738c9..768096e74 100644 --- a/packages/safe-ds-lang/src/language/validation/builtins/targets.ts +++ b/packages/safe-ds-lang/src/language/validation/builtins/targets.ts @@ -11,7 +11,6 @@ import { isSdsParameter, isSdsPipeline, isSdsResult, - isSdsSchema, isSdsSegment, isSdsTypeParameter, SdsAnnotation, @@ -144,11 +143,6 @@ const getActualTarget = (node: SdsAnnotationCall): GetActualTargetResult | void enumVariantName: 'Result', prettyName: 'a result', }; - } else if (isSdsSchema(annotatedObject)) { - return { - enumVariantName: 'Schema', - prettyName: 'a schema', - }; } else if (isSdsSegment(annotatedObject)) { return { enumVariantName: 'Segment', diff --git a/packages/safe-ds-lang/src/language/validation/experimentalLanguageFeatures.ts b/packages/safe-ds-lang/src/language/validation/experimentalLanguageFeatures.ts index b2eafa304..8e056bde9 100644 --- a/packages/safe-ds-lang/src/language/validation/experimentalLanguageFeatures.ts +++ b/packages/safe-ds-lang/src/language/validation/experimentalLanguageFeatures.ts @@ -1,11 +1,5 @@ import { AstUtils, ValidationAcceptor } from 'langium'; -import { - isSdsUnionType, - type SdsConstraintList, - type SdsLiteralType, - SdsSchema, - type SdsUnionType, -} from '../generated/ast.js'; +import { isSdsUnionType, type SdsConstraintList, type SdsLiteralType, type SdsUnionType } from '../generated/ast.js'; import { SafeDsServices } from '../safe-ds-module.js'; export const CODE_EXPERIMENTAL_LANGUAGE_FEATURE = 'experimental/language-feature'; @@ -44,23 +38,6 @@ export const literalTypesShouldBeUsedWithCaution = (services: SafeDsServices) => }; }; -export const schemasShouldBeUsedWithCaution = (services: SafeDsServices) => { - const settingsProvider = services.workspace.SettingsProvider; - - return (node: SdsSchema, accept: ValidationAcceptor) => { - if (!settingsProvider.shouldValidateExperimentalLanguageFeatures()) { - /* c8 ignore next 2 */ - return; - } - - accept('warning', 'Schemas are experimental and may change without prior notice.', { - node, - property: 'name', - code: CODE_EXPERIMENTAL_LANGUAGE_FEATURE, - }); - }; -}; - export const unionTypesShouldBeUsedWithCaution = (services: SafeDsServices) => { const settingsProvider = services.workspace.SettingsProvider; diff --git a/packages/safe-ds-lang/src/language/validation/names.ts b/packages/safe-ds-lang/src/language/validation/names.ts index d0ed8d55d..916de66eb 100644 --- a/packages/safe-ds-lang/src/language/validation/names.ts +++ b/packages/safe-ds-lang/src/language/validation/names.ts @@ -21,7 +21,6 @@ import { SdsPipeline, SdsPlaceholder, SdsResult, - SdsSchema, SdsSegment, SdsTypeParameter, } from '../generated/ast.js'; @@ -29,7 +28,6 @@ import { CODEGEN_PREFIX } from '../generation/python/constants.js'; import { isInDevFile, isInPipelineFile, isInStubFile } from '../helpers/fileExtensions.js'; import { getClassMembers, - getColumns, getEnumVariants, getImportedDeclarations, getImports, @@ -152,8 +150,6 @@ export const nameShouldHaveCorrectCasing = (services: SafeDsServices) => { } case SdsResult: return nameShouldBeLowerCamelCase(node, 'results', accept); - case SdsSchema: - return nameShouldBeUpperCamelCase(node, 'schemas', accept); case SdsSegment: return nameShouldBeLowerCamelCase(node, 'segments', accept); case SdsTypeParameter: @@ -391,17 +387,6 @@ export const pipelineMustContainUniqueNames = (node: SdsPipeline, accept: Valida ); }; -export const schemaMustContainUniqueNames = (node: SdsSchema, accept: ValidationAcceptor): void => { - const duplicates = duplicatesBy(getColumns(node), (it) => it.columnName.value); - for (const duplicate of duplicates) { - accept('error', `A column with name '${duplicate.columnName.value}' exists already.`, { - node: duplicate, - property: 'columnName', - code: CODE_NAME_DUPLICATE, - }); - } -}; - export const segmentMustContainUniqueNames = (node: SdsSegment, accept: ValidationAcceptor): void => { const parametersAndPlaceholder = [...getParameters(node), ...streamPlaceholders(node.body)]; namesMustBeUnique( diff --git a/packages/safe-ds-lang/src/language/validation/other/expressions/references.ts b/packages/safe-ds-lang/src/language/validation/other/expressions/references.ts index 767a59151..06299384f 100644 --- a/packages/safe-ds-lang/src/language/validation/other/expressions/references.ts +++ b/packages/safe-ds-lang/src/language/validation/other/expressions/references.ts @@ -6,7 +6,6 @@ import { isSdsFunction, isSdsMemberAccess, isSdsPipeline, - isSdsSchema, isSdsSegment, SdsReference, } from '../../../generated/ast.js'; @@ -77,10 +76,7 @@ export const referenceMustNotBeStaticClassOrEnumReference = (node: SdsReference, } }; -export const referenceTargetMustNotBeAnnotationPipelineOrSchema = ( - node: SdsReference, - accept: ValidationAcceptor, -): void => { +export const referenceTargetMustNotBeAnnotationOrPipeline = (node: SdsReference, accept: ValidationAcceptor): void => { const target = node.target.ref; if (isSdsAnnotation(target)) { @@ -93,10 +89,5 @@ export const referenceTargetMustNotBeAnnotationPipelineOrSchema = ( node, code: CODE_REFERENCE_TARGET, }); - } else if (isSdsSchema(target)) { - accept('error', 'A schema must not be the target of a reference.', { - node, - code: CODE_REFERENCE_TARGET, - }); } }; diff --git a/packages/safe-ds-lang/src/language/validation/safe-ds-validator.ts b/packages/safe-ds-lang/src/language/validation/safe-ds-validator.ts index d6879e720..88d956482 100644 --- a/packages/safe-ds-lang/src/language/validation/safe-ds-validator.ts +++ b/packages/safe-ds-lang/src/language/validation/safe-ds-validator.ts @@ -28,7 +28,6 @@ import { annotationCallMustHaveCorrectTarget, targetsShouldNotHaveDuplicateEntri import { constraintListsShouldBeUsedWithCaution, literalTypesShouldBeUsedWithCaution, - schemasShouldBeUsedWithCaution, unionTypesShouldBeUsedWithCaution, } from './experimentalLanguageFeatures.js'; import { @@ -53,7 +52,6 @@ import { nameMustNotStartWithCodegenPrefix, nameShouldHaveCorrectCasing, pipelineMustContainUniqueNames, - schemaMustContainUniqueNames, segmentMustContainUniqueNames, staticClassMemberNamesMustNotCollideWithInheritedMembers, } from './names.js'; @@ -93,7 +91,7 @@ import { memberAccessOfEnumVariantMustNotLackInstantiation } from './other/expre import { referenceMustNotBeFunctionPointer, referenceMustNotBeStaticClassOrEnumReference, - referenceTargetMustNotBeAnnotationPipelineOrSchema, + referenceTargetMustNotBeAnnotationOrPipeline, } from './other/expressions/references.js'; import { templateStringMustHaveExpressionBetweenTwoStringParts } from './other/expressions/templateStrings.js'; import { importPackageMustNotBeEmpty } from './other/imports.js'; @@ -361,12 +359,11 @@ export const registerValidationChecks = function (services: SafeDsServices) { SdsReference: [ referenceMustNotBeFunctionPointer, referenceMustNotBeStaticClassOrEnumReference, - referenceTargetMustNotBeAnnotationPipelineOrSchema, + referenceTargetMustNotBeAnnotationOrPipeline, referenceTargetShouldNotBeDeprecated(services), referenceTargetShouldNotExperimental(services), ], SdsResult: [resultMustHaveTypeHint], - SdsSchema: [schemaMustContainUniqueNames, schemasShouldBeUsedWithCaution(services)], SdsSegment: [ segmentMustContainUniqueNames, segmentParameterShouldBeUsed(services), diff --git a/packages/safe-ds-lang/src/language/validation/types.ts b/packages/safe-ds-lang/src/language/validation/types.ts index df0b8aef1..caf9ee2a0 100644 --- a/packages/safe-ds-lang/src/language/validation/types.ts +++ b/packages/safe-ds-lang/src/language/validation/types.ts @@ -9,7 +9,6 @@ import { isSdsMemberAccess, isSdsPipeline, isSdsReference, - isSdsSchema, SdsAbstractCall, SdsAttribute, SdsCall, @@ -79,7 +78,7 @@ export const callReceiverMustBeCallable = (services: SafeDsServices) => { const target = receiver.target.ref; // We already report other errors at this position in those cases - if (!target || isSdsAnnotation(target) || isSdsPipeline(target) || isSdsSchema(target)) { + if (!target || isSdsAnnotation(target) || isSdsPipeline(target)) { return; } } diff --git a/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/containers/Row.sdsstub b/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/containers/Row.sdsstub index f11b3e0e6..63d5d40db 100644 --- a/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/containers/Row.sdsstub +++ b/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/containers/Row.sdsstub @@ -20,7 +20,7 @@ class Row { /** * The schema of the row. */ - attr ^schema: Schema + attr schema: Schema /** * Get the value of the specified column. This is equivalent to the `[]` operator (indexed access). diff --git a/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/containers/Table.sdsstub b/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/containers/Table.sdsstub index 6764389dc..8666532ba 100644 --- a/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/containers/Table.sdsstub +++ b/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/containers/Table.sdsstub @@ -54,7 +54,7 @@ class Table( /** * The schema of the table. */ - attr ^schema: Schema + attr schema: Schema /** * Create a table from a list of columns. diff --git a/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/typing/Schema.sdsstub b/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/typing/Schema.sdsstub index 31fc388fd..227ffed51 100644 --- a/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/typing/Schema.sdsstub +++ b/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/typing/Schema.sdsstub @@ -21,7 +21,7 @@ class Schema { * @example * pipeline example { * val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - * val type = table.^schema.getColumnType("A"); + * val type = table.schema.getColumnType("A"); * } */ @Pure @@ -40,13 +40,13 @@ class Schema { * @example * pipeline example { * val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - * val contains = table.^schema.hasColumn("A"); // true + * val contains = table.schema.hasColumn("A"); // true * } * * @example * pipeline example { * val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - * val contains = table.^schema.hasColumn("C"); // false + * val contains = table.schema.hasColumn("C"); // false * } */ @Pure @@ -63,7 +63,7 @@ class Schema { * @example * pipeline example { * val table = Table({"A": [1, 2, 3], "B": ["a", "b", "c"]}); - * val map = table.^schema.toMap(); + * val map = table.schema.toMap(); * } */ @Pure diff --git a/packages/safe-ds-lang/src/resources/builtins/safeds/lang/annotationUsage.sdsstub b/packages/safe-ds-lang/src/resources/builtins/safeds/lang/annotationUsage.sdsstub index 91272a3f3..377acbc59 100644 --- a/packages/safe-ds-lang/src/resources/builtins/safeds/lang/annotationUsage.sdsstub +++ b/packages/safe-ds-lang/src/resources/builtins/safeds/lang/annotationUsage.sdsstub @@ -65,11 +65,6 @@ enum AnnotationTarget { */ Result - /** - * The annotation can be called on schemas. - */ - Schema - /** * The annotation can be called on segments. */ diff --git a/packages/safe-ds-lang/src/resources/builtins/safeds/lang/ideIntegration.sdsstub b/packages/safe-ds-lang/src/resources/builtins/safeds/lang/ideIntegration.sdsstub index 814d14517..b01b6054e 100644 --- a/packages/safe-ds-lang/src/resources/builtins/safeds/lang/ideIntegration.sdsstub +++ b/packages/safe-ds-lang/src/resources/builtins/safeds/lang/ideIntegration.sdsstub @@ -71,7 +71,7 @@ enum DataScienceCategory { ModelEvaluationQVisualization /** - * Utility iterms for general use and lambda functions + * Utility terms for general use and lambda functions. */ UtilitiesQConversion UtilitiesQTable @@ -89,7 +89,6 @@ enum DataScienceCategory { AnnotationTarget.Enum, AnnotationTarget.Function, AnnotationTarget.Pipeline, - AnnotationTarget.Schema, AnnotationTarget.Segment, ]) annotation Tags(tags: List) diff --git a/packages/safe-ds-lang/src/resources/builtins/safeds/lang/maturity.sdsstub b/packages/safe-ds-lang/src/resources/builtins/safeds/lang/maturity.sdsstub index 90ed4ca94..013f687df 100644 --- a/packages/safe-ds-lang/src/resources/builtins/safeds/lang/maturity.sdsstub +++ b/packages/safe-ds-lang/src/resources/builtins/safeds/lang/maturity.sdsstub @@ -17,7 +17,6 @@ package safeds.lang AnnotationTarget.Function, AnnotationTarget.Parameter, AnnotationTarget.Result, - AnnotationTarget.Schema, AnnotationTarget.Segment, ]) annotation Deprecated( @@ -39,7 +38,6 @@ annotation Deprecated( AnnotationTarget.Function, AnnotationTarget.Parameter, AnnotationTarget.Result, - AnnotationTarget.Schema, AnnotationTarget.Segment, ]) annotation Experimental diff --git a/packages/safe-ds-lang/tests/language/lsp/safe-ds-document-symbol-provider.test.ts b/packages/safe-ds-lang/tests/language/lsp/safe-ds-document-symbol-provider.test.ts index 2f62fc5ba..0fa616fc4 100644 --- a/packages/safe-ds-lang/tests/language/lsp/safe-ds-document-symbol-provider.test.ts +++ b/packages/safe-ds-lang/tests/language/lsp/safe-ds-document-symbol-provider.test.ts @@ -148,20 +148,6 @@ describe('SafeDsSemanticTokenProvider', async () => { }, ], }, - { - testName: 'schema declaration', - code: ` - schema S { - "a": Int - } - `, - expectedSymbols: [ - { - name: 'S', - kind: SymbolKind.Struct, - }, - ], - }, { testName: 'segment declaration', code: ` diff --git a/packages/safe-ds-lang/tests/language/lsp/safe-ds-semantic-token-provider.test.ts b/packages/safe-ds-lang/tests/language/lsp/safe-ds-semantic-token-provider.test.ts index 99c456942..e839e7d37 100644 --- a/packages/safe-ds-lang/tests/language/lsp/safe-ds-semantic-token-provider.test.ts +++ b/packages/safe-ds-lang/tests/language/lsp/safe-ds-semantic-token-provider.test.ts @@ -107,11 +107,6 @@ describe('SafeDsSemanticTokenProvider', async () => { code: 'fun f() -> (<|r|>: String)', expectedTokenTypes: [SemanticTokenTypes.parameter], }, - { - testName: 'schema declaration', - code: 'schema <|S|>() {}', - expectedTokenTypes: [SemanticTokenTypes.type], - }, { testName: 'segment declaration', code: 'segment <|s|>() {}', diff --git a/packages/safe-ds-lang/tests/language/lsp/safe-ds.completion-provider.test.ts b/packages/safe-ds-lang/tests/language/lsp/safe-ds.completion-provider.test.ts index fe47838cf..4285ee33b 100644 --- a/packages/safe-ds-lang/tests/language/lsp/safe-ds.completion-provider.test.ts +++ b/packages/safe-ds-lang/tests/language/lsp/safe-ds.completion-provider.test.ts @@ -25,7 +25,7 @@ describe('SafeDsCompletionProvider', async () => { `, uri: `file:///test1.sds`, expectedLabels: { - shouldEqual: ['from', 'internal', 'private', 'schema', 'pipeline', 'segment'], + shouldEqual: ['from', 'internal', 'private', 'pipeline', 'segment'], }, }, { @@ -36,7 +36,7 @@ describe('SafeDsCompletionProvider', async () => { `, uri: `file:///test2.sdsstub`, expectedLabels: { - shouldEqual: ['from', 'internal', 'private', 'annotation', 'class', 'enum', 'fun', 'schema'], + shouldEqual: ['from', 'internal', 'private', 'annotation', 'class', 'enum', 'fun'], }, }, { @@ -55,7 +55,6 @@ describe('SafeDsCompletionProvider', async () => { 'class', 'enum', 'fun', - 'schema', 'pipeline', 'segment', ], @@ -362,18 +361,6 @@ describe('SafeDsCompletionProvider', async () => { shouldNotContain: ['myPipeline'], }, }, - { - testName: 'reference to schema', - code: ` - schema MySchema {} - - pipeline myPipeline { - <|> - `, - expectedLabels: { - shouldNotContain: ['MySchema'], - }, - }, // Special cases { diff --git a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/annotation call.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/annotation call.sdsdev deleted file mode 100644 index 0870a5553..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/annotation call.sdsdev +++ /dev/null @@ -1,10 +0,0 @@ -package test - -@Annotation schema MySchema { } - -// ----------------------------------------------------------------------------- - -package test - -@Annotation -schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/empty schema.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/empty schema.sdsdev deleted file mode 100644 index 5a0689a3b..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/empty schema.sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -schema MySchema { } - -// ----------------------------------------------------------------------------- - -schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/internal with annotation call.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/internal with annotation call.sdsdev deleted file mode 100644 index 0b7bc3d13..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/internal with annotation call.sdsdev +++ /dev/null @@ -1,10 +0,0 @@ -package test - -@Annotation internal schema MySchema { } - -// ----------------------------------------------------------------------------- - -package test - -@Annotation -internal schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/internal.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/internal.sdsdev deleted file mode 100644 index f0eae95ab..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/internal.sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -internal schema MySchema { } - -// ----------------------------------------------------------------------------- - -internal schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/one column.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/one column.sdsdev deleted file mode 100644 index fb9a45b6f..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/one column.sdsdev +++ /dev/null @@ -1,9 +0,0 @@ -schema MySchema { - "column1" : Int - } - -// ----------------------------------------------------------------------------- - -schema MySchema { - "column1": Int -} diff --git a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/private with annotation call.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/private with annotation call.sdsdev deleted file mode 100644 index c372d2040..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/private with annotation call.sdsdev +++ /dev/null @@ -1,10 +0,0 @@ -package test - -@Annotation private schema MySchema { } - -// ----------------------------------------------------------------------------- - -package test - -@Annotation -private schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/private.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/private.sdsdev deleted file mode 100644 index 1d37dcc5f..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/private.sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -private schema MySchema { } - -// ----------------------------------------------------------------------------- - -private schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/two columns.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/two columns.sdsdev deleted file mode 100644 index ff79b0674..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/declarations/schemas/two columns.sdsdev +++ /dev/null @@ -1,13 +0,0 @@ -schema MySchema { - - "column1" : Int , - - "column2" : String - } - -// ----------------------------------------------------------------------------- - -schema MySchema { - "column1": Int, - "column2": String -} diff --git a/packages/safe-ds-lang/tests/resources/formatting/modules/full.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/modules/full.sdsdev index 122890645..8f21f7ee5 100644 --- a/packages/safe-ds-lang/tests/resources/formatting/modules/full.sdsdev +++ b/packages/safe-ds-lang/tests/resources/formatting/modules/full.sdsdev @@ -57,13 +57,6 @@ pipeline p {} segment s() {} - -@Annotation1 - -@Annotation2 - -schema S {} - // ----------------------------------------------------------------------------- @Annotation1 @@ -99,7 +92,3 @@ pipeline p {} @Annotation1 @Annotation2 segment s() {} - -@Annotation1 -@Annotation2 -schema S {} diff --git a/packages/safe-ds-lang/tests/resources/formatting/trailing commas/column list of schema.sdsdev b/packages/safe-ds-lang/tests/resources/formatting/trailing commas/column list of schema.sdsdev deleted file mode 100644 index a1e22dc97..000000000 --- a/packages/safe-ds-lang/tests/resources/formatting/trailing commas/column list of schema.sdsdev +++ /dev/null @@ -1,11 +0,0 @@ -schema MySchemaWithTrailingComma { - "column1" : Int , - "column2" : String , - } - -// ----------------------------------------------------------------------------- - -schema MySchemaWithTrailingComma { - "column1": Int, - "column2": String, -} diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/deprecated/generated/tests/generation/markdown/annotations/deprecated/MyAnnotation1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/deprecated/generated/tests/generation/markdown/annotations/deprecated/MyAnnotation1.md index 2b81d0758..27bde97b9 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/deprecated/generated/tests/generation/markdown/annotations/deprecated/MyAnnotation1.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/deprecated/generated/tests/generation/markdown/annotations/deprecated/MyAnnotation1.md @@ -18,7 +18,6 @@ - `Parameter` - `Pipeline` - `Result` -- `Schema` - `Segment` - `TypeParameter` diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation1.md index 6cc654407..590091b6a 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation1.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation1.md @@ -16,7 +16,6 @@ Description of MyAnnotation1. - `Parameter` - `Pipeline` - `Result` -- `Schema` - `Segment` - `TypeParameter` diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation2.md b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation2.md index 421847529..f51ee656e 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation2.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation2.md @@ -23,7 +23,6 @@ Description of MyAnnotation2. - `Parameter` - `Pipeline` - `Result` -- `Schema` - `Segment` - `TypeParameter` diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation4.md b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation4.md index 2cfc6a527..ca136a260 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation4.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/documented/generated/tests/generation/markdown/annotations/documented/MyAnnotation4.md @@ -16,7 +16,6 @@ Description of MyAnnotation4. - `Parameter` - `Pipeline` - `Result` -- `Schema` - `Segment` - `TypeParameter` diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/experimental/generated/tests/generation/markdown/annotations/experimental/MyAnnotation1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/experimental/generated/tests/generation/markdown/annotations/experimental/MyAnnotation1.md index e99ba37c3..0b2f622a8 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/experimental/generated/tests/generation/markdown/annotations/experimental/MyAnnotation1.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/experimental/generated/tests/generation/markdown/annotations/experimental/MyAnnotation1.md @@ -14,7 +14,6 @@ - `Parameter` - `Pipeline` - `Result` -- `Schema` - `Segment` - `TypeParameter` diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/undocumented/generated/tests/generation/markdown/annotations/undocumented/MyAnnotation1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/undocumented/generated/tests/generation/markdown/annotations/undocumented/MyAnnotation1.md index c243c604c..0faed3f90 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/undocumented/generated/tests/generation/markdown/annotations/undocumented/MyAnnotation1.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/undocumented/generated/tests/generation/markdown/annotations/undocumented/MyAnnotation1.md @@ -14,7 +14,6 @@ - `Parameter` - `Pipeline` - `Result` -- `Schema` - `Segment` - `TypeParameter` diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/undocumented/generated/tests/generation/markdown/annotations/undocumented/MyAnnotation2.md b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/undocumented/generated/tests/generation/markdown/annotations/undocumented/MyAnnotation2.md index ee6e6a4b5..e518be269 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/undocumented/generated/tests/generation/markdown/annotations/undocumented/MyAnnotation2.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/annotations/undocumented/generated/tests/generation/markdown/annotations/undocumented/MyAnnotation2.md @@ -21,7 +21,6 @@ - `Parameter` - `Pipeline` - `Result` -- `Schema` - `Segment` - `TypeParameter` diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/SUMMARY.md b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/SUMMARY.md index 4cb31c21b..e0d2ef383 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/SUMMARY.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/SUMMARY.md @@ -9,9 +9,9 @@ search: - generation - markdown - deprecated - - [MySchema1](tests/generation/markdown/deprecated/MySchema1.md) - - [MySchema2](tests/generation/markdown/deprecated/MySchema2.md) - - [MySchema3](tests/generation/markdown/deprecated/MySchema3.md) - - [MySchema4](tests/generation/markdown/deprecated/MySchema4.md) - - [MySchema5](tests/generation/markdown/deprecated/MySchema5.md) - - [MySchema6](tests/generation/markdown/deprecated/MySchema6.md) + - [MyClass1](tests/generation/markdown/deprecated/MyClass1.md) + - [MyClass2](tests/generation/markdown/deprecated/MyClass2.md) + - [MyClass3](tests/generation/markdown/deprecated/MyClass3.md) + - [MyClass4](tests/generation/markdown/deprecated/MyClass4.md) + - [MyClass5](tests/generation/markdown/deprecated/MyClass5.md) + - [MyClass6](tests/generation/markdown/deprecated/MyClass6.md) diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass1.md similarity index 67% rename from packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema1.md rename to packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass1.md index 49328bc3f..f061a0122 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema1.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass1.md @@ -1,6 +1,11 @@ +--- +search: + boost: 0.5 +--- + [//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) -# :warning:{ title="Deprecated" } `MySchema1` {#tests.generation.markdown.deprecated.MySchema1 data-toc-label='[schema] MySchema1'} +# :warning:{ title="Deprecated" } `MyClass1` {#tests.generation.markdown.deprecated.MyClass1 data-toc-label='[class] MyClass1'} !!! warning "Deprecated" @@ -9,6 +14,6 @@ ??? quote "Stub code in `main.sdsstub`" ```sds linenums="4" - schema MySchema1 {} + class MyClass1 {} ``` { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema2.md b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass2.md similarity index 69% rename from packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema2.md rename to packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass2.md index 4396468c7..b4cf4e96e 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema2.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass2.md @@ -1,6 +1,11 @@ +--- +search: + boost: 0.5 +--- + [//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) -# :warning:{ title="Deprecated" } `MySchema2` {#tests.generation.markdown.deprecated.MySchema2 data-toc-label='[schema] MySchema2'} +# :warning:{ title="Deprecated" } `MyClass2` {#tests.generation.markdown.deprecated.MyClass2 data-toc-label='[class] MyClass2'} !!! warning "Deprecated" @@ -11,6 +16,6 @@ ??? quote "Stub code in `main.sdsstub`" ```sds linenums="9" - schema MySchema2 {} + class MyClass2 {} ``` { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema3.md b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass3.md similarity index 69% rename from packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema3.md rename to packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass3.md index e06cb1e80..2a108b7bb 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema3.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass3.md @@ -1,6 +1,11 @@ +--- +search: + boost: 0.5 +--- + [//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) -# :warning:{ title="Deprecated" } `MySchema3` {#tests.generation.markdown.deprecated.MySchema3 data-toc-label='[schema] MySchema3'} +# :warning:{ title="Deprecated" } `MyClass3` {#tests.generation.markdown.deprecated.MyClass3 data-toc-label='[class] MyClass3'} !!! warning "Deprecated" @@ -11,6 +16,6 @@ ??? quote "Stub code in `main.sdsstub`" ```sds linenums="14" - schema MySchema3 {} + class MyClass3 {} ``` { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema4.md b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass4.md similarity index 69% rename from packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema4.md rename to packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass4.md index f20617af7..4497472e8 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema4.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass4.md @@ -1,6 +1,11 @@ +--- +search: + boost: 0.5 +--- + [//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) -# :warning:{ title="Deprecated" } `MySchema4` {#tests.generation.markdown.deprecated.MySchema4 data-toc-label='[schema] MySchema4'} +# :warning:{ title="Deprecated" } `MyClass4` {#tests.generation.markdown.deprecated.MyClass4 data-toc-label='[class] MyClass4'} !!! warning "Deprecated" @@ -9,6 +14,6 @@ ??? quote "Stub code in `main.sdsstub`" ```sds linenums="19" - schema MySchema4 {} + class MyClass4 {} ``` { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema5.md b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass5.md similarity index 70% rename from packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema5.md rename to packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass5.md index 4309d943f..97439fa77 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema5.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass5.md @@ -1,6 +1,11 @@ +--- +search: + boost: 0.5 +--- + [//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) -# :warning:{ title="Deprecated" } `MySchema5` {#tests.generation.markdown.deprecated.MySchema5 data-toc-label='[schema] MySchema5'} +# :warning:{ title="Deprecated" } `MyClass5` {#tests.generation.markdown.deprecated.MyClass5 data-toc-label='[class] MyClass5'} !!! warning "Deprecated" @@ -9,6 +14,6 @@ ??? quote "Stub code in `main.sdsstub`" ```sds linenums="24" - schema MySchema5 {} + class MyClass5 {} ``` { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema6.md b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass6.md similarity index 74% rename from packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema6.md rename to packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass6.md index 2c0a511ac..e1f5c50e2 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MySchema6.md +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/generated/tests/generation/markdown/deprecated/MyClass6.md @@ -1,6 +1,11 @@ +--- +search: + boost: 0.5 +--- + [//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) -# :warning:{ title="Deprecated" } `MySchema6` {#tests.generation.markdown.deprecated.MySchema6 data-toc-label='[schema] MySchema6'} +# :warning:{ title="Deprecated" } `MyClass6` {#tests.generation.markdown.deprecated.MyClass6 data-toc-label='[class] MyClass6'} !!! warning "Deprecated" @@ -12,6 +17,6 @@ ??? quote "Stub code in `main.sdsstub`" ```sds linenums="32" - schema MySchema6 {} + class MyClass6 {} ``` { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/main.sdsstub b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/main.sdsstub index 8ec5a9ba7..1a3e75737 100644 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/main.sdsstub +++ b/packages/safe-ds-lang/tests/resources/generation/markdown/deprecated/main.sdsstub @@ -1,27 +1,27 @@ package tests.generation.markdown.deprecated @Deprecated -schema MySchema1 {} +class MyClass1 {} @Deprecated( alternative = "Something else", ) -schema MySchema2 {} +class MyClass2 {} @Deprecated( reason = "To annoy you", ) -schema MySchema3 {} +class MyClass3 {} @Deprecated( sinceVersion = "1.0.0" ) -schema MySchema4 {} +class MyClass4 {} @Deprecated( removalVersion = "2.0.0", ) -schema MySchema5 {} +class MyClass5 {} @Deprecated( alternative = "Something else", @@ -29,4 +29,4 @@ schema MySchema5 {} sinceVersion = "1.0.0", removalVersion = "2.0.0", ) -schema MySchema6 {} +class MyClass6 {} diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/generated/SUMMARY.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/generated/SUMMARY.md deleted file mode 100644 index fa853b99d..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/generated/SUMMARY.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -search: - exclude: true ---- - -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -- tests - - generation - - markdown - - schemas - - deprecated - - [MySchema1](tests/generation/markdown/schemas/deprecated/MySchema1.md) diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/generated/tests/generation/markdown/schemas/deprecated/MySchema1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/generated/tests/generation/markdown/schemas/deprecated/MySchema1.md deleted file mode 100644 index fa47f6440..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/generated/tests/generation/markdown/schemas/deprecated/MySchema1.md +++ /dev/null @@ -1,14 +0,0 @@ -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -# :warning:{ title="Deprecated" } `MySchema1` {#tests.generation.markdown.schemas.deprecated.MySchema1 data-toc-label='[schema] MySchema1'} - -!!! warning "Deprecated" - - This declaration is deprecated. - -??? quote "Stub code in `main.sdsstub`" - - ```sds linenums="4" - schema MySchema1 {} - ``` - { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/main.sdsstub b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/main.sdsstub deleted file mode 100644 index 0e63b5dbd..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/deprecated/main.sdsstub +++ /dev/null @@ -1,4 +0,0 @@ -package tests.generation.markdown.schemas.deprecated - -@Deprecated -schema MySchema1 {} diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/SUMMARY.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/SUMMARY.md deleted file mode 100644 index 38b5d7d79..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/SUMMARY.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -search: - exclude: true ---- - -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -- tests - - generation - - markdown - - schemas - - documented - - [MyClass](tests/generation/markdown/schemas/documented/MyClass.md) - - [MySchema1](tests/generation/markdown/schemas/documented/MySchema1.md) - - [MySchema2](tests/generation/markdown/schemas/documented/MySchema2.md) - - [MySchema3](tests/generation/markdown/schemas/documented/MySchema3.md) diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MyClass.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MyClass.md deleted file mode 100644 index 13238eccf..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MyClass.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -search: - boost: 0.5 ---- - -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -# `MyClass` {#tests.generation.markdown.schemas.documented.MyClass data-toc-label='[class] MyClass'} - -??? quote "Stub code in `main.sdsstub`" - - ```sds linenums="25" - class MyClass - ``` - { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema1.md deleted file mode 100644 index 22fa06f68..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema1.md +++ /dev/null @@ -1,12 +0,0 @@ -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -# `MySchema1` {#tests.generation.markdown.schemas.documented.MySchema1 data-toc-label='[schema] MySchema1'} - -Description of MySchema1. - -??? quote "Stub code in `main.sdsstub`" - - ```sds linenums="8" - schema MySchema1 {} - ``` - { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema2.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema2.md deleted file mode 100644 index 599661962..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema2.md +++ /dev/null @@ -1,22 +0,0 @@ -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -# `MySchema2` {#tests.generation.markdown.schemas.documented.MySchema2 data-toc-label='[schema] MySchema2'} - -Description of MySchema2. - -**Columns:** - -| Name | Type | -|------|------| -| `column1` | [`MyClass`][tests.generation.markdown.schemas.documented.MyClass] | -| `column2` | `#!sds Int` | - -??? quote "Stub code in `main.sdsstub`" - - ```sds linenums="13" - schema MySchema2 { - "column1": MyClass, - "column2": Int, - } - ``` - { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema3.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema3.md deleted file mode 100644 index 02395d4c5..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/generated/tests/generation/markdown/schemas/documented/MySchema3.md +++ /dev/null @@ -1,18 +0,0 @@ -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -# `MySchema3` {#tests.generation.markdown.schemas.documented.MySchema3 data-toc-label='[schema] MySchema3'} - -Description of MySchema3. - -**Examples:** - -```sds hl_lines="1" -// Example of MySchema3. -``` - -??? quote "Stub code in `main.sdsstub`" - - ```sds linenums="23" - schema MySchema3 {} - ``` - { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/main.sdsstub b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/main.sdsstub deleted file mode 100644 index 50c4b60b2..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/documented/main.sdsstub +++ /dev/null @@ -1,25 +0,0 @@ -package tests.generation.markdown.schemas.documented - -/** - * Description of MySchema1. - * - * @since 1.0.0 - */ -schema MySchema1 {} - -/** - * Description of MySchema2. - */ -schema MySchema2 { - "column1": MyClass, - "column2": Int, -} - -/** - * Description of MySchema3. - * - * @example // Example of MySchema3. - */ -schema MySchema3 {} - -class MyClass diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/generated/SUMMARY.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/generated/SUMMARY.md deleted file mode 100644 index 722f3548d..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/generated/SUMMARY.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -search: - exclude: true ---- - -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -- tests - - generation - - markdown - - schemas - - experimental - - [MySchema1](tests/generation/markdown/schemas/experimental/MySchema1.md) diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/generated/tests/generation/markdown/schemas/experimental/MySchema1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/generated/tests/generation/markdown/schemas/experimental/MySchema1.md deleted file mode 100644 index 3fb743deb..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/generated/tests/generation/markdown/schemas/experimental/MySchema1.md +++ /dev/null @@ -1,10 +0,0 @@ -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -# :test_tube:{ title="Experimental" } `MySchema1` {#tests.generation.markdown.schemas.experimental.MySchema1 data-toc-label='[schema] MySchema1'} - -??? quote "Stub code in `main.sdsstub`" - - ```sds linenums="4" - schema MySchema1 {} - ``` - { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/main.sdsstub b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/main.sdsstub deleted file mode 100644 index d6d6700d6..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/experimental/main.sdsstub +++ /dev/null @@ -1,4 +0,0 @@ -package tests.generation.markdown.schemas.experimental - -@Experimental -schema MySchema1 {} diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/SUMMARY.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/SUMMARY.md deleted file mode 100644 index ee163ec57..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/SUMMARY.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -search: - exclude: true ---- - -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -- tests - - generation - - markdown - - schemas - - undocumented - - [MySchema1](tests/generation/markdown/schemas/undocumented/MySchema1.md) - - [MySchema2](tests/generation/markdown/schemas/undocumented/MySchema2.md) diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/tests/generation/markdown/schemas/undocumented/MySchema1.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/tests/generation/markdown/schemas/undocumented/MySchema1.md deleted file mode 100644 index 70eb4506c..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/tests/generation/markdown/schemas/undocumented/MySchema1.md +++ /dev/null @@ -1,10 +0,0 @@ -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -# `MySchema1` {#tests.generation.markdown.schemas.undocumented.MySchema1 data-toc-label='[schema] MySchema1'} - -??? quote "Stub code in `main.sdsstub`" - - ```sds linenums="3" - schema MySchema1 {} - ``` - { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/tests/generation/markdown/schemas/undocumented/MySchema2.md b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/tests/generation/markdown/schemas/undocumented/MySchema2.md deleted file mode 100644 index 3656a3b8b..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/generated/tests/generation/markdown/schemas/undocumented/MySchema2.md +++ /dev/null @@ -1,20 +0,0 @@ -[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.) - -# `MySchema2` {#tests.generation.markdown.schemas.undocumented.MySchema2 data-toc-label='[schema] MySchema2'} - -**Columns:** - -| Name | Type | -|------|------| -| `column1` | `#!sds String` | -| `column2` | `#!sds Int` | - -??? quote "Stub code in `main.sdsstub`" - - ```sds linenums="5" - schema MySchema2 { - "column1": String, - "column2": Int - } - ``` - { data-search-exclude } diff --git a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/main.sdsstub b/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/main.sdsstub deleted file mode 100644 index 51e66b94b..000000000 --- a/packages/safe-ds-lang/tests/resources/generation/markdown/schemas/undocumented/main.sdsstub +++ /dev/null @@ -1,8 +0,0 @@ -package tests.generation.markdown.schemas.undocumented - -schema MySchema1 {} - -schema MySchema2 { - "column1": String, - "column2": Int -} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no name (colon).sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no name (colon).sdsdev deleted file mode 100644 index 7e8ad7292..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no name (colon).sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -// $TEST$ syntax_error - -schema MySchema { - : Int -} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no name (no colon).sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no name (no colon).sdsdev deleted file mode 100644 index b9972ace6..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no name (no colon).sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -// $TEST$ syntax_error - -schema MySchema { - Int -} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no type (colon).sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no type (colon).sdsdev deleted file mode 100644 index 0da371cba..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no type (colon).sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -// $TEST$ syntax_error - -schema MySchema { - "column1" : -} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no type (no colon).sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no type (no colon).sdsdev deleted file mode 100644 index 8a3589f9e..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-no type (no colon).sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -// $TEST$ syntax_error - -schema MySchema { - "column1" -} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-switched name and type.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-switched name and type.sdsdev deleted file mode 100644 index 354327496..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-switched name and type.sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -// $TEST$ syntax_error - -schema MySchema { - Int: "column1" -} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (internal, internal).sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (internal, internal).sdsdev deleted file mode 100644 index 09c9b1766..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (internal, internal).sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ syntax_error - -internal internal schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (internal, private).sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (internal, private).sdsdev deleted file mode 100644 index bde4b04b8..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (internal, private).sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ syntax_error - -internal private schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (private, internal).sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (private, internal).sdsdev deleted file mode 100644 index 2d45c4ca4..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (private, internal).sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ syntax_error - -private internal schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (private, private).sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (private, private).sdsdev deleted file mode 100644 index aa00569af..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-two visibilities (private, private).sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ syntax_error - -private private schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-unclosed curly brace.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-unclosed curly brace.sdsdev deleted file mode 100644 index 344b89dab..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/bad-unclosed curly brace.sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ syntax_error - -schema MySchema { diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-annotation call.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-annotation call.sdsdev deleted file mode 100644 index 6d802b733..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-annotation call.sdsdev +++ /dev/null @@ -1,6 +0,0 @@ -// $TEST$ no_syntax_error - -package test - -@Annotation -schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-empty schema.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-empty schema.sdsdev deleted file mode 100644 index f1e64b435..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-empty schema.sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ no_syntax_error - -schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-internal.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-internal.sdsdev deleted file mode 100644 index 49ade82f8..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-internal.sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ no_syntax_error - -internal schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-one column.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-one column.sdsdev deleted file mode 100644 index bea79ca35..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-one column.sdsdev +++ /dev/null @@ -1,5 +0,0 @@ -// $TEST$ no_syntax_error - -schema MySchema { - "column1": Int -} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-private.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-private.sdsdev deleted file mode 100644 index 45a954683..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-private.sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ no_syntax_error - -private schema MySchema {} diff --git a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-two columns.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-two columns.sdsdev deleted file mode 100644 index 5cd16453f..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/declarations/schemas/good-two columns.sdsdev +++ /dev/null @@ -1,6 +0,0 @@ -// $TEST$ no_syntax_error - -schema MySchema { - "column1": Int, - "column2": String -} diff --git a/packages/safe-ds-lang/tests/resources/grammar/keywords as names/bad-unescaped schema.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/keywords as names/bad-unescaped schema.sdsdev deleted file mode 100644 index bc788c52d..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/keywords as names/bad-unescaped schema.sdsdev +++ /dev/null @@ -1,3 +0,0 @@ -// $TEST$ syntax_error - -class schema diff --git a/packages/safe-ds-lang/tests/resources/grammar/keywords as names/good-escapedKeywords.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/keywords as names/good-escapedKeywords.sdsdev index 17e12296d..dbd9205e4 100644 --- a/packages/safe-ds-lang/tests/resources/grammar/keywords as names/good-escapedKeywords.sdsdev +++ b/packages/safe-ds-lang/tests/resources/grammar/keywords as names/good-escapedKeywords.sdsdev @@ -22,7 +22,6 @@ class ^out class ^package class ^pipeline class ^private -class ^schema class ^static class ^segment class ^sub diff --git a/packages/safe-ds-lang/tests/resources/grammar/trailing commas/good-column list of schema.sdsdev b/packages/safe-ds-lang/tests/resources/grammar/trailing commas/good-column list of schema.sdsdev deleted file mode 100644 index f4dd423f0..000000000 --- a/packages/safe-ds-lang/tests/resources/grammar/trailing commas/good-column list of schema.sdsdev +++ /dev/null @@ -1,6 +0,0 @@ -// $TEST$ no_syntax_error - -schema MySchemaWithTrailingComma { - "column1" : Int, - "column2" : String, -} diff --git a/packages/safe-ds-lang/tests/resources/partial evaluation/invalid nodes/main.sdsdev b/packages/safe-ds-lang/tests/resources/partial evaluation/invalid nodes/main.sdsdev index 90e69ec88..e526347b1 100644 --- a/packages/safe-ds-lang/tests/resources/partial evaluation/invalid nodes/main.sdsdev +++ b/packages/safe-ds-lang/tests/resources/partial evaluation/invalid nodes/main.sdsdev @@ -1,4 +1,4 @@ package tests.partialValidation.invalidNodes // $TEST$ serialization ? -»schema mySchema {}« +»pipeline myPipeline {}« diff --git a/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/main.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/main.sdsdev deleted file mode 100644 index 50e262a55..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/main.sdsdev +++ /dev/null @@ -1,25 +0,0 @@ -package tests.scoping.importedDeclarations.toSchemas - -// $TEST$ references own_OwnSchema -from tests.scoping.importedDeclarations.toSchemas import »OwnSchema« - -// $TEST$ references firstPackage_SchemaInFirstPackage -from tests.scoping.importedDeclarations.toSchemas.first import »SchemaInFirstPackage« - -// $TEST$ references secondPackage_SchemaInSecondPackage -from tests.scoping.importedDeclarations.toSchemas.second import »SchemaInSecondPackage« - -// $TEST$ references secondPackage_RedeclaredSchemaInSameFile -// $TEST$ references secondPackage_RedeclaredSchemaInOtherFile -from tests.scoping.importedDeclarations.toSchemas.second import »RedeclaredSchemaInSameFile«, »RedeclaredSchemaInOtherFile« - -// $TEST$ references secondPackage_SchemaInBothPackages -from tests.scoping.importedDeclarations.toSchemas.second import »SchemaInBothPackages« - - -// $TEST$ unresolved -from tests.scoping.importedDeclarations.toSchemas.second import »SchemaInFirstPackage« - - -// $TEST$ target own_OwnSchema -schema »OwnSchema« {} diff --git a/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/resource first package.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/resource first package.sdsdev deleted file mode 100644 index 281edb623..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/resource first package.sdsdev +++ /dev/null @@ -1,7 +0,0 @@ -package tests.scoping.importedDeclarations.toSchemas.first - -// $TEST$ target firstPackage_SchemaInFirstPackage -schema »SchemaInFirstPackage« {} - -// $TEST$ target firstPackage_SchemaInBothPackages -schema »SchemaInBothPackages« {} diff --git a/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/resource second package.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/resource second package.sdsdev deleted file mode 100644 index 56f668917..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/imported declarations/to schemas/resource second package.sdsdev +++ /dev/null @@ -1,14 +0,0 @@ -package tests.scoping.importedDeclarations.toSchemas.second - -// $TEST$ target secondPackage_SchemaInSecondPackage -schema »SchemaInSecondPackage« {} - -// $TEST$ target secondPackage_RedeclaredSchemaInSameFile -schema »RedeclaredSchemaInSameFile« {} -schema RedeclaredSchemaInSameFile {} - -// $TEST$ target secondPackage_RedeclaredSchemaInOtherFile -schema »RedeclaredSchemaInOtherFile« {} - -// $TEST$ target secondPackage_SchemaInBothPackages -schema »SchemaInBothPackages« {} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main no imports or own declarations.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main no imports or own declarations.sdsdev deleted file mode 100644 index fd35ee395..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main no imports or own declarations.sdsdev +++ /dev/null @@ -1,46 +0,0 @@ -package tests.scoping.references.acrossFiles.toSchemas - -pipeline myPipeline { - // $TEST$ references same_MySchema - »MySchema«; - - - // $TEST$ references same_PublicSchemaInSamePackage - »PublicSchemaInSamePackage«; - - // $TEST$ references same_InternalSchemaInSamePackage - »InternalSchemaInSamePackage«; - - // $TEST$ unresolved - »PrivateSchemaInSamePackage«; - - - // $TEST$ references safeds_PublicSchemaInSafeDsPackage - »PublicSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »InternalSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »PrivateSchemaInSafeDsPackage«; - - - // $TEST$ unresolved - »PublicSchemaInAnotherPackage«; - - // $TEST$ unresolved - »InternalSchemaInAnotherPackage«; - - // $TEST$ unresolved - »PrivateSchemaInAnotherPackage«; - - - // $TEST$ unresolved - »PublicSchemaWithoutPackage«; - - // $TEST$ unresolved - »InternalSchemaWithoutPackage«; - - // $TEST$ unresolved - »PrivateSchemaWithoutPackage«; -} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with imports and own declarations.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with imports and own declarations.sdsdev deleted file mode 100644 index 5639def32..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with imports and own declarations.sdsdev +++ /dev/null @@ -1,55 +0,0 @@ -package tests.scoping.references.acrossFiles.toSchemas - -from safeds.scoping.references.acrossFiles.toSchemas import MySchema as MyOwnSchema -from tests.scoping.references.acrossFiles.toSchemas.other import PublicSchemaInAnotherPackage, PublicSchemaInAnotherPackage2 - -// $TEST$ target own_MyOwnSchema -schema »MyOwnSchema« {} - -pipeline myPipeline { - // $TEST$ references own_MyOwnSchema - »MyOwnSchema«; - - - // $TEST$ references same_PublicSchemaInSamePackage - »PublicSchemaInSamePackage«; - - // $TEST$ references same_InternalSchemaInSamePackage - »InternalSchemaInSamePackage«; - - // $TEST$ unresolved - »PrivateSchemaInSamePackage«; - - - // $TEST$ references safeds_PublicSchemaInSafeDsPackage - »PublicSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »InternalSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »PrivateSchemaInSafeDsPackage«; - - - // $TEST$ references other_PublicSchemaInAnotherPackage - »PublicSchemaInAnotherPackage«; - - // $TEST$ references other_PublicSchemaInAnotherPackage2 - »PublicSchemaInAnotherPackage2«; - - // $TEST$ unresolved - »InternalSchemaInAnotherPackage«; - - // $TEST$ unresolved - »PrivateSchemaInAnotherPackage«; - - - // $TEST$ unresolved - »PublicSchemaWithoutPackage«; - - // $TEST$ unresolved - »InternalSchemaWithoutPackage«; - - // $TEST$ unresolved - »PrivateSchemaWithoutPackage«; -} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with multiple imports of same name.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with multiple imports of same name.sdsdev deleted file mode 100644 index 1fb7f3e68..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with multiple imports of same name.sdsdev +++ /dev/null @@ -1,10 +0,0 @@ -package tests.scoping.references.acrossFiles.toSchemas - -from safeds.scoping.references.acrossFiles.toSchemas import MySchema -from tests.scoping.references.acrossFiles.toSchemas.other import MySchema -from tests.scoping.references.acrossFiles.toSchemas import MySchema - -pipeline myPipeline { - // $TEST$ references safeds_MySchema - »MySchema«; -} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with qualified import with alias.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with qualified import with alias.sdsdev deleted file mode 100644 index 8ee345508..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with qualified import with alias.sdsdev +++ /dev/null @@ -1,60 +0,0 @@ -package tests.scoping.references.acrossFiles.toSchemas - -from tests.scoping.references.acrossFiles.toSchemas import MySchema as MySchemaInSamePackage -from safeds.scoping.references.acrossFiles.toSchemas import MySchema as MySchemaInSafeDsPackage -from tests.scoping.references.acrossFiles.toSchemas.other import MySchema as MySchemaInAnotherPackage - -pipeline myPipeline { - // $TEST$ references same_MySchema - »MySchema«; - - - // $TEST$ references same_PublicSchemaInSamePackage - »PublicSchemaInSamePackage«; - - // $TEST$ references same_InternalSchemaInSamePackage - »InternalSchemaInSamePackage«; - - // $TEST$ unresolved - »PrivateSchemaInSamePackage«; - - - // $TEST$ references safeds_PublicSchemaInSafeDsPackage - »PublicSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »InternalSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »PrivateSchemaInSafeDsPackage«; - - - // $TEST$ unresolved - »PublicSchemaInAnotherPackage«; - - // $TEST$ unresolved - »InternalSchemaInAnotherPackage«; - - // $TEST$ unresolved - »PrivateSchemaInAnotherPackage«; - - - // $TEST$ unresolved - »PublicSchemaWithoutPackage«; - - // $TEST$ unresolved - »InternalSchemaWithoutPackage«; - - // $TEST$ unresolved - »PrivateSchemaWithoutPackage«; - - - // $TEST$ references same_MySchema - »MySchemaInSamePackage«; - - // $TEST$ references safeds_MySchema - »MySchemaInSafeDsPackage«; - - // $TEST$ references other_MySchema - »MySchemaInAnotherPackage«; -} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with qualified import.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with qualified import.sdsdev deleted file mode 100644 index 794c333f5..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with qualified import.sdsdev +++ /dev/null @@ -1,52 +0,0 @@ -package tests.scoping.references.acrossFiles.toSchemas - -from safeds.scoping.references.acrossFiles.toSchemas import MySchema -from tests.scoping.references.acrossFiles.toSchemas.other import PublicSchemaInAnotherPackage, PublicSchemaInAnotherPackage2 - -pipeline myPipeline { - // $TEST$ references safeds_MySchema - »MySchema«; - - - // $TEST$ references same_PublicSchemaInSamePackage - »PublicSchemaInSamePackage«; - - // $TEST$ references same_InternalSchemaInSamePackage - »InternalSchemaInSamePackage«; - - // $TEST$ unresolved - »PrivateSchemaInSamePackage«; - - - // $TEST$ references safeds_PublicSchemaInSafeDsPackage - »PublicSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »InternalSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »PrivateSchemaInSafeDsPackage«; - - - // $TEST$ references other_PublicSchemaInAnotherPackage - »PublicSchemaInAnotherPackage«; - - // $TEST$ references other_PublicSchemaInAnotherPackage2 - »PublicSchemaInAnotherPackage2«; - - // $TEST$ unresolved - »InternalSchemaInAnotherPackage«; - - // $TEST$ unresolved - »PrivateSchemaInAnotherPackage«; - - - // $TEST$ unresolved - »PublicSchemaWithoutPackage«; - - // $TEST$ unresolved - »InternalSchemaWithoutPackage«; - - // $TEST$ unresolved - »PrivateSchemaWithoutPackage«; -} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with wildcard import.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with wildcard import.sdsdev deleted file mode 100644 index b2307bde8..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/main with wildcard import.sdsdev +++ /dev/null @@ -1,48 +0,0 @@ -package tests.scoping.references.acrossFiles.toSchemas - -from safeds.scoping.references.acrossFiles.toSchemas import * - -pipeline myPipeline { - // $TEST$ references safeds_MySchema - »MySchema«; - - - // $TEST$ references same_PublicSchemaInSamePackage - »PublicSchemaInSamePackage«; - - // $TEST$ references same_InternalSchemaInSamePackage - »InternalSchemaInSamePackage«; - - // $TEST$ unresolved - »PrivateSchemaInSamePackage«; - - - // $TEST$ references safeds_PublicSchemaInSafeDsPackage - »PublicSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »InternalSchemaInSafeDsPackage«; - - // $TEST$ unresolved - »PrivateSchemaInSafeDsPackage«; - - - // $TEST$ unresolved - »PublicSchemaInAnotherPackage«; - - // $TEST$ unresolved - »InternalSchemaInAnotherPackage«; - - // $TEST$ unresolved - »PrivateSchemaInAnotherPackage«; - - - // $TEST$ unresolved - »PublicSchemaWithoutPackage«; - - // $TEST$ unresolved - »InternalSchemaWithoutPackage«; - - // $TEST$ unresolved - »PrivateSchemaWithoutPackage«; -} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource other package.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource other package.sdsdev deleted file mode 100644 index d3418caf5..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource other package.sdsdev +++ /dev/null @@ -1,16 +0,0 @@ -package tests.scoping.references.acrossFiles.toSchemas.other - -// $TEST$ target other_MySchema -schema »MySchema« {} - -// $TEST$ target other_PublicSchemaInAnotherPackage -schema »PublicSchemaInAnotherPackage« {} - -// $TEST$ target other_PublicSchemaInAnotherPackage2 -schema »PublicSchemaInAnotherPackage2« {} - -// $TEST$ target other_InternalSchematInAnotherPackage -internal schema »InternalSchematInAnotherPackage« {} - -// $TEST$ target other_PrivateSchemaInAnotherPackage -private schema »PrivateSchemaInAnotherPackage« {} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource safeds package.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource safeds package.sdsdev deleted file mode 100644 index a2176af1f..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource safeds package.sdsdev +++ /dev/null @@ -1,13 +0,0 @@ -package safeds.scoping.references.acrossFiles.toSchemas - -// $TEST$ target safeds_MySchema -schema »MySchema« {} - -// $TEST$ target safeds_PublicSchemaInSafeDsPackage -schema »PublicSchemaInSafeDsPackage« {} - -// $TEST$ target safeds_InternalSchemaInSafeDsPackage -internal schema »InternalSchemaInSafeDsPackage« {} - -// $TEST$ target safeds_PrivateSchemaInSafeDsPackage -private schema »PrivateSchemaInSafeDsPackage« {} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource same package.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource same package.sdsdev deleted file mode 100644 index d8b498ba5..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource same package.sdsdev +++ /dev/null @@ -1,13 +0,0 @@ -package tests.scoping.references.acrossFiles.toSchemas - -// $TEST$ target same_MySchema -schema »MySchema« {} - -// $TEST$ target same_PublicSchemaInSamePackage -schema »PublicSchemaInSamePackage« {} - -// $TEST$ target same_InternalSchemaInSamePackage -internal schema »InternalSchemaInSamePackage« {} - -// $TEST$ target same_PrivateSchemaInSamePackage -private schema »PrivateSchemaInSamePackage« {} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource without package.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource without package.sdsdev deleted file mode 100644 index 3b0f02177..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/across files/to schemas/resource without package.sdsdev +++ /dev/null @@ -1,11 +0,0 @@ -// $TEST$ target without_MySchema -schema »MySchema« {} - -// $TEST$ target without_PublicSchemaWithoutPackage -schema »PublicSchemaWithoutPackage« {} - -// $TEST$ target without_InternalSchemaInSamePackage -internal schema »InternalSchemaInSamePackage« {} - -// $TEST$ target without_PrivateSchemaInSamePackage -private schema »PrivateSchemaInSamePackage« {} diff --git a/packages/safe-ds-lang/tests/resources/scoping/references/in same file/to schemas/main.sdsdev b/packages/safe-ds-lang/tests/resources/scoping/references/in same file/to schemas/main.sdsdev deleted file mode 100644 index 8ba5d08bc..000000000 --- a/packages/safe-ds-lang/tests/resources/scoping/references/in same file/to schemas/main.sdsdev +++ /dev/null @@ -1,35 +0,0 @@ -package tests.scoping.references.inSameFile.toSchemas - -// $TEST$ target PrivateBefore -private schema »PrivateBefore« {} -// $TEST$ target InternalBefore -internal schema »InternalBefore« {} -// $TEST$ target PublicBefore -schema »PublicBefore« {} - -pipeline myPipeline { - // $TEST$ references PrivateBefore - »PrivateBefore«; - - // $TEST$ references InternalBefore - »InternalBefore«; - - // $TEST$ references PublicBefore - »PublicBefore«; - - // $TEST$ references PrivateAfter - »PrivateAfter«; - - // $TEST$ references InternalAfter - »InternalAfter«; - - // $TEST$ references PublicAfter - »PublicAfter«; -} - -// $TEST$ target PrivateAfter -private schema »PrivateAfter« {} -// $TEST$ target InternalAfter -internal schema »InternalAfter« {} -// $TEST$ target PublicAfter -schema »PublicAfter« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/experimental language feature/schemas/main.sdsdev b/packages/safe-ds-lang/tests/resources/validation/experimental language feature/schemas/main.sdsdev deleted file mode 100644 index a62b4584d..000000000 --- a/packages/safe-ds-lang/tests/resources/validation/experimental language feature/schemas/main.sdsdev +++ /dev/null @@ -1,4 +0,0 @@ -package tests.validation.experimentalLanguageFeature.schemas - -// $TEST$ warning "Schemas are experimental and may change without prior notice." -schema »MySchema« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/names/casing/schemas.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/casing/schemas.sdsdev deleted file mode 100644 index d735f2c8b..000000000 --- a/packages/safe-ds-lang/tests/resources/validation/names/casing/schemas.sdsdev +++ /dev/null @@ -1,12 +0,0 @@ -package tests.validation.names.casing - -// $TEST$ no warning "Names of schemas should be UpperCamelCase." -schema »SchemaUppercase1« {} -// $TEST$ no warning "Names of schemas should be UpperCamelCase." -schema »^SchemaUppercase2« {} -// $TEST$ warning "Names of schemas should be UpperCamelCase." -schema »schemaLowercase« {} -// $TEST$ warning "Names of schemas should be UpperCamelCase." -schema »_schemaUnderscore« {} -// $TEST$ warning "Names of schemas should be UpperCamelCase." -schema »Schema_Snake_Case« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/names/codegen prefix/schemas.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/codegen prefix/schemas.sdsdev deleted file mode 100644 index 7ec0a8ad0..000000000 --- a/packages/safe-ds-lang/tests/resources/validation/names/codegen prefix/schemas.sdsdev +++ /dev/null @@ -1,7 +0,0 @@ -package tests.validation.names.blockLambdaPrefix - -// $TEST$ error "Names of declarations must not start with '__gen_'. This is reserved for code generation." -schema »__gen_0« {} - -// $TEST$ no error "Names of declarations must not start with '__gen_'. This is reserved for code generation." -schema »_gen_1« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/main.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/main.sdsdev index 433eb3458..89a765aa2 100644 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/main.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/main.sdsdev @@ -10,8 +10,6 @@ enum »DuplicateEnum« fun »duplicateFunction«() // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." pipeline »duplicatePipeline« {} -// $TEST$ error "Multiple declarations in this package have the name 'DuplicateSchema'." -schema »DuplicateSchema« {} // $TEST$ error "Multiple declarations in this package have the name 'duplicatePublicSegment'." segment »duplicatePublicSegment«() {} // $TEST$ error "Multiple declarations in this package have the name 'duplicateInternalSegment'." @@ -31,8 +29,6 @@ fun »uniqueFunction«() // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." pipeline »uniquePipeline« {} // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." -schema »UniqueSchema« {} -// $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." segment »uniquePublicSegment«() {} // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." internal segment »uniqueInternalSegment«() {} @@ -61,10 +57,6 @@ pipeline »myPipeline« {} // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." pipeline »myPipeline« {} // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." -schema »MySchema« {} -// $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." -schema »MySchema« {} -// $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." segment »myPublicSegment«() {} // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." segment »myPublicSegment«() {} diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/other package.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/other package.sdsdev index 84389abf4..c59aef285 100644 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/other package.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/other package.sdsdev @@ -11,8 +11,6 @@ fun »uniqueFunction«() // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." pipeline »uniquePipeline« {} // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." -schema »UniqueSchema« {} -// $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." segment »uniquePublicSegment«() {} // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." internal segment »uniqueInternalSegment«() {} diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/safeds 1.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/safeds 1.sdsdev index 605fa9d5e..d7f403c83 100644 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/safeds 1.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/safeds 1.sdsdev @@ -17,8 +17,6 @@ enum »DuplicateEnum« fun »duplicateFunction«() // $TEST$ no error r"Multiple builtin declarations have the name '\w*'\." pipeline »duplicatePipeline« {} -// $TEST$ error "Multiple builtin declarations have the name 'DuplicateSchema'." -schema »DuplicateSchema« {} // $TEST$ error "Multiple builtin declarations have the name 'duplicatePublicSegment'." segment »duplicatePublicSegment«() {} // $TEST$ error "Multiple builtin declarations have the name 'duplicateInternalSegment'." diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/safeds 2.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/safeds 2.sdsdev index c0f4a34d0..19c08acd1 100644 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/safeds 2.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/safeds 2.sdsdev @@ -10,8 +10,6 @@ enum »DuplicateEnum« fun »duplicateFunction«() // $TEST$ no error r"Multiple builtin declarations have the name '\w*'\." pipeline »duplicatePipeline« {} -// $TEST$ error "Multiple builtin declarations have the name 'DuplicateSchema'." -schema »DuplicateSchema« {} // $TEST$ error "Multiple builtin declarations have the name 'duplicatePublicSegment'." segment »duplicatePublicSegment«() {} // $TEST$ error "Multiple builtin declarations have the name 'duplicateInternalSegment'." diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/same package.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/same package.sdsdev index ea17382ab..2e4bb2575 100644 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/same package.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/across files/same package.sdsdev @@ -10,8 +10,6 @@ enum »DuplicateEnum« fun »duplicateFunction«() // $TEST$ no error r"Multiple declarations in this package have the name '\w*'\." pipeline »duplicatePipeline« {} -// $TEST$ error "Multiple declarations in this package have the name 'DuplicateSchema'." -schema »DuplicateSchema« {} // $TEST$ error "Multiple declarations in this package have the name 'duplicatePublicSegment'." segment »duplicatePublicSegment«() {} // $TEST$ error "Multiple declarations in this package have the name 'duplicateInternalSegment'." diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in pipeline file/main.sds b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in pipeline file/main.sds index 06473da8e..84861f3a2 100644 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in pipeline file/main.sds +++ b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in pipeline file/main.sds @@ -46,13 +46,6 @@ fun »duplicateFunction«() // $TEST$ no error r"A declaration with name '\w*' exists already in this file\." fun »duplicateFunction«() -// $TEST$ no error r"A declaration with name '\w*' exists already in this file\." -schema »UniqueSchema« {} -// $TEST$ no error r"A declaration with name '\w*' exists already in this file\." -schema »DuplicateSchema« {} -// $TEST$ error r"A declaration with name '\w*' exists already in this file\." -schema »DuplicateSchema« {} - // $TEST$ no error r"A declaration with name '\w*' exists already in this file\." pipeline »uniquePipeline« {} @@ -79,7 +72,5 @@ enum »DuplicateDeclaration« fun »DuplicateDeclaration«() // $TEST$ error r"A declaration with name '\w*' exists already in this file\." pipeline »DuplicateDeclaration« {} -// $TEST$ error r"A declaration with name '\w*' exists already in this file\." -schema »DuplicateDeclaration« {} // $TEST$ error "A declaration with name 'DuplicateDeclaration' exists already in this file." segment »DuplicateDeclaration«() {} diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in schema/main.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in schema/main.sdsdev deleted file mode 100644 index 735d2be79..000000000 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in schema/main.sdsdev +++ /dev/null @@ -1,10 +0,0 @@ -package tests.validation.names.duplicates.inSchema - -schema S { - // $TEST$ no error r"A column with name '\w*' exists already\." - »"duplicateColumn"«: Int, - // $TEST$ error "A column with name 'duplicateColumn' exists already." - »"duplicateColumn"«: Int, - // $TEST$ no error r"A column with name '\w*' exists already\." - »"uniqueColumn"«: Int, -} diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in stub file/main.sdsstub b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in stub file/main.sdsstub index 867baa1fb..8300dadfb 100644 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in stub file/main.sdsstub +++ b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in stub file/main.sdsstub @@ -61,13 +61,6 @@ fun »duplicateFunction«() // $TEST$ error "A declaration with name 'duplicateFunction' exists already in this file." fun »duplicateFunction«() -// $TEST$ no error r"A declaration with name '\w*' exists already in this file\." -schema »UniqueSchema« {} -// $TEST$ no error r"A declaration with name '\w*' exists already in this file\." -schema »DuplicateSchema« {} -// $TEST$ error "A declaration with name 'DuplicateSchema' exists already in this file." -schema »DuplicateSchema« {} - // $TEST$ no error r"A declaration with name '\w*' exists already in this file\." pipeline »DuplicateDeclaration« {} @@ -81,5 +74,3 @@ class »DuplicateDeclaration« enum »DuplicateDeclaration« // $TEST$ error "A declaration with name 'DuplicateDeclaration' exists already in this file." fun »DuplicateDeclaration«() -// $TEST$ error "A declaration with name 'DuplicateDeclaration' exists already in this file." -schema »DuplicateDeclaration« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in test file/main.sdsdev b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in test file/main.sdsdev index acd73161c..ef93167aa 100644 --- a/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in test file/main.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/names/duplicates/in test file/main.sdsdev @@ -53,13 +53,6 @@ pipeline »duplicatePipeline« {} // $TEST$ error "A declaration with name 'duplicatePipeline' exists already in this file." pipeline »duplicatePipeline« {} -// $TEST$ no error r"A declaration with name '\w*' exists already in this file\." -schema »UniqueSchema« {} -// $TEST$ no error r"A declaration with name '\w*' exists already in this file\." -schema »DuplicateSchema« {} -// $TEST$ error "A declaration with name 'DuplicateSchema' exists already in this file." -schema »DuplicateSchema« {} - // $TEST$ no error r"A declaration with name '\w*' exists already in this file\." segment »uniqueSegment«() {} // $TEST$ no error r"A declaration with name '\w*' exists already in this file\." @@ -80,5 +73,3 @@ fun »DuplicateDeclaration«() pipeline »DuplicateDeclaration« {} // $TEST$ error "A declaration with name 'DuplicateDeclaration' exists already in this file." segment »DuplicateDeclaration«() {} -// $TEST$ error "A declaration with name 'DuplicateDeclaration' exists already in this file." -schema »DuplicateDeclaration« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/other/declarations/placeholders/alias/main.sdsdev b/packages/safe-ds-lang/tests/resources/validation/other/declarations/placeholders/alias/main.sdsdev index fe1b02307..6e1d4a85b 100644 --- a/packages/safe-ds-lang/tests/resources/validation/other/declarations/placeholders/alias/main.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/other/declarations/placeholders/alias/main.sdsdev @@ -16,8 +16,6 @@ fun myFunction() pipeline myPipeline {} -schema MySchema {} - segment mySegment1() {} segment mySegment2(myParameter: Int) { @@ -44,8 +42,6 @@ segment mySegment2(myParameter: Int) { // $TEST$ no error "Aliases are not allowed to provide a cleaner graphical view." val »i1«, val »i2« = myPlaceholder; // $TEST$ no error "Aliases are not allowed to provide a cleaner graphical view." - val »j« = MySchema; - // $TEST$ no error "Aliases are not allowed to provide a cleaner graphical view." val »k« = mySegment1; // $TEST$ no error "Aliases are not allowed to provide a cleaner graphical view." val »l« = unresolved; diff --git a/packages/safe-ds-lang/tests/resources/validation/other/expressions/references/target/main.sdsdev b/packages/safe-ds-lang/tests/resources/validation/other/expressions/references/target/main.sdsdev index 1d2b7fac2..df1d46327 100644 --- a/packages/safe-ds-lang/tests/resources/validation/other/expressions/references/target/main.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/other/expressions/references/target/main.sdsdev @@ -4,15 +4,10 @@ annotation MyAnnotation pipeline myPipeline {} -schema MySchema {} - segment mySegment() { // $TEST$ error "An annotation must not be the target of a reference." »MyAnnotation«; // $TEST$ error "A pipeline must not be the target of a reference." »myPipeline«; - - // $TEST$ error "A schema must not be the target of a reference." - »MySchema«; } diff --git a/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in test files/everything is allowed (no pipeline errors).sdsdev b/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in dev files/everything is allowed (no pipeline errors).sdsdev similarity index 87% rename from packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in test files/everything is allowed (no pipeline errors).sdsdev rename to packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in dev files/everything is allowed (no pipeline errors).sdsdev index d5fe1da76..852ce6460 100644 --- a/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in test files/everything is allowed (no pipeline errors).sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in dev files/everything is allowed (no pipeline errors).sdsdev @@ -1,4 +1,4 @@ -package tests.validation.other.modules.declarationsInTestFiles +package tests.validation.other.modules.declarationsInDevFiles // $TEST$ no error "A pipeline file must only declare pipelines and segments." annotation »MyAnnotation« @@ -24,8 +24,6 @@ enum »MyEnum« { } // $TEST$ no error "A pipeline file must only declare pipelines and segments." fun »myFunction«() -// $TEST$ no error "A pipeline file must only declare pipelines and segments." -schema »MySchema« {} // $TEST$ no error "A pipeline file must only declare pipelines and segments." pipeline »myPipeline« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in test files/everything is allowed (no stub errors).sdsdev b/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in dev files/everything is allowed (no stub errors).sdsdev similarity index 92% rename from packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in test files/everything is allowed (no stub errors).sdsdev rename to packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in dev files/everything is allowed (no stub errors).sdsdev index cae23b56c..db4f1d779 100644 --- a/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in test files/everything is allowed (no stub errors).sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in dev files/everything is allowed (no stub errors).sdsdev @@ -29,5 +29,3 @@ enum »MyEnum« { } // $TEST$ no error "A stub file must not declare pipelines or segments." fun »myFunction«() -// $TEST$ no error "A stub file must not declare pipelines or segments." -schema »MySchema« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in pipeline files/main.sds b/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in pipeline files/main.sds index 2396982ad..56c8424a1 100644 --- a/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in pipeline files/main.sds +++ b/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in pipeline files/main.sds @@ -28,6 +28,4 @@ fun »myFunction«() // $TEST$ no error "A pipeline file must only declare pipelines and segments." pipeline »myPipeline« {} // $TEST$ no error "A pipeline file must only declare pipelines and segments." -schema »MySchema« {} -// $TEST$ no error "A pipeline file must only declare pipelines and segments." segment »mySegment«() {} diff --git a/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in stub files/main.sdsstub b/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in stub files/main.sdsstub index 29a5e4363..759acf1e9 100644 --- a/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in stub files/main.sdsstub +++ b/packages/safe-ds-lang/tests/resources/validation/other/modules/declarations in stub files/main.sdsstub @@ -29,5 +29,3 @@ enum »MyEnum« { } // $TEST$ no error "A stub file must not declare pipelines or segments." fun »myFunction«() -// $TEST$ no error "A stub file must not declare pipelines or segments." -schema »MySchema« {} diff --git a/packages/safe-ds-lang/tests/resources/validation/types/checking/call receiver/main.sdsdev b/packages/safe-ds-lang/tests/resources/validation/types/checking/call receiver/main.sdsdev index 979cf38d4..230d8acf8 100644 --- a/packages/safe-ds-lang/tests/resources/validation/types/checking/call receiver/main.sdsdev +++ b/packages/safe-ds-lang/tests/resources/validation/types/checking/call receiver/main.sdsdev @@ -18,8 +18,6 @@ fun myFunction() pipeline myPipeline {} -schema MySchema {} - segment mySegment1() {} segment mySegment2( @@ -65,12 +63,6 @@ segment mySegment2( val myPipelineAlias = MyPipeline; »myPipelineAlias«(); - // $TEST$ no error "This expression is not callable." - »MySchema«(); - // $TEST$ error "This expression is not callable." - val mySchemaAlias = MySchema; - »mySchemaAlias«(); - // $TEST$ no error "This expression is not callable." »mySegment1«(); diff --git a/packages/safe-ds-vscode/src/extension/eda/apis/runnerApi.ts b/packages/safe-ds-vscode/src/extension/eda/apis/runnerApi.ts index 80dbee103..ffa2ae7f9 100644 --- a/packages/safe-ds-vscode/src/extension/eda/apis/runnerApi.ts +++ b/packages/safe-ds-vscode/src/extension/eda/apis/runnerApi.ts @@ -484,7 +484,7 @@ export class RunnerApi { } private sdsStringForTableSchema(tablePlaceholder: string, newPlaceholderName: string) { - return 'val ' + newPlaceholderName + ' = ' + tablePlaceholder + '.^schema; \n'; + return 'val ' + newPlaceholderName + ' = ' + tablePlaceholder + '.schema; \n'; } //#endregion diff --git a/packages/safe-ds-vscode/syntaxes/safe-ds-dev.tmLanguage.json b/packages/safe-ds-vscode/syntaxes/safe-ds-dev.tmLanguage.json index 98c81c34a..917834570 100644 --- a/packages/safe-ds-vscode/syntaxes/safe-ds-dev.tmLanguage.json +++ b/packages/safe-ds-vscode/syntaxes/safe-ds-dev.tmLanguage.json @@ -8,7 +8,7 @@ }, { "name": "storage.type.safe-ds-dev", - "match": "\\b(annotation|attr|class|enum|fun|package|pipeline|schema|segment|val)\\b" + "match": "\\b(annotation|attr|class|enum|fun|package|pipeline|segment|val)\\b" }, { "name": "storage.modifier.safe-ds-dev", diff --git a/packages/safe-ds-vscode/syntaxes/safe-ds-stub.tmLanguage.json b/packages/safe-ds-vscode/syntaxes/safe-ds-stub.tmLanguage.json index 2e5100b2f..c210c42cc 100644 --- a/packages/safe-ds-vscode/syntaxes/safe-ds-stub.tmLanguage.json +++ b/packages/safe-ds-vscode/syntaxes/safe-ds-stub.tmLanguage.json @@ -8,7 +8,7 @@ }, { "name": "storage.type.safe-ds-stub", - "match": "\\b(annotation|attr|class|enum|fun|package|schema|val)\\b" + "match": "\\b(annotation|attr|class|enum|fun|package|val)\\b" }, { "name": "storage.modifier.safe-ds-stub", diff --git a/packages/safe-ds-vscode/syntaxes/safe-ds.tmLanguage.json b/packages/safe-ds-vscode/syntaxes/safe-ds.tmLanguage.json index 3cfc67340..b82ff6de0 100644 --- a/packages/safe-ds-vscode/syntaxes/safe-ds.tmLanguage.json +++ b/packages/safe-ds-vscode/syntaxes/safe-ds.tmLanguage.json @@ -9,7 +9,7 @@ { "name": "storage.type.safe-ds", - "match": "\\b(package|pipeline|schema|segment|val)\\b" + "match": "\\b(package|pipeline|segment|val)\\b" }, { "name": "storage.modifier.safe-ds",