From 67ca82c93803704cf3e73dae7db1f29edb206749 Mon Sep 17 00:00:00 2001 From: gpitt71 <93520106+gpitt71@users.noreply.github.com> Date: Wed, 13 Nov 2024 09:20:49 +0100 Subject: [PATCH] New website and CRAN checks. --- DESCRIPTION | 8 +- R/ResurvcvIndividualData.R | 34 - R/data_generator.R | 7 - docs/404.html | 10 +- .../Manuscript_replication_material.html | 1399 +++++++++-------- docs/articles/cas_call.html | 191 ++- docs/articles/hp_tuning.html | 302 ++-- docs/articles/index.html | 20 +- docs/articles/simulate_individual_data.html | 311 ++-- docs/articles/variables_importance.html | 216 +-- docs/authors.html | 14 +- docs/index.html | 53 +- docs/pkgdown.yml | 2 +- docs/reference/IndividualDataPP.html | 10 +- docs/reference/ReSurv.IndividualDataPP.html | 10 +- docs/reference/ReSurv.default.html | 10 +- docs/reference/ReSurv.html | 10 +- docs/reference/ReSurvCV.IndividualDataPP.html | 10 +- docs/reference/ReSurvCV.default.html | 10 +- docs/reference/ReSurvCV.html | 51 +- docs/reference/data_generator.html | 23 +- docs/reference/index.html | 14 +- docs/reference/install_pyresurv.html | 126 ++ docs/reference/ooslkh.ReSurvFit.html | 10 +- docs/reference/ooslkh.default.html | 10 +- docs/reference/ooslkh.html | 10 +- docs/reference/pkg.env.html | 10 +- docs/reference/plot.ReSurvFit.html | 10 +- docs/reference/plot.ReSurvPredict.html | 10 +- docs/reference/predict.ReSurvFit.html | 10 +- .../reference/print.summaryReSurvPredict.html | 10 +- docs/reference/summary.ReSurvPredict.html | 10 +- docs/reference/survival_crps.ReSurvFit.html | 10 +- docs/reference/survival_crps.default.html | 10 +- docs/reference/survival_crps.html | 10 +- docs/sitemap.xml | 1 + man/ReSurvCV.Rd | 37 - man/data_generator.Rd | 11 - 38 files changed, 1607 insertions(+), 1403 deletions(-) create mode 100644 docs/reference/install_pyresurv.html diff --git a/DESCRIPTION b/DESCRIPTION index fa0178f..ea69a6a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ReSurv Type: Package -Title: Machine Learning Models for Predicting IBNR Claim Counts +Title: Machine Learning Models For Predicting Claim Counts Version: 1.0.0 Authors@R: c(person(given = "Emil", @@ -17,9 +17,9 @@ Authors@R: email="mh@math.ku.dk", role = c("aut", "cph"), comment = c(ORCID = "0000-0001-5846-667X"))) -Description: Prediction of future IBNR frequencies using the feature based development factors introduced in Hiabu, Hofman, Pittarello (2023) . - Implementation of Neural Networks (NN), eXtreme Gradient Boosting (XGB), - and Cox model with splines (COX) to optimise the partial log-likelihood of proportional hazard models. +Description: Prediction of claim counts using the feature based development factors introduced in the manuscript . + Implementation of Neural Networks, Extreme Gradient Boosting, + and Cox model with splines to optimise the partial log-likelihood of proportional hazard models. URL: https://github.com/edhofman/ReSurv BugReports: https://github.com/edhofman/ReSurv/issues License: GPL (>= 2) diff --git a/R/ResurvcvIndividualData.R b/R/ResurvcvIndividualData.R index 3b48a16..f212bb7 100644 --- a/R/ResurvcvIndividualData.R +++ b/R/ResurvcvIndividualData.R @@ -33,40 +33,6 @@ #' @import tidyverse #' @import xgboost #' -#' @examples -#' ## Not run -#' input_data <- data_generator(random_seed = 1964) -#' -#' individual_data <- IndividualDataPP(input_data, -#' id="claim_number", -#' continuous_features=NULL, -#' categorical_features="claim_type", -#' accident_period="AP", -#' calendar_period="RP", -#' input_time_granularity = "months", -#' output_time_granularity = "quarters", -#' years=4, -#' continuous_features_spline=NULL, -#' calendar_period_extrapolation=FALSE) -#' -#' resurv.cv.xgboost <- ReSurvCV(IndividualDataPP=individual_data, -#' model="XGB", -#' hparameters_grid=list(booster="gbtree", -#' eta=c(.001,.01,.2,.3), -#' max_depth=c(3,6,8), -#' subsample=c(1), -#' alpha=c(0,.2,1), -#' lambda=c(0,.2,1), -#' min_child_weight=c(.5,1)), -#' print_every_n = 1L, -#' nrounds=1L, ##set to one to run quickly -#' verbose=FALSE, -#' verbose.cv=TRUE, -#' early_stopping_rounds = 100L, -#' folds=5L, -#' parallel=TRUE, -#' ncores=2L, -#' random_seed=1L) #' #' #' @references diff --git a/R/data_generator.R b/R/data_generator.R index 9bca96b..2546643 100644 --- a/R/data_generator.R +++ b/R/data_generator.R @@ -21,13 +21,6 @@ #' #' @import SynthETIC #' -#' @examples -#' ## Generate four years of daily data for scenario Alpha. -#' input_data <- data_generator(random_seed = 7, -#' scenario='alpha', -#' time_unit = 1/360, -#' years = 4, -#' period_exposure = 200) #' #' #' diff --git a/docs/404.html b/docs/404.html index 9e63f80..e71e15a 100644 --- a/docs/404.html +++ b/docs/404.html @@ -49,19 +49,19 @@ diff --git a/docs/articles/Manuscript_replication_material.html b/docs/articles/Manuscript_replication_material.html index ffebed8..491b704 100644 --- a/docs/articles/Manuscript_replication_material.html +++ b/docs/articles/Manuscript_replication_material.html @@ -5,13 +5,13 @@ -A machine learning approach based on survival analysis for IBNR frequencies in non-life reserving • ReSurv +A Machine Learning Approach Based On Survival Analysis For IBNR Frequencies In Non-Life Reserving • ReSurv - + - + - + - + - + - - + + Install Python Environment for ReSurv — install_pyresurv • ReSurv + + +
+
+ + + +
+
+ + +
+

Install a Python environment that allows the user to apply the Neural Network (NN) models.

+
+ +
+
install_pyresurv(
+  ...,
+  envname = "pyresurv",
+  new_env = identical(envname, "pyresurv")
+)
+
+ +
+

Arguments

+ + +
...
+

Additional arguments for `virtualenv_create`.

+ + +
envname
+

`character`. Name of the environment created. Default `pyresurv`.

+ + +
new_env
+

`logical`. If `TRUE`, any existing Python virtual environment and/or `conda` environment specified by `envname` is deleted first.

+ +
+
+

Value

+

No return value.

+
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.1.1.

+
+ +
+ + + + + + + + diff --git a/docs/reference/ooslkh.ReSurvFit.html b/docs/reference/ooslkh.ReSurvFit.html index ebb62c6..dfeb35e 100644 --- a/docs/reference/ooslkh.ReSurvFit.html +++ b/docs/reference/ooslkh.ReSurvFit.html @@ -32,19 +32,19 @@