import pandas as pd
from dcm import dcm
import datasets

dataset_file = 'examples/datasets/creditcard.csv'
datasets.download_creditcard(dataset_file)

print("Loading dataset ... ", end="", flush=True)
dataset = pd.read_csv(dataset_file)
X = dataset.drop(columns=['Class']).values
y = dataset['Class'].values
print("DONE")

print("Calculating C1 and C2 ... ", end="", flush=True)
C1, C2 = dcm.C12(X, y)
print("DONE")
print("C1 = {}".format(C1))
print("C2 = {}".format(C2))

import pandas as pd
from dcm import dcm
import datasets

dataset_file = 'examples/datasets/creditcard.csv'
datasets.download_creditcard(dataset_file)

print("Loading dataset ... ", end="", flush=True)
dataset = pd.read_csv(dataset_file)
X = dataset.drop(columns=['Class']).values
y = dataset['Class'].values
print("DONE")

print("Calculating C1 and C2 ... ", end="", flush=True)
C1, C2 = dcm.C12(X, y)
print("DONE")
print("C1 = {}".format(C1))
print("C2 = {}".format(C2))
