forked from FederatedAI/FATE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request FederatedAI#2036 from FederatedAI/develop-1.5
Develop 1.5
- Loading branch information
Showing
113 changed files
with
23,399 additions
and
15,362 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 was deleted.
Oops, something went wrong.
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
14 changes: 7 additions & 7 deletions
14
...ession/hetero_linr_sklearn_benchmark.json → ...ear_regression/hetero_linr_benchmark.json
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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"file": "../../data/motor_hetero_host.csv", | ||
"file": "examples/data/motor_hetero_host.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "motor_hetero_host", | ||
"namespace": "experiment", | ||
"role": "host_0" | ||
}, | ||
{ | ||
"file": "../../data/motor_hetero_guest.csv", | ||
"file": "examples/data/motor_hetero_guest.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "motor_hetero_guest", | ||
"namespace": "experiment", | ||
"role": "guest_0" | ||
} | ||
], | ||
"linear-regression": { | ||
"hetero_linear_regression-regression": { | ||
"local": { | ||
"script": "./sklearn-linr.py", | ||
"script": "./local-linr.py", | ||
"conf": "./linr_config.yaml" | ||
}, | ||
"pipeline": { | ||
"script": "./pipeline-linr.py", | ||
"FATE": { | ||
"script": "./fate-linr.py", | ||
"conf": "./linr_config.yaml" | ||
}, | ||
"compare_setting": { | ||
"relative_tol": 0.05 | ||
"relative_tol": 0.01 | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
data_guest: "/home/mingchao/python/examples/data/breast_hetero_guest.csv" | ||
data_host: "/home/mingchao/python/examples/data/breast_hetero_host.csv" | ||
idx: "id" | ||
label_name: "y" | ||
penalty: "L2" | ||
max_iter: 30 | ||
alpha: 0.01 | ||
learning_rate: 0.15 | ||
optimizer: "rmsprop" | ||
batch_size: 5000 | ||
early_stop: "diff" |
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
11 changes: 11 additions & 0 deletions
11
examples/benchmark_quality/hetero_lr/epsilon_5k_config.yaml
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,11 @@ | ||
data_guest: "/home/mingchao/python/examples/data/epsilon_5k_hetero_guest.csv" | ||
data_host: "/home/mingchao/python/examples/data/epsilon_5k_hetero_host.csv" | ||
idx: "id" | ||
label_name: "y" | ||
penalty: "L2" | ||
max_iter: 15 | ||
alpha: 0.001 | ||
learning_rate: 0.15 | ||
optimizer: "rmsprop" | ||
batch_size: 3200 | ||
early_stop: "diff" |
12 changes: 12 additions & 0 deletions
12
examples/benchmark_quality/hetero_lr/give_credit_config.yaml
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,12 @@ | ||
data_guest: "/home/mingchao/python/examples/data/give_credit_hetero_guest.csv" | ||
data_host: "/home/mingchao/python/examples/data/give_credit_hetero_host.csv" | ||
idx: "id" | ||
label_name: "y" | ||
penalty: "L2" | ||
max_iter: 30 | ||
alpha: 100 | ||
learning_rate: 0.15 | ||
optimizer: "rmsprop" | ||
batch_size: -1 | ||
early_stop: "diff" | ||
init_method: "zeros" |
41 changes: 35 additions & 6 deletions
41
examples/benchmark_quality/hetero_lr/hetero_lr_sklearn_benchmark.json
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 |
---|---|---|
@@ -1,33 +1,62 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"file": "../../data/breast_hetero_guest.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "breast_hetero_guest", | ||
"namespace": "experiment", | ||
"role": "guest_0" | ||
}, | ||
{ | ||
"file": "../../data/vehicle_scale_hetero_host.csv", | ||
"file": "../../data/breast_hetero_host.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "vehicle_scale_hetero_host", | ||
"table_name": "breast_hetero_host", | ||
"namespace": "experiment", | ||
"role": "host_0" | ||
}, | ||
{ | ||
"file": "../../data/vehicle_scale_hetero_guest.csv", | ||
"file": "examples/data/vehicle_scale_hetero_guest.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "vehicle_scale_hetero_guest", | ||
"namespace": "experiment", | ||
"role": "guest_0" | ||
}, | ||
{ | ||
"file": "examples/data/vehicle_scale_hetero_host.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "vehicle_scale_hetero_host", | ||
"namespace": "experiment", | ||
"role": "host_0" | ||
} | ||
], | ||
"binary": { | ||
"local": { | ||
"script": "./sklearn-lr-multi.py", | ||
"script": "./sklearn-lr-binary.py", | ||
"conf": "./lr_config.yaml" | ||
}, | ||
"pipeline": { | ||
"script": "./pipeline-lr-multi.py", | ||
"script": "./pipeline-lr-binary.py", | ||
"conf": "./lr_config.yaml" | ||
}, | ||
"compare_setting": { | ||
"relative_tol": 1e-9 | ||
"relative_tol": 1e-2 | ||
} | ||
}, | ||
"multi": { | ||
"local": { | ||
"script": "./sklearn-lr-multi.py", | ||
"conf": "./lr_multi_config.yaml" | ||
}, | ||
"pipeline": { | ||
"script": "./pipeline-lr-multi.py", | ||
"conf": "./lr_multi_config.yaml" | ||
}, | ||
"compare_setting": { | ||
"relative_tol": 1e-2 | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
examples/benchmark_quality/hetero_lr/lr_bench_mark_data.json
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,68 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"file": "examples/data/breast_hetero_guest.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "breast_hetero_guest", | ||
"namespace": "experiment", | ||
"count": 569 | ||
}, | ||
{ | ||
"file": "examples/data/breast_hetero_host.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "breast_hetero_host", | ||
"namespace": "experiment", | ||
"count": 569 | ||
}, | ||
{ | ||
"file": "examples/data/default_credit_hetero_guest.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "default_credit_hetero_guest", | ||
"namespace": "experiment", | ||
"count": 30000 | ||
}, | ||
{ | ||
"file": "examples/data/default_credit_hetero_host.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "default_credit_hetero_host", | ||
"namespace": "experiment", | ||
"count": 30000 | ||
}, | ||
{ | ||
"file": "examples/data/give_credit_hetero_guest.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "give_credit_hetero_guest", | ||
"namespace": "experiment", | ||
"count": 150000 | ||
}, | ||
{ | ||
"file": "examples/data/give_credit_hetero_host.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "give_credit_hetero_host", | ||
"namespace": "experiment", | ||
"count": 150000 | ||
}, | ||
{ | ||
"file": "examples/data/epsilon_5k_hetero_guest.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "epsilon_5k_hetero_guest", | ||
"namespace": "experiment", | ||
"count": 5000 | ||
}, | ||
{ | ||
"file": "examples/data/epsilon_5k_hetero_host.csv", | ||
"head": 1, | ||
"partition": 16, | ||
"table_name": "epsilon_5k_hetero_host", | ||
"namespace": "experiment", | ||
"count": 5000 | ||
} | ||
] | ||
} |
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,9 @@ | ||
data_guest: "/home/mingchao/python/examples/data/vehicle_scale_hetero_guest.csv" | ||
data_host: "/home/mingchao/python/examples/data/vehicle_scale_hetero_host.csv" | ||
idx: "id" | ||
label_name: "y" | ||
penalty: "L2" | ||
max_iter: 30 | ||
alpha: 0.01 | ||
learning_rate: 0.15 | ||
optimizer: "rmsporp" |
Oops, something went wrong.