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

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ creditcard.csv
data
model/model.keras
stats_data
evaluation

View File

@ -2,16 +2,13 @@ from sklearn.metrics import (
accuracy_score,
precision_score,
recall_score,
f1_score,
mean_squared_error,
)
import numpy as np
import pandas as pd
def main():
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)
precision_micro = precision_score(y_test, y_pred, average="micro")