Get desktop application:
View/edit binary Protocol Buffers messages
Supported attribute types.
Used in:
NOTE: ATTR_TYPE_UNSPECIFIED could be used as a child of a union struct with no further attribute(s).
FLOAT
INT
STRING
BOOL
FLOATS
INTS
STRINGS
BOOLS
A specialized AT_STRINGS.
The value of an attribute
Used in: , , ,
FLOAT
INT NOTE(junfeng): "is" is preserved by Python. Replaced with "i64".
STRING
BOOL
FLOATS
INTS
STRINGS
BOOLS
Indicates the value is missing explicitly.
Describe an attribute. There are three kinds of attribute. - Atomic Attributes: a solid field for users to fill-in. - Struct Attributes: a group of closely related attributes(including atomic, union and struct attributes). - Union Attributes: a group of mutually exlusive attributes(including union, group and dummy atomic attributes). Users should select only one children to fill-in. An atmoic attribute with ATTR_TYPE_UNSPECIFIED AttrType is regarded as dummy, which represents a selection of union without further configurations.
Used in: ,
Indicates the ancestors of a node, e.g. `[name_a, name_b, name_c]` means the path prefixes of current Attribute is `name_a/name_b/name_c/`. Only `^[a-zA-Z0-9_.-]*$` is allowed. `input` and `output` are reserved.
Must be unique in the same level just like Linux file systems. Only `^[a-zA-Z0-9_.-]*$` is allowed. `input` and `output` are reserved.
Extras for custom protobuf attribute
Extras for an atomic attribute. Including: `AT_FLOAT | AT_INT | AT_STRING | AT_BOOL | AT_FLOATS | AT_INTS | AT_STRINGS | AT_BOOLS`.
Used in:
Only valid when type is `AT_FLOATS \| AT_INTS \| AT_STRINGS \| AT_BOOLS`.
Only valid when type is `AT_FLOATS \| AT_INTS \| AT_STRINGS \| AT_BOOLS`.
If True, when Atmoic Attr is not provided or is_na, default_value would be used. Else, Atmoic Attr must be provided.
A reasonable default for this attribute if the user does not supply a value.
Only valid when type is `AT_FLOAT \| AT_INT \| AT_STRING \| AT_FLOATS \| AT_INTS \| AT_STRINGS`. Please use list fields of AtomicParameter, i.e. `ss`, `i64s`, `fs`. If the attribute is a list, allowed_values is applied to each element.
Only valid when type is `AT_FLOAT \| AT_INT \| AT_FLOATS \| AT_INTS `. If the attribute is a list, lower_bound is applied to each element.
Only valid when type is `AT_FLOAT \| AT_INT \| AT_FLOATS \| AT_INTS `. If the attribute is a list, upper_bound is applied to each element.
Extras for a union attribute group.
Used in:
The default selected child.
A list of components
The definition of a comp.
Used in:
Namespace of the comp.
Should be unique among all comps of the same domain.
Version of the comp.
Displays multiple read-only fields in groups.
Used in:
Name of the Descriptions.
Used in:
Name of the field.
Must be one of bool/int/float/str
A public record for a general distributed data. The type of this distributed data, should be meaningful to components. The concrete data format (include public and private parts) is defined by other protos. Suggested internal types, i.e. - sf.table.vertical_table represent a secretflow vertical table - sf.table.individual_table represent a secretflow individual table
Used in: , ,
The name of this distributed data.
Type.
Describe the system information that used to generate this distributed data.
Public information, known to all parties. i.e. VerticalTable.
Remote data references.
A reference to a data that is stored in the remote path.
Used in:
The path information relative to StorageConfig of the party.
The owner party.
The storage format, support: - csv represent a comma-separated value format file - orc represent a apache orc format file
A list of strings that represent NULL value. Only take effect when format is csv
A division or a section of a page.
Used in: ,
Name of the Div.
Used in:
Supported: descriptions, table, div.
IndividualTable describes a table owned by a single party.
Schema.
If -1, the number is unknown.
Define an input/output for component.
Used in:
should be unique among all IOs of the component.
Must be one of DistData.type in data.proto
Only valid for tables. The attribute path for a TableAttrDef is `{input\|output}/{IoDef name}/{TableAttrDef name}`.
An extra attribute for a table. If provided in a IoDef, e.g. ```json { "name": "feature", "types": [ "int", "float" ], "col_min_cnt_inclusive": 1, "col_max_cnt": 3, "attrs": [ { "name": "bucket_size", "type": "AT_INT" } ] } ``` means after a user provide a table as IO, they should also specify cols as "feature": - col_min_cnt_inclusive is 1: At least 1 col to be selected. - col_max_cnt_inclusive is 3: At most 3 cols to be selected. And afterwards, user have to fill an int attribute called bucket_size for each selected cols.
Used in:
Must be unique among all attributes for the table.
Accepted col data types. Please check comments of TableSchema in data.proto.
inclusive
extra attribute for specified col.
Evaluate a node. - CompListDef + StorageConfig + NodeEvalParam + other extra configs -> NodeEvalResult NodeEvalParam contains all the information to evaluate a component.
Domain of the component.
Name of the component.
Version of the component.
The path of attributes. The attribute path for a TableAttrDef is `(input\|output)/(IoDef name)/(TableAttrDef name)(/(column name)(/(extra attributes))?)?`.
The value of the attribute. Must match attr_paths.
The input data, the order of inputs must match inputs in ComponentDef. NOTE: Names of DistData doesn't need to match those of inputs in ComponentDef definition.
The output data uris, the order of output_uris must match outputs in ComponentDef.
If not empty: 1. Component will try to save checkpoint during training if the component supports it. 2. Component will try to reload checkpoint when starting to continue the previous training. If the checkpoint does not exist or cannot be loaded, training will be starting from scratch.
NodeEvalResult contains outputs of a component evaluation.
Output data.
Name of the Report.
Structed error detail (JSON encoded message).
A StorageConfig specifies the root for all data for one party. - At this moment, only local_fs / S3 compatible object storage is supported - We would support databases like mysql etc. in future.
enum[local_fs, s3]
local_fs config.
s3 config
For local_fs.
Used in:
Working directory.
For S3 compatible object storage
Used in:
endpoint https://play.min.io or http://127.0.0.1:9000 with scheme
the bucket name of the oss datasource
the prefix of the oss datasource. e.g. data/traindata/
access key
access secret
virtual_host is the same as AliyunOSS/AWS S3's virtualhost , default true
optional enum[s3v2,s3v4]
Describe the application related to data.
Used in:
The application name. Supported: `secretflow`
Meta for application.
A page of a report.
Used in:
Name of the Tab.
Displays rows of data.
Used in:
Name of the Table.
Used in:
Must be one of bool/int/float/str
Used in:
The schema of a table. - A col must be one of `id | feature | label`. By default, it should be a feature. - All names must match the regexp `[A-Za-z0-9.][A-Za-z0-9_>./]*`. - All data type must be one of * int8 * int16 * int32 * int64 * uint8 * uint16 * uint32 * uint64 * float16 * float32 * float64 * bool * int * float * str
Used in: ,
Id column name(s). Optional, can be empty.
Feature column name(s).
Label column name(s). Optional, can be empty.
Id column data type(s). Len(id) should match len(id_types).
Feature column data type(s). Len(features) should match len(feature_types).
Label column data type(s). Len(labels) should match len(label_types).
VerticalTable describes a virtual vertical partitioning table from multiple parties.
The vertical partitioned slices' schema. Must match data_refs in the parent DistData message.
If -1, the number is unknown.