-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathREADME.Rmd
More file actions
67 lines (47 loc) · 2.23 KB
/
README.Rmd
File metadata and controls
67 lines (47 loc) · 2.23 KB
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
66
67
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# witchcraft <a href='https://bigdata.cs.ut.ee/'><img src='man/figures/logo.png' align="right" height="138.5" /></a>
<!-- badges: start -->
[](https://cran.r-project.org/package=witchcraft)
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://travis-ci.org/brurucy/witchcraft)
<!-- badges: end -->
The R package *witchcraft* is an opinionated framework for automated machine learning, with the intent of being frequently updated with the newest state-of-the-art optimization methods.
At the moment, *witchcraft* uses the [Bayesian-Optimization-Hyperband](https://arxiv.org/pdf/1603.06560.pdf) algorithm.
Besides *Combined Algorithm Selection and Hyperparameter optimization*, *witchcraft* provides tools to evaluate the results, which are consistent with the mlr3 workflow.
## Installation
Soon, installing the **stable** version from [CRAN](https://cran.r-project.org/package=witchcraft) will be possible:
```{r cran-installation, eval = FALSE}
install.packages("witchcraft")
```
You can always install the **development** version from
[GitHub](https://github.com/brurucy/witchcraft)
```{r gh-installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("brurucy/witchcraft")
```
Installing this software requires a compiler.
## Valid example
```{r example, message=FALSE, eval=FALSE}
library(SmartML)
library(readr)
data_train <- readr::read_csv('inst/extdata/dota_train.csv') %>%
as.data.table()
data_test <- readr::read_csv('inst/extdata/dota_test.csv') %>%
as.data.table()
data_train[, class := factor(class, levels = unique(class)) %>% sort()]
data_test[, class := factor(class, levels = unique(class)) %>% sort()]
params <- SmartML:::get_random_hp_config('kknn', columns = ncol(data_train) - 1)
print(typeof(params$kernel))
params
```