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
FATE
FATE-master/python/federatedml/protobuf/homo_model_convert/pytorch/__init__.py
# # Copyright 2021 The FATE 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 appli...
616
37.5625
75
py
FATE
FATE-master/python/federatedml/protobuf/generated/ftl_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ftl-model-param.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 f...
1,461
39.611111
314
py
FATE
FATE-master/python/federatedml/protobuf/generated/data_io_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: data-io-param.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 fro...
6,622
60.324074
1,565
py
FATE
FATE-master/python/federatedml/protobuf/generated/linr_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: linr-model-param.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 ...
3,714
57.968254
1,095
py
FATE
FATE-master/python/federatedml/protobuf/generated/label_transform_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: label-transform-param.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 _mes...
4,548
59.653333
959
py
FATE
FATE-master/python/federatedml/protobuf/generated/sir_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sir-param.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...
1,580
42.916667
288
py
FATE
FATE-master/python/federatedml/protobuf/generated/poisson_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: poisson-model-meta.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 _messag...
1,791
48.777778
608
py
FATE
FATE-master/python/federatedml/protobuf/generated/ftl_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ftl-model-meta.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 fr...
2,919
51.142857
828
py
FATE
FATE-master/python/federatedml/protobuf/generated/column_expand_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: column-expand-meta.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 _messag...
1,555
42.222222
372
py
FATE
FATE-master/python/federatedml/protobuf/generated/lr_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: lr-model-meta.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 fro...
2,476
52.847826
923
py
FATE
FATE-master/python/federatedml/protobuf/generated/feature_selection_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature-selection-meta.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 _me...
8,363
65.380952
2,399
py
FATE
FATE-master/python/federatedml/protobuf/generated/data_transform_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: data-transform-meta.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 _messa...
4,565
65.173913
1,464
py
FATE
FATE-master/python/federatedml/protobuf/generated/boosting_tree_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: boosting-tree-model-meta.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 _...
5,484
62.77907
1,855
py
FATE
FATE-master/python/federatedml/protobuf/generated/pearson_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pearson-model-meta.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 _messag...
1,430
38.75
247
py
FATE
FATE-master/python/federatedml/protobuf/generated/data_transform_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: data-transform-param.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 _mess...
7,623
69.592593
1,744
py
FATE
FATE-master/python/federatedml/protobuf/generated/sample_weight_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sample-weight-model-meta.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 _...
1,596
43.361111
351
py
FATE
FATE-master/python/federatedml/protobuf/generated/hetero_nn_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: hetero-nn-model-param.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 _mes...
3,525
61.964286
1,328
py
FATE
FATE-master/python/federatedml/protobuf/generated/poisson_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: poisson-model-param.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 _messa...
2,560
51.265306
683
py
FATE
FATE-master/python/federatedml/protobuf/generated/sample_weight_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sample-weight-model-param.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 ...
2,601
52.102041
556
py
FATE
FATE-master/python/federatedml/protobuf/generated/feature_imputation_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature-imputation-meta.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 _m...
3,350
55.79661
841
py
FATE
FATE-master/python/federatedml/protobuf/generated/one_vs_rest_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: one-vs-rest-param.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...
2,083
44.304348
450
py
FATE
FATE-master/python/federatedml/protobuf/generated/hetero_kmeans_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: hetero-kmeans-param.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 _messa...
2,852
49.946429
746
py
FATE
FATE-master/python/federatedml/protobuf/generated/psi_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: psi-model-param.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 f...
3,025
50.288136
815
py
FATE
FATE-master/python/federatedml/protobuf/generated/column_expand_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: column-expand-param.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 _messa...
1,438
38.972222
248
py
FATE
FATE-master/python/federatedml/protobuf/generated/pipeline_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pipeline.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 goo...
1,867
50.888889
786
py
FATE
FATE-master/python/federatedml/protobuf/generated/statistic_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: statistic-param.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 f...
3,828
54.492754
928
py
FATE
FATE-master/python/federatedml/protobuf/generated/label_transform_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: label-transform-meta.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 _mess...
1,461
39.611111
254
py
FATE
FATE-master/python/federatedml/protobuf/generated/data_io_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: data-io-meta.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...
4,043
57.608696
1,337
py
FATE
FATE-master/python/federatedml/protobuf/generated/onehot_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: onehot-meta.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 ...
1,421
38.5
312
py
FATE
FATE-master/python/federatedml/protobuf/generated/feature_selection_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature-selection-param.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 _m...
8,438
64.929688
2,224
py
FATE
FATE-master/python/federatedml/protobuf/generated/boosting_tree_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: boosting-tree-model-param.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 ...
10,581
74.049645
3,102
py
FATE
FATE-master/python/federatedml/protobuf/generated/feature_scale_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature-scale-param.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 _messa...
3,044
50.610169
740
py
FATE
FATE-master/python/federatedml/protobuf/generated/feature_imputation_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature-imputation-param.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 _...
6,660
66.969388
1,498
py
FATE
FATE-master/python/federatedml/protobuf/generated/homo_nn_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: homo-nn-model-meta.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 _messag...
1,443
39.111111
320
py
FATE
FATE-master/python/federatedml/protobuf/generated/sshe_cipher_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sshe-cipher-param.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...
3,272
48.590909
806
py
FATE
FATE-master/python/federatedml/protobuf/generated/hetero_kmeans_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: hetero-kmeans-meta.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 _messag...
1,485
40.277778
312
py
FATE
FATE-master/python/federatedml/protobuf/generated/__init__.py
import os import sys sys.path.append(os.path.dirname(__file__))
65
12.2
42
py
FATE
FATE-master/python/federatedml/protobuf/generated/pearson_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pearson-model-param.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 _messa...
2,901
50.821429
877
py
FATE
FATE-master/python/federatedml/protobuf/generated/feature_scale_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature-scale-meta.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 _messag...
1,663
45.222222
550
py
FATE
FATE-master/python/federatedml/protobuf/generated/feature_binning_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature-binning-meta.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 _mess...
2,590
55.326087
926
py
FATE
FATE-master/python/federatedml/protobuf/generated/sir_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sir-meta.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 goo...
1,784
48.583333
502
py
FATE
FATE-master/python/federatedml/protobuf/generated/statistic_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: statistic-meta.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 fr...
1,509
40.944444
364
py
FATE
FATE-master/python/federatedml/protobuf/generated/feature_binning_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: feature-binning-param.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 _mes...
6,530
72.382022
2,546
py
FATE
FATE-master/python/federatedml/protobuf/generated/lr_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: lr-model-param.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 fr...
7,093
64.082569
2,288
py
FATE
FATE-master/python/federatedml/protobuf/generated/hetero_nn_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: hetero-nn-model-meta.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 _mess...
3,714
55.287879
1,155
py
FATE
FATE-master/python/federatedml/protobuf/generated/linr_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: linr-model-meta.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 f...
1,740
47.361111
593
py
FATE
FATE-master/python/federatedml/protobuf/generated/psi_model_meta_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: psi-model-meta.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 fr...
1,343
36.333333
247
py
FATE
FATE-master/python/federatedml/protobuf/generated/onehot_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: onehot-param.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...
2,745
45.542373
608
py
FATE
FATE-master/python/federatedml/protobuf/generated/homo_nn_model_param_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: homo-nn-model-param.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 _messa...
1,650
44.861111
515
py
FATE
FATE-master/python/federatedml/protobuf/test/test_tree_converter.py
from federatedml.protobuf.model_migrate.converter.tree_model_converter import HeteroSBTConverter from federatedml.protobuf.generated.boosting_tree_model_param_pb2 import BoostingTreeModelParam, NodeParam, \ DecisionTreeModelParam, FeatureImportanceInfo from federatedml.protobuf.generated.boosting_tree_model_meta_pb...
1,840
42.833333
109
py
FATE
FATE-master/python/federatedml/protobuf/test/test_binning_converter.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lice...
1,583
36.714286
107
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/binning_model_migrate.py
# # Copyright 2019 The FATE 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 appli...
2,720
40.227273
109
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/model_migrate.py
from typing import List from federatedml.protobuf.model_migrate.converter_factory import converter_factory from federatedml.model_base import serialize_models import copy def generate_id_mapping(old_id, new_id): if old_id is None and new_id is None: return {} elif not (isinstance(old_id, list) and is...
2,660
38.132353
103
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/converter_factory.py
import typing from federatedml.protobuf.model_migrate.converter.binning_model_converter import FeatureBinningConverter from federatedml.protobuf.model_migrate.converter.converter_base import ProtoConverterBase from federatedml.protobuf.model_migrate.converter.feature_selection_model_converter import \ HeteroFeatur...
1,272
46.148148
104
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/converter/tree_model_converter.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lice...
2,723
40.272727
95
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/converter/binning_model_converter.py
# # Copyright 2019 The FATE 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 appli...
4,038
45.425287
119
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/converter/data_transform_converter.py
# # Copyright 2019 The FATE 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 appli...
1,618
40.512821
91
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/converter/feature_selection_model_converter.py
# # Copyright 2019 The FATE 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 appli...
4,293
48.356322
118
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/converter/converter_base.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lice...
3,044
33.213483
85
py
FATE
FATE-master/python/federatedml/protobuf/model_migrate/converter/pearson_model_converter.py
# # Copyright 2019 The FATE 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 appli...
1,769
43.25
103
py
FATE
FATE-master/python/federatedml/protobuf/model_merge/merge_sbt.py
import json import numpy as np import lightgbm as lgb from sklearn.pipeline import Pipeline from lightgbm.sklearn import _LGBMLabelEncoder from federatedml.protobuf.homo_model_convert.lightgbm.gbdt import sbt_to_lgb from federatedml.protobuf.generated.boosting_tree_model_param_pb2 import BoostingTreeModelParam from fed...
3,821
39.231579
116
py
FATE
FATE-master/python/federatedml/protobuf/model_merge/merge_hetero_models.py
import copy import tempfile import json import pickle import base64 from federatedml.protobuf.model_merge.merge_sbt import merge_sbt from federatedml.protobuf.model_merge.merge_hetero_lr import merge_lr from nyoka import lgb_to_pmml from sklearn2pmml import sklearn2pmml def get_pmml_str(pmml_pipeline, target_name): ...
3,281
39.518519
113
py
FATE
FATE-master/python/federatedml/protobuf/model_merge/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/protobuf/model_merge/merge_hetero_lr.py
import json import numpy as np from federatedml.protobuf.generated.lr_model_param_pb2 import LRModelParam from federatedml.protobuf.generated.lr_model_meta_pb2 import LRModelMeta from sklearn.linear_model import LogisticRegression from sklearn2pmml.pipeline import PMMLPipeline from google.protobuf import json_format ...
4,686
46.826531
117
py
FATE
FATE-master/python/federatedml/framework/weights.py
# # Copyright 2019 The FATE 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 appli...
8,403
28.696113
101
py
FATE
FATE-master/python/federatedml/framework/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
661
35.777778
75
py
FATE
FATE-master/python/federatedml/framework/scheduler/interface.py
# # Copyright 2019 The FATE 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 appli...
1,321
32.05
75
py
FATE
FATE-master/python/federatedml/framework/homo/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
661
35.777778
75
py
FATE
FATE-master/python/federatedml/framework/homo/blocks.py
from fate_arch.session import get_parties from federatedml.transfer_variable.base_transfer_variable import Variable, BaseTransferVariables from federatedml.util import consts from federatedml.secureprotol.diffie_hellman import DiffieHellman from federatedml.secureprotol import PaillierEncrypt from federatedml.securepro...
9,154
34.484496
112
py
FATE
FATE-master/python/federatedml/framework/homo/util/scatter.py
# # Copyright 2019 The FATE 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 appli...
1,962
31.180328
76
py
FATE
FATE-master/python/federatedml/framework/homo/util/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/framework/homo/test/__init__.py
# # Copyright 2019 The FATE 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 appli...
616
37.5625
75
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_random_padding_cipher.py
# # Copyright 2019 The FATE 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 appli...
2,025
31.15873
94
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_loss_scatter.py
# # Copyright 2019 The FATE 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 appli...
1,664
31.647059
88
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_aggregator.py
# # Copyright 2019 The FATE 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 appli...
1,949
33.821429
89
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_diffie_hellman.py
# # Copyright 2019 The FATE 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 appli...
1,738
33.78
92
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_make_uuid.py
# # Copyright 2019 The FATE 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 appli...
1,623
33.553191
101
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_secure_mean_aggregator.py
# # Copyright 2019 The FATE 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 appli...
2,445
32.972222
87
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_model_scatter.py
# # Copyright 2019 The FATE 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 appli...
1,717
32.686275
104
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/__init__.py
# # Copyright 2019 The FATE 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 appli...
616
37.5625
75
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_has_converged.py
# # Copyright 2019 The FATE 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 appli...
1,556
32.12766
101
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_model_broadcaster.py
# # Copyright 2019 The FATE 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 appli...
1,681
33.326531
100
py
FATE
FATE-master/python/federatedml/framework/homo/test/blocks/test_utils.py
# # Copyright 2019 The FATE 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 appli...
2,764
33.5625
117
py
FATE
FATE-master/python/federatedml/framework/homo/aggregator/__init__.py
from federatedml.framework.homo.aggregator.secure_aggregator import SecureAggregatorClient, SecureAggregatorServer __all__ = ['SecureAggregatorClient', 'SecureAggregatorServer']
179
44
114
py
FATE
FATE-master/python/federatedml/framework/homo/aggregator/aggregator_base.py
from federatedml.framework.homo.blocks import ServerCommunicator, ClientCommunicator class AutoSuffix(object): """ A auto suffix that will auto increase count """ def __init__(self, suffix_str=""): self._count = 0 self.suffix_str = suffix_str def __call__(self): concat_s...
3,238
37.105882
129
py
FATE
FATE-master/python/federatedml/framework/homo/aggregator/secure_aggregator.py
from federatedml.framework.homo.blocks import RandomPaddingCipherClient, RandomPaddingCipherServer, PadsCipher, RandomPaddingCipherTransVar from federatedml.framework.homo.aggregator.aggregator_base import AggregatorBaseClient, AutoSuffix, AggregatorBaseServer import numpy as np from federatedml.framework.weights impor...
11,628
39.378472
139
py
FATE
FATE-master/python/federatedml/framework/test/__init__.py
# # Copyright 2019 The FATE 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 appli...
616
37.5625
75
py
FATE
FATE-master/python/federatedml/framework/test/homo/__init__.py
# # Copyright 2019 The FATE 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 appli...
616
37.5625
75
py
FATE
FATE-master/python/federatedml/framework/test/homo/homo_test_sync_base.py
# # Copyright 2019 The FATE 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 appli...
3,835
34.518519
114
py
FATE
FATE-master/python/federatedml/framework/hetero/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
661
35.777778
75
py
FATE
FATE-master/python/federatedml/framework/hetero/procedure/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
661
35.777778
75
py
FATE
FATE-master/python/federatedml/framework/hetero/procedure/batch_generator.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
7,113
43.186335
116
py
FATE
FATE-master/python/federatedml/framework/hetero/procedure/two_parties_paillier_cipher.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
1,602
33.847826
90
py
FATE
FATE-master/python/federatedml/framework/hetero/procedure/convergence.py
# # Copyright 2019 The FATE 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 appli...
1,225
33.055556
88
py
FATE
FATE-master/python/federatedml/framework/hetero/procedure/paillier_cipher.py
# # Copyright 2019 The FATE 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 appli...
1,271
34.333333
90
py
FATE
FATE-master/python/federatedml/framework/hetero/util/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
661
35.777778
75
py
FATE
FATE-master/python/federatedml/framework/hetero/sync/batch_info_sync.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
4,439
45.736842
104
py
FATE
FATE-master/python/federatedml/framework/hetero/sync/converge_sync.py
# Copyright 2019 The FATE 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 applica...
1,467
33.952381
100
py
FATE
FATE-master/python/federatedml/framework/hetero/sync/selection_info_sync.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
4,437
52.46988
118
py