Mercurial > repos > bimib > marea
comparison Marea/marea_cluster.py @ 25:9992eba50cfb draft
fixed pyplot backend
author | bimib |
---|---|
date | Mon, 07 Oct 2019 13:44:13 -0400 |
parents | a8825e66c3a0 |
children | e6831924df01 |
comparison
equal
deleted
inserted
replaced
24:69ed2562e81e | 25:9992eba50cfb |
---|---|
8 import argparse | 8 import argparse |
9 import os | 9 import os |
10 from sklearn.datasets import make_blobs | 10 from sklearn.datasets import make_blobs |
11 from sklearn.cluster import KMeans, DBSCAN, AgglomerativeClustering | 11 from sklearn.cluster import KMeans, DBSCAN, AgglomerativeClustering |
12 from sklearn.metrics import silhouette_samples, silhouette_score, davies_bouldin_score, cluster | 12 from sklearn.metrics import silhouette_samples, silhouette_score, davies_bouldin_score, cluster |
13 import matplotlib | |
14 matplotlib.use('agg') | |
13 import matplotlib.pyplot as plt | 15 import matplotlib.pyplot as plt |
14 import scipy.cluster.hierarchy as shc | 16 import scipy.cluster.hierarchy as shc |
15 import matplotlib.cm as cm | 17 import matplotlib.cm as cm |
16 import numpy as np | 18 import numpy as np |
17 import pandas as pd | 19 import pandas as pd |