Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualization functions and Shiny app #16

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
5112b36
feat: cost over time
b-zhou Aug 29, 2024
0041485
feat: marginal plot
b-zhou Aug 29, 2024
e60210b
refactor: layout & comments
b-zhou Aug 29, 2024
f6c1b77
feat: parallel coordinates
b-zhou Aug 29, 2024
007d3b9
fix: trafo
b-zhou Sep 4, 2024
f8966f9
feat: pdp
b-zhou Sep 4, 2024
ff70444
fix: feature type
b-zhou Sep 4, 2024
cecca80
fix: imputeoor
b-zhou Sep 4, 2024
ca190bb
fix: imputeoor
b-zhou Sep 6, 2024
608c92f
feat: pdp app
b-zhou Sep 6, 2024
aadf2a2
refactor: rename shiny components
b-zhou Sep 6, 2024
93318c0
refactor: pdp
b-zhou Sep 6, 2024
9f4f919
feat: pareto front
b-zhou Sep 12, 2024
1389a15
docs: templates
b-zhou Sep 12, 2024
64337de
feat: pareto front app
b-zhou Sep 12, 2024
eb03e54
feat: select branch ui
b-zhou Sep 12, 2024
938e132
feat: select time variable for cost over time
b-zhou Sep 12, 2024
d022da8
Merge branch 'main' into visualization
b-zhou Oct 4, 2024
2a5efcc
chore: add author
b-zhou Oct 4, 2024
4edfbb6
fix: pdp faeture type
b-zhou Oct 4, 2024
14c7ef5
fix: pdp app
b-zhou Oct 4, 2024
7c1bfe5
refactor: pdp params
b-zhou Oct 4, 2024
7eae7bd
test: cot & mp
b-zhou Oct 7, 2024
4da1d35
fix: cot
b-zhou Oct 7, 2024
5a503cf
fix: mp trafo
b-zhou Oct 7, 2024
dec1f9c
test: cot & mp fixes
b-zhou Oct 7, 2024
4c2e357
fix: pc archive
b-zhou Oct 7, 2024
43ea5a5
fix: pdp extra args
b-zhou Oct 7, 2024
5e00a21
fix: change archive to instance
b-zhou Oct 7, 2024
e6f0311
test: mp different branches
b-zhou Oct 7, 2024
d7b461a
test: mp fixes
b-zhou Oct 7, 2024
da0e947
fix: pdp sample size
b-zhou Oct 8, 2024
77f94a4
fix: rcmd check warnings
b-zhou Oct 8, 2024
c1ed1ce
feat: larger base_size
b-zhou Oct 27, 2024
f66d6f9
feat: cost over time incumbent
b-zhou Oct 27, 2024
536769f
doc: plots
b-zhou Oct 27, 2024
b4f5291
fix: cost over time correct incumbent
b-zhou Nov 3, 2024
d3fe32e
feat: marginal plot surface
b-zhou Nov 3, 2024
24aeeee
feat: marginal plot surface selection button
b-zhou Nov 3, 2024
ee39b6a
fix: check for param type before adjusting axis scale
b-zhou Nov 3, 2024
a28987c
doc: update mp & fix pc
b-zhou Nov 3, 2024
e69546a
test: update mp tests
b-zhou Nov 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Version: 0.0.1
Authors@R: c(
person("Damir", "Pulatov", , "damirpolat@protonmail.com", role = c("cre", "aut")),
person("Marc", "Becker", , "marcbecker@posteo.de", role = "aut",
comment = c(ORCID = "0000-0002-8115-0400"))
comment = c(ORCID = "0000-0002-8115-0400")),
person("Baisu", "Zhou", , "baisu.zhou@outlook.com", role = "aut")
)
Description: Flexible AutoML system for the 'mlr3' ecosystem.
License: LGPL-3
Expand All @@ -18,15 +19,21 @@ Depends:
R (>= 3.1.0),
rush
Imports:
bbotk,
bslib,
checkmate,
data.table,
ggplot2,
iml,
lhs,
mlr3mbo,
mlr3misc (>= 0.15.1),
mlr3pipelines,
mlr3tuningspaces,
paradox (>= 1.0.1),
R6,
shiny,
stats,
utils
Suggests:
catboost,
Expand All @@ -41,7 +48,8 @@ Suggests:
ranger,
rpart,
testthat (>= 3.0.0),
xgboost
xgboost,
vdiffr
Remotes:
catboost/catboost/catboost/R-package,
mlr-org/mlr3,
Expand Down Expand Up @@ -76,6 +84,9 @@ Collate:
'build_graph.R'
'estimate_memory.R'
'helper.R'
'helpers_app.R'
'internal_measure.R'
'train_auto.R'
'visualization.R'
'visualization_app.R'
'zzz.R'
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ export(LearnerRegrAutoNnet)
export(LearnerRegrAutoRanger)
export(LearnerRegrAutoSVM)
export(LearnerRegrAutoXgboost)
export(cost_over_time)
export(estimate_memory)
export(internal_measure_catboost)
export(internal_measure_lightgbm)
export(internal_measure_xgboost)
export(marginal_plot)
export(parallel_coordinates)
export(pareto_front)
export(partial_dependence_plot)
export(visualize)
import(R6)
import(checkmate)
import(data.table)
Expand Down
42 changes: 42 additions & 0 deletions R/helpers_app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#' @title Custom conditionalPanel for hyperparameter selection
#'
#' @description
#' Used for Marginal Plots and Partial Dependence Plots.
#'
#' @param condition (`character(1)`)\cr
#' Passed to the `condition` argument of `[shiny::conditionalPanel]`.
#' @param prefix (`character(1)`)\cr
#' Prefix of input slot names.
#' @param learner_ids (`character()`)\cr
#' Vector of all possible learner/branch IDs.
#' @param param_ids (`character()`)\cr
#' Vector of all possible param IDs.
#' @param ... (anything)
#' Additional arguments passed to `[shiny::conditionalPanel]`.
#'
param_panel = function(condition, prefix, learner_ids, param_ids, ...) {
assert_string(condition)
assert_string(prefix)
assert_character(learner_ids)
assert_character(param_ids)

shiny::conditionalPanel(
condition,
shiny::selectInput(paste0(prefix, "_branch"),
label = "Select branch:",
choices = learner_ids
),
# choices and selected are just placeholders for initialization
shiny::selectInput(paste0(prefix, "_x"),
label = "Select x-axis:",
choices = param_ids,
selected = param_ids[[1]]
),
shiny::selectInput(paste0(prefix, "_y"),
label = "Select y-axis:",
choices = param_ids,
selected = param_ids[[2]]
),
...
)
}
Loading
Loading