Using R's profvis package to diagnose and resolve bottlenecks (CC286)

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ค. 2024
  • Is your R code running slow? Do you know the slowest part? Here, Pat uses the R profvis package to identify the slow points or bottlenecks in his R code. He then uses his test driven design platform written with testthat to optimize the performance the code. Calculating log likelihoods and using the Rfast R package also appear in the refactoring effort. This episode is part of an ongoing effort to develop an R package that implements the naive Bayesian classifier.
    If you want to get a physical copy of R Packages: amzn.to/43pMR8L
    If you want a free, online version of R packages: r-pkgs.org/
    You can find my blog post for this episode at www.riffomonas.org/code_club/....
    Check out the GitHub repository at the:
    * Beginning of the episode: github.com/riffomonas/phyloty...
    * End of the episode: github.com/riffomonas/phyloty...
    #rstats #paste #paste0 #refactor #testthat #tdd #microbenchmark #vectors #rdp #16S #classification #classifier #microbialecology #microbiome
    Support Riffomonas by becoming a Patreon member!
    / riffomonas
    Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at shop.riffomonas.org/youtube to get practice problems, tips, and insights.
    If you're interested in purchasing a video workshop be sure to check out riffomonas.org/workshops/
    You can also find complete tutorials for learning R with the tidyverse using...
    Microbial ecology data: www.riffomonas.org/minimalR/
    General data: www.riffomonas.org/generalR/
    0:00 Introduction
    1:28 Creating and testing classify_sequence
    9:17 Detecting bottlenecks in classify_sequence
    12:04 Converting to use the log-likelihood
    18:41 Refactoring to speed up column sum with Rfast::colsums
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 2

  • @ProfGregTuckerKellogg
    @ProfGregTuckerKellogg หลายเดือนก่อน

    I also, routinely misspell bootstraps in the same way

    • @Riffomonas
      @Riffomonas  หลายเดือนก่อน

      I reproducibly misspell reproducability 🤓