diff --git a/.Rbuildignore b/.Rbuildignore index 3912071..ac00a31 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,6 @@ ^.*\.Rproj$ ^\.Rproj\.user$ ^\.github$ +^_pkgdown\.yml$ +^docs$ +^pkgdown$ diff --git a/.gitignore b/.gitignore index 99772d0..8e1b575 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ extras/** results config.yml +docs diff --git a/R/Dataset.R b/R/Dataset.R index 3a674c9..e5a04ea 100644 --- a/R/Dataset.R +++ b/R/Dataset.R @@ -66,9 +66,13 @@ Dataset <- torch::dataset( numericalData <-numericalData %>% group_by(columnId) %>% mutate(newId = dplyr::cur_group_id()) indices <- torch::torch_tensor(cbind(numericalData$rowId, numericalData$newId), dtype=torch::torch_long())$t_() values <- torch::torch_tensor(numericalData$covariateValue,dtype=torch::torch_float32()) + tryCatch({ self$num <- torch::torch_sparse_coo_tensor(indices=indices, values=values, - size=c(max(dataCat$rowId),sum(numericalIndex)))$to_dense() + size=c(max(dataCat$rowId),sum(numericalIndex)))$to_dense()}, + error= function(e) { + browser() + }) } }, diff --git a/_pkgdown.yml b/_pkgdown.yml new file mode 100644 index 0000000..18d2870 --- /dev/null +++ b/_pkgdown.yml @@ -0,0 +1,33 @@ +template: + params: + bootswatch: cosmo + +home: + links: + - text: Ask a question + href: http://forums.ohdsi.org + +navbar: + structure: + left: + - home + - intro + - reference + - articles + right: [hades, github] + components: + home: + icon: fa-home fa-lg + href: index.html + reference: + text: Reference + href: reference/index.html + intro: + text: Get started + href: articles/Installing.html + github: + icon: fa-github fa-lg + href: https://github.com/OHDSI/PatientLevelPrediction + hades: + text: hadesLogo + href: https://ohdsi.github.io/Hades diff --git a/docs/404.html b/docs/404.html index 3ec4440..88c335b 100644 --- a/docs/404.html +++ b/docs/404.html @@ -6,7 +6,7 @@ Page not found (404) • DeepPatientLevelPrediction - + @@ -38,6 +38,15 @@ diff --git a/docs/authors.html b/docs/authors.html index 17341ad..b95df95 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -1,5 +1,5 @@ -Authors and Citation • DeepPatientLevelPredictionAuthors and Citation • DeepPatientLevelPrediction @@ -23,6 +23,15 @@ diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 7987001..fdc0243 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -3,5 +3,6 @@ pkgdown: 2.0.6 pkgdown_sha: ~ articles: BuildingDeepModels: BuildingDeepModels.html -last_built: 2022-07-25T09:40Z + Installing: Installing.html +last_built: 2022-07-25T13:39Z diff --git a/docs/reference/Dataset.html b/docs/reference/Dataset.html index f546ff2..66b7cb9 100644 --- a/docs/reference/Dataset.html +++ b/docs/reference/Dataset.html @@ -1,5 +1,5 @@ -A torch dataset — Dataset • DeepPatientLevelPredictionA torch dataset — Dataset • DeepPatientLevelPrediction @@ -23,6 +23,15 @@