Commit 675a3194 authored by ismael.rodriguez's avatar ismael.rodriguez

Fixing web service calls

parent 6fab5eba
......@@ -156,7 +156,7 @@ def levene(alpha=0.05):
@headers
def ttest(alpha=0.05):
values = clean_missing_values(request.json['values'])
statistic, p_value = st.ttest_rel(*values.values())
statistic, p_value = st.ttest_rel(values.values()[0], values.values()[1])
result = int(p_value < alpha)
return {"statistic": statistic.tolist(), "p_value": p_value, "result": result}
......@@ -165,7 +165,7 @@ def ttest(alpha=0.05):
@headers
def ttest_ind(alpha=0.05):
values = clean_missing_values(request.json['values'])
statistic, p_value = st.ttest_ind(*values.values())
statistic, p_value = st.ttest_ind(values.values()[0], values.values()[1])
result = int(p_value < alpha)
return {"statistic": statistic.tolist(), "p_value": p_value, "result": result}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment