-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add get service state * update get service state * update get service state * update get service state * update get service state * update get service state * update get service state * fix mpc sdk * fix psi * fix psi * fix psi * fix psi * fix fitTransform * fix psi * fix psi * fix psi * fix psi * fix psi * fix psi * fix psi * fix psi * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix pir * fix psi * fix pir
- Loading branch information
1 parent
ddc448c
commit fabdd98
Showing
47 changed files
with
779 additions
and
70 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
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
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
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
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
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
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
76 changes: 76 additions & 0 deletions
76
primihub-sdk/src/main/resources/templates/hetero_fitTransform.ftl
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,76 @@ | ||
{ | ||
"roles": { | ||
"host": "Bob", | ||
"guest": [ | ||
"Charlie" | ||
] | ||
}, | ||
"common_params": { | ||
"model": "FL_Preprocess", | ||
"process": "fit_transform", | ||
"FL_type": "V", | ||
"task_name": "VFL_simpleimpute_fit_transform", | ||
"task": "classification" | ||
}, | ||
"role_params": { | ||
"Bob": { | ||
"data_set": "${label_dataset}", | ||
"selected_column": null, | ||
"id": "id", | ||
"label": "y", | ||
"preprocess_column": null, | ||
"preprocess_dataset_id": "${new_label_dataset}", | ||
"preprocess_dataset_path": "${new_label_dataset_path}", | ||
"preprocess_module_path": "${new_label_dataset_path}.pkl", | ||
"preprocess_module": { | ||
"SimpleImputer_string": { | ||
"column": null, | ||
"missing_values": "np.nan", | ||
"strategy": "${simpleImputerString}", | ||
"fill_value": null, | ||
"copy": true, | ||
"add_indicator": false, | ||
"keep_empty_features": false | ||
}, | ||
"SimpleImputer_numeric": { | ||
"column": null, | ||
"missing_values": "np.nan", | ||
"strategy": "${simpleImputerNumeric}", | ||
"fill_value": null, | ||
"copy": true, | ||
"add_indicator": false, | ||
"keep_empty_features": false | ||
} | ||
} | ||
}, | ||
"Charlie": { | ||
"data_set": "${guest_dataset}", | ||
"selected_column": null, | ||
"id": "id", | ||
"preprocess_column": null, | ||
"preprocess_dataset_id": "${new_guest_dataset}", | ||
"preprocess_dataset_path": "${new_guest_dataset_path}", | ||
"preprocess_module_path": "${new_guest_dataset_path}.pkl", | ||
"preprocess_module": { | ||
"SimpleImputer_string": { | ||
"column": null, | ||
"missing_values": "np.nan", | ||
"strategy": "${simpleImputerString}", | ||
"fill_value": null, | ||
"copy": true, | ||
"add_indicator": false, | ||
"keep_empty_features": false | ||
}, | ||
"SimpleImputer_numeric": { | ||
"column": null, | ||
"missing_values": "np.nan", | ||
"strategy": "${simpleImputerNumeric}", | ||
"fill_value": null, | ||
"copy": true, | ||
"add_indicator": false, | ||
"keep_empty_features": false | ||
} | ||
} | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
primihub-sdk/src/main/resources/templates/homo_fitTransform.ftl
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,57 @@ | ||
{ | ||
"roles": { | ||
"server": "Alice", | ||
"client": [ | ||
"Bob", | ||
"Charlie" | ||
] | ||
}, | ||
"common_params": { | ||
"model": "FL_Preprocess", | ||
"process": "fit_transform", | ||
"FL_type": "H", | ||
"task_name": "HFL_simpleimpute_fit_transform", | ||
"task": "classification", | ||
"selected_column": null, | ||
"id": "id", | ||
"label": "y", | ||
"preprocess_column": null, | ||
"preprocess_module": { | ||
"SimpleImputer_string": { | ||
"column": null, | ||
"missing_values": "np.nan", | ||
"strategy": "${simpleImputerString}", | ||
"fill_value": null, | ||
"copy": true, | ||
"add_indicator": false, | ||
"keep_empty_features": false | ||
}, | ||
"SimpleImputer_numeric": { | ||
"column": null, | ||
"missing_values": "np.nan", | ||
"strategy": "${simpleImputerNumeric}", | ||
"fill_value": null, | ||
"copy": true, | ||
"add_indicator": false, | ||
"keep_empty_features": false | ||
} | ||
} | ||
}, | ||
"role_params": { | ||
"Bob": { | ||
"data_set": "${label_dataset}", | ||
"preprocess_dataset_id": "${new_label_dataset}", | ||
"preprocess_dataset_path": "${new_label_dataset_path}", | ||
"preprocess_module_path": "${new_label_dataset_path}.pkl" | ||
}, | ||
"Charlie": { | ||
"data_set": "${guest_dataset}", | ||
"preprocess_dataset_id": "${new_guest_dataset}", | ||
"preprocess_dataset_path": "${new_guest_dataset_path}", | ||
"preprocess_module_path": "${new_guest_dataset_path}.pkl" | ||
}, | ||
"Alice": { | ||
"data_set": "${arbiter_dataset!""}" | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.