Skip to content

Commit

Permalink
edit examples
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Wu <yolandawu131@gmail.com>
  • Loading branch information
nemirorox committed Dec 14, 2023
1 parent f987952 commit c9557a1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/benchmark_performance/coordinated_lr/test_lr.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main(config="../../config.yaml", param="./lr_config.yaml", namespace=""):
input_model=lr_0.outputs["output_model"])

evaluation_0 = Evaluation("evaluation_0",
runtime_roles=["guest"],
runtime_parties=["guest"],
metrics=["auc", "binary_precision", "binary_accuracy", "binary_recall"],
input_data=lr_0.outputs["train_output_data"])
pipeline.add_task(reader_0)
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark_performance/sshe_lr/test_lr.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def main(config="../../config.yaml", param="./lr_config.yaml", namespace=""):
input_model=lr_0.outputs["output_model"])

evaluation_0 = Evaluation("evaluation_0",
runtime_roles=["guest"],
runtime_parties=["guest"],
metrics=["auc", "binary_precision", "binary_accuracy", "binary_recall"],
input_data=lr_0.outputs["train_output_data"])
pipeline.add_task(reader_0)
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark_quality/linr/fate-linr.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def main(config="../../config.yaml", param="./linr_config.yaml", namespace=""):
input_model=linr_0.outputs["output_model"])"""

evaluation_0 = Evaluation("evaluation_0",
runtime_roles=["guest"],
runtime_parties=["guest"],
metrics=["r2_score",
"mse",
"rmse"],
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark_quality/linr/fate-sshe-linr.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def main(config="../../config.yaml", param="./linr_config.yaml", namespace=""):
input_model=linr_0.outputs["output_model"])"""

evaluation_0 = Evaluation("evaluation_0",
runtime_roles=["guest"],
runtime_parties=["guest"],
metrics=["r2_score",
"mse",
"rmse"],
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark_quality/lr/pipeline-lr-binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def main(config="../../config.yaml", param="./breast_config.yaml", namespace="")
input_model=lr_0.outputs["output_model"])

evaluation_0 = Evaluation("evaluation_0",
runtime_roles=["guest"],
runtime_parties=["guest"],
metrics=["auc", "binary_precision", "binary_accuracy", "binary_recall"],
input_data=lr_0.outputs["train_output_data"])
pipeline.add_task(reader_0)
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark_quality/lr/pipeline-lr-multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def main(config="../../config.yaml", param="./vehicle_config.yaml", namespace=""
input_model=lr_0.outputs["output_model"])

evaluation_0 = Evaluation('evaluation_0',
runtime_roles=['guest'],
runtime_parties=['guest'],
input_data=lr_0.outputs["train_output_data"],
predict_column_name='predict_result',
metrics=['multi_recall', 'multi_accuracy', 'multi_precision'])
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark_quality/lr/pipeline-sshe-lr-binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def main(config="../../config.yaml", param="./breast_config.yaml", namespace="")
input_model=lr_0.outputs["output_model"])

evaluation_0 = Evaluation("evaluation_0",
runtime_roles=["guest"],
runtime_parties=["guest"],
metrics=["auc", "binary_precision", "binary_accuracy", "binary_recall"],
input_data=lr_0.outputs["train_output_data"])
pipeline.add_task(reader_0)
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark_quality/lr/pipeline-sshe-lr-multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def main(config="../../config.yaml", param="./vehicle_config.yaml", namespace=""
input_model=lr_0.outputs["output_model"])

evaluation_0 = Evaluation('evaluation_0',
runtime_roles=['guest'],
runtime_parties=['guest'],
input_data=lr_0.outputs["train_output_data"],
predict_column_name='predict_result',
metrics=['multi_recall', 'multi_accuracy', 'multi_precision'])
Expand Down

0 comments on commit c9557a1

Please sign in to comment.