Skip to content

Commit

Permalink
fix numericalData edgecase and build pkgdown site
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Jul 25, 2022
1 parent e4d5e55 commit 0a9bce1
Show file tree
Hide file tree
Showing 42 changed files with 45 additions and 3,619 deletions.
6 changes: 1 addition & 5 deletions R/Dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ 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()},
error= function(e) {
browser()
})
size=c(self$target$shape,sum(numericalIndex)))$to_dense()
}
},

Expand Down
2 changes: 1 addition & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ navbar:
href: articles/Installing.html
github:
icon: fa-github fa-lg
href: https://github.com/OHDSI/PatientLevelPrediction
href: https://github.com/OHDSI/DeepPatientLevelPrediction
hades:
text: hadesLogo
href: https://ohdsi.github.io/Hades
4 changes: 2 additions & 2 deletions docs/404.html

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

4 changes: 2 additions & 2 deletions docs/articles/BuildingDeepModels.html

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

This file was deleted.

4 changes: 2 additions & 2 deletions docs/articles/index.html

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

4 changes: 2 additions & 2 deletions docs/authors.html

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

4 changes: 2 additions & 2 deletions docs/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pkgdown_sha: ~
articles:
BuildingDeepModels: BuildingDeepModels.html
Installing: Installing.html
last_built: 2022-07-25T13:39Z
last_built: 2022-07-25T15:28Z

4 changes: 2 additions & 2 deletions docs/reference/Dataset.html

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

4 changes: 2 additions & 2 deletions docs/reference/DeepPatientLevelPrediction.html

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

4 changes: 2 additions & 2 deletions docs/reference/EarlyStopping.html

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

4 changes: 2 additions & 2 deletions docs/reference/Estimator.html

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

Binary file removed docs/reference/Rplot001.png
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/reference/doubleLayerNN.html

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

4 changes: 2 additions & 2 deletions docs/reference/fitDeepNNTorch.html

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

4 changes: 2 additions & 2 deletions docs/reference/fitEstimator.html

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

191 changes: 0 additions & 191 deletions docs/reference/fitResNet_plp5.html

This file was deleted.

Loading

0 comments on commit 0a9bce1

Please sign in to comment.