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/feature/feature_selection/model_adapter/pearson_adapter.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,559
34.068493
88
py
FATE
FATE-master/python/federatedml/feature/feature_selection/model_adapter/isometric_model.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...
5,845
32.405714
95
py
FATE
FATE-master/python/federatedml/feature/feature_selection/model_adapter/adapter_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/lic...
812
32.875
75
py
FATE
FATE-master/python/federatedml/feature/homo_feature_binning/homo_binning_cpn.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,808
43.811765
115
py
FATE
FATE-master/python/federatedml/feature/homo_feature_binning/homo_binning_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...
10,494
43.096639
115
py
FATE
FATE-master/python/federatedml/feature/homo_feature_binning/homo_split_points.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...
5,258
39.145038
120
py
FATE
FATE-master/python/federatedml/feature/homo_feature_binning/recursive_query_binning.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...
7,153
42.357576
114
py
FATE
FATE-master/python/federatedml/feature/homo_feature_binning/__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/feature/homo_feature_binning/virtual_summary_binning.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...
5,525
43.926829
114
py
FATE
FATE-master/python/federatedml/feature/feature_scale/min_max_scale.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...
5,676
37.619048
129
py
FATE
FATE-master/python/federatedml/feature/feature_scale/standard_scale.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...
6,627
36.659091
126
py
FATE
FATE-master/python/federatedml/feature/feature_scale/base_scale.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...
10,746
38.08
129
py
FATE
FATE-master/python/federatedml/feature/feature_scale/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/feature/feature_scale/test/min_max_scale_test.py
import copy import time import unittest import numpy as np from fate_arch.session import computing_session as session from sklearn.preprocessing import MinMaxScaler as MMS from federatedml.feature.feature_scale.min_max_scale import MinMaxScale from federatedml.feature.instance import Instance from federatedml.param.s...
17,455
40.661098
102
py
FATE
FATE-master/python/federatedml/feature/feature_scale/test/standard_scale_test.py
import copy import time import unittest import numpy as np from fate_arch.session import computing_session as session from sklearn.preprocessing import StandardScaler as SSL from federatedml.feature.feature_scale.standard_scale import StandardScale from federatedml.feature.instance import Instance from federatedml.pa...
19,500
42.143805
120
py
FATE
FATE-master/python/federatedml/feature/hetero_feature_selection/base_feature_selection.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...
25,830
52.591286
119
py
FATE
FATE-master/python/federatedml/feature/hetero_feature_selection/__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/feature/test/sampler_test.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...
7,513
39.836957
112
py
FATE
FATE-master/python/federatedml/feature/test/instance_test.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,259
31.307692
96
py
FATE
FATE-master/python/federatedml/feature/test/feature_imputation_test.py
import numpy as np import unittest from federatedml.feature.feature_imputation import load_value_to_type class TestFeatureImputation(unittest.TestCase): def test_load_value_to_type(self): true_v = None v_type = "None" str_v = None self.assertEqual(true_v, load_value_to_type(str_v,...
1,006
26.216216
69
py
FATE
FATE-master/python/federatedml/feature/test/imputer_test.py
import numpy as np import random import time import unittest from fate_arch.session import computing_session as session from federatedml.feature.imputer import Imputer class TestImputer(unittest.TestCase): def setUp(self): session.init("test_imputer_" + str(random.random())) str_time = time.strft...
10,924
55.314433
120
py
FATE
FATE-master/python/federatedml/feature/test/one_hot_test.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...
2,567
33.24
90
py
FATE
FATE-master/python/federatedml/feature/test/sparse_vector_test.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,620
30.173077
88
py
FATE
FATE-master/python/federatedml/feature/test/quantile_test.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...
5,747
40.352518
120
py
FATE
FATE-master/python/federatedml/feature/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/feature/test/ohe_alignment_test.py
import unittest import uuid from fate_arch.session import computing_session as session from federatedml.feature.homo_onehot.homo_ohe_arbiter import HomoOneHotArbiter class TestOHE_alignment(unittest.TestCase): def setUp(self): self.job_id = str(uuid.uuid1()) session.init(self.job_id) def tes...
1,102
31.441176
114
py
FATE
FATE-master/python/federatedml/feature/hetero_feature_binning/hetero_binning_guest.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...
17,537
47.049315
116
py
FATE
FATE-master/python/federatedml/feature/hetero_feature_binning/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/feature/hetero_feature_binning/base_feature_binning.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...
20,700
46.370709
118
py
FATE
FATE-master/python/federatedml/feature/hetero_feature_binning/hetero_binning_host.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,421
45.021858
119
py
FATE
FATE-master/python/federatedml/feature/homo_onehot/homo_ohe_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/lic...
4,612
38.767241
124
py
FATE
FATE-master/python/federatedml/feature/homo_onehot/homo_ohe_arbiter.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...
3,005
31.322581
103
py
FATE
FATE-master/python/federatedml/feature/homo_onehot/__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...
685
30.181818
75
py
FATE
FATE-master/python/federatedml/feature/binning/base_binning.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...
19,553
36.968932
111
py
FATE
FATE-master/python/federatedml/feature/binning/iv_calculator.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...
17,696
38.239468
113
py
FATE
FATE-master/python/federatedml/feature/binning/bin_inner_param.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,522
36.994949
84
py
FATE
FATE-master/python/federatedml/feature/binning/quantile_binning.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...
11,770
36.487261
107
py
FATE
FATE-master/python/federatedml/feature/binning/__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/feature/binning/quantile_summaries.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...
15,189
32.68071
109
py
FATE
FATE-master/python/federatedml/feature/binning/bucket_binning.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...
3,082
37.5375
106
py
FATE
FATE-master/python/federatedml/feature/binning/quantile_tool.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,447
38.181818
104
py
FATE
FATE-master/python/federatedml/feature/binning/bin_result.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...
13,139
36.758621
100
py
FATE
FATE-master/python/federatedml/feature/binning/test/quantile_binning_test.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...
5,697
37.5
113
py
FATE
FATE-master/python/federatedml/feature/binning/test/iv_calculator_test.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...
5,189
39.546875
115
py
FATE
FATE-master/python/federatedml/feature/binning/test/bucket_binning_test.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,280
37.151163
106
py
FATE
FATE-master/python/federatedml/feature/binning/test/__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/feature/binning/test/quantile_summaries_test.py
import math import unittest import numpy as np from federatedml.feature.binning.quantile_summaries import QuantileSummaries class TestQuantileSummaries(unittest.TestCase): def setUp(self): self.percentile_rate = list(range(0, 100, 1)) self.data_num = 10000 np.random.seed(15) self...
2,110
35.396552
104
py
FATE
FATE-master/python/federatedml/feature/binning/test/base_binning_test.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...
2,368
29.371795
87
py
FATE
FATE-master/python/federatedml/feature/binning/test/test_optimal_binning/__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/feature/binning/test/test_optimal_binning/hetero_optimal_feature_binning_test.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...
8,829
34.748988
107
py
FATE
FATE-master/python/federatedml/feature/binning/test/test_quantile_binning_module/homo_feature_binning_test.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,576
40.404372
114
py
FATE
FATE-master/python/federatedml/feature/binning/test/test_quantile_binning_module/__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/feature/binning/test/test_quantile_binning_module/hetero_feature_binning_test.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...
8,716
34.434959
107
py
FATE
FATE-master/python/federatedml/feature/binning/optimal_binning/heap.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...
9,675
34.837037
120
py
FATE
FATE-master/python/federatedml/feature/binning/optimal_binning/bucket_info.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...
3,232
33.763441
113
py
FATE
FATE-master/python/federatedml/feature/binning/optimal_binning/__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/feature/binning/optimal_binning/optimal_binning.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...
30,704
49.668317
117
py
FATE
FATE-master/python/federatedml/evaluation/performance_recorder.py
from federatedml.util import consts class PerformanceRecorder(object): """ This class record performance(single value metrics during the training process) """ def __init__(self): # all of them are single value metrics self.allowed_metric = [consts.AUC, ...
2,787
33
84
py
FATE
FATE-master/python/federatedml/evaluation/metric_interface.py
from sklearn.metrics import roc_auc_score from sklearn.metrics import roc_curve import numpy as np import logging from federatedml.util import consts from federatedml.evaluation.metrics import classification_metric from federatedml.evaluation.metrics import regression_metric from federatedml.evaluation.metrics import c...
19,476
37.72167
156
py
FATE
FATE-master/python/federatedml/evaluation/__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...
705
34.3
75
py
FATE
FATE-master/python/federatedml/evaluation/evaluation.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...
39,206
36.269011
108
py
FATE
FATE-master/python/federatedml/evaluation/test/test_evaluation_module.py
import unittest import numpy as np from federatedml.util import consts from federatedml.evaluation.metrics import classification_metric, clustering_metric, regression_metric from federatedml.evaluation.metric_interface import MetricInterface class TestEvaluation(unittest.TestCase): def setUp(self): self...
3,943
40.957447
102
py
FATE
FATE-master/python/federatedml/evaluation/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/evaluation/metrics/regression_metric.py
from scipy.stats import stats from sklearn.metrics import explained_variance_score from sklearn.metrics import mean_absolute_error from sklearn.metrics import mean_squared_error from sklearn.metrics import median_absolute_error from sklearn.metrics import r2_score import numpy as np class RMSE(object): @staticm...
2,315
25.930233
173
py
FATE
FATE-master/python/federatedml/evaluation/metrics/clustering_metric.py
import numpy as np from sklearn.metrics import jaccard_score as jaccard_similarity_score from sklearn.metrics import fowlkes_mallows_score from sklearn.metrics import adjusted_rand_score class JaccardSimilarityScore(object): """ Compute jaccard_similarity_score """ def compute(self, labels, pred_scor...
2,852
30.01087
100
py
FATE
FATE-master/python/federatedml/evaluation/metrics/classification_metric.py
import copy import sys import numpy as np import pandas as pd from scipy.stats import stats from sklearn.metrics import accuracy_score from sklearn.metrics import precision_score from sklearn.metrics import recall_score from sklearn.metrics import average_precision_score ROUND_NUM = 6 def neg_pos_count(labels: np.n...
21,650
35.758913
119
py
FATE
FATE-master/python/federatedml/evaluation/metrics/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/callbacks/callback_list.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,901
42.313433
90
py
FATE
FATE-master/python/federatedml/callbacks/validation_strategy.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...
16,887
39.891041
119
py
FATE
FATE-master/python/federatedml/callbacks/model_checkpoint.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,657
39.439024
110
py
FATE
FATE-master/python/federatedml/callbacks/__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...
614
40
75
py
FATE
FATE-master/python/federatedml/callbacks/callback_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...
887
29.62069
75
py
FATE
FATE-master/python/federatedml/model_selection/k_fold.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...
12,789
43.72028
159
py
FATE
FATE-master/python/federatedml/model_selection/mini_batch.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...
9,230
44.69802
120
py
FATE
FATE-master/python/federatedml/model_selection/indices.py
""" This module provide some utilized methods that operate the index of distributed data """ # # 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 ...
1,049
34
84
py
FATE
FATE-master/python/federatedml/model_selection/start_cross_validation.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,233
31.473684
82
py
FATE
FATE-master/python/federatedml/model_selection/cross_validate.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,194
39.648148
111
py
FATE
FATE-master/python/federatedml/model_selection/__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...
765
35.47619
75
py
FATE
FATE-master/python/federatedml/model_selection/test/mini_batch_test.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,894
36.095238
86
py
FATE
FATE-master/python/federatedml/model_selection/test/KFold_test.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,773
34.113924
98
py
FATE
FATE-master/python/federatedml/model_selection/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/model_selection/stepwise/start_stepwise.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,501
34.761905
79
py
FATE
FATE-master/python/federatedml/model_selection/stepwise/step.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,082
35.270588
112
py
FATE
FATE-master/python/federatedml/model_selection/stepwise/hetero_stepwise.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...
22,445
43.981964
117
py
FATE
FATE-master/python/federatedml/model_selection/stepwise/__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/model_selection/stepwise/test/stepwise_test.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,374
34.15625
120
py
FATE
FATE-master/python/federatedml/model_selection/stepwise/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/model_selection/data_split/homo_data_split.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,523
41.679245
109
py
FATE
FATE-master/python/federatedml/model_selection/data_split/data_split.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...
12,672
38.235294
118
py
FATE
FATE-master/python/federatedml/model_selection/data_split/hetero_data_split.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,656
42.933962
109
py
FATE
FATE-master/python/federatedml/model_selection/data_split/__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...
765
35.47619
75
py
FATE
FATE-master/python/federatedml/model_selection/data_split/test/data_split_test.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,384
36.197802
107
py
FATE
FATE-master/python/federatedml/model_selection/data_split/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/semi_supervised_learning/positive_unlabeled/positive_unlabeled_transformer.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,934
41.891892
114
py
FATE
FATE-master/python/federatedml/semi_supervised_learning/positive_unlabeled/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/linear_model/linear_model_weight.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...
3,567
36.557895
109
py
FATE
FATE-master/python/federatedml/linear_model/linear_model_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/lic...
9,360
37.208163
97
py
FATE
FATE-master/python/federatedml/linear_model/__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/linear_model/coordinated_linear_model/base_linear_model_arbiter.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...
7,192
45.707792
118
py
FATE
FATE-master/python/federatedml/linear_model/coordinated_linear_model/__init__.py
0
0
0
py