Skip to content

Instantly share code, notes, and snippets.

View emjun's full-sized avatar

Eunice Jun emjun

View GitHub Profile
@emjun
emjun / tests_as_objs.py
Created July 29, 2020 18:02
Possible refactor to make each statistical test an object/class.
# Idea: Make each statistical test its own class with an execute and visualization function
# For example:
class Students_T():
def execute(dataset, design, predictions, combined_data: CombinedData):
# perform statistical test
pass
def visualize():
# add visualization code
pass
@emjun
emjun / tea_oop_api_proposals.py
Last active July 22, 2020 14:53
Proposed ideas for updating the Tea API for V1
# Goal: Provide a more OOP API that enables end-users to have multiple analyses simultaneously
# Current V0 API
variables = [
{"name": "Var0", "data type": "interval"}
{"name": "Var1", "data type": "ratio",},
]
experimental_design = {
"study type": "observational study",
"contributor variables": "Var0",
@emjun
emjun / proposal1_tea_api_v1.py
Created July 14, 2020 16:14
Another possible API design for V1
# Declare Variables, Design, Assumptions, and Hypothesis at the time of construction
import tea
file_path = "./datasets/UScrime.csv"
variables = [{
'name': 'Class',
'data type': 'ordinal',
'categories': ['0', '1', '2']
},
{
@emjun
emjun / proposal_tea_api_v1.py
Created April 28, 2020 00:44
Sample for Tea API V1
# Declare Variables, Design, Assumptions, and Hypothesis at the time of construction
import tea
file_path = "./datasets/UScrime.csv"
variables = [{
'name': 'Class',
'data type': 'ordinal',
'categories': ['0', '1', '2']
},
{
@emjun
emjun / tea_example_0.1.ipynb
Created October 19, 2019 00:35
Example of using Tea
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emjun
emjun / tea_example_0_updated.ipynb
Last active October 19, 2019 00:33
Example of using Tea
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emjun
emjun / tea_example_0.ipynb
Last active October 18, 2019 23:50
Example of writing a Tea program
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.