This commit is contained in:
Mateusz 2024-05-04 15:42:16 +02:00
parent dace057c96
commit a8cf8d2829
2 changed files with 3 additions and 5 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ creditcardfraud.zip
creditcard.csv creditcard.csv
data data
model/model.keras model/model.keras
stats_data stats_data
evaluation

View File

@ -2,16 +2,13 @@ from sklearn.metrics import (
accuracy_score, accuracy_score,
precision_score, precision_score,
recall_score, recall_score,
f1_score,
mean_squared_error,
) )
import numpy as np
import pandas as pd import pandas as pd
def main(): def main():
y_test = pd.read_csv("data/y_test.csv") y_test = pd.read_csv("data/y_test.csv")
y_pred = pd.read_csv("evaluation/y_pred.csv") y_pred = pd.read_csv("evaluation/y_pred.csv", header=None)
accuracy = accuracy_score(y_test, y_pred) accuracy = accuracy_score(y_test, y_pred)
precision_micro = precision_score(y_test, y_pred, average="micro") precision_micro = precision_score(y_test, y_pred, average="micro")