Skip to content

Instantly share code, notes, and snippets.

@austinzh
austinzh / jmh.gradle
Last active November 8, 2024 03:01 — forked from jzillmann/jmh.gradle
Integrating JMH into gradle
// Adds JMH integration to a project.
// Considering putting this file into gradle/ folder and include it with:
// apply from: rootProject.file('gradle/jmh.gradle')
sourceSets {
jmh {
compileClasspath += sourceSets.test.runtimeClasspath
runtimeClasspath += sourceSets.test.runtimeClasspath
}
}
@austinzh
austinzh / tf_arrow_model_training.py
Created June 28, 2021 16:13 — forked from BryanCutler/tf_arrow_model_training.py
TensorFlow Keras Model Training Example with Apache Arrow Dataset
from functools import partial
import multiprocessing
import os
import socket
import sys
from sklearn.preprocessing import StandardScaler
import numpy as np
import pandas as pd