Usage
interactive.SymbolicLoss(f1 = "(x, y) {(x - y) ^ 2}",
f2 = "(x, y) {(y * log(x) + (1 - y) * log(1 - x))}",
f3 = "(x, y) {(x - y * log(x)) + (y * log(y) - y)}",
f4 = "(x, y) {(y - x) * log(y / x)}", f1_init = c(-20, 20, 50, 0),
f2_init = c(0.01, 0.99, 50, 1), f3_init = c(0, 100, 100, 20),
f4_init = c(0, 100, 100, 20), f1_back = "yellow", f2_back = "aqua",
f3_back = "olive", f4_back = "purple", f_back = "red", type = "o",
max_height = 580)Arguments
f1
Type: character. A string describing the first loss function, with potentially multiple arguments. Requires at least (x, y) arguments. Defaults to "(x, y) {(x - y) ^ 2}".
f2
Type: character. A string describing the second loss function, with potentially multiple arguments. Requires at least (x, y) arguments. Defaults to "(x, y) {(y * log(x) + (1 - y) * log(1 - x))}".
f3
Type: character. A string describing the third loss function, with potentially multiple arguments. Requires at least (x, y) arguments. Defaults to "(x, y) {(x - y * log(x)) + (y * log(y) - y)}".
f4
Type: character. A string describing the fourth loss function, with potentially multiple arguments. Requires at least (x, y) arguments. Defaults to "(x, y) {(y - x) * log(y / x)}".
f1_init
Type: numeric vector of length 4. A vector containing sequentially the minimum, the maximum, the number of points, and the y value for the plots of the first loss function. Defaults to c(-20, 20, 50, 0),.
f2_init
Type: numeric vector of length 4. A vector containing sequentially the minimum, the maximum, the number of points, and the y value for the plots of the second loss function. Defaults to c(0.01, 0.99, 50, 1).
f3_init
Type: numeric vector of length 4. A vector containing sequentially the minimum, the maximum, the number of points, and the y value for the plots of the third loss function. Defaults to c(0, 100, 100, 20).
f4_init
Type: numeric vector of length 4. A vector containing sequentially the minimum, the maximum, the number of points, and the y value for the plots of the fourth loss function. Defaults to c(0, 100, 100, 20).
f1_back
Type: character. A background color character for the first function. Defaults to "yellow".
f2_back
Type: character. A background color character for the second function. Defaults to "aqua".
f3_back
Type: character. A background color character for the third function. Defaults to "olive".
f4_back
Type: character. A background color character for the fourth function. Defaults to "purple".
f_back
Type: character. A background color character for the header. Defaults to "red".
type
Type: character. The type of plot to use for plots. "p" for points, "l" for lines, "b" for points+line, "c" for line without points, "o" for overplotted (points+line overlapping), "h" for high-density vertical lines (histogram-like), "s" for optimistic stair steps, "S" for pessimistic stair steps, "n" to plot nothing. Defaults to "o" for overplotted.
max_height
Type: numeric. The maximum height for the plots. Defaults to 580, which fits nicely Full HD screens (1080 vertical pixels).