Steganografiya quyidagi sohalarda qo'llaniladi, lekin ular bilan cheklanmaydi


X_train (array): Modified input data



Download 45,83 Kb.
bet7/40
Sana14.04.2022
Hajmi45,83 Kb.
#551350
1   2   3   4   5   6   7   8   9   10   ...   40
Bog'liq
sregono

X_train (array): Modified input data
y_train (array): Modified label data

"""

if self.args.trigger_technique == 'noise':
ownership, X_train, y_train = self.generate_trigger_noise(
X_train,
y_train,
mode)
elif self.args.trigger_technique == 'dawn':
ownership, X_train, y_train = self.generate_trigger_dawn(
X_train,
y_train,
mode)
else:
raise NotImplementedError

return ownership, X_train, y_train

def generate_trigger_dawn(self, X_train, y_train, mode='CLASSIFICATION'):
"""Generation trigger set based on the paper.

DAWN: Dynamic Adversarial Watermarking of Neural Networks

by Szyller et al.

Args:
X_train (array): Input data
y_train (array): Label data
mode (str, optional): Classification or
regression mode

Returns:
ownership (dict): Watermark triggers information
X_train (array): Modified input data
y_train (array): Modified label data

"""
WM_X, WM_y = [], []
ownership = {}
for item, label in zip(X_train.to_numpy(), y_train):
if not self.__is_prediction_dawn(item):
WM_X.append(item)
WM_y.append(label)

ownership['inputs'] = WM_X
ownership['labels'] = WM_y
ownership['bounds'] = (min(y_train), max(y_train))

return ownership, X_train, y_train

def generate_trigger_noise(self, X_train, y_train, mode='CLASSIFICATION'):
"""Generation random trigger set.

Args:
X_train (array): Input data
y_train (array): Label data

Download 45,83 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   ...   40




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish