Mercurial > repos > bimib > cobraxy
comparison COBRAxy/marea_cluster.py @ 224:4a677fc67aeb draft
Uploaded
author | luca_milaz |
---|---|
date | Mon, 16 Dec 2024 17:06:12 +0000 |
parents | 3ad3fb730b87 |
children |
comparison
equal
deleted
inserted
replaced
223:c2ce7d75fceb | 224:4a677fc67aeb |
---|---|
509 X = pd.DataFrame.to_dict(X, orient='list') | 509 X = pd.DataFrame.to_dict(X, orient='list') |
510 X = rewrite_input(X) | 510 X = rewrite_input(X) |
511 X = pd.DataFrame.from_dict(X, orient = 'index') | 511 X = pd.DataFrame.from_dict(X, orient = 'index') |
512 | 512 |
513 for i in X.columns: | 513 for i in X.columns: |
514 if any(val is None for val in X[i]): | 514 if any(val is None or np.isnan(val) for val in X[i]): |
515 X = X.drop(columns=[i]) | 515 X = X.drop(columns=[i]) |
516 | 516 |
517 if args.k_max != None: | 517 if args.k_max != None: |
518 numero_classi = X.shape[0] | 518 numero_classi = X.shape[0] |
519 while args.k_max >= numero_classi: | 519 while args.k_max >= numero_classi: |