Uploaded initial files
Browse filesdone in class, as per following ms bhalla's instructions
app.py
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### ----------------------------- ###
|
| 2 |
+
### libraries ###
|
| 3 |
+
### ----------------------------- ###
|
| 4 |
+
|
| 5 |
+
import gradio as gr
|
| 6 |
+
import pandas as pd
|
| 7 |
+
import numpy as np
|
| 8 |
+
from sklearn.model_selection import train_test_split
|
| 9 |
+
from sklearn.linear_model import LogisticRegression
|
| 10 |
+
from sklearn import metrics
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
### ------------------------------ ###
|
| 14 |
+
### data transformation ###
|
| 15 |
+
### ------------------------------ ###
|
| 16 |
+
|
| 17 |
+
# load dataset
|
| 18 |
+
uncleaned_data = pd.read_csv('data.csv')
|
| 19 |
+
|
| 20 |
+
# remove timestamp from dataset (always first column)
|
| 21 |
+
uncleaned_data = uncleaned_data.iloc[: , 1:]
|
| 22 |
+
data = pd.DataFrame()
|
| 23 |
+
|
| 24 |
+
# keep track of which columns are categorical and what
|
| 25 |
+
# those columns' value mappings are
|
| 26 |
+
# structure: {colname1: {...}, colname2: {...} }
|
| 27 |
+
cat_value_dicts = {}
|
| 28 |
+
final_colname = uncleaned_data.columns[len(uncleaned_data.columns) - 1]
|
| 29 |
+
|
| 30 |
+
# for each column...
|
| 31 |
+
for (colname, colval) in uncleaned_data.iteritems():
|
| 32 |
+
|
| 33 |
+
# check if col is already a number; if so, add col directly
|
| 34 |
+
# to new dataframe and skip to next column
|
| 35 |
+
if isinstance(colval.values[0], (np.integer, float)):
|
| 36 |
+
data[colname] = uncleaned_data[colname].copy()
|
| 37 |
+
continue
|
| 38 |
+
|
| 39 |
+
# structure: {0: "lilac", 1: "blue", ...}
|
| 40 |
+
new_dict = {}
|
| 41 |
+
val = 0 # first index per column
|
| 42 |
+
transformed_col_vals = [] # new numeric datapoints
|
| 43 |
+
|
| 44 |
+
# if not, for each item in that column...
|
| 45 |
+
for (row, item) in enumerate(colval.values):
|
| 46 |
+
|
| 47 |
+
# if item is not in this col's dict...
|
| 48 |
+
if item not in new_dict:
|
| 49 |
+
new_dict[item] = val
|
| 50 |
+
val += 1
|
| 51 |
+
|
| 52 |
+
# then add numerical value to transformed dataframe
|
| 53 |
+
transformed_col_vals.append(new_dict[item])
|
| 54 |
+
|
| 55 |
+
# reverse dictionary only for final col (0, 1) => (vals)
|
| 56 |
+
if colname == final_colname:
|
| 57 |
+
new_dict = {value : key for (key, value) in new_dict.items()}
|
| 58 |
+
|
| 59 |
+
cat_value_dicts[colname] = new_dict
|
| 60 |
+
data[colname] = transformed_col_vals
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
### -------------------------------- ###
|
| 64 |
+
### model training ###
|
| 65 |
+
### -------------------------------- ###
|
| 66 |
+
|
| 67 |
+
# select features and predicton; automatically selects last column as prediction
|
| 68 |
+
cols = len(data.columns)
|
| 69 |
+
num_features = cols - 1
|
| 70 |
+
x = data.iloc[: , :num_features]
|
| 71 |
+
y = data.iloc[: , num_features:]
|
| 72 |
+
|
| 73 |
+
# split data into training and testing sets
|
| 74 |
+
x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.25)
|
| 75 |
+
|
| 76 |
+
# instantiate the model (using default parameters)
|
| 77 |
+
model = LogisticRegression()
|
| 78 |
+
model.fit(x_train, y_train.values.ravel())
|
| 79 |
+
y_pred = model.predict(x_test)
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
### -------------------------------- ###
|
| 83 |
+
### article generation ###
|
| 84 |
+
### -------------------------------- ###
|
| 85 |
+
# borrow file reading function from reader.py
|
| 86 |
+
|
| 87 |
+
def get_feat():
|
| 88 |
+
feats = [abs(x) for x in model.coef_[0]]
|
| 89 |
+
max_val = max(feats)
|
| 90 |
+
idx = feats.index(max_val)
|
| 91 |
+
return data.columns[idx]
|
| 92 |
+
|
| 93 |
+
acc = str(round(metrics.accuracy_score(y_test, y_pred) * 100, 1)) + "%"
|
| 94 |
+
most_imp_feat = get_feat()
|
| 95 |
+
# info = get_article(acc, most_imp_feat)
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
### ------------------------------- ###
|
| 100 |
+
### interface creation ###
|
| 101 |
+
### ------------------------------- ###
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
# predictor for generic number of features
|
| 105 |
+
def general_predictor(*args):
|
| 106 |
+
features = []
|
| 107 |
+
|
| 108 |
+
# transform categorical input
|
| 109 |
+
for colname, arg in zip(data.columns, args):
|
| 110 |
+
if (colname in cat_value_dicts):
|
| 111 |
+
features.append(cat_value_dicts[colname][arg])
|
| 112 |
+
else:
|
| 113 |
+
features.append(arg)
|
| 114 |
+
|
| 115 |
+
# predict single datapoint
|
| 116 |
+
new_input = [features]
|
| 117 |
+
result = model.predict(new_input)
|
| 118 |
+
return cat_value_dicts[final_colname][result[0]]
|
| 119 |
+
|
| 120 |
+
# add data labels to replace those lost via star-args
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
block = gr.Blocks()
|
| 124 |
+
|
| 125 |
+
with open('info.md') as f:
|
| 126 |
+
with block:
|
| 127 |
+
gr.Markdown(f.readline())
|
| 128 |
+
gr.Markdown('Take the quiz to get a personalized recommendation using AI.')
|
| 129 |
+
|
| 130 |
+
with gr.Row():
|
| 131 |
+
with gr.Group():
|
| 132 |
+
inputls = []
|
| 133 |
+
for colname in data.columns:
|
| 134 |
+
# skip last column
|
| 135 |
+
if colname == final_colname:
|
| 136 |
+
continue
|
| 137 |
+
|
| 138 |
+
# access categories dict if data is categorical
|
| 139 |
+
# otherwise, just use a number input
|
| 140 |
+
if colname in cat_value_dicts:
|
| 141 |
+
radio_options = list(cat_value_dicts[colname].keys())
|
| 142 |
+
inputls.append(gr.Dropdown(radio_options, type="value", label=colname))
|
| 143 |
+
else:
|
| 144 |
+
# add numerical input
|
| 145 |
+
inputls.append(gr.Number(label=colname))
|
| 146 |
+
gr.Markdown("<br />")
|
| 147 |
+
|
| 148 |
+
submit = gr.Button("Click to see your personalized result!", variant="primary")
|
| 149 |
+
gr.Markdown("<br />")
|
| 150 |
+
output = gr.Textbox(label="Your recommendation:", placeholder="your recommendation will appear here")
|
| 151 |
+
|
| 152 |
+
submit.click(fn=general_predictor, inputs=inputls, outputs=output)
|
| 153 |
+
gr.Markdown("<br />")
|
| 154 |
+
|
| 155 |
+
with gr.Row():
|
| 156 |
+
with gr.Group():
|
| 157 |
+
gr.Markdown(f"<h3>Accuracy: </h3>{acc}")
|
| 158 |
+
with gr.Group():
|
| 159 |
+
gr.Markdown(f"<h3>Most important feature: </h3>{most_imp_feat}")
|
| 160 |
+
|
| 161 |
+
gr.Markdown("<br />")
|
| 162 |
+
|
| 163 |
+
with gr.Group():
|
| 164 |
+
gr.Markdown('''⭐ Note that model accuracy is based on the uploaded data.csv and reflects how well the AI model can give correct recommendations for <em>that dataset</em>. Model accuracy and most important feature can be helpful for understanding how the model works, but <em>should not be considered absolute facts about the real world</em>.''')
|
| 165 |
+
|
| 166 |
+
with gr.Group():
|
| 167 |
+
with open('info.md') as f:
|
| 168 |
+
f.readline()
|
| 169 |
+
gr.Markdown(f.read())
|
| 170 |
+
|
| 171 |
+
# show the interface
|
| 172 |
+
block.launch()
|
data.csv
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Timestamp,Where do you prefer to be?,How sociable are you? ,What does a hobby mean for you?,"On a day with unlimited free time, you would most want to",How many hours of free time do you have on average in a day?,Which of the 5 senses makes you the happiest?,Which of these categories broadly appeals the most to you?
|
| 2 |
+
4/2/2025 10:22:13,Outdoors,4,Something that makes me creative,Participate in artistic endeavors,3-4,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 3 |
+
4/2/2025 10:25:52,Outdoors,5,Something just for fun,Be physically active,<1,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 4 |
+
4/2/2025 10:31:17,Indoors,4,Something just for fun,Stimulate your brain,<1,Tasting something,"Category 1: Hiking, Kayaking, Camping"
|
| 5 |
+
4/2/2025 10:31:23,Outdoors,3,Something just for fun,Stimulate your brain,1 -2,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 6 |
+
4/2/2025 10:38:20,Outdoors,5,Something just for fun,Interact with others,1 -2,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 7 |
+
4/2/2025 10:40:08,Indoors,3,Something just for fun,Stimulate your brain,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 8 |
+
4/2/2025 11:04:00,Indoors,5,Something just for fun,Interact with others,3-4,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 9 |
+
4/2/2025 11:07:43,Indoors,4,Something just for fun,Participate in artistic endeavors,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 10 |
+
4/2/2025 11:09:02,Outdoors,4,Something that makes me creative,Interact with others,<1,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 11 |
+
4/2/2025 11:14:51,Outdoors,4,Something just for fun,Stimulate your brain,1 -2,Feeling something,"Category 2: Baking, Gardening, Crocheting"
|
| 12 |
+
4/2/2025 11:21:20,Indoors,4,Something just for fun,Interact with others,3-4,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 13 |
+
4/2/2025 11:36:49,Outdoors,3,Something just for fun,Build a collection,1 -2,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 14 |
+
4/2/2025 11:38:54,Indoors,4,Something just for fun,Participate in artistic endeavors,5-6,Seeing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 15 |
+
4/2/2025 11:44:01,Outdoors,4,Something just for fun,Interact with others,1 -2,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 16 |
+
4/2/2025 11:45:41,Outdoors,4,Something that makes me creative,Participate in artistic endeavors,1 -2,Smelling something,"Category 4: Blogging, Calligraphy, Learning languages"
|
| 17 |
+
4/2/2025 11:45:46,Outdoors,3,Something that makes me creative,Stimulate your brain,1 -2,Feeling something,"Category 2: Baking, Gardening, Crocheting"
|
| 18 |
+
4/2/2025 12:00:40,Outdoors,5,Something just for fun,Interact with others,1 -2,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 19 |
+
4/2/2025 13:24:47,Outdoors,5,Something just for fun,Interact with others,<1,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 20 |
+
4/2/2025 13:31:21,Indoors,3,Something that I can get really good at,Stimulate your brain,<1,Hearing something,"Category 4: Blogging, Calligraphy, Learning languages"
|
| 21 |
+
4/2/2025 13:37:35,Outdoors,4,Something just for fun,Stimulate your brain,1 -2,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 22 |
+
4/2/2025 13:38:46,Indoors,2,Something just for fun,Stimulate your brain,1 -2,Hearing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 23 |
+
4/2/2025 14:43:49,Outdoors,3,Something just for fun,Interact with others,1 -2,Hearing something,"Category 2: Baking, Gardening, Crocheting"
|
| 24 |
+
4/2/2025 15:05:38,Indoors,3,Something just for fun,Interact with others,<1,Tasting something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 25 |
+
4/2/2025 15:08:29,Indoors,5,Something just for fun,Participate in artistic endeavors,1 -2,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 26 |
+
4/2/2025 15:25:16,Indoors,3,Something just for fun,Interact with others,<1,Feeling something,"Category 4: Blogging, Calligraphy, Learning languages"
|
| 27 |
+
4/2/2025 16:05:11,Outdoors,4,Something just for fun,Interact with others,1 -2,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 28 |
+
4/2/2025 16:32:16,Outdoors,3,Something just for fun,Interact with others,3-4,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 29 |
+
4/2/2025 16:49:23,Outdoors,3,Something that makes me creative,Stimulate your brain,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 30 |
+
4/2/2025 16:56:51,Indoors,2,Something that makes me creative,Participate in artistic endeavors,3-4,Tasting something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 31 |
+
4/2/2025 18:17:28,Outdoors,4,Something just for fun,Interact with others,<1,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 32 |
+
4/2/2025 20:50:25,Outdoors,4,Something that makes me creative,Be physically active,1 -2,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 33 |
+
4/2/2025 20:52:55,Indoors,4,Something just for fun,Interact with others,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 34 |
+
4/2/2025 21:18:13,Indoors,4,Something that makes me intellectually curious,Interact with others,1 -2,Seeing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 35 |
+
4/2/2025 21:25:25,Outdoors,4,Something that I can get really good at,Interact with others,1 -2,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 36 |
+
4/3/2025 0:52:03,Outdoors,4,Something just for fun,Interact with others,3-4,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 37 |
+
4/3/2025 8:54:32,Outdoors,4,Something just for fun,Participate in artistic endeavors,1 -2,Tasting something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 38 |
+
4/3/2025 9:16:48,Outdoors,3,Something just for fun,Stimulate your brain,<1,Smelling something,"Category 1: Hiking, Kayaking, Camping"
|
| 39 |
+
4/3/2025 11:14:35,Indoors,4,Something just for fun,Build a collection,<1,Seeing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 40 |
+
4/3/2025 13:22:48,Indoors,4,Something that makes me intellectually curious,Stimulate your brain,1 -2,Hearing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 41 |
+
4/4/2025 2:31:36,Outdoors,4,Something that makes me intellectually curious,Be physically active,<1,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 42 |
+
4/4/2025 9:20:41,Outdoors,4,Something that I can get really good at,Be physically active,1 -2,Smelling something,"Category 2: Baking, Gardening, Crocheting"
|
| 43 |
+
4/6/2025 10:52:44,Outdoors,4,Something just for fun,Be physically active,<1,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 44 |
+
4/10/2025 8:07:13,Outdoors,2,Something just for fun,Be physically active,<1,Smelling something,"Category 2: Baking, Gardening, Crocheting"
|
| 45 |
+
4/10/2025 8:09:56,Indoors,3,Something just for fun,Participate in artistic endeavors,<1,Hearing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 46 |
+
4/10/2025 8:24:25,Outdoors,5,Something just for fun,Interact with others,5-6,Tasting something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 47 |
+
4/10/2025 8:24:32,Outdoors,4,Something that makes me intellectually curious,Be physically active,<1,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 48 |
+
4/10/2025 8:24:36,Outdoors,3,Something that makes me creative,Participate in artistic endeavors,1 -2,Hearing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 49 |
+
4/10/2025 8:24:41,Indoors,5,Something just for fun,Interact with others,3-4,Tasting something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 50 |
+
4/10/2025 8:25:03,Indoors,2,Something just for fun,Participate in artistic endeavors,1 -2,Seeing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 51 |
+
4/10/2025 8:25:16,Indoors,4,Something that I can get really good at,Be physically active,<1,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 52 |
+
4/10/2025 8:25:22,Indoors,5,Something just for fun,Interact with others,3-4,Hearing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 53 |
+
4/10/2025 8:25:31,Indoors,3,Something just for fun,Participate in artistic endeavors,3-4,Hearing something,"Category 2: Baking, Gardening, Crocheting"
|
| 54 |
+
4/10/2025 8:25:38,Indoors,5,Something just for fun,Interact with others,<1,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 55 |
+
4/10/2025 8:25:38,Indoors,4,Something just for fun,Be physically active,<1,Hearing something,"Category 2: Baking, Gardening, Crocheting"
|
| 56 |
+
4/10/2025 8:25:59,Outdoors,4,Something that I can get really good at,Participate in artistic endeavors,3-4,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 57 |
+
4/10/2025 8:26:37,Indoors,4,Something just for fun,Interact with others,1 -2,Feeling something,"Category 2: Baking, Gardening, Crocheting"
|
| 58 |
+
4/10/2025 8:27:35,Indoors,4,Something just for fun,Be physically active,1 -2,Smelling something,"Category 4: Blogging, Calligraphy, Learning languages"
|
| 59 |
+
4/10/2025 8:27:51,Outdoors,4,Something that makes me creative,Be physically active,3-4,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 60 |
+
4/10/2025 8:27:59,Outdoors,2,Something just for fun,Participate in artistic endeavors,1 -2,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 61 |
+
4/10/2025 8:28:03,Indoors,3,Something just for fun,Interact with others,1 -2,Feeling something,"Category 2: Baking, Gardening, Crocheting"
|
| 62 |
+
4/10/2025 8:28:48,Outdoors,3,Something just for fun,Stimulate your brain,<1,Feeling something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 63 |
+
4/10/2025 8:29:28,Outdoors,5,Something that I can get really good at,Interact with others,<1,Tasting something,"Category 1: Hiking, Kayaking, Camping"
|
| 64 |
+
4/10/2025 8:31:27,Outdoors,4,Something that makes me creative,Interact with others,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 65 |
+
4/10/2025 8:36:18,Indoors,3,Something that makes me intellectually curious,Stimulate your brain,3-4,Hearing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 66 |
+
4/10/2025 8:36:36,Indoors,1,Something that makes me creative,Participate in artistic endeavors,3-4,Hearing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 67 |
+
4/10/2025 8:37:21,Outdoors,4,Something just for fun,Build a collection,3-4,Tasting something,"Category 4: Blogging, Calligraphy, Learning languages"
|
| 68 |
+
4/10/2025 8:37:30,Indoors,2,Something just for fun,Be physically active,3-4,Feeling something,"Category 2: Baking, Gardening, Crocheting"
|
| 69 |
+
4/10/2025 8:41:05,Indoors,4,Something that I can get really good at,Stimulate your brain,1 -2,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 70 |
+
4/10/2025 8:41:47,Outdoors,2,Something that I can get really good at,Be physically active,<1,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 71 |
+
4/10/2025 8:44:16,Outdoors,3,Something just for fun,Be physically active,1 -2,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 72 |
+
4/10/2025 8:44:30,Indoors,3,Something that I can get really good at,Participate in artistic endeavors,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 73 |
+
4/10/2025 8:45:50,Outdoors,4,Something just for fun,Be physically active,1 -2,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 74 |
+
4/10/2025 8:46:03,Outdoors,4,Something that makes me intellectually curious,Be physically active,1 -2,Hearing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 75 |
+
4/10/2025 8:46:15,Indoors,3,Something just for fun,Interact with others,9+,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 76 |
+
4/10/2025 8:47:16,Outdoors,4,Something just for fun,Interact with others,1 -2,Feeling something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 77 |
+
4/10/2025 8:48:09,Outdoors,4,Something just for fun,Interact with others,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 78 |
+
4/10/2025 8:51:21,Indoors,1,Something that makes me creative,Participate in artistic endeavors,1 -2,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 79 |
+
4/10/2025 8:53:29,Outdoors,5,Something that makes me intellectually curious,Interact with others,1 -2,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 80 |
+
4/10/2025 8:55:10,Indoors,4,Something just for fun,Participate in artistic endeavors,1 -2,Feeling something,"Category 4: Blogging, Calligraphy, Learning languages"
|
| 81 |
+
4/10/2025 8:56:58,Outdoors,3,Something just for fun,Interact with others,3-4,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 82 |
+
4/10/2025 8:58:30,Indoors,3,Something that I can get really good at,Be physically active,1 -2,Hearing something,"Category 4: Blogging, Calligraphy, Learning languages"
|
| 83 |
+
4/10/2025 8:58:43,Outdoors,3,Something just for fun,Participate in artistic endeavors,1 -2,Tasting something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 84 |
+
4/10/2025 9:00:57,Indoors,2,Something that makes me intellectually curious,Stimulate your brain,5-6,Tasting something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 85 |
+
4/10/2025 9:23:48,Indoors,4,Something that I can get really good at,Interact with others,<1,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 86 |
+
4/10/2025 9:23:52,Indoors,4,Something just for fun,Interact with others,1 -2,Feeling something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 87 |
+
4/10/2025 9:27:27,Indoors,3,Something that makes me intellectually curious,Stimulate your brain,3-4,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 88 |
+
4/10/2025 9:33:08,Indoors,2,Something that makes me intellectually curious,Stimulate your brain,1 -2,Tasting something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 89 |
+
4/10/2025 9:35:15,Outdoors,5,Something just for fun,Be physically active,1 -2,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 90 |
+
4/10/2025 9:41:26,Outdoors,5,Something that I can get really good at,Be physically active,1 -2,Tasting something,"Category 1: Hiking, Kayaking, Camping"
|
| 91 |
+
4/10/2025 9:41:28,Outdoors,5,Something just for fun,Interact with others,3-4,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 92 |
+
4/10/2025 9:46:08,Indoors,3,Something that makes me creative,Participate in artistic endeavors,1 -2,Tasting something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 93 |
+
4/10/2025 9:53:51,Indoors,2,Something just for fun,Stimulate your brain,1 -2,Tasting something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 94 |
+
4/10/2025 9:57:43,Outdoors,2,Something just for fun,Stimulate your brain,<1,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 95 |
+
4/10/2025 10:01:23,Outdoors,5,Something that makes me creative,Participate in artistic endeavors,<1,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 96 |
+
4/10/2025 10:07:25,Outdoors,5,Something just for fun,Interact with others,3-4,Feeling something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 97 |
+
4/10/2025 10:08:24,Outdoors,4,Something just for fun,Interact with others,3-4,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 98 |
+
4/10/2025 10:09:40,Indoors,4,Something that makes me intellectually curious,Stimulate your brain,7-8,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 99 |
+
4/10/2025 10:15:14,Indoors,5,Something just for fun,Interact with others,3-4,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 100 |
+
4/10/2025 10:15:36,Outdoors,4,Something that makes me creative,Be physically active,1 -2,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 101 |
+
4/10/2025 10:16:19,Outdoors,4,Something that I can get really good at,Interact with others,1 -2,Tasting something,"Category 1: Hiking, Kayaking, Camping"
|
| 102 |
+
4/10/2025 10:29:06,Outdoors,4,Something that makes me creative,Participate in artistic endeavors,1 -2,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 103 |
+
4/10/2025 10:29:12,Indoors,4,Something just for fun,Interact with others,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 104 |
+
4/10/2025 10:34:34,Indoors,3,Something that makes me creative,Participate in artistic endeavors,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 105 |
+
4/10/2025 10:52:42,Indoors,3,Something that I can get really good at,Participate in artistic endeavors,1 -2,Hearing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 106 |
+
4/10/2025 10:56:12,Indoors,2,Something just for fun,Participate in artistic endeavors,3-4,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 107 |
+
4/10/2025 11:01:45,Outdoors,3,Something that makes me creative,Stimulate your brain,<1,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 108 |
+
4/10/2025 11:01:55,Indoors,4,Something just for fun,Interact with others,3-4,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 109 |
+
4/10/2025 11:05:58,Outdoors,2,Something that I can get really good at,Be physically active,1 -2,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 110 |
+
4/10/2025 11:13:13,Outdoors,1,Something just for fun,Be physically active,<1,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 111 |
+
4/10/2025 11:26:50,Outdoors,4,Something that I can get really good at,Interact with others,3-4,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 112 |
+
4/10/2025 11:28:49,Indoors,3,Something that I can get really good at,Be physically active,<1,Seeing something,"Category 2: Baking, Gardening, Crocheting"
|
| 113 |
+
4/10/2025 11:29:33,Indoors,4,Something just for fun,Interact with others,3-4,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 114 |
+
4/10/2025 11:31:32,Indoors,5,Something just for fun,Stimulate your brain,1 -2,Tasting something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 115 |
+
4/10/2025 11:49:10,Outdoors,5,Something that makes me creative,Interact with others,3-4,Tasting something,"Category 1: Hiking, Kayaking, Camping"
|
| 116 |
+
4/10/2025 11:50:35,Outdoors,4,Something that makes me creative,Stimulate your brain,1 -2,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 117 |
+
4/10/2025 12:30:46,Indoors,3,Something that makes me creative,Participate in artistic endeavors,3-4,Smelling something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 118 |
+
4/10/2025 13:03:19,Outdoors,5,Something just for fun,Be physically active,1 -2,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 119 |
+
4/10/2025 13:50:23,Outdoors,4,Something that I can get really good at,Stimulate your brain,3-4,Hearing something,"Category 1: Hiking, Kayaking, Camping"
|
| 120 |
+
4/10/2025 13:57:51,Outdoors,4,Something that makes me intellectually curious,Participate in artistic endeavors,5-6,Feeling something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 121 |
+
4/10/2025 16:13:35,Indoors,3,Something that makes me creative,Participate in artistic endeavors,3-4,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 122 |
+
4/10/2025 18:24:32,Indoors,2,Something that makes me intellectually curious,Stimulate your brain,1 -2,Feeling something,"Category 2: Baking, Gardening, Crocheting"
|
| 123 |
+
4/10/2025 18:31:06,Outdoors,3,Something just for fun,Stimulate your brain,1 -2,Hearing something,"Category 2: Baking, Gardening, Crocheting"
|
| 124 |
+
4/10/2025 19:17:19,Outdoors,3,Something just for fun,Interact with others,3-4,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 125 |
+
4/10/2025 19:41:51,Outdoors,3,Something that I can get really good at,Be physically active,1 -2,Feeling something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 126 |
+
4/10/2025 19:53:33,Outdoors,4,Something that makes me intellectually curious,Interact with others,1 -2,Feeling something,"Category 1: Hiking, Kayaking, Camping"
|
| 127 |
+
4/10/2025 21:16:33,Outdoors,4,Something that makes me creative,Be physically active,1 -2,Seeing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 128 |
+
4/10/2025 21:22:10,Indoors,1,Something just for fun,Be physically active,3-4,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 129 |
+
4/11/2025 7:49:33,Indoors,4,Something just for fun,Interact with others,1 -2,Seeing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 130 |
+
4/11/2025 7:58:11,Outdoors,4,Something that makes me creative,Interact with others,3-4,Hearing something,"Category 4: Blogging, Calligraphy, Learning languages"
|
| 131 |
+
4/11/2025 8:50:14,Indoors,2,Something just for fun,Stimulate your brain,7-8,Seeing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 132 |
+
4/11/2025 10:34:07,Outdoors,5,Something that I can get really good at,Be physically active,<1,Hearing something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 133 |
+
4/11/2025 14:33:18,Outdoors,4,Something that makes me creative,Be physically active,1 -2,Tasting something,"Category 2: Baking, Gardening, Crocheting"
|
| 134 |
+
4/11/2025 15:05:01,Indoors,4,Something just for fun,Participate in artistic endeavors,<1,Feeling something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 135 |
+
4/11/2025 21:34:53,Indoors,2,Something that makes me intellectually curious,Stimulate your brain,5-6,Hearing something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 136 |
+
4/13/2025 19:35:59,Outdoors,4,Something that makes me intellectually curious,Interact with others,1 -2,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
| 137 |
+
4/13/2025 19:47:09,Indoors,4,Something that makes me intellectually curious,Interact with others,<1,Seeing something,"Category 1: Hiking, Kayaking, Camping"
|
| 138 |
+
4/13/2025 20:31:37,Indoors,3,Something that makes me creative,Build a collection,1 -2,Tasting something,"Category 3: Musical instrument/Singing, Painting, Photography, Candle making"
|
| 139 |
+
4/13/2025 23:14:15,Indoors,3,Something just for fun,Interact with others,1 -2,Feeling something,"Category 5: Chess, Word Puzzles, Video Games"
|
info.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 😌 [Edit info.md - Your app's title here]
|
| 2 |
+
|
| 3 |
+
### 🧐 Problem Statement and Research Summary
|
| 4 |
+
[add info about your problem statement and your research here!]
|
| 5 |
+
|
| 6 |
+
### 🎣 Data Collection Plan
|
| 7 |
+
[Edit info.md - add info about what data you collected and why here!]
|
| 8 |
+
|
| 9 |
+
### 💥 Ethical Considerations (Data Privacy and Bias)
|
| 10 |
+
* Data privacy: [Edit info.md - add info about you considered users' privacy here!]
|
| 11 |
+
* Bias: [Edit info.md - add info about you considered bias here!]
|
| 12 |
+
|
| 13 |
+
### 👻 Our Team
|
| 14 |
+
[Edit info.md - add info about your team members here!]
|
| 15 |
+
|
| 16 |
+

|
requirements.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pip>=23.2.1
|
| 2 |
+
pandas==1.3.4
|
| 3 |
+
scikit-learn>=1.0.1
|
| 4 |
+
numpy==1.21.4
|