Skip to content

Commit 54c32b2

Browse files
committed
2 parents 1ac992a + 10143fe commit 54c32b2

File tree

3 files changed

+81
-29
lines changed

3 files changed

+81
-29
lines changed

doc/DataSet.yaml

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,75 @@
66
# under the European Union’s Horizon 2020 research and innovation programme
77
# (grant agreement No 725899).
88
---
9-
digest: Container for labelled, multidimensional data
10-
sc-categries: UGens>FluidManipulation
9+
digest: A set of data associated with identifiers.
10+
sc-categories: UGens>FluidManipulation
1111
sc-related: Classes/FluidLabelSet, Classes/FluidKDTree, Classes/FluidKNN, Classes/FluidKMeans
1212
see-also:
1313
description: |
14-
A container associating labels with multi-dimensional data. FluidDataSet is identified by its name.
14+
FluidDataSet is a container associating identifiers with data.
1515
1616
parameters:
1717
name:
1818
description: |
19-
A symbol with the name of the DataSet. ​
19+
Symbol with the name of the DataSet. ​
20+
2021
messages:
2122
addPoint:
2223
description: |
23-
Add a new point to the data set. The dimensionality of the DataSet is governed by the size of the first point added. Will report an error if the label already exists, or if the size of the data does not match the dimensionality of the DataSet.
24+
Add a new point to the data set. The dimensionality of the DataSet is governed by the size of the first point added. Will report an error if the identifier already exists, or if the size of the data does not match the dimensionality of the DataSet.
2425
args:
25-
- name: label
26+
- name: identifier
2627
description: |
27-
A symbol or string with the label for the new point.
28+
A symbol or string with the identifier for the new point.
2829
- name: buffer
2930
description: |
3031
A |buffer| with the new data point.
3132
- name: action
3233
description: |
33-
A function to run when the point has been added. ​​
34+
A function to run when the point has been added.
35+
​​
3436
updatePoint:
3537
description: |
36-
Update an existing label's data. Will report an error if the label doesn't exist, or if the size of the data does not match the given dimensionality of the DataSet.
38+
Update an existing identifier's data. Will report an error if the identifier doesn't exist, or if the size of the data does not match the given dimensionality of the DataSet.
3739
args:
40+
- name: identifier
41+
description: |
42+
Symbol or string with the identifier for this point.
43+
- name: buffer
44+
description: |
45+
A |buffer| with the new data point.
46+
3847
getPoint:
3948
description: |
40-
Retrieve a point from the data set into a |buffer|. Will report an error if the label or buffer doesn't exist​.
49+
Retrieve a point from the data set into a |buffer|. Will report an error if the identifier or buffer does not exist​.
4150
args:
51+
- name: identifier
52+
description: |
53+
Symbol or string with the identifier for the point to be retrieved.
54+
- name: buffer
55+
description: |
56+
A |buffer| where the associated data will be stored.
57+
4258
deletePoint:
4359
description: |
44-
Remove a point from the data set. Will report an error if the label doesn't exist. ​​
60+
Remove a point from the data set. Will report an error if the identifier doesn't exist. ​​
4561
args:
62+
- name: identifier
63+
description: |
64+
Symbol or string with the identifier to be deleted.
65+
4666
setPoint:
4767
description: |
48-
Set the point: if the label exists, this method behaves like updatePoint; if the label doesn't exist, behaves like addPoint.
68+
Set the point: if the identifier exists, this method behaves like updatePoint; if the identifier doesn't exist, behaves like addPoint.
4969
args:
70+
- name: identifier
71+
description: |
72+
Symbol or string with the identifier for this point.
73+
74+
- name: buffer
75+
description: |
76+
A |buffer| containing the new data for the point.
77+
5078
clear:
5179
description: |
5280
Empty the data set. ​
@@ -95,14 +123,14 @@ messages:
95123
A function to run when the point has been added.
96124
merge:
97125
description: |
98-
Merge sourceDataSet in the current DataSet. It will update the value of points with the same label if overwrite is set to 1. ​To add columns instead, see the 'transformJoin' method of FluidDataSetQuery.
126+
Merge sourceDataSet in the current DataSet. It will update the value of points with the same identifier if overwrite is set to 1. ​To add columns instead, see the 'transformJoin' method of FluidDataSetQuery.
99127
args:
100128
- name: sourceDataSet
101129
description: |
102130
The source DataSet to be merged.
103131
- name: overwrite
104132
description: |
105-
A flag to allow overwrite points with the same label.
133+
A flag to allow overwrite points with the same identifier.
106134
- name: action
107135
description: |
108136
A function to run when the merge has happened. ​​

doc/LabelSet.yaml

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,72 @@
66
# under the European Union’s Horizon 2020 research and innovation programme
77
# (grant agreement No 725899).
88
---
9-
digest: A set of labels associated with IDs
9+
digest: A set of labels associated with identifiers.
1010
sc-categries: FluidManipulation
1111
sc-related: Classes/FluidDataSet, Classes/FluidKMeans
12-
see-also:
12+
see-also: DataSet, DataSetQuery
1313
description: |
14-
FluidLabelSet is a container of associations between labels (from a :fluid-obj:`DataSet`) and IDs, for instance from some clustering or classification of the points in a data set.
14+
FluidLabelSet is a container of associating identifiers with labels.
1515
1616
parameters:
1717
name:
1818
description: |
19-
symbol with the label set's name.
19+
Symbol with the FluidLabelSet name.
2020
messages:
2121
addLabel:
2222
description: |
23-
Add a label to the label set.
23+
Add a label to the FluidLabelSet.
2424
args:
25-
- name: id
25+
- name: identifier
2626
description: |
27-
symbol or string with the ID for this label.
27+
Symbol or string with the identifier for this label.
2828
- name: label
2929
description: |
30-
symbol or string with the label to add.
30+
Symbol or string with the label to add.
3131
- name: action
3232
description: |
33-
function to run when the operation completes.
33+
Function to run when the operation completes.
34+
3435
updateLabel:
3536
description: |
36-
Change a label in the label set.
37+
Update a label for a given identifier in the label set.
3738
args:
39+
- name: identifier
40+
description: |
41+
Symbol or string with the identifier for this label.
42+
- name: label
43+
description: |
44+
Symbol or string with the label to update.
45+
46+
setLabel:
47+
description: |
48+
Set a label for a given identifier.
49+
args:
50+
- name: identifier
51+
description: |
52+
Symbol or string with the identifier for this label.
53+
- name: label
54+
description: |
55+
Symbol or string with the label to update.
56+
3857
getLabel:
3958
description: |
40-
Retrieve the label associated with an ID. Will report an error if the ID isn't present in the set.
59+
Retrieve the label associated with an identifier. Will report an error if the identifier is not present in the set.
4160
args:
61+
- name: identifier
62+
description: |
63+
Symbol or string with the identifier for the label to be retrieved.
64+
4265
deleteLabel:
4366
description: |
44-
Remove a id-label pair from the label set.
67+
Delete a identifier-label pair.
4568
args:
69+
- name: identifier
70+
description: |
71+
Symbol or string with the identifier to be deleted.
4672
clear:
4773
description: |
48-
Empty the label set.
74+
Empty the label set and reset to a clean state.
4975
args:
5076
print:
5177
description: |

doc/Normalize.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ see-also:
1313
description: |
1414
Normalize the entries of a :fluid-obj:`DataSet`, or normalize a data point according to the learned bounds of a data set.
1515
16-
See http://www.faqs.org/faqs/ai-faq/neural-nets/part2/section-16.html
17-
1816
parameters:
1917
min:
2018
description: |

0 commit comments

Comments
 (0)