Skip to content

Commit

Permalink
added pkgdown config file
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Jul 25, 2022
1 parent 6e008b1 commit 825ffe7
Show file tree
Hide file tree
Showing 28 changed files with 429 additions and 65 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.github$
^_pkgdown\.yml$
^docs$
^pkgdown$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
extras/**
results
config.yml
docs
6 changes: 5 additions & 1 deletion R/Dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
}
},

Expand Down
33 changes: 33 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 18 additions & 3 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions docs/articles/BuildingDeepModels.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 20 additions & 3 deletions docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 825ffe7

Please sign in to comment.