changeset 86:3da6344347cd draft

Uploaded
author luca_milaz
date Fri, 19 Jul 2024 20:25:53 +0000
parents 83a8e208a618
children f860e30318f0
files marea_2/marea_cluster.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/marea_cluster.py	Fri Jul 19 20:23:25 2024 +0000
+++ b/marea_2/marea_cluster.py	Fri Jul 19 20:25:53 2024 +0000
@@ -7,6 +7,8 @@
 import sys
 import argparse
 import os
+import numpy as np
+import pandas as pd
 from sklearn.datasets import make_blobs
 from sklearn.cluster import KMeans, DBSCAN, AgglomerativeClustering
 from sklearn.metrics import silhouette_samples, silhouette_score, cluster
@@ -15,8 +17,6 @@
 import matplotlib.pyplot as plt
 import scipy.cluster.hierarchy as shc   
 import matplotlib.cm as cm
-import numpy as np
-import pandas as pd
 from typing import Optional, Dict, List
 
 ################################# process args ###############################
@@ -509,6 +509,8 @@
         tmp = X[i][0]
         if tmp == None:
             X = X.drop(columns=[i])
+
+    ## NAN TO HANLDE
             
     if args.k_max != None:
        numero_classi = X.shape[0]