Skip to content

Instantly share code, notes, and snippets.

View kwinkunks's full-sized avatar
🐍
Writing bugs

Matt Hall kwinkunks

🐍
Writing bugs
View GitHub Profile
@kwinkunks
kwinkunks / dtw.md
Created April 16, 2023 21:40
Dynmic time (or whatever!) warping libraries
@kwinkunks
kwinkunks / Should_you_scale_the_target_in_regression_tasks.ipynb
Created July 31, 2023 13:29
When, if ever, should you scale the target in a regression task?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kwinkunks
kwinkunks / Modulate_colourmap_with_opacity.ipynb
Last active October 26, 2023 09:12
Combining maps with matplotlib, by mapping one with a colourmap and the other with opacity.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kwinkunks
kwinkunks / fornberg.py
Last active November 14, 2024 10:37
Bengt Fornbeg weights for finite difference
import numpy as np
def weights(z, x, m=0):
"""
Fornberg finite difference weights.
F90: https://github.com/bjodah/finitediff/blob/master/src/finitediff_fort.f90
Made this for Advent of Code 2023, Day 9. See:
https://colab.research.google.com/drive/1jKImD3-LWfQsAtrjaAsyK38wHwOsXX62
@kwinkunks
kwinkunks / Feature_transformation_order_for_regression.ipynb
Last active September 7, 2024 07:51
Feature transformation order
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kwinkunks
kwinkunks / AI_image_analysis_for_geoscience_v0.2.ipynb
Last active November 5, 2024 13:55
AI image analysis for geoscience
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kwinkunks
kwinkunks / Function_differentiation.ipynb
Last active November 13, 2024 21:22
Function differentiation chrestomathy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kwinkunks
kwinkunks / label.html
Last active December 18, 2024 10:26
Tiny image labeling app
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Label AI</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%220.9em%22 font-size=%2290%22>🔺</text></svg>">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {