knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%", message = FALSE )
The goal of goldrake is to provide an environment to create gold-standard databases for a classification task.
You can install the development version from GitHub with the following procedure:
# install.packages("devtools") devtools::install_github("CorradoLanera/goldrake")
The intended is divided in multiple step.
library(goldrake) mtcars_gr <- goldrake(mtcars) %>% set_gold_classes(c("good", "bad", "so and so")) %>% balance_groups_by(vs, am) %>% # max_sample_each_group(5) %>% # DOES IT WORTH TO BE IMPLEMENTED?? add_reviewer("Corrado", "Lanera") mtcars_gr
You can add reviewer in any moment (even if the previous ones have already started to classify objects).
mtcars_gr %>% add_reviewer("Daniele", "Bottigliengo") # it asks for a password
## if it is not the first time # mtcars_gr <- read_goldrake("mtcars_gr.goldrake") # start the interactive classification session mtcars_gr %>% classify_by("Corrado") # it asks for reviewer's password
At the end of the session, if the stored goldrake was updated by other reviewer(s), the information will be merged together.
# load_goldrake("mtcars_gr.goldrake") # if it is not already loaded classified_mtcars <- mtcars_gr %>% extract_classified_tbl() is.data.frame(classified_mtcars)
Please note that the goldrake
project is released with a
Contributor Code of Conduct.
By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.