Coder Social home page Coder Social logo

linxyhaha / ifl Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.55 MB

Mitigating Spurious Correlations for Self-supervised Recommendation

Home Page: https://arxiv.org/abs/2212.04282

Python 98.98% Shell 1.02%
ood-generalization pytorch recommender-system self-supervised-learning spurious-correlations

ifl's Introduction

IFL: Mitigating Spurious Correlations for Self-supervised Recommendation

This is the pytorch implementation of our paper

Mitigating Spurious Correlations for Self-supervised Recommendation

Xinyu Lin, Yiyan Xu, Wenjie Wang, Yang Zhang, Fuli Feng

Environment

  • Anaconda 3
  • python 3.7.15
  • pytorch 1.7.0
  • numpy 1.21.5

Usage

Data

The experimental data of XING are in './data' folder.

Training

python main.py --model=$1 --dataset=$2 --lr=$3 --hidden_factor=$4 --batch_size=$5 --layers_u=$6 --layers_i=$7 --temp=$8 --alpha=$9 --beta=$10 --env=$11 --regs=$12 --regs_mask=$13 --dropout=$14 --batch_norm=$15 --log_name=$16 --gpu=$17

or use run.sh

sh run.sh model_name dataset lr hidden_factor batch_size DNN_layers_user DNN_layers_item temperature alpha beta n_env reg reg_mask dropout batchNorm log_name gpu_id
  • The log file will be in the './code/log/' folder.
  • The explanation of hyper-parameters can be found in './code/main.py'.
  • The default hyper-parameter settings are detailed in './code/hyper-parameters.txt'.

Example

  1. Train IFL on XING:
cd ./code
sh run.sh IFL XING 0.01 64 1024 [] [] 0.7 0.7 0.001 2 0.0001 0.0001 [0,0] 0 log 0

ifl's People

Stargazers

Zhang Han avatar

Watchers

Xinyu Lin 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.