-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for Select by Data Index
- Loading branch information
1 parent
e8559e9
commit a8072fb
Showing
5 changed files
with
36 additions
and
0 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
Binary file added
BIN
+2.34 KB
doc/visual-programming/source/widgets/data/icons/select-by-data-index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+204 KB
...visual-programming/source/widgets/data/images/Select-by-Data-Index-Example1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.82 KB
doc/visual-programming/source/widgets/data/images/Select-by-Data-Index-stamped.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
doc/visual-programming/source/widgets/data/select-by-data-index.rst
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,35 @@ | ||
Select by Data Index | ||
==================== | ||
|
||
Match instances by index from data subset. | ||
|
||
Inputs | ||
Data | ||
reference data set | ||
Data Subset | ||
subset to match | ||
|
||
Outputs | ||
Data | ||
subset from reference data set that matches indices from subset data | ||
|
||
|
||
**Select by Data Index** enables matching the data by indices. Each row in a data set has an index and given a subset, this widget can match these indices to indices from the reference data. Most often it is used to retrieve the original data from the transformed data (say, from PCA space). | ||
|
||
.. figure:: images/Select-by-data-index-stamped.png | ||
:scale: 50% | ||
|
||
1. Information on the reference data set. This data is used as index reference. | ||
2. Information on the data subset. The indices of this data set are used to find matching data in the reference data set. Matching data are on the output by default. | ||
|
||
Example | ||
------- | ||
|
||
A typical use of **Select by Data Index** is to retrieve the original data after a transformation. We will load *iris.tab* data in the **File** widget. Then we will transform this data with **PCA**. We can project the transformed data in a **Scatter Plot**, where we can only see PCA components and not the original features. | ||
|
||
Now we will select an interesting subset (we could also select the entire data set). If we observe it in a **Data Table**, we can see that the data is transformed. If we would like to see this data with the original features, we will have to retrieve them with **Select by Data Index**. | ||
|
||
Connect the original data and the subset from **Scatter Plot** to **Select by Data Index**. The widget will match the indices of the subset with the indices of the reference (original) data and output the matching reference data. A final inspection in another **Data Table** confirms the data on the output is from the original data space. | ||
|
||
.. figure:: images/Select-by-Data-Index-Example1.png | ||
|