Skip to content

Commit

Permalink
Merge pull request #21 from cmusso86/update_release
Browse files Browse the repository at this point in the history
one .rds in exdata
  • Loading branch information
cmusso86 committed Jun 19, 2024
2 parents 0a185a2 + 8b0dc22 commit b685a25
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
^docs$
^pkgdown$
^\.github$
^doc$
^Meta$
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
.httr-oauth
.DS_Store
.quarto
/doc/
/Meta/
46 changes: 18 additions & 28 deletions docs/articles/simple_mlp.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pkgdown: 2.0.9
pkgdown_sha: ~
articles:
simple_mlp: simple_mlp.html
last_built: 2024-06-19T17:51Z
last_built: 2024-06-19T18:06Z
urls:
reference: https://cmusso86.github.io/recalibratiNN/reference
article: https://cmusso86.github.io/recalibratiNN/articles
Expand Down
1 change: 1 addition & 0 deletions inst/extdata/mse_cal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42
1 change: 1 addition & 0 deletions inst/extdata/mse_cal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42
23 changes: 15 additions & 8 deletions vignettes/simple_mlp.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ vignette: >
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval = F,
comment = "#>"
)
```
Expand Down Expand Up @@ -98,21 +99,27 @@ y_hat_test <- predict(model_nn, x_test)
```


```{r echo = F}
file_path1 <- system.file("extdata", "MSE_cal.rds", package = "recalibratiNN")
MSE_cal <-readRDS(file_path1)
```{r eval=T}
file_path1 <- system.file("extdata", "mse_cal.txt", package = "recalibratiNN")
read.table(file_path1) |> as.numeric()
```


```{r, eval = T}
file_path1 <- system.file("extdata", "mse_cal.rds", package = "recalibratiNN")
readRDS(file_path1)
file_path2 <- system.file("extdata", "y_hat_cal.rds", package = "recalibratiNN")
y_hat_cal <- readRDS(file_path2)
y_hat_test <- file_path3 <- system.file("extdata", "y_hat_test.rds", package = "recalibratiNN")
y_hat_test <- readRDS(file_path3)
```

```{r eval = F}
```{r, eval=F}
# carregar os vetores .rds
file_path2 <- system.file("extdata", "y_hat_cal.rds", package = "recalibratiNN")
y_hat_cal <- readRDS(file_path2)
y_hat_test <- file_path3 <- system.file("extdata", "y_hat_test.rds", package = "recalibratiNN")
y_hat_test <- readRDS(file_path3)
y_hat_cal <- readRDS("y_hat_cal.rds") |> as.numeric()
y_hat_test <- readRDS("y_hat_test.rds")|> as.numeric()
MSE_cal <- readRDS("MSE_cal.rds")|> as.numeric()
Expand Down

0 comments on commit b685a25

Please sign in to comment.