from scipy.spatial import KDTree from scipy.spatial import ConvexHull from scipy.stats import linregress from sklearn.manifold import TSNE from sklearn.decomposition import PCA, KernelPCA from sklearn.cluster import KMeans from scipy.optimize import curve_fit