Hugo Åkerstrand
  • About
  • Blog
  • dataviz
    • Tidy Tuesday
    • Swedish Politics
  • Projects
    • R packages
    • Applications

An Introduction to Statistical Learning

Python
Tidymodels
Machine Learning
Working with Python and Tidymodels (R) for statistical learning
Author

Hugo Åkerstrand

Published

December 15, 2025

“Statistical learning”

Introduction to Statistical Learning, an excellent book.

I will be working with both R and Python, using Tidymodels for the former.

Test

s ## Testing test test

I am testing things.

  • R
  • Python
fizz_buzz <- function(fbnums = 1:50) {
  output <- dplyr::case_when(
    fbnums %% 15 == 0 ~ "FizzBuzz",
    fbnums %% 3 == 0 ~ "Fizz",
    fbnums %% 5 == 0 ~ "Buzz",
    TRUE ~ as.character(fbnums)
  )
  print(output)
}
def fizz_buzz(num):
  if num % 15 == 0:
    print("FizzBuzz")
  elif num % 5 == 0:
    print("Buzz")
  elif num % 3 == 0:
    print("Fizz")
  else:
    print(num)
Back to top

© 2025 Hugo Åkerstrand | Made with Quarto |