Skip to content

Code for the paper "Learning with Logical Constraints but without Shortcut Satisfaction"

Notifications You must be signed in to change notification settings

SoftWiser-group/NeSy-without-Shortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeSy-without-Shortcuts

Code for the paper "Learning with Logical Constraints but without Shortcut Satisfaction"

Requirements

numpy
pytorch

Usage

For each task, run the following command.

python logic_training.py --num_labeled 100 --constraint True --trun True --exp_name logic_trun \

​ --net_type densenet100 --adam_lr 0.01 --constraint_weight 1.0

where the parameter "trun" is set to True to enable the truncation of Gaussian distribution.

To reproduce the experimental results, Run the command sh run.sh

Related work

About

Code for the paper "Learning with Logical Constraints but without Shortcut Satisfaction"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published