Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
log.info("computing dbscan clustering with eps=%f" % args.nclusters)
if args.nmaxclusters:
log.warning("nmax specified but not used. Inertia analysis only available for Kmeans.")
if not args.pca and not inertia:
log.info("computing pca to plot clusters")
pca = calculate_pca(X)
if not inertia:
ca = cluster_alg(X, args.nclusters)
if len(set(ca.labels_)) == 1:
log.error("clustering failed. Check input parameter.")
quit()
views.plot_clusters(prj, pca, X, y, ca, False)
if args.D3:
views.plot_clusters(prj, pca, X, y, ca, args.D3)
views.show(args.img_only)
def view(self, img_only = False):
import ergo.views as views
views.model(self, img_only)
views.roc(self, img_only)
views.stats(self, img_only)
views.history(self, img_only)
views.show(img_only)