Adds ses owanova

This commit is contained in:
Daniel Svitan
2024-12-15 12:16:55 +01:00
parent d3d9ebfbe2
commit 95d0625f4e
3 changed files with 29 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import numpy as np
from analyze import analyze
dataset = np.load("clean.npy")
print(f"dataset shape: {dataset.shape}, analyzing column 7 (living)")
print(f"dataset shape: {dataset.shape}, analyzing column 8 (living)")
print("\t0 - with family")
print("\t1 - with family member")
print("\t2 - alone / roomates")
@@ -13,7 +13,7 @@ print("")
def analyze_living(name: str, col: np.ndarray):
occupation_col = dataset[:, 7]
occupation_col = dataset[:, 8]
analyze(name, [
col[occupation_col == 0],
col[occupation_col == 1],