Last active
January 10, 2025 14:01
-
-
Save davidechicco/128c983cde0d131af708a20baddf7509 to your computer and use it in GitHub Desktop.
FelSiq/DBCV test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import dbcv | |
data_file_name = 'DB1.csv' | |
df = pd.read_csv(data_file_name, header = None) | |
print("data file name read: ", data_file_name) | |
clusters_file_name = '../Labels/DB1_786.txt' | |
clusters = pd.read_csv(clusters_file_name, header = None) | |
clusters.columns = ['cluster'] | |
merged_df = pd.concat([df, clusters], axis=1) | |
merged_df2 = merged_df.drop(merged_df[merged_df.cluster >= 2].index) | |
this_dbcv = dbcv.dbcv(merged_df2.iloc[:,:-2], merged_df2.iloc[:,-1], check_duplicates = False) | |
print("FelSiq/DBCV = ", this_dbcv) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment