Skip to content

Instantly share code, notes, and snippets.

View xvzftube's full-sized avatar
💪
Yelling at a cloud

xvzf xvzftube

💪
Yelling at a cloud
View GitHub Profile
library(MASS)
library(tidyverse)
waiting <- geyser$waiting
n <- length(waiting)
print(n)
m <- 16
a <- min(waiting)
b <- max(waiting)
@xvzftube
xvzftube / ash_cdf.R
Created September 3, 2023 01:20
ash cdf
library(MASS)
waiting <- geyser$waiting
n <- length(waiting)
print(n)
m <- 3
a <- min(waiting)
b <- max(waiting)
h <- 7.27037
delta <- h / m
@xvzftube
xvzftube / ash.R
Created September 3, 2023 01:00
ash
library(MASS)
waiting <- geyser$waiting
n <- length(waiting)
m <- 14
a <- min(waiting)
b <- max(waiting)
h <- 7.27037
delta <- h / m
# get the bin counts
@xvzftube
xvzftube / submission_hyperperameters.r
Created May 2, 2023 18:17
how to tune with tidymodels
##################################################################################
library(tidyverse)
library(tidymodels)
library(lightgbm)
library(janitor)
library(skimr)
library(bonsai)
library(baguette)
library(doParallel)
train_df <- read_csv("train.csv") |>
@xvzftube
xvzftube / submission.r
Created May 2, 2023 18:16
Regression on house price example
library(tidyverse)
library(tidymodels)
library(lightgbm)
library(janitor)
library(skimr)
library(bonsai)
library(baguette)
library(doParallel)
library(darknerdthemes)
train_df <- read_csv("train.csv") |>
@xvzftube
xvzftube / plugin.lua
Created March 26, 2023 01:58
plugins
return {
"folke/neodev.nvim", -- setting up nvim things
"folke/which-key.nvim", -- hints for keys
"sainnhe/everforest", -- everforest theme
"phaazon/hop.nvim", -- nvim motions
"nvim-lualine/lualine.nvim", -- lualine status bar
"kyazdani42/nvim-web-devicons", -- pretty icons
"lewis6991/gitsigns.nvim", -- git changes on side bar
"nvim-tree/nvim-tree.lua", -- file tree
"hkupty/iron.nvim", -- R and Python repl
@xvzftube
xvzftube / init.lua
Created March 26, 2023 00:12
new data science nvim config draft
-------------------------------------------------
-- xvzf neovim configuration
-- neovim website: https://neovim.io/
-- version:
-------------------------------------------------
-------------------------------------------------
-- general settings
-------------------------------------------------
@xvzftube
xvzftube / ffmpeg.sh
Last active November 22, 2022 17:57
simple ffmpeg
ffmpeg \
-video_size $(xdpyinfo | grep dimensions | awk '{print $2;}') \
-framerate 25 \
-f x11grab \
-i :1.0 \
output.mkv
# https://trac.ffmpeg.org/wiki/Capture/Desktop
@xvzftube
xvzftube / scene.py
Created November 15, 2022 21:44
distributions
from manim import *
from scipy.stats import uniform, beta, norm, cauchy
import numpy as np
black_color = '#292c35'
black = "#292c35"
red = "#ee1d52"
yellow = "#f2d803"
blue = "#63a3be"
library(ftplottools)
library(ggplot2)
library(ggtext)
theme_gruv <- function(){
title_text_color <- "#ebdbb2"
other_text_color <- "#ebdbb2"
grid_line_color <- "#ebdbb2"
panel_background <- "#32302f"
font_family <- "SauceCode Pro Nerd Font"