id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,286,700 | clientamppt.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientamppt.cpython-38.pyc | U
#ôıc‰ ã @ st d dl Z d dlmZ d dlmZ d dlZd dlZd dlZd dlZd dl m
Z
d dlmZ G dd„ deƒZ
dd„ ZdS ) é N)ÚClient)Úlabel_binarize)Úmetricsc s4 e Zd Z‡ fdd„Zdd„ Zdd„ Zdd„ Z‡ ZS ) ÚclientAMPPTc ... | 4,168 | Python | .py | 48 | 85.666667 | 553 | 0.415291 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,701 | clientrep.cpython-39.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientrep.cpython-39.pyc | a
W¢bc ã @ sD d dl Z d dlmZ d dlZd dlZd dlmZ G dd„ deƒZdS )é N)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )Ú clientRepc sh t ƒ j||||fi |¤� t ¡ | _tjj| jj
¡ | jd�| _tjj|... | 2,347 | Python | .py | 32 | 72.1875 | 294 | 0.431779 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,702 | clientamp.cpython-39.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientamp.cpython-39.pyc | a
f¾`cÍ ã @ sT d dl Z d dlmZ d dlmZ d dlZd dlZd dlZG dd„ deƒZ dd„ Z
dS )é N)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )Ú clientAMPc s` t ƒ j||||fi |¤� |j| _|j| _t | j¡| _... | 2,249 | Python | .py | 24 | 92.625 | 277 | 0.44699 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,703 | clientpt.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientpt.cpython-38.pyc | U
˜øc¶ ã @ sd d dl Z d dlmZ d dlZd dlZd dlmZ d dlZd dl m
Z
d dlmZ G dd„ deƒZ
dS )é N)ÚClient)Úlabel_binarize)Úmetricsc s4 e Zd Z‡ fdd„Zdd„ Zdd„ Zdd„ Z‡ ZS ) ÚclientPTc s„ t ƒ... | 3,693 | Python | .py | 46 | 78.956522 | 553 | 0.426261 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,704 | clientpFedMe.cpython-39.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientpFedMe.cpython-39.pyc | a
f¾`cş ã @ sX d dl Zd dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
G dd„ de
ƒZdS )é N)ÚpFedMeOptimizer)ÚClientc s4 e Zd Z‡ fdd„Zdd„ Zdd„ Zdd„ Z‡ ZS ) ÚclientpFedMec s† t ƒ j||||fi |¤... | 2,889 | Python | .py | 29 | 98.344828 | 455 | 0.454387 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,705 | clientbnpt.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientbnpt.cpython-38.pyc | U
T¸kc÷ ã @ sL d dl Z d dlmZ d dlZd dlZd dlmZ d dlZG dd„ deƒZ dS )é N)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )Ú
clientBNPTc s� t ƒ j||||f|� t ¡ | _tjj| j ¡ | j
d�| _tj... | 2,909 | Python | .py | 41 | 69.658537 | 240 | 0.427675 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,706 | clientprox.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientprox.cpython-38.pyc | U
”jfc› ã @ sX d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
G dd„ de
ƒZdS )é N)ÚPerturbedGradientDescent)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )Ú
clientProxc s\ t ƒ j||||f|� ... | 1,963 | Python | .py | 20 | 96.9 | 283 | 0.459877 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,707 | clientprox.cpython-39.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientprox.cpython-39.pyc | a
f¾`c› ã @ sX d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
G dd„ de
ƒZdS )é N)ÚPerturbedGradientDescent)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )Ú
clientProxc s` t ƒ j||||fi |¤... | 2,029 | Python | .py | 20 | 100.3 | 293 | 0.471642 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,708 | clientreppt.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientreppt.cpython-38.pyc | U
�P÷c� ã @ sd d dl Z d dlmZ d dlZd dlZd dlmZ d dlZd dl m
Z
d dlmZ G dd„ deƒZ
dS )é N)ÚClient)Úlabel_binarize)Úmetricsc s4 e Zd Z‡ fdd„Zdd„ Zdd„ Zdd„ Z‡ ZS ) ÚclientREPPTc sœ ... | 3,886 | Python | .py | 51 | 74.745098 | 558 | 0.422576 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,709 | clientmtl.cpython-37.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientmtl.cpython-37.pyc | B
ùùecª
ã @ s\ d dl Z d dlmZ d dlmZ d dlZd dlZd dlZd dl Z G dd„ deƒZ
dd„ ZdS )é N)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )Ú clientMTLc s` t ƒ j||||f|� d | _d | _d| _|j| _d| _t ¡... | 2,511 | Python | .py | 26 | 95.423077 | 285 | 0.423974 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,710 | clientapfl.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientapfl.cpython-38.pyc | U
”jfcâ
ã @ sL d dl Z d dlZd dlmZ d dlZd dlZd dlmZ G dd„ deƒZ dS )é N)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )Ú
clientAPFLc sn t ƒ j||||f|� t ¡ | _tjj| j ¡ | j
d�| _|j... | 2,404 | Python | .py | 33 | 71.69697 | 241 | 0.42285 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,711 | clientprox.cpython-37.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientprox.cpython-37.pyc | B
fc› ã @ sX d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
G dd„ de
ƒZdS )é N)ÚPerturbedGradientDescent)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )Ú
clientProxc s\ t ƒ j||||f|� |j| _t ... | 1,943 | Python | .py | 20 | 95.9 | 283 | 0.466216 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,712 | clientperavg.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientperavg.cpython-38.pyc | U
”jfc ã @ sX d dl Zd dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
G dd„ de
ƒZdS )é N)ÚPerAvgOptimizer)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )ÚclientPerAvgc sB t ƒ j||||f|� | j| _... | 2,805 | Python | .py | 40 | 68.9 | 226 | 0.395155 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,713 | clientreppt.cpython-37.pyc | hkgdifyu_pFedPT/system/flcore/clients/__pycache__/clientreppt.cpython-37.pyc | B
K´ccZ ã @ sL d dl Z d dlmZ d dlZd dlZd dlmZ d dlZG dd„ deƒZ dS )é N)ÚClientc s, e Zd Z‡ fdd„Zdd„ Zdd„ Z‡ ZS )ÚclientREPPTc sd t ƒ j||||f|� t ¡ | _tjj| jj
¡ | jd�| _tjj| jj
... | 2,710 | Python | .py | 44 | 60.113636 | 288 | 0.421447 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,714 | clientavg-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientavg-checkpoint.py | import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
class clientAVG(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **kwargs)
self.loss = nn.Cr... | 1,962 | Python | .py | 45 | 31.866667 | 93 | 0.54878 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,715 | clientditto-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientditto-checkpoint.py | import torch
import numpy as np
import time
import copy
import torch.nn as nn
from flcore.optimizers.fedoptimizer import PerturbedGradientDescent
from flcore.clients.clientbase import Client
import torch.nn.functional as F
from sklearn.preprocessing import label_binarize
from sklearn import metrics
# from utils.privacy... | 4,593 | Python | .py | 107 | 30.897196 | 108 | 0.550567 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,716 | clientpFedMe-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientpFedMe-checkpoint.py | import numpy as np
import time
import copy
import torch
import torch.nn as nn
from flcore.optimizers.fedoptimizer import pFedMeOptimizer
from flcore.clients.clientbase import Client
class clientpFedMe(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, ... | 4,350 | Python | .py | 94 | 35.308511 | 127 | 0.566912 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,717 | clientrep-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientrep-checkpoint.py | import torch
import torch.nn as nn
import numpy as np
import time
from system.flcore.clients.clientbase import Client
# from utils.privacy import *
class clientRep(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **kwargs... | 2,827 | Python | .py | 63 | 32.095238 | 99 | 0.559867 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,718 | clientpt-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientpt-checkpoint.py | import torch
import torch.nn as nn
import numpy as np
import time
from system.flcore.clients.clientbase import Client
import copy
# from utils.privacy import *
class clientPT(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samp... | 3,248 | Python | .py | 72 | 33.291667 | 99 | 0.571745 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,719 | clientfomo-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientfomo-checkpoint.py | import torch
import torch.nn as nn
import numpy as np
import time
import copy
from flcore.clients.clientbase import Client
from torch.utils.data import DataLoader
from utils.data_utils import read_client_data
class clientFomo(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
su... | 6,368 | Python | .py | 140 | 34.857143 | 121 | 0.596191 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,720 | clientper-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientper-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
class clientPer(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **kwargs)
self.l... | 1,668 | Python | .py | 39 | 31.74359 | 90 | 0.573034 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,721 | clientbase-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientbase-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import os
import torch.nn.functional as F
from torch.utils.data import DataLoader
from sklearn.preprocessing import label_binarize
from sklearn import metrics
from utils.data_utils import read_client_data
class Client(object):
"""
Base class fo... | 5,643 | Python | .py | 131 | 33.778626 | 108 | 0.586036 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,722 | clientdynpt-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientdynpt-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
# from utils.privacy import *
class clientDynPT(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples,... | 4,956 | Python | .py | 103 | 36.747573 | 99 | 0.583144 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,723 | clientbn-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientbn-checkpoint.py | import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
# from utils.privacy import *
class clientBN(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **kwargs)
... | 2,207 | Python | .py | 50 | 32.28 | 95 | 0.55298 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,724 | clientphp-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientphp-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
# from utils.privacy import *
class clientPHP(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **k... | 3,672 | Python | .py | 82 | 34.085366 | 102 | 0.555238 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,725 | clientreppt-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientreppt-checkpoint.py | import torch
import torch.nn as nn
import numpy as np
import time
from system.flcore.clients.clientbase import Client
import copy
# from utils.privacy import *
class clientREPPT(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_sa... | 3,562 | Python | .py | 78 | 33.974359 | 99 | 0.576168 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,726 | clientdyn-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientdyn-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
# from utils.privacy import *
class clientDyn(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **k... | 3,199 | Python | .py | 68 | 36.132353 | 93 | 0.587796 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,727 | clientproto-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientproto-checkpoint.py | from collections import defaultdict
import copy
import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
# from utils.privacy import *
class clientProto(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args... | 4,762 | Python | .py | 115 | 28.756522 | 96 | 0.519461 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,728 | clientmoon-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientmoon-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import time
import torch.nn.functional as F
from flcore.clients.clientbase import Client
# from utils.privacy import *
class clientMOON(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id,... | 3,023 | Python | .py | 66 | 34.757576 | 219 | 0.574403 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,729 | clientperavg-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientperavg-checkpoint.py | import numpy as np
import torch
import time
import copy
import torch.nn as nn
from flcore.optimizers.fedoptimizer import PerAvgOptimizer
from flcore.clients.clientbase import Client
class clientPerAvg(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, ... | 3,719 | Python | .py | 91 | 28.758242 | 88 | 0.529787 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,730 | clientmtl-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientmtl-checkpoint.py | import torch
import torch.nn as nn
from flcore.clients.clientbase import Client
import numpy as np
import time
import math
import copy
class clientMTL(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **kwargs)
... | 2,734 | Python | .py | 65 | 31.030769 | 102 | 0.549183 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,731 | clientapfl-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientapfl-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
class clientAPFL(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **kwargs)
self.... | 2,786 | Python | .py | 59 | 35.627119 | 128 | 0.58352 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,732 | clientt-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientt-checkpoint.py | import torch
import torch.nn as nn
import numpy as np
import time
from system.flcore.clients.clientbase import Client
import copy
# from utils.privacy import *
class clientT(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_sampl... | 2,962 | Python | .py | 61 | 38.245902 | 99 | 0.619229 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,733 | clientbabu-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientbabu-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
class clientBABU(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **kwargs)
self.... | 2,762 | Python | .py | 63 | 31.285714 | 93 | 0.556186 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,734 | clientrod-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientrod-checkpoint.py | import copy
import torch
import torch.nn as nn
import numpy as np
import time
from flcore.clients.clientbase import Client
import torch.nn.functional as F
from sklearn.preprocessing import label_binarize
from sklearn import metrics
class clientROD(Client):
def __init__(self, args, id, train_samples, test_samples,... | 4,529 | Python | .py | 106 | 31.443396 | 88 | 0.563661 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,735 | clientprox-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientprox-checkpoint.py | import torch
import numpy as np
import time
import copy
import torch.nn as nn
from flcore.optimizers.fedoptimizer import PerturbedGradientDescent
from flcore.clients.clientbase import Client
class clientProx(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(arg... | 1,947 | Python | .py | 44 | 34.613636 | 115 | 0.59651 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,736 | clientamp-checkpoint.py | hkgdifyu_pFedPT/system/flcore/clients/.ipynb_checkpoints/clientamp-checkpoint.py | import torch
import torch.nn as nn
from flcore.clients.clientbase import Client
import numpy as np
import time
import copy
class clientAMP(Client):
def __init__(self, args, id, train_samples, test_samples, **kwargs):
super().__init__(args, id, train_samples, test_samples, **kwargs)
self.a... | 2,315 | Python | .py | 56 | 30.660714 | 88 | 0.576629 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,737 | models.py | hkgdifyu_pFedPT/system/flcore/trainmodel/models.py | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
import logging
from functools import partial
from collections import OrderedDict
from transformers import ViTImageProcessor, ViTForImageClassification
import numpy as np
from timm.data import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD
... | 13,249 | Python | .py | 295 | 35.677966 | 118 | 0.577847 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,738 | bilstm.cpython-37.pyc | hkgdifyu_pFedPT/system/flcore/trainmodel/__pycache__/bilstm.cpython-37.pyc | B
É:ccÁ ã @ s* d dl Z d dl mZ G dd„ dejƒZdS )é N)Únnc s. e Zd Zd ‡ fdd„ Zdd„ Zdd„ Z‡ ZS )
ÚBiLSTM_TextClassificationFNc sú t t| ƒ ¡ || _|| _|| _|| _|| _|| _|| _ | | _
|| _|
d k rbtj
t |
¡¡|... | 2,663 | Python | .py | 30 | 87.7 | 247 | 0.465452 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,739 | vit.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/trainmodel/__pycache__/vit.cpython-38.pyc | U
”jfc7 ã @ s– d dl Z d dl mZ d dlmZmZ d dlmZ dd„ ZG dd„ dejƒZ G d d
„ d
ejƒZ
G dd„ dejƒZG d
d„ dejƒZG dd„ dejƒZ
dS )é N)Únn)Ú rearrangeÚrepeat)Ú Rearrangec C s t | tƒr| S | | fS ©N)Ú
isinstanceÚtuple... | 5,881 | Python | .py | 56 | 103.875 | 448 | 0.353072 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,740 | vit.cpython-37.pyc | hkgdifyu_pFedPT/system/flcore/trainmodel/__pycache__/vit.cpython-37.pyc | B
Ƭdc7 ã @ s– d dl Z d dl mZ d dlmZmZ d dlmZ dd„ ZG dd„ dejƒZ G d d
„ d
ejƒZ
G dd„ dejƒZG d
d„ dejƒZG dd„ dejƒZ
dS )é N)Únn)Ú rearrangeÚrepeat)Ú Rearrangec C s t | tƒr| S | | fS )N)Ú
isinstanceÚtuple)Út© r... | 6,118 | Python | .py | 73 | 82.69863 | 448 | 0.349983 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,741 | models.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/trainmodel/__pycache__/models.cpython-38.pyc | U
>Nÿcbl ã @ s d dl Z d dlmZ d dlm mZ d dlZd dlZd dlm Z d dl
mZ d dlZ
d dlmZmZ d dlmZmZmZmZ dZG dd„ dejƒZG d d
„ d
ejƒZG dd„ dejƒZG d
d„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZ... | 21,084 | Python | .py | 210 | 97.457143 | 663 | 0.359138 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,742 | mobilenet_v2.cpython-37.pyc | hkgdifyu_pFedPT/system/flcore/trainmodel/__pycache__/mobilenet_v2.cpython-37.pyc | B
Ê:cc ã @ sv d dl mZ d dlmZ ddgZddiZddd„ZG d d
„ d
ejƒZG dd„ dej ƒZ
G d
d„ dej ƒZddd„ZdS )é )Únn)Úload_state_dict_from_urlÚMobileNetV2Úmobilenet_v2z=https://download.pytorch.org/models/mobilenet_v2-b0353104.pthNc C sB |... | 5,660 | Python | .py | 67 | 80.761194 | 395 | 0.473618 | hkgdifyu/pFedPT | 8 | 3 | 0 | GPL-2.0 | 9/5/2024, 10:48:09 PM (Europe/Amsterdam) |
2,286,743 | alexnet.cpython-38.pyc | hkgdifyu_pFedPT/system/flcore/trainmodel/__pycache__/alexnet.cpython-38.pyc | U
”jfc) ã @ sP d dl Z d dlmZ d dlmZ ddgZddiZG dd„ dejƒZd
d d„Z dS )é N)Úload_state_dict_from_urlÚAlexNetÚalexnetz<https://download.pytorch.org/models/alexnet-owt-4df8aa71.pthc s& |