forked from Vitek-Lab/MSstatsSampleSize-Shiny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.R
executable file
·65 lines (53 loc) · 2.07 KB
/
global.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
suppressMessages({
library(shiny)
library(shinydashboard)
library(shinyWidgets)
library(shinycssloaders)
library(ggplot2)
library(data.table)
library(dplyr)
library(MSstatsSampleSize)
#### Caret package dependencies ####
library(e1071)
library(kernlab)
library(naivebayes)
library(randomForest)
})
source('functions.R')
#### GLOBAL VARS ####
FORMATS_LIST <- list("Protein-level quantification" = "standard",
"Example from MSstatsSampleSize" = "examples")
FORMATS <- c("examples", "standard")
EXTENSTIONS <- c("text/csv",
"text/comma-separated-values,text/plain",
".csv", "text/tab-separated-values", ".tsv")
MODELS <- c('rf','nnet','svmLinear','logreg','naive_bayes')
names(MODELS) <- c("Random Forest", "Neural Network",
"Support Vector Machines with Linear Kernel",
"Logistic Regression", "Naive Bayes")
STOPPING_METRIC <- c("AUTO", "deviance", "logloss", "MSE", "RMSE", "MAE", "RMSLE",
"AUC", "lift_top_group", "misclassification", "AUCPR",
"mean_per_class_error")
FOLD_ASSIGNMENT <- c("AUTO", "Random", "Modulo", "Stratified")
FAMILY <- c("gaussian", "binomial", "quasibinomial", "ordinal", "multinomial",
"poisson", "gamma", "tweedie", "negativebinomial")
SOLVER <- c("AUTO", "IRLSM", "L_BFGS", "COORDINATE_DESCENT_NAIVE",
"COORDINATE_DESCENT", "GRADIENT_DESCENT_LH", "GRADIENT_DESCENT_SQERR")
LINK <- c("family_default", "identity", "logit", "log", "inverse", "tweedie",
"ologit")
B_GROUP <- ""
CURRMODEL <- ""
SIM_CHOICES <- 0
CSS_BUTTON <- "margin-top: 25px;
display: inline-block;
color: #fff;
background-color: orange;
border-color: black;
font-size : 20px;"
CSS_BUTTON_REG <- "background-color: orange;
border-color: black;
color: #fff;"
CSS_BUTTON_RUN <- "background-color: orange;
border-color: black;
color: #fff;
margin-top:25px;"