This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy.random import choice | |
class KMedoid: | |
def __init__(self, k, verbose=False): | |
self.k = k | |
self.maxiter = 100 | |
self.verbose = verbose | |
def assign_labels(self, S): | |
return np.argmin(S, axis=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.core.magic import register_cell_magic | |
from IPython.display import SVG, display | |
import requests | |
diagrams_supported = set(['blockdiag', 'seqdiag', 'mermaid', 'actdiag', | |
'nwdiag', 'packetdiag', 'rackdiag', 'erd', | |
'nomnoml', 'plantuml', 'umlet', 'wavedrom', | |
'bpmn', 'bytefield', 'pikchr', 'graphviz', | |
'vega', 'vega-lite', 'ditaa', 'svgbob']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[aws] | |
aws_region_name = us-east-1 | |
[aliases] | |
ssh = ssh {CFN_USER}@{MASTER_IP} {ARGS} | |
[global] | |
cluster_template = default | |
update_check = true | |
sanity_check = true |
OlderNewer