forked from secretflow/secretflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomp_list.json
3554 lines (3554 loc) · 102 KB
/
comp_list.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "secretflow",
"desc": "First-party SecretFlow components.",
"version": "0.0.1",
"comps": [
{
"domain": "data_filter",
"name": "condition_filter",
"desc": "Filter the table based on a single column's values and condition.\nWarning: the party responsible for condition filtering will directly send the sample distribution to other participants.\nMalicious participants can obtain the distribution of characteristics by repeatedly calling with different filtering values.\nAudit the usage of this component carefully.",
"version": "0.0.1",
"attrs": [
{
"name": "comparator",
"desc": "Comparator to use for comparison. Must be one of '==','<','<=','>','>=','IN'",
"type": "AT_STRING",
"atomic": {
"allowedValues": {
"ss": [
"==",
"<",
"<=",
">",
">=",
"IN"
]
}
}
},
{
"name": "value_type",
"desc": "Type of the value to compare with. Must be one of ['STRING', 'FLOAT']",
"type": "AT_STRING",
"atomic": {
"allowedValues": {
"ss": [
"STRING",
"FLOAT"
]
}
}
},
{
"name": "bound_value",
"desc": "Input a str with values separated by ','. List of values to compare with. If comparator is not 'IN', we only support one element in this list.",
"type": "AT_STRING",
"atomic": {}
},
{
"name": "float_epsilon",
"desc": "Epsilon value for floating point comparison. WARNING: due to floating point representation in computers, set this number slightly larger if you want filter out the values exactly at desired boundary. for example, abs(1.001 - 1.002) is slightly larger than 0.001, and therefore may not be filter out using == and epsilson = 0.001",
"type": "AT_FLOAT",
"atomic": {
"isOptional": true,
"defaultValue": {
"f": 1e-06
},
"lowerBoundEnabled": true,
"lowerBound": {},
"lowerBoundInclusive": true
}
}
],
"inputs": [
{
"name": "in_ds",
"desc": "Input vertical table.",
"types": [
"sf.table.vertical_table"
],
"attrs": [
{
"name": "features",
"desc": "Feature(s) to operate on.",
"colMinCntInclusive": "1",
"colMaxCntInclusive": "1"
}
]
}
],
"outputs": [
{
"name": "out_ds",
"desc": "Output vertical table that satisfies the condition.",
"types": [
"sf.table.vertical_table"
]
},
{
"name": "out_ds_else",
"desc": "Output vertical table that does not satisfies the condition.",
"types": [
"sf.table.vertical_table"
]
}
]
},
{
"domain": "data_filter",
"name": "feature_filter",
"desc": "Drop features from the dataset.",
"version": "0.0.1",
"inputs": [
{
"name": "in_ds",
"desc": "Input vertical table.",
"types": [
"sf.table.vertical_table"
],
"attrs": [
{
"name": "drop_features",
"desc": "Features to drop."
}
]
}
],
"outputs": [
{
"name": "out_ds",
"desc": "Output vertical table.",
"types": [
"sf.table.vertical_table"
]
}
]
},
{
"domain": "data_prep",
"name": "psi",
"desc": "PSI between two parties.",
"version": "0.0.2",
"attrs": [
{
"name": "protocol",
"desc": "PSI protocol.",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "PROTOCOL_RR22"
},
"allowedValues": {
"ss": [
"PROTOCOL_RR22",
"PROTOCOL_ECDH",
"PROTOCOL_KKRT"
]
}
}
},
{
"name": "disable_alignment",
"desc": "It true, output is not promised to be aligned. Warning: enable this option may lead to errors in the following components. DO NOT TURN ON if you want to append other components.",
"type": "AT_BOOL",
"atomic": {
"isOptional": true,
"defaultValue": {}
}
},
{
"name": "skip_duplicates_check",
"desc": "If true, the check of duplicated items will be skiped.",
"type": "AT_BOOL",
"atomic": {
"isOptional": true,
"defaultValue": {}
}
},
{
"name": "check_hash_digest",
"desc": "Check if hash digest of keys from parties are equal to determine whether to early-stop.",
"type": "AT_BOOL",
"atomic": {
"isOptional": true,
"defaultValue": {}
}
},
{
"name": "ecdh_curve",
"desc": "Curve type for ECDH PSI.",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "CURVE_FOURQ"
},
"allowedValues": {
"ss": [
"CURVE_25519",
"CURVE_FOURQ",
"CURVE_SM2",
"CURVE_SECP256K1"
]
}
}
}
],
"inputs": [
{
"name": "receiver_input",
"desc": "Individual table for receiver",
"types": [
"sf.table.individual"
],
"attrs": [
{
"name": "key",
"desc": "Column(s) used to join.",
"colMinCntInclusive": "1"
}
]
},
{
"name": "sender_input",
"desc": "Individual table for sender",
"types": [
"sf.table.individual"
],
"attrs": [
{
"name": "key",
"desc": "Column(s) used to join.",
"colMinCntInclusive": "1"
}
]
}
],
"outputs": [
{
"name": "psi_output",
"desc": "Output vertical table",
"types": [
"sf.table.vertical_table"
]
}
]
},
{
"domain": "data_prep",
"name": "train_test_split",
"desc": "Split datasets into random train and test subsets.\n- Please check: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html",
"version": "0.0.1",
"attrs": [
{
"name": "train_size",
"desc": "Proportion of the dataset to include in the train subset. The sum of test_size and train_size should be in the (0, 1] range.",
"type": "AT_FLOAT",
"atomic": {
"isOptional": true,
"defaultValue": {
"f": 0.75
},
"lowerBoundEnabled": true,
"lowerBound": {},
"upperBoundEnabled": true,
"upperBound": {
"f": 1.0
}
}
},
{
"name": "test_size",
"desc": "Proportion of the dataset to include in the test subset. The sum of test_size and train_size should be in the (0, 1] range.",
"type": "AT_FLOAT",
"atomic": {
"isOptional": true,
"defaultValue": {
"f": 0.25
},
"lowerBoundEnabled": true,
"lowerBound": {},
"upperBoundEnabled": true,
"upperBound": {
"f": 1.0
}
}
},
{
"name": "random_state",
"desc": "Specify the random seed of the shuffling.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "1024"
},
"lowerBoundEnabled": true,
"lowerBound": {}
}
},
{
"name": "shuffle",
"desc": "Whether to shuffle the data before splitting.",
"type": "AT_BOOL",
"atomic": {
"isOptional": true,
"defaultValue": {
"b": true
}
}
}
],
"inputs": [
{
"name": "input_data",
"desc": "Input vertical table.",
"types": [
"sf.table.vertical_table"
]
}
],
"outputs": [
{
"name": "train",
"desc": "Output train dataset.",
"types": [
"sf.table.vertical_table"
]
},
{
"name": "test",
"desc": "Output test dataset.",
"types": [
"sf.table.vertical_table"
]
}
]
},
{
"domain": "feature",
"name": "vert_binning",
"desc": "Generate equal frequency or equal range binning rules for vertical partitioning datasets.",
"version": "0.0.2",
"attrs": [
{
"name": "binning_method",
"desc": "How to bin features with numeric types: \"quantile\"(equal frequency)/\"eq_range\"(equal range)",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "eq_range"
},
"allowedValues": {
"ss": [
"eq_range",
"quantile"
]
}
}
},
{
"name": "bin_num",
"desc": "Max bin counts for one features.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "10"
},
"lowerBoundEnabled": true,
"lowerBound": {
"i64": "2"
},
"lowerBoundInclusive": true
}
},
{
"name": "report_rules",
"desc": "Whether report binning rules.",
"type": "AT_BOOL",
"atomic": {
"isOptional": true,
"defaultValue": {}
}
}
],
"inputs": [
{
"name": "input_data",
"desc": "Input vertical table.",
"types": [
"sf.table.vertical_table"
],
"attrs": [
{
"name": "feature_selects",
"desc": "which features should be binned.",
"colMinCntInclusive": "1"
}
]
}
],
"outputs": [
{
"name": "bin_rule",
"desc": "Output bin rule.",
"types": [
"sf.rule.binning"
]
},
{
"name": "report",
"desc": "report rules details if report_rules is true",
"types": [
"sf.report"
]
}
]
},
{
"domain": "feature",
"name": "vert_woe_binning",
"desc": "Generate Weight of Evidence (WOE) binning rules for vertical partitioning datasets.",
"version": "0.0.2",
"attrs": [
{
"name": "secure_device_type",
"desc": "Use SPU(Secure multi-party computation or MPC) or HEU(Homomorphic encryption or HE) to secure bucket summation.",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "spu"
},
"allowedValues": {
"ss": [
"spu",
"heu"
]
}
}
},
{
"name": "binning_method",
"desc": "How to bin features with numeric types: \"quantile\"(equal frequency)/\"chimerge\"(ChiMerge from AAAI92-019: https://www.aaai.org/Papers/AAAI/1992/AAAI92-019.pdf)/\"eq_range\"(equal range)",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "quantile"
},
"allowedValues": {
"ss": [
"quantile",
"chimerge",
"eq_range"
]
}
}
},
{
"name": "bin_num",
"desc": "Max bin counts for one features.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "10"
},
"lowerBoundEnabled": true,
"lowerBound": {}
}
},
{
"name": "positive_label",
"desc": "Which value represent positive value in label.",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "1"
}
}
},
{
"name": "chimerge_init_bins",
"desc": "Max bin counts for initialization binning in ChiMerge.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "100"
},
"lowerBoundEnabled": true,
"lowerBound": {
"i64": "2"
}
}
},
{
"name": "chimerge_target_bins",
"desc": "Stop merging if remaining bin counts is less than or equal to this value.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "10"
},
"lowerBoundEnabled": true,
"lowerBound": {
"i64": "2"
},
"lowerBoundInclusive": true
}
},
{
"name": "chimerge_target_pvalue",
"desc": "Stop merging if biggest pvalue of remaining bins is greater than this value.",
"type": "AT_FLOAT",
"atomic": {
"isOptional": true,
"defaultValue": {
"f": 0.1
},
"lowerBoundEnabled": true,
"lowerBound": {},
"upperBoundEnabled": true,
"upperBound": {
"f": 1.0
},
"upperBoundInclusive": true
}
},
{
"name": "report_rules",
"desc": "Whether report binning rules.",
"type": "AT_BOOL",
"atomic": {
"isOptional": true,
"defaultValue": {}
}
}
],
"inputs": [
{
"name": "input_data",
"desc": "Input vertical table.",
"types": [
"sf.table.vertical_table"
],
"attrs": [
{
"name": "feature_selects",
"desc": "which features should be binned.",
"colMinCntInclusive": "1"
},
{
"name": "label",
"desc": "Label of input data.",
"colMinCntInclusive": "1",
"colMaxCntInclusive": "1"
}
]
}
],
"outputs": [
{
"name": "bin_rule",
"desc": "Output WOE rule.",
"types": [
"sf.rule.binning"
]
},
{
"name": "report",
"desc": "report rules details if report_rules is true",
"types": [
"sf.report"
]
}
]
},
{
"domain": "io",
"name": "identity",
"desc": "map any input to output",
"version": "0.0.1",
"inputs": [
{
"name": "input_data",
"desc": "Input data",
"types": [
"sf.model.ss_glm",
"sf.model.sgb",
"sf.model.ss_xgb",
"sf.model.ss_sgd",
"sf.rule.binning",
"sf.rule.preprocessing",
"sf.read_data"
]
}
],
"outputs": [
{
"name": "output_data",
"desc": "Output data",
"types": [
"sf.model.ss_glm",
"sf.model.sgb",
"sf.model.ss_xgb",
"sf.model.ss_sgd",
"sf.rule.binning",
"sf.rule.preprocessing",
"sf.read_data"
]
}
]
},
{
"domain": "io",
"name": "read_data",
"desc": "read model or rules from sf cluster",
"version": "0.0.1",
"inputs": [
{
"name": "input_dd",
"desc": "Input dist data",
"types": [
"sf.rule.binning",
"sf.model.ss_glm"
]
}
],
"outputs": [
{
"name": "output_data",
"desc": "Output rules or models in DistData.meta",
"types": [
"sf.read_data"
]
}
]
},
{
"domain": "io",
"name": "write_data",
"desc": "write model or rules back to sf cluster",
"version": "0.0.1",
"attrs": [
{
"name": "write_data",
"desc": "rule or model protobuf by json formate",
"type": "AT_STRING",
"atomic": {}
},
{
"name": "write_data_type",
"desc": "which rule or model is writing",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "sf.rule.binning"
},
"allowedValues": {
"ss": [
"sf.rule.binning",
"sf.model.ss_glm"
]
}
}
}
],
"inputs": [
{
"name": "input_dd",
"desc": "Input dist data. Rule reconstructions may need hidden info in original rule for security considerations.",
"types": [
"sf.rule.binning",
"sf.model.ss_glm"
]
}
],
"outputs": [
{
"name": "output_model",
"desc": "Output rules or models in sf cluster format",
"types": [
"sf.rule.binning",
"sf.model.ss_glm"
]
}
]
},
{
"domain": "ml.eval",
"name": "biclassification_eval",
"desc": "Statistics evaluation for a bi-classification model on a dataset.\n1. summary_report: SummaryReport\n2. group_reports: List[GroupReport]\n3. eq_frequent_bin_report: List[EqBinReport]\n4. eq_range_bin_report: List[EqBinReport]\n5. head_report: List[PrReport]\nreports for fpr = 0.001, 0.005, 0.01, 0.05, 0.1, 0.2",
"version": "0.0.1",
"attrs": [
{
"name": "bucket_size",
"desc": "Number of buckets.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "10"
},
"lowerBoundEnabled": true,
"lowerBound": {
"i64": "1"
},
"lowerBoundInclusive": true
}
},
{
"name": "min_item_cnt_per_bucket",
"desc": "Min item cnt per bucket. If any bucket doesn't meet the requirement, error raises. For security reasons, we require this parameter to be at least 5.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "5"
},
"lowerBoundEnabled": true,
"lowerBound": {
"i64": "5"
},
"lowerBoundInclusive": true
}
}
],
"inputs": [
{
"name": "in_ds",
"desc": "Input table with prediction and label, usually is a result from a prediction component.",
"types": [
"sf.table.vertical_table",
"sf.table.individual"
],
"attrs": [
{
"name": "label",
"desc": "The label name to use in the dataset.",
"colMinCntInclusive": "1",
"colMaxCntInclusive": "1"
},
{
"name": "prediction",
"desc": "The prediction result column name to use in the dataset.",
"colMinCntInclusive": "1",
"colMaxCntInclusive": "1"
}
]
}
],
"outputs": [
{
"name": "reports",
"desc": "Output report.",
"types": [
"sf.report"
]
}
]
},
{
"domain": "ml.eval",
"name": "prediction_bias_eval",
"desc": "Calculate prediction bias, ie. average of predictions - average of labels.",
"version": "0.0.1",
"attrs": [
{
"name": "bucket_num",
"desc": "Num of bucket.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "10"
},
"lowerBoundEnabled": true,
"lowerBound": {
"i64": "1"
},
"lowerBoundInclusive": true
}
},
{
"name": "min_item_cnt_per_bucket",
"desc": "Min item cnt per bucket. If any bucket doesn't meet the requirement, error raises. For security reasons, we require this parameter to be at least 2.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "2"
},
"lowerBoundEnabled": true,
"lowerBound": {
"i64": "2"
},
"lowerBoundInclusive": true
}
},
{
"name": "bucket_method",
"desc": "Bucket method.",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "equal_width"
},
"allowedValues": {
"ss": [
"equal_width",
"equal_frequency"
]
}
}
}
],
"inputs": [
{
"name": "in_ds",
"desc": "Input table with prediction and label, usually is a result from a prediction component.",
"types": [
"sf.table.vertical_table",
"sf.table.individual"
],
"attrs": [
{
"name": "label",
"desc": "The label name to use in the dataset.",
"colMinCntInclusive": "1",
"colMaxCntInclusive": "1"
},
{
"name": "prediction",
"desc": "The prediction result column name to use in the dataset.",
"colMinCntInclusive": "1",
"colMaxCntInclusive": "1"
}
]
}
],
"outputs": [
{
"name": "result",
"desc": "Output report.",
"types": [
"sf.report"
]
}
]
},
{
"domain": "ml.eval",
"name": "regression_eval",
"desc": "Statistics evaluation for a regression model on a dataset.\nContained Statistics:\nR2 Score (r2_score): It is a statistical measure that represents the proportion of the variance in the dependent variable that can be predicted from the independent variables. It ranges from 0 to 1, where a higher value indicates a better fit.\nMean Absolute Error (mean_abs_err): It calculates the average absolute difference between the predicted and actual values. It provides a measure of the average magnitude of the errors.\nMean Absolute Percentage Error (mean_abs_percent_err): It calculates the average absolute percentage difference between the predicted and actual values. It measures the average magnitude of the errors in terms of percentages.\nSum of Squared Errors (sum_squared_errors): It calculates the sum of the squared differences between the predicted and actual values. It provides an overall measure of the model's performance.\nMean Squared Error (mean_squared_errors): It calculates the average of the squared differences between the predicted and actual values. It is widely used as a loss function in regression problems.\nRoot Mean Squared Error (root_mean_squared_errors): It is the square root of the mean squared error. It provides a measure of the average magnitude of the errors in the original scale of the target variable.\nMean of True Values (y_true_mean): It calculates the average of the actual values in the target variable. It can be useful for establishing a baseline for the model's performance.\nMean of Predicted Values (y_pred_mean): It calculates the average of the predicted values. It can be compared with the y_true_mean to get an idea of the model's bias.\nResidual Histograms (residual_hists): It represents the distribution of the differences between the predicted and actual values. It helps to understand the spread and pattern of the errors.",
"version": "0.0.1",
"attrs": [
{
"name": "bucket_size",
"desc": "Number of buckets for residual histogram.",
"type": "AT_INT",
"atomic": {
"isOptional": true,
"defaultValue": {
"i64": "10"
},
"lowerBoundEnabled": true,
"lowerBound": {
"i64": "1"
},
"lowerBoundInclusive": true,
"upperBoundEnabled": true,
"upperBound": {
"i64": "10000"
},
"upperBoundInclusive": true
}
}
],
"inputs": [
{
"name": "in_ds",
"desc": "Input table with prediction and label, usually is a result from a prediction component.",
"types": [
"sf.table.vertical_table",
"sf.table.individual"
],
"attrs": [
{
"name": "label",
"desc": "The label name to use in the dataset.",
"colMinCntInclusive": "1",
"colMaxCntInclusive": "1"
},
{
"name": "prediction",
"desc": "The prediction result column name to use in the dataset.",
"colMinCntInclusive": "1",
"colMaxCntInclusive": "1"
}
]
}
],
"outputs": [
{
"name": "reports",
"desc": "Output report.",
"types": [
"sf.report"
]
}
]
},
{
"domain": "ml.eval",
"name": "ss_pvalue",
"desc": "Calculate P-Value for LR model training on vertical partitioning dataset by using secret sharing.\nFor large dataset(large than 10w samples & 200 features),\nrecommend to use [Ring size: 128, Fxp: 40] options for SPU device.",
"version": "0.0.1",
"inputs": [
{
"name": "model",
"desc": "Input model.",
"types": [
"sf.model.ss_sgd"
]
},
{
"name": "input_data",
"desc": "Input vertical table.",
"types": [
"sf.table.vertical_table"
]
}
],
"outputs": [
{
"name": "report",
"desc": "Output P-Value report.",
"types": [
"sf.report"
]
}
]
},
{
"domain": "ml.predict",
"name": "sgb_predict",
"desc": "Predict using SGB model.",
"version": "0.0.2",
"attrs": [
{
"name": "receiver",
"desc": "Party of receiver.",
"type": "AT_STRING",
"atomic": {}
},
{
"name": "pred_name",
"desc": "Name for prediction column",
"type": "AT_STRING",
"atomic": {
"isOptional": true,
"defaultValue": {
"s": "pred"
}
}
},
{
"name": "save_ids",
"desc": "Whether to save ids columns into output prediction table. If true, input feature_dataset must contain id columns, and receiver party must be id owner.",
"type": "AT_BOOL",
"atomic": {
"isOptional": true,
"defaultValue": {}
}
},
{
"name": "save_label",
"desc": "Whether or not to save real label columns into output pred file. If true, input feature_dataset must contain label columns and receiver party must be label owner.",
"type": "AT_BOOL",
"atomic": {
"isOptional": true,
"defaultValue": {
"b": true
}
}
}
],
"inputs": [
{
"name": "model",
"desc": "model",
"types": [
"sf.model.sgb"
]
},
{
"name": "feature_dataset",
"desc": "Input vertical table.",
"types": [
"sf.table.vertical_table"
],
"attrs": [