Git Product home page Git Product logo

mlsurvlrnrs's Introduction

mlsurvlrnrs

CRAN checks Dependencies R build status R build status R build status

The goal of mlsurvlrnrs is to enhance the mlexperiments R package with survival learners.

Currently implemented learners are:

Name Based on Description / Tasks
LearnerSurvCoxPHCox survival::coxph Cox Proportional Hazards Regression
LearnerSurvGlmnetCox glmnet::glmnet Regularized Cox Regression
LearnerSurvRangerCox ranger::ranger Random Survival Forest with right-censored data
LearnerSurvRpartCox rpart::rpart Random Survival Forest with right-censored data
LearnerSurvXgboostCox xgboost::xgb.train Cox Regression with right-censored data
LearnerSurvXgboostAft xgboost::xgb.train Accelerated failure time models with right-censored data

For a short introduction on how to use the learners together with the mlexperiments R package, please visit the wiki page.

Installation

To install the development version, run

install.packages("remotes")
remotes::install_github("kapsner/mlsurvlrnrs")

mlsurvlrnrs's People

Contributors

kapsner avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

zhji0426

mlsurvlrnrs's Issues

Prepare CRAN initial submission

  • reduce unit-test runtime
  • make vignettes static
  • move survival-svm to experimental branch
  • update github wiki
  • run spell-tests and fix errors devtools::spell_check()
  • run rcmdcheck::rcmdcheck(args = "--as-cran") and fix errors
  • run rhub cran tests
  • prepare cran-comments.md usethis::use_cran_comments()
  • initial submission

coxph: cat_vars not working, when specifying via `set_data`

cat_vars are not respected when specifying via set_data:

coxph_validator <- mlexperiments::MLCrossValidation$new(
  learner = mlsurvlrnrs::LearnerSurvCoxPHCox$new(),
  fold_list = validation_fold_list,
  seed = seed,
  ncores = n_cores,
  return_models = TRUE
)
coxph_validator$performance_metric <- mlsurvlrnrs::c_index
coxph_validator$set_data(
  x = train_x[, which(colnames(train_x) %in% cox_feature_cols)],
  y = train_y,
  cat_vars = ml_cat_vars[which(ml_cat_vars %in% cox_feature_cols)]
)
res_coxph <- coxph_validator$execute()

However, when setting them with learner_args, everything works fine:

coxph_validator$learner_args <- list(cat_vars = ml_cat_vars[which(ml_cat_vars %in% cox_feature_cols)])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.