Skip to content

Instantly share code, notes, and snippets.

View georgwiese's full-sized avatar

Georg Wiese georgwiese

  • Georg Wiese
  • Berlin
View GitHub Profile
@georgwiese
georgwiese / Hierarchical CSV Viewer
Created November 3, 2023 13:01
Mostly ChatGPT-written CSV viewer that works well for Powdr-exported execution traces
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSV Viewer</title>
<style>
.headerCell {
position: sticky;
c2a6b51e9c5a50c5061e5e7292ceeef5537d7c8fa8f74553988ae01e183c2b34
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@georgwiese
georgwiese / Batch Renormalization.ipynb
Created October 2, 2020 12:57
Minimal example reproducing an error with TensorFlow's batch renormalization implementation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
From fb7dd5c67d70f86082efca7cd3f29061b808467f Mon Sep 17 00:00:00 2001
From: Georg Wiese <georgwiese@gmail.com>
Date: Thu, 2 Apr 2020 15:38:00 +0200
Subject: [PATCH] Fix keras handling of targets with no loss
---
tensorflow/python/keras/engine/training_eager.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/tensorflow/python/keras/engine/training_eager.py b/tensorflow/python/keras/engine/training_eager.py
@georgwiese
georgwiese / make_commented_nodes_red.js
Created December 5, 2019 17:12
WebKnossos: Make commented nodes red
modifiedShader = `
#ifdef GL_OES_standard_derivatives
#extension GL_OES_standard_derivatives : enable
#endif
precision highp float;
uniform float viewMode;
varying vec3 color;
varying float v_isHighlightedCommented;
varying float v_isActiveNode;
varying float v_innerPointSize;
@georgwiese
georgwiese / universal_sentence_encoder_featurizer.py
Last active September 6, 2022 15:37
Universal Sentence Encoder Featurizer
""" Enhancing Intent Classification with the Universal Sentence Encoder:
https://medium.com/scalableminds/enhancing-intent-classification-with-the-universal-sentence-encoder-ecbcd7a3005c
"""
from rasa_nlu.featurizers import Featurizer
import tensorflow_hub as hub
import tensorflow as tf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@georgwiese
georgwiese / designer.html
Created October 17, 2014 19:26
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;