Skip to content

Instantly share code, notes, and snippets.

View vict0rsch's full-sized avatar
🌍
AI vs Climate Change

Victor Schmidt vict0rsch

🌍
AI vs Climate Change
View GitHub Profile
@vict0rsch
vict0rsch / github_labels_to_yaml_settings.js
Last active April 11, 2019 21:45
Get all labels + colors + description on your repository's `labels` section into a Project-Bot compatible settings.yml file
// Just run this whole script in your browser's console on the appropriate webpage
// For instance on https://github.com/facebook/create-react-app/labels
// 1
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function (element) {
labels.push({
name: `"${element.textContent.trim()}"`,
// using style.backgroundColor might returns "rgb(...)"
@vict0rsch
vict0rsch / streaming_multilabel_f1_score.py
Last active March 16, 2021 03:17
Streaming and Multilabel F1 score in Tensorflow
# From my blog post: http://vict0rsch.github.io/2018/06/06/tensorflow-streaming-multilabel-f1/
import tensorflow as tf
import numpy as np
from tensorflow.python.ops import variable_scope
from tensorflow.python.ops import array_ops
from tensorflow.python.framework import ops
from sklearn.metrics import f1_score
Verifying my Blockstack ID is secured with the address 1DK3VpnQHPmtHDFW8gR2TiXUTbmTx4CbSX https://explorer.blockstack.org/address/1DK3VpnQHPmtHDFW8gR2TiXUTbmTx4CbSX