Commit
·
40c4f5a
1
Parent(s):
9d94c83
Rename project and remove stray `app.py`.
Browse files- app.py +0 -45
- pyproject.toml +1 -1
app.py
DELETED
|
@@ -1,45 +0,0 @@
|
|
| 1 |
-
import marimo
|
| 2 |
-
|
| 3 |
-
__generated_with = "0.11.4"
|
| 4 |
-
app = marimo.App(width="medium")
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
@app.cell
|
| 8 |
-
def _(mo):
|
| 9 |
-
mo.md("""# Exploration on Smartphone Consumer Trends in India""")
|
| 10 |
-
return
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
@app.cell(hide_code=True)
|
| 14 |
-
def _():
|
| 15 |
-
import marimo as mo
|
| 16 |
-
import polars as pl
|
| 17 |
-
|
| 18 |
-
dataset_raw = pl.read_csv("dataset/diabetes_binary_health_indicators_BRFSS2015.csv")
|
| 19 |
-
dataset_raw.head()
|
| 20 |
-
return dataset_raw, mo, pl
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
@app.cell
|
| 24 |
-
def _(dataset_raw):
|
| 25 |
-
dataset_priors = dataset_raw.select(["Diabetes_binary", "HighBP", "HighChol", "Stroke", "HeartDiseaseorAttack"])
|
| 26 |
-
dataset_priors.head()
|
| 27 |
-
return (dataset_priors,)
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
@app.cell
|
| 31 |
-
def _():
|
| 32 |
-
from sklearn.naive_bayes import BernoulliNB
|
| 33 |
-
from sklearn.metrics import accuracy_score, confusion_matrix, classification_report
|
| 34 |
-
from sklearn.model_selection import train_test_split
|
| 35 |
-
return (
|
| 36 |
-
BernoulliNB,
|
| 37 |
-
accuracy_score,
|
| 38 |
-
classification_report,
|
| 39 |
-
confusion_matrix,
|
| 40 |
-
train_test_split,
|
| 41 |
-
)
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
if __name__ == "__main__":
|
| 45 |
-
app.run()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pyproject.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
[project]
|
| 2 |
-
name = "cc229-dataset-app"
|
| 3 |
author = [ { name = "Oliver Ladores", email = "oliver.ladores@wvsu.edu.ph" } ]
|
| 4 |
license = "BSD-3-Clause"
|
| 5 |
version = "0.1.0"
|
|
|
|
| 1 |
[project]
|
| 2 |
+
name = "cc229-diabetes-dataset-app"
|
| 3 |
author = [ { name = "Oliver Ladores", email = "oliver.ladores@wvsu.edu.ph" } ]
|
| 4 |
license = "BSD-3-Clause"
|
| 5 |
version = "0.1.0"
|