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/algorithm/framework/vertical/binning_woe_iv/trainer.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 ...
7,790
46.797546
119
py
XFL
XFL-master/python/algorithm/framework/vertical/logistic_regression/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 ...
11,213
40.227941
119
py
XFL
XFL-master/python/algorithm/framework/vertical/logistic_regression/label_trainer.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...
26,570
47.13587
135
py
XFL
XFL-master/python/algorithm/framework/vertical/logistic_regression/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/framework/vertical/logistic_regression/trainer.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 ...
15,010
47.579288
144
py
XFL
XFL-master/python/algorithm/framework/local/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/framework/local/feature_preprocess/label_trainer.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 ...
16,082
48.638889
120
py
XFL
XFL-master/python/algorithm/framework/local/feature_preprocess/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/framework/local/feature_preprocess/trainer.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 ...
737
35.9
74
py
XFL
XFL-master/python/algorithm/framework/local/normalization/label_trainer.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...
10,839
40.532567
104
py
XFL
XFL-master/python/algorithm/framework/local/normalization/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/framework/local/normalization/trainer.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 ...
725
35.3
74
py
XFL
XFL-master/python/algorithm/framework/local/standard_scaler/label_trainer.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...
9,078
40.456621
104
py
XFL
XFL-master/python/algorithm/framework/local/standard_scaler/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/framework/local/standard_scaler/trainer.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 ...
728
35.45
74
py
XFL
XFL-master/python/algorithm/framework/local/data_split/label_trainer.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,496
37.294355
105
py
XFL
XFL-master/python/algorithm/framework/local/data_split/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/framework/local/data_split/trainer.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 ...
713
34.7
74
py
XFL
XFL-master/python/algorithm/framework/local/data_statistic/label_trainer.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 ...
7,411
41.843931
109
py
XFL
XFL-master/python/algorithm/framework/local/data_statistic/__init__.py
0
0
0
py
XFL
XFL-master/python/algorithm/framework/local/data_statistic/trainer.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 ...
725
35.3
74
py
XFL
XFL-master/test/conftest.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,322
29.068182
83
py
XFL
XFL-master/test/service/test_fed_node.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...
7,796
46.254545
196
py
XFL
XFL-master/test/service/test_fed_job.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,527
33.727273
94
py
XFL
XFL-master/test/service/test_service_scheduler.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 ...
31,059
40.303191
136
py
XFL
XFL-master/test/service/test_fed_control.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,258
48.378788
194
py
XFL
XFL-master/test/service/test_fed_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 ...
11,371
39.614286
120
py
XFL
XFL-master/test/service/test_service_trainer.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,866
35.828571
94
py
XFL
XFL-master/test/common/test_xoperator.py
import pytest from common.xoperator import get_operator from algorithm.framework.vertical.xgboost.trainer import VerticalXgboostTrainer @pytest.mark.parametrize("name, role", [ ("vertical_xgboost", "trainer"), ("vertical_xgboost", "client"), ("mixed_xgboost", "label_trainer"), ("vertical_abc", "assi...
614
33.166667
83
py
XFL
XFL-master/test/common/test_xregister.py
import pytest from common.xregister import xregister, XRegister from algorithm.framework.vertical.xgboost.trainer import VerticalXgboostTrainer class Abc(): pass class TestXRegister(): @pytest.mark.parametrize("target", [ (Abc), ("abc"), ("Abc"), (Abc), ("CDE") ]) def test_register(self, ta...
1,380
29.021739
79
py
XFL
XFL-master/test/common/crypto/__init__.py
0
0
0
py
XFL
XFL-master/test/common/crypto/key_agreement/test_diffie_hellman_C(t_t).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,622
30.823529
117
py
XFL
XFL-master/test/common/crypto/key_agreement/test_diffie_hellman_B(s_t).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,625
30.882353
120
py
XFL
XFL-master/test/common/crypto/key_agreement/__init__.py
0
0
0
py
XFL
XFL-master/test/common/crypto/key_agreement/test_diffie_hellman_A(s_t).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,662
31.607843
120
py
XFL
XFL-master/test/common/crypto/key_agreement/test_diffie_hellman_D(t_t).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,622
30.823529
117
py
XFL
XFL-master/test/common/crypto/paillier/test_paillier.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...
10,813
35.167224
88
py
XFL
XFL-master/test/common/crypto/one_time_pad/test_one_time_add.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 ...
10,297
34.388316
135
py
XFL
XFL-master/test/common/crypto/csprng/test_hmac_drbg_cross_validation.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,054
30.822917
84
py
XFL
XFL-master/test/common/crypto/csprng/hmac_drbg_benchmark.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,706
27.960938
91
py
XFL
XFL-master/test/common/crypto/csprng/test_hmac_drbg_generator.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,782
38.673401
113
py
XFL
XFL-master/test/common/crypto/csprng/test_hmac_drbg.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,525
38.204082
113
py
XFL
XFL-master/test/common/crypto/csprng/__init__.py
0
0
0
py
XFL
XFL-master/test/common/fedavg/otp/test_trainer3.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,072
29.485294
87
py
XFL
XFL-master/test/common/fedavg/otp/test_trainer1.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,075
29.985075
87
py
XFL
XFL-master/test/common/fedavg/otp/random_input.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,199
24.882353
74
py
XFL
XFL-master/test/common/fedavg/otp/test_trainer2.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,072
29.485294
87
py
XFL
XFL-master/test/common/fedavg/otp/test_scheduler.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,756
28.967391
87
py
XFL
XFL-master/test/common/communication/test_channel.py
import pytest from unittest.mock import patch from common.communication.gRPC.python.channel import BroadcastChannel, DualChannel, FullConnectedChannel from common.communication.gRPC.python.commu import Commu from service.fed_config import FedConfig class TestFullConnectedChannel(): @pytest.mark.parametrize("...
8,248
40.661616
108
py
XFL
XFL-master/test/common/communication/test_commu.py
# from pytest_mock_resources import create_redis_fixture # from common.communication.gRPC.python.commu import Commu # # pip install "pytest-mock-resources" # def test_commu(): # fed_info = { # "scheduler": "1", # "trainer": { # "2": "", # "3": "" # }, # "no...
353
21.125
58
py
XFL
XFL-master/test/common/storage/test_redis_conn.py
from redis.client import StrictRedis from common.storage.redis.redis_conn import RedisConn class TestRedisConn: def test_redis_conn(self, mocker): rc = RedisConn() mocker.patch.object( RedisConn, "init_job_id" ) rc.init_redis() def test_redis_func(self, mocker): ...
1,581
24.111111
58
py
XFL
XFL-master/test/common/checker/test_checker.py
import pytest from common.checker.checker import check, cal_num_valid, find_key_matched from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional def test_dict(): config = {"a": 1} rule = {"a": {}} ...
2,807
24.527273
89
py
XFL
XFL-master/test/common/checker/test_matcher.py
import pytest from common.checker.checker import check, cal_num_valid, find_key_matched from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional from common.checker.matcher import get_matched_config def test_ma...
3,579
23.689655
89
py
XFL
XFL-master/test/common/checker/test_types.py
import pytest from common.checker.checker import check, cal_num_valid from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional type_pairs = [ ( { "a": 1, "b": 'b', ...
3,885
25.080537
89
py
XFL
XFL-master/test/common/checker/test_descriptor.py
import importlib import json import os from pathlib import Path from common.checker.compare import compare def test_local_operator(): path = Path(Path(__file__).parent.parent.parent.parent) / 'demo' / 'local' for operator in os.listdir(path): conf_path = path / operator / '1party' / 'config' / '...
3,802
39.892473
137
py
XFL
XFL-master/test/common/checker/test_qualifiers.py
import pytest from common.checker.checker import check, cal_num_valid from common.checker.x_types import String, Bool, Integer, Float, Any, All from common.checker.qualifiers import OneOf, SomeOf, RepeatableSomeOf, Required, Optional def test_OneOf(): config = {"a": 1} rule = {"a": OneOf(1, 2).set_default(1)...
4,306
26.787097
100
py
XFL
XFL-master/test/common/utils/test_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,425
35.564103
140
py
XFL
XFL-master/test/common/utils/test_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 ...
2,707
32.85
181
py
XFL
XFL-master/test/common/utils/test_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,104
32.412698
178
py
XFL
XFL-master/test/common/utils/test_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 law...
1,168
28.225
74
py
XFL
XFL-master/test/common/utils/test_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 ...
1,902
39.489362
106
py
XFL
XFL-master/test/common/utils/test_fed_config_parser.py
from common.utils.fed_conf_parser import FedConfParser conf = { "fed_info": { "scheduler": { "scheduler": "localhost:55001" }, "trainer": { "node-1": "localhost:56001", "node-2": "localhost:56002" }, "assist_trainer": { "assist...
2,230
50.883721
273
py
XFL
XFL-master/test/common/utils/test_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 ...
1,397
33.95
74
py
XFL
XFL-master/test/api/test_xfl.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,664
42.117647
179
py
XFL
XFL-master/test/api/test_trainer_run.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,366
36.646552
96
py
XFL
XFL-master/test/api/test_scheduler_run.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,100
35.916667
121
py
XFL
XFL-master/test/api/test_client.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 ...
4,168
46.375
252
py
XFL
XFL-master/test/algorithm/core/test_optimizer.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 ...
801
31.08
74
py
XFL
XFL-master/test/algorithm/core/test_output.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,468
33.97619
80
py
XFL
XFL-master/test/algorithm/core/test_data_io_spark.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,965
30.553191
98
py
XFL
XFL-master/test/algorithm/core/test_core_metrics.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,128
28.710526
74
py
XFL
XFL-master/test/algorithm/core/test_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 ...
1,325
30.571429
74
py
XFL
XFL-master/test/algorithm/core/test_data_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...
2,276
29.36
101
py
XFL
XFL-master/test/algorithm/core/horizontal/template/torch/test_h_aggregation_torch.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 ...
6,396
38.245399
130
py
XFL
XFL-master/test/algorithm/core/tokenizer/tokenization_chatglm.py
"""Tokenization classes for ChatGLM.""" from typing import List, Optional, Union import os from transformers.tokenization_utils import PreTrainedTokenizer from transformers.utils import logging, PaddingStrategy from transformers.tokenization_utils_base import EncodedInput, BatchEncoding from typing import Dict import ...
16,652
37.638051
119
py
XFL
XFL-master/test/algorithm/core/tree/test_pack_index.py
from algorithm.core.tree.pack_index import pack_index, unpack_index def test_pack_index(): a = [3, 6, 1] res = pack_index(a) res = unpack_index(res) assert res == sorted(a)
191
20.333333
67
py
XFL
XFL-master/test/algorithm/core/tree/test_cat_param_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,134
39.753968
83
py
XFL
XFL-master/test/algorithm/core/tree/test_tree_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 ...
12,015
34.134503
92
py
XFL
XFL-master/test/algorithm/core/tree/test_goss.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,035
28.085714
81
py
XFL
XFL-master/test/algorithm/core/tree/test_feature_importance.py
from algorithm.core.tree.feature_importance import FeatureImportance class TestFeatureImportance(object): def test_split_importance(self): fi1 = FeatureImportance(0.1, main_type='gain') fi2 = FeatureImportance(0.2, main_type='gain') fi3 = FeatureImportance(0, 1, main_type='split') fi4 = FeatureImportance(0, ...
898
27.09375
68
py
XFL
XFL-master/test/algorithm/common/evaluation/test_metrics.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 ...
4,957
35.455882
101
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_poisson_regression.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...
8,853
39.063348
117
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_vgg.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 ...
6,686
38.803571
130
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_vgg_jax.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 ...
7,515
41.948571
130
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_linear_regression.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 ...
6,895
38.405714
130
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_gcn_mol.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...
7,122
38.137363
110
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_logistic_regression.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 ...
7,640
40.302703
130
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_kmeans.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...
6,816
38.404624
130
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_resnet_paddle.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 requi...
8,572
42.29798
132
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_resnet.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 ...
6,736
38.863905
130
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_bert.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 ...
6,819
39.35503
119
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_nbafl.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...
10,433
37.360294
130
py
XFL
XFL-master/test/algorithm/framework/horizontal/test_h_densenet.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 ...
6,733
39.083333
131
py
XFL
XFL-master/test/algorithm/framework/transfer/test_transfer_logistic_regression.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...
6,386
36.133721
106
py
XFL
XFL-master/test/algorithm/framework/vertical/test_woe_iv.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,497
43.393822
102
py
XFL
XFL-master/test/algorithm/framework/vertical/test_pearson.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 ...
21,221
40.368421
118
py
XFL
XFL-master/test/algorithm/framework/vertical/test_kmeans.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...
23,214
35.330203
123
py
XFL
XFL-master/test/algorithm/framework/vertical/test_linear_regression.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 ...
25,474
47.990385
120
py
XFL
XFL-master/test/algorithm/framework/vertical/test_logistic_regression.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...
30,427
39.952894
120
py
XFL
XFL-master/test/algorithm/framework/vertical/test_sampler.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...
12,300
43.568841
111
py