-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathECoL_complexity_functions.r
37 lines (28 loc) · 1.85 KB
/
ECoL_complexity_functions.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
library("ECoL")
all_complexities_check <- function(x_start_col, x_end_col, y_col) {
return(complexity(iris[,x_start_col:x_end_col], iris[,y_col]))
}
all_complexities_check_subset <- function(input_dataframe, x_start_col, x_end_col, y_col) {
return(complexity(input_dataframe[,x_start_col:x_end_col], as.factor(input_dataframe[,y_col])))
}
group_complexity_check <- function(input_dataframe, x_start_col, x_end_col, y_col, target_group) {
return(complexity(input_dataframe[,x_start_col:x_end_col], as.factor(input_dataframe[,y_col]), groups=target_group))
}
overlapping_complexity_check <- function(input_dataframe, x_start_col, x_end_col, y_col, measure) {
return(overlapping(input_dataframe[,x_start_col:x_end_col], as.factor(input_dataframe[,y_col]), measures=measure))
}
neighborhood_complexity_check <- function(input_dataframe, x_start_col, x_end_col, y_col, measure) {
return(neighborhood(input_dataframe[,x_start_col:x_end_col], as.factor(input_dataframe[,y_col]), measures=measure))
}
linearity_complexity_check <- function(input_dataframe, x_start_col, x_end_col, y_col, measure) {
return(linearity(input_dataframe[,x_start_col:x_end_col], as.factor(input_dataframe[,y_col]), measures=measure))
}
dimensionality_complexity_check <- function(input_dataframe, x_start_col, x_end_col, y_col, measure) {
return(dimensionality(input_dataframe[,x_start_col:x_end_col], as.factor(input_dataframe[,y_col]), measures=measure))
}
balance_complexity_check <- function(input_dataframe, x_start_col, x_end_col, y_col, measure) {
return(balance(input_dataframe[,x_start_col:x_end_col], as.factor(input_dataframe[,y_col]), measures=measure))
}
network_complexity_check <- function(input_dataframe, x_start_col, x_end_col, y_col, measure) {
return(network(input_dataframe[,x_start_col:x_end_col], as.factor(input_dataframe[,y_col]), measures=measure))
}