diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod1.R b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod1.R index c74a635e2a8..6a3b5416d82 100755 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod1.R +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod1.R @@ -22,13 +22,13 @@ library(digest) library(pROC) library(R.utils) -almostnolabel_master <- "./almostnolabel-master/" +almostnolabel_main <- "./almostnolabel-main/" -source(file = paste(almostnolabel_master, "auc.R", sep = "")) -source(file = paste(almostnolabel_master, "mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "laplacian.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "alternating.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "logistic.regression.R", sep = "")) +source(file = paste(almostnolabel_main, "auc.R", sep = "")) +source(file = paste(almostnolabel_main, "mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "laplacian.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "alternating.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "logistic.regression.R", sep = "")) root_for_experiments <- "./Data/" diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod2.R b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod2.R index 23fe9ea0108..41a88478284 100755 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod2.R +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod2.R @@ -22,13 +22,13 @@ library(digest) library(pROC) library(R.utils) -almostnolabel_master <- "./almostnolabel-master/" +almostnolabel_main <- "./almostnolabel-main/" -source(file = paste(almostnolabel_master, "auc.R", sep = "")) -source(file = paste(almostnolabel_master, "mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "laplacian.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "alternating.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "logistic.regression.R", sep = "")) +source(file = paste(almostnolabel_main, "auc.R", sep = "")) +source(file = paste(almostnolabel_main, "mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "laplacian.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "alternating.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "logistic.regression.R", sep = "")) root_for_experiments <- "./Data/" diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod3.R b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod3.R index 791f294daef..611ce5fff3e 100755 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod3.R +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod3.R @@ -22,13 +22,13 @@ library(digest) library(pROC) library(R.utils) -almostnolabel_master <- "./almostnolabel-master/" +almostnolabel_main <- "./almostnolabel-main/" -source(file = paste(almostnolabel_master, "auc.R", sep = "")) -source(file = paste(almostnolabel_master, "mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "laplacian.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "alternating.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "logistic.regression.R", sep = "")) +source(file = paste(almostnolabel_main, "auc.R", sep = "")) +source(file = paste(almostnolabel_main, "mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "laplacian.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "alternating.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "logistic.regression.R", sep = "")) root_for_experiments <- "./Data/" diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod4.R b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod4.R index 96501083bca..ab10a262f5f 100755 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod4.R +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod4.R @@ -22,13 +22,13 @@ library(digest) library(pROC) library(R.utils) -almostnolabel_master <- "./almostnolabel-master/" +almostnolabel_main <- "./almostnolabel-main/" -source(file = paste(almostnolabel_master, "auc.R", sep = "")) -source(file = paste(almostnolabel_master, "mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "laplacian.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "alternating.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "logistic.regression.R", sep = "")) +source(file = paste(almostnolabel_main, "auc.R", sep = "")) +source(file = paste(almostnolabel_main, "mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "laplacian.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "alternating.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "logistic.regression.R", sep = "")) root_for_experiments <- "./Data/" diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod5.R b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod5.R index 728c43b5645..26ba4c067f6 100755 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod5.R +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod5.R @@ -22,13 +22,13 @@ library(digest) library(pROC) library(R.utils) -almostnolabel_master <- "./almostnolabel-master/" +almostnolabel_main <- "./almostnolabel-main/" -source(file = paste(almostnolabel_master, "auc.R", sep = "")) -source(file = paste(almostnolabel_master, "mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "laplacian.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "alternating.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "logistic.regression.R", sep = "")) +source(file = paste(almostnolabel_main, "auc.R", sep = "")) +source(file = paste(almostnolabel_main, "mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "laplacian.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "alternating.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "logistic.regression.R", sep = "")) root_for_experiments <- "./Data/" diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod6.R b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod6.R index 51cb144e96f..65c6e823d1b 100755 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod6.R +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod6.R @@ -22,13 +22,13 @@ library(digest) library(pROC) library(R.utils) -almostnolabel_master <- "./almostnolabel-master/" +almostnolabel_main <- "./almostnolabel-main/" -source(file = paste(almostnolabel_master, "auc.R", sep = "")) -source(file = paste(almostnolabel_master, "mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "laplacian.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "alternating.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "logistic.regression.R", sep = "")) +source(file = paste(almostnolabel_main, "auc.R", sep = "")) +source(file = paste(almostnolabel_main, "mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "laplacian.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "alternating.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "logistic.regression.R", sep = "")) root_for_experiments <- "./Data/" diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod7.R b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod7.R index e0139ef6470..45ea532f1f4 100755 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod7.R +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/RCode/RCodeMethod7.R @@ -22,13 +22,13 @@ library(digest) library(pROC) library(R.utils) -almostnolabel_master <- "./almostnolabel-master/" +almostnolabel_main <- "./almostnolabel-main/" -source(file = paste(almostnolabel_master, "auc.R", sep = "")) -source(file = paste(almostnolabel_master, "mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "laplacian.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "alternating.mean.map.R", sep = "")) -source(file = paste(almostnolabel_master, "logistic.regression.R", sep = "")) +source(file = paste(almostnolabel_main, "auc.R", sep = "")) +source(file = paste(almostnolabel_main, "mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "laplacian.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "alternating.mean.map.R", sep = "")) +source(file = paste(almostnolabel_main, "logistic.regression.R", sep = "")) root_for_experiments <- "./Data/" diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/TrainTestCreation/preprocessingdata.py b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/TrainTestCreation/preprocessingdata.py index ce256504acb..4de5ccd64d5 100644 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/TrainTestCreation/preprocessingdata.py +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/Code/TrainTestCreation/preprocessingdata.py @@ -80,7 +80,7 @@ def label_map(x): # pylint: disable=unnecessary-lambda df[last_col] = df[last_col].map(lambda x: label_map(x)) -# insert dummy bag column +# insert placeholder bag column df.insert(loc=0, column="bag", value=1) # insert label column @@ -133,7 +133,7 @@ def label_map(x): # pylint: disable=function-redefined # pylint: disable=unnecessary-lambda df[last_col] = df[last_col].map(lambda x: label_map(x)) -# insert dummy bag column +# insert placeholder bag column df.insert(loc=0, column="bag", value=1) # insert label column @@ -186,7 +186,7 @@ def label_map(x): # pylint: disable=function-redefined # pylint: disable=unnecessary-lambda df[last_col] = df[last_col].map(lambda x: label_map(x)) -# insert dummy bag column +# insert placeholder bag column df.insert(loc=0, column="bag", value=1) # insert label column diff --git a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/README.md b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/README.md index 13fe300372b..be0b196e574 100644 --- a/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/README.md +++ b/On_Combining_Bags_to_Better_Learn_from_Label_Proportions/README.md @@ -20,7 +20,7 @@ To Appear in AISTATS'22. # For Pseudo-synthetic datasets experiments 1. Collect code for previous work: - * Git pull `https://github.com/giorgiop/almostnolabel` (commit `4de5f54`) as folder `almostnolabel-master` in directory containing this README. + * Git pull `https://github.com/giorgiop/almostnolabel` (commit `4de5f54`) as folder `almostnolabel-main` in directory containing this README. * Git pull `https://github.com/Z-Jianxin/Learning-from-Label-Proportions-A-Mutual-Contamination-Framework` (commit `adb57fa`) and copy the contents of the LMMCM directory to ./Code/PythCode/. 2. Create virtual environment `pythenv` with python 3.9.2. * `cd ./Code`, `python -m venv pythenv`