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/nn/homo/trainer/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/nn/homo/trainer/fedavg_graph_trainer.py | import torch
import torch as t
import numpy as np
from torch_geometric.loader import NeighborLoader
from federatedml.framework.homo.aggregator.secure_aggregator import SecureAggregatorClient as SecureAggClient
from federatedml.nn.dataset.base import Dataset
from federatedml.nn.homo.trainer.fedavg_trainer import FedAVGT... | 11,560 | 41.977695 | 152 | py |
FATE | FATE-master/python/federatedml/nn/hetero/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... | 8,452 | 36.402655 | 121 | py |
FATE | FATE-master/python/federatedml/nn/hetero/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... | 5,442 | 36.027211 | 82 | py |
FATE | FATE-master/python/federatedml/nn/hetero/model.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,203 | 37.573991 | 114 | py |
FATE | FATE-master/python/federatedml/nn/hetero/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/nn/hetero/guest.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... | 12,612 | 37.571865 | 96 | py |
FATE | FATE-master/python/federatedml/nn/hetero/nn_component/bottom_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... | 3,119 | 32.913043 | 120 | py |
FATE | FATE-master/python/federatedml/nn/hetero/nn_component/top_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,348 | 35.636986 | 117 | py |
FATE | FATE-master/python/federatedml/nn/hetero/nn_component/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/nn/hetero/nn_component/torch_model.py | import numpy as np
import tempfile
from federatedml.util import LOGGER
try: # for the situation that torch is not installed, but other modules still can be used
import torch
import torch as t
import copy
from types import SimpleNamespace
from torch import autograd
from federatedml.nn.backend.t... | 6,909 | 30.697248 | 112 | py |
FATE | FATE-master/python/federatedml/nn/hetero/protection_enhance/coae.py | from federatedml.util import LOGGER
from federatedml.util import consts
try:
import torch
import torch as t
from torch import nn
from torch.nn import Module
from torch.nn import functional as F
except ImportError:
Module = object
def entropy(tensor):
return -t.sum(tensor * t.log2(tensor))... | 4,246 | 25.710692 | 79 | py |
FATE | FATE-master/python/federatedml/nn/hetero/protection_enhance/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/nn/hetero/strategy/comparision.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,609 | 28.272727 | 75 | py |
FATE | FATE-master/python/federatedml/nn/hetero/strategy/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/nn/hetero/strategy/selector.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,988 | 30.571429 | 81 | py |
FATE | FATE-master/python/federatedml/nn/hetero/interactive/base.py | import numpy as np
from federatedml.param.hetero_nn_param import HeteroNNParam
from federatedml.transfer_variable.base_transfer_variable import BaseTransferVariables
class InteractiveLayerBase(object):
def __init__(self, params: HeteroNNParam, **kwargs):
self.params = params
self.transfer_variab... | 1,559 | 25.896552 | 93 | py |
FATE | FATE-master/python/federatedml/nn/hetero/interactive/he_interactive_layer.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... | 36,890 | 37.071207 | 122 | py |
FATE | FATE-master/python/federatedml/nn/hetero/interactive/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/nn/hetero/interactive/utils/numpy_layer.py | import torch
import numpy as np
from federatedml.util import consts
from federatedml.secureprotol.paillier_tensor import PaillierTensor
class NumpyDenseLayer(object):
"""
NumpyDenseLayer is designed for Pailler Tensor compute
"""
def __init__(self):
self.input = None
self.model_weig... | 6,956 | 27.62963 | 123 | py |
FATE | FATE-master/python/federatedml/nn/loss/cross_entropy.py | import torch as t
from federatedml.util import consts
from torch.nn.functional import one_hot
def cross_entropy(p2, p1, reduction='mean'):
p2 = p2 + consts.FLOAT_ZERO # to avoid nan
assert p2.shape == p1.shape
if reduction == 'sum':
return -t.sum(p1 * t.log(p2))
elif reduction == 'mean':
... | 913 | 25.114286 | 66 | py |
FATE | FATE-master/python/federatedml/nn/loss/weighted_loss.py | import torch as t
from torch.nn import BCELoss
class WeightedBCE(t.nn.Module):
def __init__(self) -> None:
super().__init__()
self.loss_fn = BCELoss(reduce=False)
def forward(self, pred, label_and_weight):
label, weights = label_and_weight
losses = self.loss_fn(pred, label)
... | 425 | 24.058824 | 47 | py |
FATE | FATE-master/python/federatedml/statistic/statics.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... | 24,473 | 35.257778 | 120 | py |
FATE | FATE-master/python/federatedml/statistic/data_overview.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,969 | 31.794521 | 128 | py |
FATE | FATE-master/python/federatedml/statistic/data_statistics.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,524 | 37.926941 | 103 | py |
FATE | FATE-master/python/federatedml/statistic/__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... | 691 | 33.6 | 75 | py |
FATE | FATE-master/python/federatedml/statistic/feldman_verifiable_sum/feldman_verifiable_sum_host.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,624 | 41.824074 | 109 | py |
FATE | FATE-master/python/federatedml/statistic/feldman_verifiable_sum/base_feldman_verifiable_sum.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,526 | 37.758242 | 119 | py |
FATE | FATE-master/python/federatedml/statistic/feldman_verifiable_sum/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/statistic/feldman_verifiable_sum/feldman_verifiable_sum_guest.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,824 | 39.208333 | 109 | py |
FATE | FATE-master/python/federatedml/statistic/scorecard/score_transformer.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,627 | 41.851852 | 111 | py |
FATE | FATE-master/python/federatedml/statistic/scorecard/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/statistic/correlation/hetero_pearson.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... | 13,069 | 36.130682 | 96 | py |
FATE | FATE-master/python/federatedml/statistic/correlation/__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/statistic/test/statics_test.py | import math
import time
import unittest
import uuid
import numpy as np
from fate_arch.session import computing_session as session
from federatedml.util import consts
session.init("123")
from federatedml.feature.instance import Instance
from federatedml.statistic.statics import MultivariateStatisticalSummary
class... | 8,213 | 44.131868 | 108 | py |
FATE | FATE-master/python/federatedml/statistic/test/hetero_pearson_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,563 | 37.146341 | 100 | py |
FATE | FATE-master/python/federatedml/statistic/test/statistic_cpn_test.py | import unittest
import uuid
import numpy as np
from fate_arch.session import computing_session as session
from federatedml.param.statistics_param import StatisticsParam
from federatedml.statistic.data_statistics import DataStatistics
from federatedml.feature.instance import Instance
class TestStatisticCpn(unittest.... | 2,290 | 34.246154 | 85 | py |
FATE | FATE-master/python/federatedml/statistic/test/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/statistic/union/union.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,165 | 42.206349 | 113 | py |
FATE | FATE-master/python/federatedml/statistic/union/__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/statistic/psi/psi.py | import functools
import copy
import numpy as np
from federatedml.feature.binning.quantile_binning import QuantileBinning
from federatedml.param.feature_binning_param import FeatureBinningParam
from federatedml.util import consts
from federatedml.feature.fate_element_type import NoneType
from federatedml.feature.instanc... | 12,582 | 34.545198 | 115 | py |
FATE | FATE-master/python/federatedml/statistic/psi/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/statistic/psi/test/test_psi.py | import unittest
import numpy as np
import time
import copy
import uuid
from fate_arch.session import computing_session as session
from federatedml.feature.instance import Instance
from federatedml.feature.sparse_vector import SparseVector
from federatedml.statistic.psi.psi import PSI
from federatedml.param.psi_param im... | 2,385 | 32.605634 | 105 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/match_id_process.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,376 | 35.161765 | 109 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/intersect_model.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... | 30,728 | 51.618151 | 142 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/base_intersect.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... | 8,751 | 35.619247 | 113 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/__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... | 2,242 | 46.723404 | 101 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/intersect_preprocess.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... | 5,447 | 26.654822 | 93 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/test/intersection_guest_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,149 | 33.126984 | 97 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/test/intersection_host_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,085 | 32.111111 | 75 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/dh_intersect/dh_intersect_host.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... | 7,896 | 46.860606 | 107 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/dh_intersect/dh_intersect_guest.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... | 10,621 | 50.814634 | 116 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/dh_intersect/__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/statistic/intersect/dh_intersect/dh_intersect_base.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... | 4,890 | 40.803419 | 119 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/ecdh_intersect/ecdh_intersect_base.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... | 5,559 | 41.121212 | 119 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/ecdh_intersect/ecdh_intersect_guest.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... | 9,766 | 48.831633 | 111 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/ecdh_intersect/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/federatedml/statistic/intersect/ecdh_intersect/ecdh_intersect_host.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... | 6,749 | 45.875 | 95 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/raw_intersect/raw_intersect_guest.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... | 1,334 | 35.081081 | 96 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/raw_intersect/raw_intersect_host.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... | 1,327 | 34.891892 | 91 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/raw_intersect/raw_intersect_base.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... | 7,318 | 43.357576 | 117 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/raw_intersect/__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/statistic/intersect/rsa_intersect/rsa_intersect_base.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... | 8,652 | 41.416667 | 122 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/rsa_intersect/rsa_intersect_guest.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... | 22,292 | 55.153652 | 115 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/rsa_intersect/rsa_intersect_host.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... | 18,839 | 53.450867 | 118 | py |
FATE | FATE-master/python/federatedml/statistic/intersect/rsa_intersect/__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/feature/sparse_vector.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,047 | 27.054795 | 80 | py |
FATE | FATE-master/python/federatedml/feature/fate_element_type.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... | 818 | 29.333333 | 75 | py |
FATE | FATE-master/python/federatedml/feature/imputer.py | import copy
import functools
import numpy as np
from federatedml.feature.fate_element_type import NoneType
from federatedml.feature.instance import Instance
from federatedml.statistic import data_overview
from federatedml.statistic.data_overview import get_header
from federatedml.statistic.statics import Multivariate... | 18,463 | 44.590123 | 158 | py |
FATE | FATE-master/python/federatedml/feature/sampler.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... | 25,786 | 34.716066 | 118 | py |
FATE | FATE-master/python/federatedml/feature/column_expand.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,268 | 36.76506 | 110 | py |
FATE | FATE-master/python/federatedml/feature/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,346 | 37.466667 | 109 | py |
FATE | FATE-master/python/federatedml/feature/feature_imputation.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,431 | 46.20362 | 121 | py |
FATE | FATE-master/python/federatedml/feature/one_hot_encoder.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/licens... | 15,474 | 38.27665 | 112 | py |
FATE | FATE-master/python/federatedml/feature/__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... | 1,461 | 42 | 75 | py |
FATE | FATE-master/python/federatedml/feature/instance.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,139 | 26.792208 | 80 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/filter_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,006 | 30.551181 | 119 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/outlier_filter.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,578 | 39.296875 | 108 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/filter_factory.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... | 10,258 | 44.595556 | 106 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/selection_properties.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,068 | 41.248092 | 115 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/correlation_filter.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,824 | 48.456522 | 109 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/manually_filter.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,350 | 46.813187 | 109 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/unique_value_filter.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,165 | 35.1 | 81 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/iso_model_filter.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,217 | 41.63871 | 117 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/percentage_value_filter.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,195 | 38.215311 | 117 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/variance_coe_filter.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,651 | 36.352113 | 110 | py |
FATE | FATE-master/python/federatedml/feature/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/feature_selection/iv_filter.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,207 | 39.1 | 90 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/test/outlier_filter_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... | 4,352 | 39.305556 | 106 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/test/manually_filter_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... | 3,518 | 38.988636 | 90 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/test/percentage_value_filter_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... | 4,439 | 36.627119 | 116 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/test/variance_coe_filter_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... | 4,539 | 39.535714 | 106 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/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/feature_selection/test/unique_value_filter_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... | 3,819 | 39.210526 | 106 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/model_adapter/tree_adapter.py | import numpy as np
from federatedml.feature.feature_selection.model_adapter import isometric_model
from federatedml.feature.feature_selection.model_adapter.adapter_base import BaseAdapter
from federatedml.util import consts
def feature_importance_converter(model_meta, model_param):
# extract feature importance ... | 3,546 | 33.105769 | 91 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/model_adapter/psi_adapter.py | import numpy as np
from federatedml.feature.feature_selection.model_adapter import isometric_model
from federatedml.feature.feature_selection.model_adapter.adapter_base import BaseAdapter
from federatedml.util import consts
class PSIAdapter(BaseAdapter):
def convert(self, model_meta, model_param):
psi_... | 795 | 29.615385 | 88 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/model_adapter/binning_adapter.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,434 | 39.892857 | 107 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/model_adapter/statistic_adapter.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,585 | 39.666667 | 88 | py |
FATE | FATE-master/python/federatedml/feature/feature_selection/model_adapter/__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/feature_selection/model_adapter/adapter_factory.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,869 | 41.5 | 98 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.