You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/visual-programming/source/widgets/data/neighbors.md
+11-14Lines changed: 11 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,21 +3,18 @@ Neighbors
3
3
4
4
Compute nearest neighbors in data according to reference.
5
5
6
-
Inputs
7
-
Data
8
-
An input data set.
9
-
Reference
10
-
A reference data instance for neighbor computation.
6
+
**Inputs**
11
7
12
-
Outputs
13
-
Neighbors
14
-
A data table of nearest neighbors according to reference.
8
+
- Data: An input data set.
9
+
- Reference: A reference data instance for neighbor computation.
15
10
11
+
**Outputs**
12
+
13
+
- Neighbors: A data table of nearest neighbors according to reference.
16
14
17
15
The **Neighbors** widget computes nearest neighbors for a given reference and for a given distance measure.
18
16
19
-
.. figure:: images/Neighbors-stamped.png
20
-
:scale:50%
17
+

21
18
22
19
1. Information on the input data.
23
20
2. Distance measure for computing neighbors. Supported measures are: Euclidean, Manhattan, Mahalanobis, Cosine, Jaccard, Spearman, absolute Spearman, Pearson, absolute Pearson. If *Exclude references* is ticked, data instances that are highly similar to the reference (distance < 1e-5), will be excluded.
@@ -28,14 +25,14 @@ The **Neighbors** widget computes nearest neighbors for a given reference and fo
28
25
Examples
29
26
--------
30
27
31
-
In the first example, we used *iris* data and passed it to **Neighbors** and to **Data Table**. In **Data Table**, we selected an instance of iris, that will serve as our reference, meaning we wish to retrieve 10 closest examples to the select data instance. We connect **Data Table** to **Neighbors** as well.
28
+
In the first example, we used *iris* data and passed it to **Neighbors** and to [Data Table](../data/datatable.md). In **Data Table**, we selected an instance of iris, that will serve as our reference, meaning we wish to retrieve 10 closest examples to the select data instance. We connect **Data Table** to **Neighbors** as well.
32
29
33
30
We can observe the results of neighbor computation in **Data Table (1)**, where we can see 10 closest images to our selected iris flower.
34
31
35
-
.. figure:: images/Neighbors-Example1.png
32
+

36
33
37
-
Another example requires the installation of Image Analytics add-on. We loaded 15 paintings from famous painters with **Import Images** widget and passed them to **Image Embedding**, where we selected *Painters* embedder.
34
+
Another example requires the installation of Image Analytics add-on. We loaded 15 paintings from famous painters with **Import Images** widget and passed them to **Image Embedding**, where we selected *Painters* embedder.
38
35
39
36
Then the procedure is the same as above. We passed embedded images to **Image Viewer** and selected a painting from Monet to serve as our reference image. We passed the image to **Neighbors**, where we set the distance measure to *cosine*, ticked off *Exclude reference* and set the neighbors to 2. This allows us to find the actual closest neighbor to a reference painting and observe them side by side in **Image Viewer (1)**.
Copy file name to clipboardExpand all lines: doc/visual-programming/source/widgets/visualize/lineplot.md
+11-14Lines changed: 11 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,22 +3,19 @@ Line Plot
3
3
4
4
Visualization of data profiles (e.g., time series).
5
5
6
-
Inputs
7
-
Data
8
-
input dataset
9
-
Data Subset
10
-
subset of instances
6
+
**Inputs**
11
7
12
-
Outputs
13
-
Selected Data
14
-
instances selected from the plot
15
-
Data
16
-
data with an additional column showing whether a point is selected
8
+
- Data: input dataset
9
+
- Data Subset: subset of instances
17
10
11
+
**Outputs**
18
12
19
-
`Line plot <https://en.wikipedia.org/wiki/Line_chart>`_ a type of plot which displays the data as a series of points, connected by straight line segments. It only works for numerical data, while categorical can be used for grouping of the data points.
13
+
- Selected Data: instances selected from the plot
14
+
- Data: data with an additional column showing whether a point is selected
20
15
21
-
.. figure:: images/LinePlot-stamped.png
16
+
[Line plot](https://en.wikipedia.org/wiki/Line_chart) a type of plot which displays the data as a series of points, connected by straight line segments. It only works for numerical data, while categorical can be used for grouping of the data points.
17
+
18
+

22
19
23
20
1. Information on the input data.
24
21
2. Select what you wish to display:
@@ -35,6 +32,6 @@ Example
35
32
36
33
**Line Plot** is a standard visualization widget, which displays data profiles, normally of ordered numerical data. In this simple example, we will display the *iris* data in a line plot, grouped by the iris attribute. The plot shows how petal length nicely separates between class values.
37
34
38
-
If we observe this in a **Scatter Plot**, we can confirm this is indeed so. Petal length is an interesting attribute for separation of classes, especially when enhanced with petal width, which is also nicely separated in the line plot.
35
+
If we observe this in a [Scatter Plot](../visualize/scatterplot.md), we can confirm this is indeed so. Petal length is an interesting attribute for separation of classes, especially when enhanced with petal width, which is also nicely separated in the line plot.
0 commit comments