This file contains hidden or 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 math import ceil | |
from functools import partial | |
from matplotlib import pyplot as plt | |
from cycler import cycler | |
import numpy as np | |
from decimal import Context | |
plt.rcParams['figure.constrained_layout.use'] = True | |
ctx = Context(prec=20) |
This file contains hidden or 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
""" Unsupervised evaluation metrics. """ | |
# License: BSD Style. | |
from itertools import combinations | |
import numpy as np | |
from sklearn.utils import check_random_state | |
from sklearn.metrics.pairwise import distance_metrics | |
from sklearn.metrics.pairwise import pairwise_distances |