Add oc1 and cart models

Update analysis and report mysql
This commit is contained in:
2021-03-03 12:47:47 +01:00
parent df42c0df74
commit 116db3f528
113 changed files with 1301 additions and 35 deletions

13
oc1datasets.py Executable file
View File

@@ -0,0 +1,13 @@
import os
import pandas as pd
from experimentation.Sets import Datasets
dt = Datasets(normalize=True, set_of_files="tanveer")
for data in dt:
name = data[0]
X, y = dt.load(name)
dataset = pd.DataFrame(X)
dataset["y"] = y
file_name = os.path.join("data", "csv", f"{name}.csv")
print(f"{file_name}")
pd.DataFrame(dataset).to_csv(file_name, index=False, sep=",", header=False)