repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
XFL
XFL-master/python/common/communication/gRPC/python/commu_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc
159
31
75
py
XFL
XFL-master/python/common/communication/gRPC/python/channel.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
11,495
39.911032
162
py
XFL
XFL-master/python/common/communication/gRPC/python/scheduler_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: scheduler.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from go...
9,417
58.607595
2,562
py
XFL
XFL-master/python/common/communication/gRPC/python/commu_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: commu.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google...
1,674
36.222222
263
py
XFL
XFL-master/python/common/communication/gRPC/python/commu.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
3,411
29.464286
106
py
XFL
XFL-master/python/common/communication/gRPC/python/__init__.py
0
0
0
py
XFL
XFL-master/python/common/communication/gRPC/python/trainer_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import commu_pb2 as commu__pb2 import control_pb2 as control__pb2 import status_pb2 as status__pb2 class TrainerStub(object): """Missing associated documen...
5,347
38.614815
96
py
XFL
XFL-master/python/common/communication/gRPC/python/trainer_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: trainer.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from goog...
1,286
40.516129
448
py
XFL
XFL-master/python/common/communication/gRPC/python/checker_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: checker.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from goog...
7,401
53.82963
2,011
py
XFL
XFL-master/python/common/communication/gRPC/python/control_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: control.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool fr...
3,522
45.973333
920
py
XFL
XFL-master/python/common/storage/__init__.py
0
0
0
py
XFL
XFL-master/python/common/storage/redis/redis_conn.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
3,077
30.408163
112
py
XFL
XFL-master/python/common/storage/redis/__init__.py
0
0
0
py
XFL
XFL-master/python/common/checker/x_types.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
2,925
27.407767
89
py
XFL
XFL-master/python/common/checker/base.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
1,807
27.698413
89
py
XFL
XFL-master/python/common/checker/get_default.py
import copy from .qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional from .x_types import String, Bool, Integer, Float, Any, All def get_default(descriptor): if isinstance(descriptor, dict): if "__rule__" not in descriptor: descriptor_copy = copy.deepcopy(descriptor) ...
6,097
48.983607
108
py
XFL
XFL-master/python/common/checker/qualifiers.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
3,682
25.883212
93
py
XFL
XFL-master/python/common/checker/matcher.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
1,420
31.295455
74
py
XFL
XFL-master/python/common/checker/checker.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
19,706
38.892713
153
py
XFL
XFL-master/python/common/checker/compare.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
1,481
32.681818
74
py
XFL
XFL-master/python/common/checker/__init__.py
0
0
0
py
XFL
XFL-master/python/common/utils/constants.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
753
29.16
74
py
XFL
XFL-master/python/common/utils/fed_conf_parser.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
2,706
35.093333
141
py
XFL
XFL-master/python/common/utils/grpc_channel_options.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
1,316
42.9
180
py
XFL
XFL-master/python/common/utils/utils.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
2,320
30.794521
79
py
XFL
XFL-master/python/common/utils/data_utils.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
3,785
33.108108
140
py
XFL
XFL-master/python/common/utils/logger.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
3,285
33.229167
114
py
XFL
XFL-master/python/common/utils/tree_transfer.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
3,234
46.573529
119
py
XFL
XFL-master/python/common/utils/model_io.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
4,851
35.757576
110
py
XFL
XFL-master/python/common/utils/config.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
2,888
37.013158
96
py
XFL
XFL-master/python/common/utils/algo_utils.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
9,180
30.016892
108
py
XFL
XFL-master/python/common/utils/config_parser.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
5,497
44.438017
126
py
XFL
XFL-master/python/common/utils/tree_pickle_structure.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
1,823
38.652174
113
py
XFL
XFL-master/python/common/utils/config_checker.py
import os import importlib import traceback from collections import Counter from common.checker.compare import compare from common.utils.logger import logger from common.utils.config_parser import replace_variable def find_rule_class(fed_type, operator_name, role, inference): try: if inference: ...
25,081
35.037356
149
py
XFL
XFL-master/python/common/utils/config_sync.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
3,155
36.571429
87
py
XFL
XFL-master/python/common/utils/__init__.py
0
0
0
py
XFL
XFL-master/python/common/utils/model_preserver.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
1,794
31.053571
87
py
XFL
XFL-master/python/common/utils/auto_descriptor/torch/lr_scheduler.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional lr_scheduler = { "ConstantLR": { "factor": Float(0.3333333333333333), "total_iters": Integer(5), "last_epoch": Integer(-1), ...
5,242
42.330579
371
py
XFL
XFL-master/python/common/utils/auto_descriptor/torch/lossfunc.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional lossfunc = { "AdaptiveLogSoftmaxWithLoss": { "in_features": All("No default value"), "n_classes": All("No default value"), "cu...
6,846
38.125714
164
py
XFL
XFL-master/python/common/utils/auto_descriptor/torch/metrics.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional metrics = { "acc": { "normalize": Bool(True), "sample_weight": All(None), "__rule__": [Optional("sample_weight"), Optional("no...
12,060
34.578171
178
py
XFL
XFL-master/python/common/utils/auto_descriptor/torch/torch_descriptor.py
import inspect import math import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler import torch.nn as nn import sklearn.metrics as sklearn_metrics import algorithm.core.metrics as custom_metrics from algorithm.core.metrics import metric_dict # from common.checker.qualifiers import (OneOf, Optiona...
20,063
41.780384
203
py
XFL
XFL-master/python/common/utils/auto_descriptor/torch/optimizer.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional optimizer = { "ASGD": { "lr": Float(0.01), "lambd": Float(0.0001), "alpha": Float(0.75), "t0": Float(1000000.0), ...
4,627
33.537313
192
py
XFL
XFL-master/python/common/model/__init__.py
0
0
0
py
XFL
XFL-master/python/common/model/python/tree_model_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tree_model.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.prot...
24,141
40.840555
1,841
py
XFL
XFL-master/python/common/model/python/feature_model_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature_model.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.p...
20,317
37.700952
1,464
py
XFL
XFL-master/python/common/model/python/linear_model_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: linear_model.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.pr...
4,222
32.515873
293
py
XFL
XFL-master/python/common/model/python/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_sampler/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_sampler_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_sampler" }, "input": { "d...
1,801
35.04
117
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_sampler/sync.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_sampler_sync_rule = { }
203
28.142857
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_sampler/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_sampler_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_sampler" }, "input": { "dataset": [ ...
922
26.147059
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_binning_woe_iv/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_binning_woe_iv_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_binning_woe_iv" }, "input"...
1,674
31.211538
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_binning_woe_iv/sync.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All vertical_binning_woe_iv_sync_rule = { "train_info": All() }
139
22.333333
73
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_binning_woe_iv/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_binning_woe_iv_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_binning_woe_iv" }, "input": { ...
1,005
27.742857
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_poisson_regression/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_poisson_regression_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_poisson_regression" }, ...
3,630
32.934579
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_poisson_regression/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_poisson_regression_assist_trainer_rule = { "identity": "assist_trainer", "model_info": { "name": "vertical_poisson_regression" } }...
321
28.272727
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_poisson_regression/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_poisson_regression_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_poisson_regression" }, "input": {...
1,392
28.020833
89
py
XFL
XFL-master/python/algorithm/config_descriptor/local_data_statistic/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional local_data_statistic_rule = { "identity": "label_trainer", "model_info": { "name": "local_data_statistic" }, "input": { "datase...
929
26.352941
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_kmeans/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_kmeans_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_kmeans" }, "input": { "tr...
2,041
31.935484
109
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_kmeans/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_kmeans_assist_trainer_rule = { "identity": "assist_trainer", "model_info": { "name": "vertical_kmeans" }, "input": { }, ...
371
19.666667
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_kmeans/sync.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_kmeans_rule = { "train_info": All() }
218
23.333333
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_kmeans/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_kmeans_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_kmeans" }, "input": { "trainset": [ ...
1,025
25.307692
89
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_kmeans/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional horizontal_kmeans_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "horizontal_kmeans" }, "input": { ...
929
25.571429
89
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_kmeans/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional from common.utils.auto_descriptor.torch.optimizer import optimizer from common.utils.auto_descriptor.torch.lr_scheduler import lr_scheduler from common.utils.aut...
2,660
34.013158
109
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_linear_regression/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional horizontal_linear_regression_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "horizontal_linear_regression" }, ...
1,140
27.525
89
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_linear_regression/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional from common.utils.auto_descriptor.torch.optimizer import optimizer from common.utils.auto_descriptor.torch.lr_scheduler import lr_scheduler from common.utils.aut...
3,686
35.50495
121
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_logistic_regression/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional horizontal_logistic_regression_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "horizontal_logistic_regression" ...
1,324
29.813953
89
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_logistic_regression/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional from common.utils.auto_descriptor.torch.optimizer import optimizer from common.utils.auto_descriptor.torch.lr_scheduler import lr_scheduler from common.utils.aut...
4,321
36.912281
203
py
XFL
XFL-master/python/algorithm/config_descriptor/local_standard_scaler/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional local_standard_scaler_rule = { "identity": "label_trainer", "model_info": { "name": "local_standard_scaler" }, "input": { "trai...
1,939
29.3125
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_xgboost_infer/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_xgboost_infer_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_xgboost" }, "inference": T...
1,197
26.860465
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_xgboost_infer/sync.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_xgboost_infer_sync_rule = { "train_info": { "train_params": { "batch_size_val": All() } } }
303
24.333333
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_xgboost_infer/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_xgboost_infer_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_xgboost" }, "inference": True, "in...
1,034
25.538462
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_pearson/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_pearson_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_pearson" }, "input": { "...
1,412
29.717391
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_pearson/sync.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_pearson_sync_rule = { "train_info": All() }
222
30.857143
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_pearson/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_pearson_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_pearson" }, "input": { "trainset": [ ...
833
25.903226
89
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_poisson_regression/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional horizontal_poisson_regression_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "horizontal_poisson_regression" }...
1,143
27.6
89
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_poisson_regression/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional from common.utils.auto_descriptor.torch.optimizer import optimizer from common.utils.auto_descriptor.torch.lr_scheduler import lr_scheduler from common.utils.aut...
3,544
36.315789
122
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_linear_regression/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional # TODO: not ready vertical_linear_regression_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_linear_regre...
3,724
32.558559
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_linear_regression/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_linear_regression_assist_trainer_rule = { "identity": "assist_trainer", "model_info": { "name": "vertical_linear_regression" } }
319
28.090909
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_linear_regression/sync.py
from x_types import String, Bool, Integer, Float, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_linear_regression_sync_rule = { "train_info": All() }
213
25.75
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_linear_regression/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_linear_regression_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_linear_regression" }, "input": { ...
1,499
28.411765
89
py
XFL
XFL-master/python/algorithm/config_descriptor/local_data_split/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional local_data_split_rule = { "identity": "label_trainer", "model_info": { "name": "local_data_split" }, "input": { "dataset": ...
1,191
24.913043
89
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_chatglm/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional horizontal_chatglm_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "horizontal_chatglm" }, "input": { ...
1,127
27.2
97
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_chatglm/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional from common.utils.auto_descriptor.torch.optimizer import optimizer from common.utils.auto_descriptor.torch.lr_scheduler import lr_scheduler from common.utils.aut...
4,378
37.412281
109
py
XFL
XFL-master/python/algorithm/config_descriptor/local_normalization/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional local_normalization_rule = { "identity": "label_trainer", "model_info": { "name": "local_normalization" }, "input": { "trainset...
2,050
30.553846
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_feature_selection/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_feature_selection_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_feature_selection" }, ...
2,296
30.465753
132
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_feature_selection/sync.py
from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_feature_selection_sync_rule = { "train_info": All() }
232
32.285714
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_feature_selection/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_feature_selection_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_feature_selection" }, "input": { ...
1,751
29.206897
91
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_xgboost/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_xgboost_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_xgboost" }, "input": { "...
6,331
36.247059
203
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_xgboost/sync.py
from x_types import String, Bool, Integer, Float, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_xgboost_sync_rule = { "train_info": { "interaction_params": All(), "train_params": { "lossfunc": All(), "num_trees": All(...
569
22.75
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_xgboost/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_xgboost_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_xgboost" }, "input": { "trainset": [...
2,239
31.463768
93
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_logistic_regression/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_logistic_regression_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "vertical_logistic_regression" }, ...
5,373
34.124183
122
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_logistic_regression/sync.py
from x_types import String, Bool, Integer, Float, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_logistic_regression_sync_rule = { "train_info": { "interaction_params": All(), "train_params": { "global_epoch": All(), "...
458
23.157895
89
py
XFL
XFL-master/python/algorithm/config_descriptor/vertical_logistic_regression/trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional vertical_logistic_regression_trainer_rule = { "identity": "trainer", "model_info": { "name": "vertical_logistic_regression" }, "input":...
1,573
28.698113
89
py
XFL
XFL-master/python/algorithm/config_descriptor/local_feature_preprocess/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional local_feature_preprocess_rule = { "identity": "label_trainer", "model_info": { "name": "local_feature_preprocess" }, "input": { ...
3,031
33.850575
110
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_binning_woe_iv/label_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional horizontal_binning_woe_iv_label_trainer_rule = { "identity": "label_trainer", "model_info": { "name": "horizontal_binning_woe_iv" }, "i...
862
25.96875
89
py
XFL
XFL-master/python/algorithm/config_descriptor/horizontal_binning_woe_iv/assist_trainer.py
from common.checker.x_types import String, Bool, Integer, Float, Any from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional from common.utils.auto_descriptor.torch.optimizer import optimizer from common.utils.auto_descriptor.torch.lr_scheduler import lr_scheduler from common.utils.aut...
1,640
37.162791
109
py
XFL
XFL-master/python/algorithm/core/activation.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
743
32.818182
74
py
XFL
XFL-master/python/algorithm/core/encryption_param.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
2,593
31.425
106
py
XFL
XFL-master/python/algorithm/core/paillier_acceleration.py
# Copyright 2022 The XFL Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
2,513
31.230769
97
py