GithubHelp home page GithubHelp logo

aush's Introduction

Paper

This is the code repository for AUSH: a GAN-based RS attacking framework

Please kindly cite our paper:

@inproceedings{Lin2020Attacking, author = {Lin, Chen and Chen, Si and Li, Hui and Xiao, Yanghua and Li, Lianyun and Yang, Qian}, title = {Attacking Recommender Systems with Augmented User Profiles}, year = {2020}, booktitle = {Proceedings of the 29th ACM International Conference on Information & Knowledge Management}, pages = {855โ€“864}, location = {Virtual Event, Ireland}, series = {CIKM '20} }

step1:Pre-processing

test_main\data_preprocess.py transforms amazon 5cores ratings to tuples [userid,itemid, normalized float rating]

step2: Initialize

test_main\data_preprocess.py

  • select attack target
  • select attack number (default fix 50)
  • select filler size
  • selected items and target users
  • settings for bandwagon attack

step3. Training

  • baseline attack models
python main_baseline_attack.py --dataset filmTrust --attack_methods average,segment,random,bandwagon --targets 601,623,619,64,558 --filler_num 36 --bandwagon_selected 103,98,115 --sample_filler 1
  • evaluation
python main_train_rec.py --dataset filmTrust --attack_method segment --model_name NMF_25 --target_ids 601,623,619,64,558 --filler_num 36
  • RS performance before attack
python main_train_rec.py --dataset filmTrust --attack_method no --model_name NMF_25 --target_ids 601,623,619,64,558 --filler_num 36
  • training AUSH
python main_gan_attack.py --dataset filmTrust --target_ids 601,623,619,64,558 --filler_num 36
  • Evluation (AUSH)
python main_train_rec.py --dataset filmTrust --attack_method gan --model_name NMF_25 --target_ids 601,623,619,64,558 --filler_num 36
  • Comparative Study
python main_eval_attack.py --dataset filmTrust --filler_num 36 --attack_methods gan,segment,average --rec_model_names NMF_25 --target_ids 601,623,619,64,558

python main_eval_similarity.py --dataset filmTrust --filler_num 36 --targets 601,623 --bandwagon_selected 103,98,115

aush's People

Contributors

cheyennelin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.