#!/bin/bash | |
_KEY=$1 | |
shift 1 | |
if [ -z "$SSH_AUTH_SOCK" ] | |
then | |
SSH_AUTH_SOCK=`ss -xl | grep -o "/run/user/$UID/keyring-.*/ssh"` | |
if [ -z "$SSH_AUTH_SOCK" ] |
"""Kernel K-means""" | |
# Author: Mathieu Blondel <mathieu@mblondel.org> | |
# License: BSD 3 clause | |
import numpy as np | |
from sklearn.base import BaseEstimator, ClusterMixin | |
from sklearn.metrics.pairwise import pairwise_kernels | |
from sklearn.utils import check_random_state |
(function() { | |
// get a reference to the d3.selection prototype, | |
// and keep a reference to the old d3.selection.on | |
var d3_selectionPrototype = d3.selection.prototype, | |
d3_on = d3_selectionPrototype.on; | |
// our shims are organized by event: | |
// "desired-event": ["shimmed-event", wrapperFunction] | |
var shims = { |