Spaces:
Sleeping
Sleeping
add uv
Browse files- .gitignore +1 -0
- .python-version +1 -0
- app.py +4 -4
- compute_curve.py +4 -3
- pyproject.toml +12 -0
- uv.lock +0 -0
.gitignore
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
*.png
|
| 2 |
old_code/*
|
| 3 |
*Thumbs*
|
|
|
|
|
|
| 1 |
*.png
|
| 2 |
old_code/*
|
| 3 |
*Thumbs*
|
| 4 |
+
*.pyc
|
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.11
|
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import numpy as np
|
| 3 |
-
import seaborn as sns
|
| 4 |
import matplotlib.pyplot as plt
|
|
|
|
| 5 |
import pandas as pd
|
|
|
|
| 6 |
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
|
| 10 |
|
| 11 |
def convert_y_params_to_f_params(p_y, p_f_given_y1, p_f_given_y0):
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
| 2 |
import matplotlib.pyplot as plt
|
| 3 |
+
import numpy as np
|
| 4 |
import pandas as pd
|
| 5 |
+
import seaborn as sns
|
| 6 |
|
| 7 |
+
from compute_curve import compute_curve
|
| 8 |
+
from distributions import BinaryYFDistribution
|
| 9 |
|
| 10 |
|
| 11 |
def convert_y_params_to_f_params(p_y, p_f_given_y1, p_f_given_y0):
|
compute_curve.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
-
import numpy as np
|
| 2 |
-
import seaborn as sns
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
-
|
| 5 |
import pandas as pd
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
binary_dist = distributions.BinaryYFDistribution(
|
| 8 |
p_f=0.5, p_y_given_f1=0.8, p_y_given_f0=0.2
|
|
|
|
|
|
|
|
|
|
| 1 |
import matplotlib.pyplot as plt
|
| 2 |
+
import numpy as np
|
| 3 |
import pandas as pd
|
| 4 |
+
import seaborn as sns
|
| 5 |
+
|
| 6 |
+
import distributions
|
| 7 |
|
| 8 |
binary_dist = distributions.BinaryYFDistribution(
|
| 9 |
p_f=0.5, p_y_given_f1=0.8, p_y_given_f0=0.2
|
pyproject.toml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "ppi-variance-demo"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
description = "Add your description here"
|
| 5 |
+
readme = "README.md"
|
| 6 |
+
requires-python = ">=3.11"
|
| 7 |
+
dependencies = [
|
| 8 |
+
"gradio>=5.3.0",
|
| 9 |
+
"numpy>=2.3.3",
|
| 10 |
+
"pandas>=2.3.3",
|
| 11 |
+
"seaborn>=0.13.2",
|
| 12 |
+
]
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|