IUM_06
This commit is contained in:
parent
dace057c96
commit
a8cf8d2829
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ creditcard.csv
|
|||||||
data
|
data
|
||||||
model/model.keras
|
model/model.keras
|
||||||
stats_data
|
stats_data
|
||||||
|
evaluation
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user