-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1021 ### Summary of Changes * New annotation `@Category` to assign a data science category (data import, data preparation, ...) to a declaration. This can be used to group declarations in the toolbox of the upcoming graphical view/editor. The documentation generator could also use this information. * New annotation `@Tags` to assign tags to a declaration. This can be used for filtering in the upcoming graphical view/editor. Again, the documentation generator could also include this information somewhere.
- Loading branch information
1 parent
09ca1cf
commit e45a4c9
Showing
39 changed files
with
587 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# :test_tube:{ title="Experimental" } `#!sds annotation` Category {#safeds.lang.Category data-toc-label='Category'} | ||
|
||
The category of a declaration. It can be used for grouping. | ||
|
||
**Parameters:** | ||
|
||
| Name | Type | Description | Default | | ||
|------|------|-------------|---------| | ||
| `category` | [`DataScienceCategory`][safeds.lang.DataScienceCategory] | - | - | | ||
|
||
**Targets:** | ||
|
||
- `Class` | ||
- `Enum` | ||
- `Function` | ||
- `Segment` | ||
|
||
??? quote "Stub code in `ideIntegration.sdsstub`" | ||
|
||
```sds linenums="20" | ||
annotation Category(category: DataScienceCategory) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# `#!sds enum` DataScienceCategory {#safeds.lang.DataScienceCategory data-toc-label='DataScienceCategory'} | ||
|
||
A step in the data science process. | ||
|
||
??? quote "Stub code in `ideIntegration.sdsstub`" | ||
|
||
```sds linenums="25" | ||
enum DataScienceCategory { | ||
/** | ||
* Load your data into the program. | ||
*/ | ||
DataImport | ||
|
||
/** | ||
* Prepare your data for analysis. | ||
*/ | ||
DataPreparation | ||
|
||
/** | ||
* Explore your data. | ||
*/ | ||
DataExploration | ||
|
||
/** | ||
* Save your data for later use. | ||
*/ | ||
DataExport | ||
|
||
/** | ||
* Configure a model and train it on your data. | ||
*/ | ||
Modeling | ||
|
||
/** | ||
* Evaluate the performance of your model. | ||
*/ | ||
ModelEvaluation | ||
} | ||
``` | ||
|
||
## DataExploration {#safeds.lang.DataScienceCategory.DataExploration data-toc-label='DataExploration'} | ||
|
||
Explore your data. | ||
|
||
## DataExport {#safeds.lang.DataScienceCategory.DataExport data-toc-label='DataExport'} | ||
|
||
Save your data for later use. | ||
|
||
## DataImport {#safeds.lang.DataScienceCategory.DataImport data-toc-label='DataImport'} | ||
|
||
Load your data into the program. | ||
|
||
## DataPreparation {#safeds.lang.DataScienceCategory.DataPreparation data-toc-label='DataPreparation'} | ||
|
||
Prepare your data for analysis. | ||
|
||
## ModelEvaluation {#safeds.lang.DataScienceCategory.ModelEvaluation data-toc-label='ModelEvaluation'} | ||
|
||
Evaluate the performance of your model. | ||
|
||
## Modeling {#safeds.lang.DataScienceCategory.Modeling data-toc-label='Modeling'} | ||
|
||
Configure a model and train it on your data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# :test_tube:{ title="Experimental" } `#!sds annotation` Tags {#safeds.lang.Tags data-toc-label='Tags'} | ||
|
||
Tags to associate with a declaration. They can be used for filtering. | ||
|
||
**Parameters:** | ||
|
||
| Name | Type | Description | Default | | ||
|------|------|-------------|---------| | ||
| `tags` | [`List<String>`][safeds.lang.List] | - | - | | ||
|
||
**Targets:** | ||
|
||
- `Annotation` | ||
- `Class` | ||
- `Enum` | ||
- `Function` | ||
- `Pipeline` | ||
- `Schema` | ||
- `Segment` | ||
|
||
??? quote "Stub code in `ideIntegration.sdsstub`" | ||
|
||
```sds linenums="70" | ||
annotation Tags(tags: List<String>) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.