diff --git a/dev/articles/Applications/Tensorflow.html b/dev/articles/Applications/Tensorflow.html index 7127657..bb40269 100644 --- a/dev/articles/Applications/Tensorflow.html +++ b/dev/articles/Applications/Tensorflow.html @@ -158,18 +158,18 @@ ) hood_coef
## # A tibble: 30 × 6
-##     embed_1  embed_2  embed_3  embed_4 embed_5 Neighborhood      
-##       <dbl>    <dbl>    <dbl>    <dbl>   <dbl> <chr>             
-##  1 -0.00700 -0.0480   0.0166   0.0196  -0.0249 ..new             
-##  2 -0.00179 -0.0278   0.0885  -0.00308  0.0151 North_Ames        
-##  3 -0.0446   0.00405  0.0471  -0.0487  -0.0480 College_Creek     
-##  4  0.0108   0.0161   0.0326   0.0290   0.0900 Old_Town          
-##  5  0.0502   0.00660  0.0572   0.0469   0.0276 Edwards           
-##  6 -0.0458  -0.0832  -0.0332  -0.0674  -0.0654 Somerset          
-##  7 -0.0849  -0.0574  -0.0486  -0.0772  -0.116  Northridge_Heights
-##  8  0.00244  0.0130   0.00678  0.0223  -0.0341 Gilbert           
-##  9  0.0207  -0.0228   0.0523  -0.0256   0.0174 Sawyer            
-## 10 -0.0438   0.00380  0.0398  -0.0135   0.0158 Northwest_Ames    
+##      embed_1  embed_2   embed_3  embed_4 embed_5 Neighborhood      
+##        <dbl>    <dbl>     <dbl>    <dbl>   <dbl> <chr>             
+##  1  0.000341  0.0124   0.0474   -0.0109   0.0405 ..new             
+##  2  0.000942 -0.0594   0.0562   -0.0602   0.0411 North_Ames        
+##  3 -0.0428   -0.0482   0.0194   -0.0228  -0.0441 College_Creek     
+##  4  0.0257    0.00927  0.0529    0.0446   0.0668 Old_Town          
+##  5  0.0443   -0.0392  -0.00901   0.0256   0.0635 Edwards           
+##  6  0.00167  -0.0275   0.000318 -0.0603  -0.113  Somerset          
+##  7 -0.0670   -0.0955   0.0218   -0.0728  -0.138  Northridge_Heights
+##  8  0.0138    0.0109  -0.0333   -0.0160  -0.0211 Gilbert           
+##  9  0.0501   -0.0668   0.0621   -0.0521   0.0174 Sawyer            
+## 10  0.0143   -0.00450  0.0167   -0.00893 -0.0145 Northwest_Ames    
 ## # ℹ 20 more rows
 hood_coef <-
@@ -177,18 +177,18 @@
   inner_join(means, by = "Neighborhood")
 hood_coef
## # A tibble: 28 × 10
-##     embed_1  embed_2  embed_3  embed_4 embed_5 Neighborhood     mean     n
-##       <dbl>    <dbl>    <dbl>    <dbl>   <dbl> <chr>           <dbl> <int>
-##  1 -0.00179 -0.0278   0.0885  -0.00308  0.0151 North_Ames       5.15   443
-##  2 -0.0446   0.00405  0.0471  -0.0487  -0.0480 College_Creek    5.29   267
-##  3  0.0108   0.0161   0.0326   0.0290   0.0900 Old_Town         5.07   239
-##  4  0.0502   0.00660  0.0572   0.0469   0.0276 Edwards          5.09   194
-##  5 -0.0458  -0.0832  -0.0332  -0.0674  -0.0654 Somerset         5.35   182
-##  6 -0.0849  -0.0574  -0.0486  -0.0772  -0.116  Northridge_Hei…  5.49   166
-##  7  0.00244  0.0130   0.00678  0.0223  -0.0341 Gilbert          5.27   165
-##  8  0.0207  -0.0228   0.0523  -0.0256   0.0174 Sawyer           5.13   151
-##  9 -0.0438   0.00380  0.0398  -0.0135   0.0158 Northwest_Ames   5.27   131
-## 10  0.0385  -0.00597 -0.0151  -0.0335  -0.0164 Sawyer_West      5.25   125
+##      embed_1  embed_2   embed_3  embed_4  embed_5 Neighborhood  mean     n
+##        <dbl>    <dbl>     <dbl>    <dbl>    <dbl> <chr>        <dbl> <int>
+##  1  0.000942 -0.0594   0.0562   -0.0602   0.0411  North_Ames    5.15   443
+##  2 -0.0428   -0.0482   0.0194   -0.0228  -0.0441  College_Cre…  5.29   267
+##  3  0.0257    0.00927  0.0529    0.0446   0.0668  Old_Town      5.07   239
+##  4  0.0443   -0.0392  -0.00901   0.0256   0.0635  Edwards       5.09   194
+##  5  0.00167  -0.0275   0.000318 -0.0603  -0.113   Somerset      5.35   182
+##  6 -0.0670   -0.0955   0.0218   -0.0728  -0.138   Northridge_…  5.49   166
+##  7  0.0138    0.0109  -0.0333   -0.0160  -0.0211  Gilbert       5.27   165
+##  8  0.0501   -0.0668   0.0621   -0.0521   0.0174  Sawyer        5.13   151
+##  9  0.0143   -0.00450  0.0167   -0.00893 -0.0145  Northwest_A…  5.27   131
+## 10 -0.0457   -0.0127   0.0177    0.0158  -0.00712 Sawyer_West   5.25   125
 ## # ℹ 18 more rows
 ## # ℹ 2 more variables: lon <dbl>, lat <dbl>

We can make a simple, interactive plot of the new features versus the @@ -216,18 +216,18 @@ ## Use 'girafe' instead. ## See help("Deprecated")

-

However, this has induced some between-predictor correlations:

+

However, this has induced some between-predictor correlations:

 hood_coef %>%
   dplyr::select(contains("emb")) %>%
   cor() %>%
   round(2)
##         embed_1 embed_2 embed_3 embed_4 embed_5
-## embed_1    1.00    0.41    0.33    0.45    0.72
-## embed_2    0.41    1.00    0.44    0.60    0.44
-## embed_3    0.33    0.44    1.00    0.24    0.47
-## embed_4    0.45    0.60    0.24    1.00    0.42
-## embed_5    0.72    0.44    0.47    0.42    1.00
+## embed_1 1.00 0.14 0.21 0.17 0.66 +## embed_2 0.14 1.00 0.02 0.45 0.30 +## embed_3 0.21 0.02 1.00 0.25 0.39 +## embed_4 0.17 0.45 0.25 1.00 0.39 +## embed_5 0.66 0.30 0.39 0.39 1.00 diff --git a/dev/articles/Applications/Tensorflow_files/figure-html/ames-linear-1.png b/dev/articles/Applications/Tensorflow_files/figure-html/ames-linear-1.png index 6b8e977..50316a1 100644 Binary files a/dev/articles/Applications/Tensorflow_files/figure-html/ames-linear-1.png and b/dev/articles/Applications/Tensorflow_files/figure-html/ames-linear-1.png differ diff --git a/dev/news/index.html b/dev/news/index.html index 9857d91..5366122 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -38,7 +38,9 @@

embed (development version)

-
+

embed 1.1.4

CRAN release: 2024-03-20

diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index ca4332b..1ea655a 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -4,7 +4,7 @@ pkgdown_sha: ~ articles: Applications/GLM: Applications/GLM.html Applications/Tensorflow: Applications/Tensorflow.html -last_built: 2024-08-05T10:51Z +last_built: 2024-08-15T23:02Z urls: reference: https://embed.tidymodels.org/reference article: https://embed.tidymodels.org/articles diff --git a/dev/reference/step_feature_hash.html b/dev/reference/step_feature_hash.html index 29d64ec..98f78d2 100644 --- a/dev/reference/step_feature_hash.html +++ b/dev/reference/step_feature_hash.html @@ -203,8 +203,8 @@

Examples apply(results %>% select(-sponsor_code), 2, sum) %>% table() #> . -#> 0 1 2 3 4 5 6 7 8 9 10 11 -#> 3 6 6 7 12 8 7 6 4 3 1 1 +#> 0 1 2 3 4 5 6 7 8 9 10 +#> 2 3 4 15 11 6 12 5 2 2 2