Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions vignettes/HDBSCAN.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ res <- map(setNames(models, models),

# I would normally make one of these files for all my lemmas and store it within the github directory above the lemma subdirectories
to_write <- list()
to_write[lemma] <- res
write_rds(to_write, file.path(output_dir, "hdbscan.rds"))
# to_write[lemma] <- res # This does not work as you need to assign models, not lemma
to_write[models] <- res
write_rds(to_write, file.path(output_dir, paste0(lemma, ".rds")))
```

We can also use `purrr::map()` to create a named list gathering the full data for each lemma)
Expand Down
2 changes: 1 addition & 1 deletion vignettes/processClouds.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ distmtx <- read_tsv(file.path(output_dir, paste0(lemma, ".models.dist.tsv"))) %>
pam_data <- pam(distmtx, k = k)
medoid_data <- pam_data$clusinfo %>%
as_tibble() %>%
mutate(medoids = pam_data$medoids, medoid_i = seq(k))
mutate(medoid = pam_data$medoids, medoid_i = seq(k)) # medoid in singular or NephoVis would not be able to read it

write_tsv(medoid_data, file.path(output_dir, paste0(lemma, ".medoids.tsv")))
```
Expand Down