-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme file and few minor changes
- Loading branch information
1 parent
c913275
commit d5aa9f0
Showing
63 changed files
with
145 additions
and
32,699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
source(file = "./evaluation.R") | ||
source(file = "./utils.R") | ||
# load supporting libraries | ||
library(cluster) | ||
library(factoextra) | ||
library(RColorBrewer) | ||
dataset <- read.csv(file = "./data/bombay_queries.csv", header = TRUE, sep = "\t") | ||
distMat <- readDistMat("./data/bombay_aligon.csv") | ||
avgSilhoette(distMat, dataset$label) | ||
BetaCV(distMat, dataset$label) | ||
DunnIndex(distMat, dataset$label) | ||
setwd("~/github/EttuBench") | ||
source(file = "./evaluation.R") | ||
source(file = "./utils.R") | ||
# load supporting libraries | ||
library(cluster) | ||
library(factoextra) | ||
library(RColorBrewer) | ||
dataset <- read.csv(file = "./data/bombay_queries.csv", header = TRUE, sep = "\t") | ||
distMat <- readDistMat("./data/bombay_aligon.csv") | ||
avgSilhoette(distMat, dataset$label) | ||
BetaCV(distMat, dataset$label) | ||
DunnIndex(distMat, dataset$label) | ||
# load two files evaluation.R and utils.R | ||
source(file = "./evaluation.R") | ||
source(file = "./utils.R") | ||
# load supporting libraries | ||
library(cluster) | ||
library(factoextra) | ||
library(RColorBrewer) | ||
dataset <- read.csv(file = "./data/bombay_queries.csv", header = TRUE, sep = "\t") | ||
distMat <- readDistMat("./data/bombay_aligon.csv") | ||
print(avgSilhoette(distMat, dataset$label)) | ||
print(BetaCV(distMat, dataset$label)) | ||
print(DunnIndex(distMat, dataset$label)) | ||
setwd("~/github/EttuBench") | ||
# load two files evaluation.R and utils.R | ||
source(file = "./evaluation.R") | ||
source(file = "./utils.R") | ||
# load supporting libraries | ||
library(cluster) | ||
library(factoextra) | ||
library(RColorBrewer) | ||
dataset <- read.csv(file = "./data/bombay_queries.csv", header = TRUE, sep = "\t") | ||
distMat <- readDistMat("./data/bombay_aligon.csv") | ||
silhouettePlot(distMat, dataset$label, "./figure/sil_bombay_Aligon.pdf") | ||
distMat <- readDistMat("./data/bombay_aligon_regularization.csv") | ||
silhouettePlot(distMat, dataset$label, "./figure/sil_bombay_Aligon_regularization.pdf") | ||
dataset <- read.csv(file = "./data/ub_queries.csv", header = TRUE, sep = "\t") | ||
distMat <- readDistMat("./data/ub_aligon.csv") | ||
silhouettePlot(distMat, dataset$label, "./figure/sil_ub_Aligon.pdf") | ||
distMat <- readDistMat("./data/ub_aligon_regularization.csv") | ||
silhouettePlot(distMat, dataset$label, "./figure/sil_ub_Aligon_regularization.pdf") | ||
dataset <- read.csv(file = "./data/googleplus_queries.csv", header = TRUE, sep = "\t") | ||
distMat <- readDistMat("./data/googleplus_aligon.csv") | ||
silhouettePlot(distMat, dataset$label, "./figure/sil_googleplus_Aligon.pdf") | ||
distMat <- readDistMat("./data/googleplus_aligon_regularization.csv") | ||
silhouettePlot(distMat, dataset$label, "./figure/sil_googleplus_Aligon_regularization.pdf") | ||
setwd("~/github/EttuBench") | ||
library(ggplot2) | ||
comparison <- read.csv(file = "./data/result.csv", header = TRUE) | ||
comparison$dataset <- factor(comparison$dataset, | ||
levels = c("IIT Bombay Dataset", | ||
"UB Exam Dataset", | ||
"PocketData-Google+")) | ||
ggplot(data = comparison, aes(x = metric, y = silhouette, fill = regularization)) + | ||
geom_bar(position="dodge", stat="identity") + facet_grid(~ dataset) + | ||
ylab("Average Silhouette Coefficient") + xlab("Metric") + | ||
theme_bw(base_size = 18) + theme(legend.position = "top") + scale_fill_grey() + | ||
ggsave(filename = "./figure/compare_silhouette.pdf") | ||
ggplot(data = comparison, aes(x = metric, y = beta_cv, fill = regularization)) + | ||
geom_bar(position="dodge", stat="identity") + facet_grid(~ dataset) + | ||
ylab("Average Silhouette Coefficient") + xlab("Metric") + | ||
theme_bw(base_size = 18) + theme(legend.position = "top") + scale_fill_grey() + | ||
ggsave(filename = "./figure/compare_betacv.pdf") | ||
ggplot(data = comparison, aes(x = metric, y = dunn, fill = regularization)) + | ||
geom_bar(position="dodge", stat="identity") + facet_grid(~ dataset) + | ||
ylab("Average Silhouette Coefficient") + xlab("Metric") + | ||
theme_bw(base_size = 18) + theme(legend.position = "top") + scale_fill_grey() + | ||
ggsave(filename = "./figure/compare_dunn.pdf") | ||
setwd("~/github/EttuBench") | ||
library(ggplot2) | ||
comparison <- read.csv(file = "./data/modules.csv") | ||
comparison$Regularization <- factor(comparison$Regularization, | ||
levels = c("No Regularization", | ||
"Naming", | ||
"Expression Standardization", | ||
"FROM-nested Subquery", | ||
"UNION Pull-out")) | ||
comparison$Dataset <- factor(comparison$Dataset, | ||
levels = c("IIT Bombay Dataset", "UB Exam Dataset", | ||
"PhoneLab-Google+")) | ||
# individual module analysis | ||
ggplot(data = comparison, aes(x = Metric, y = Silhouette, fill=Regularization)) + | ||
geom_bar(position="dodge", stat="identity") + facet_grid(~ Dataset) + | ||
ylab("Average Silhouette Coefficient") + xlab("Metric") + | ||
theme_bw(base_size = 14) + theme(legend.position = "top", legend.title = element_blank()) + | ||
scale_fill_brewer(palette = "Dark2") + | ||
ggsave(file = "./figure/module.pdf") | ||
setwd("~/github/EttuBench") | ||
source(file = "./evaluation.R") | ||
source(file = "./utils.R") | ||
library(cluster) | ||
library(factoextra) | ||
library(RColorBrewer) | ||
dataset <- read.csv(file = "./data/bombay_queries.csv", header = TRUE, sep = "\t") | ||
distMat <- readDistMat("./data/bombay_aligon_regularization.csv") | ||
print(avgSilhoette(distMat, dataset$label)) | ||
print(BetaCV(distMat, dataset$label)) | ||
print(DunnIndex(distMat, dataset$label)) | ||
distMat <- readDistMat("./data/bombay_aouiche_regularization.csv") | ||
print(avgSilhoette(distMat, dataset$label)) | ||
print(BetaCV(distMat, dataset$label)) | ||
print(DunnIndex(distMat, dataset$label)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.