Skip to content

Instantly share code, notes, and snippets.

View jie-nissel's full-sized avatar

Jie Nissel jie-nissel

View GitHub Profile
@jie-nissel
jie-nissel / example.html
Created April 27, 2021 00:53 — forked from doobeh/example.html
Checkbox WTForms Example (in Flask)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form method="post">
{{ form.hidden_tag() }}
{{ form.example }}
@jie-nissel
jie-nissel / random-forest.r
Created August 31, 2016 20:08 — forked from ramhiser/random-forest.r
Plots Variable Importance from Random Forest in R
library(randomForest)
library(dplyr)
library(ggplot2)
set.seed(42)
rf_out <- randomForest(Species ~ ., data=iris)
# Extracts variable importance (Mean Decrease in Gini Index)
# Sorts by variable importance and relevels factors to match ordering