Skip to content
Open

Dev #51

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
d41f466
Add files via upload
Roshanjoseph468 Oct 16, 2024
23016e2
jupyter exported files
afislonge Oct 17, 2024
c799e9f
fix merge
afislonge Oct 17, 2024
7e2966f
added fixed merge
afislonge Oct 17, 2024
43928c7
added project frontend
afislonge Oct 29, 2024
b262f71
add frontend asset and index page
afislonge Oct 30, 2024
426a99f
added model search input
afislonge Oct 30, 2024
5e12ea7
fix merger conflict
afislonge Nov 5, 2024
e1d9e6e
Fetch business id corresponding to each index mapping
JoelTomyGeorge Nov 5, 2024
56ab598
Created using Colab
mishelks Nov 5, 2024
5d25751
Merge pull request #38 from mishelks/dev
mishelks Nov 5, 2024
077b458
Merge pull request #37 from JoelTomyGeorge/dev
JoelTomyGeorge Nov 5, 2024
ed33de9
Created using Colab
JoelTomyGeorge Nov 5, 2024
0f57eea
Add files via upload
aiswaryarkamath Nov 5, 2024
e203c8d
Merge pull request #39 from aiswaryarkamath/dev
JoelTomyGeorge Nov 5, 2024
db5df5c
Merge pull request #29 from Roshanjoseph468/main
Roshanjoseph468 Nov 5, 2024
f02e3e6
model2 notebook
JoelTomyGeorge Nov 5, 2024
4b0ba92
Created using Colab
Justin2430 Nov 6, 2024
d3b8cf5
Merge pull request #45 from Justin2430/dev
Justin2430 Nov 6, 2024
540288e
Created using Colab
Roshanjoseph468 Nov 6, 2024
edbfb37
Merge pull request #46 from Roshanjoseph468/dev
Roshanjoseph468 Nov 6, 2024
d38b946
Merge pull request #43 from JoelTomyGeorge/dev
JoelTomyGeorge Nov 6, 2024
d597a54
Created using Colab
karthikab5 Nov 6, 2024
b38e8b2
Merge pull request #47 from karthikab5/dev
karthikab5 Nov 6, 2024
0ff7517
Created using Colab
karthikab5 Nov 6, 2024
3b1a3e3
Rename lime.ipynb to brick.ipynb
karthikab5 Nov 6, 2024
ee2b9bf
Created using Colab
karthikab5 Nov 6, 2024
49fb216
Merge pull request #49 from karthikab5/dev
karthikab5 Nov 6, 2024
19cd2b6
Add files via upload
meenu16411 Nov 6, 2024
e28466b
change the user input
afislonge Nov 26, 2024
d05fe2e
Location based Recommender Model
meenu16411 Nov 26, 2024
278926d
Recommending using saved model
meenu16411 Nov 26, 2024
bd364bc
added the UI deployment piepline to azure blob
afislonge Nov 27, 2024
88710ac
updated git action yaml file
afislonge Nov 27, 2024
1e6fd77
fix pipeline
afislonge Nov 27, 2024
4a812ba
fix pipeline
afislonge Nov 27, 2024
f60c2be
ci: add Azure Static Web Apps workflow file
afislonge Nov 27, 2024
10a6596
fix deployment pipeline
afislonge Nov 27, 2024
5ab0c24
fix deployment pipeline
afislonge Nov 27, 2024
5ae15ca
fix deployment pipeline
afislonge Nov 27, 2024
85ce4c9
removed error pipeline
afislonge Nov 27, 2024
49402ce
updated scripts
afislonge Dec 4, 2024
4d59013
clean up the repo
afislonge Dec 4, 2024
fcddf8e
add backend file
afislonge Dec 9, 2024
3e26b01
updated app
afislonge Dec 9, 2024
59d3336
added alert msg and dummy result
afislonge Dec 9, 2024
8cd1b5f
added api, fix ui for deployment
afislonge Dec 10, 2024
6c3a85c
fixed api deployment
afislonge Dec 10, 2024
570b9bf
added api domain to app.js
afislonge Dec 10, 2024
609f9aa
banner image missing path fixed
afislonge Dec 10, 2024
2daa936
fixed result display
afislonge Dec 10, 2024
02d904d
fixed ui and api
afislonge Dec 10, 2024
a485183
fixed ui
afislonge Dec 10, 2024
7f131e0
fixed ap err
afislonge Dec 10, 2024
d399d46
fixed ui and api err
afislonge Dec 10, 2024
60a878e
fixed ui
afislonge Dec 11, 2024
9ff2e33
fixed ui
afislonge Dec 11, 2024
5c47d85
Created using Colab
JoelTomyGeorge Dec 11, 2024
f6fd37d
Created using Colab
JoelTomyGeorge Dec 11, 2024
0230e08
fixed ui
afislonge Dec 11, 2024
0f4c371
Merge branch 'dev' of https://github.com/afislonge/BizRecProject into…
afislonge Dec 11, 2024
f5b5f24
fixed ui
afislonge Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- dev
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- dev

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_RIVER_027CE991E }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "./web" # App source code path
api_location: "" # Api source code path - optional
output_location: "." # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_RIVER_027CE991E }}
action: "close"
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ __pycache__/
# C extensions
*.so

*.pbix

# Distribution / packaging
topic_senti_model
Recommender_System_Newdata.csv
restaurant_recommender_Final_model/
api/*.json
.vscode/
.Python
doc/
yelp_dataset/
Expand Down
216 changes: 216 additions & 0 deletions App/preprocess/checkindata_process.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"C:\\Lambton\\Term_3\\BDM 3035 - Big Data Capstone Project 01\\project"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"\n",
"# Load the data\n",
"input_file = '..\\..\\yelp_dataset\\medium\\yelp.checkin.csv' # Update this to your file path\n",
"output_file = '..\\..\\yelp_dataset\\medium\\processed_checkin.csv'\n"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"# Read the CSV file'..\\..\\yelp_dataset\\medium\\yelp.checkin.csv'\n",
"df = pd.read_csv(input_file)\n"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>business_id</th>\n",
" <th>date</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>---kPU91CF4Lq2-WlRu9Lw</td>\n",
" <td>2020-03-13 21:10:56, 2020-06-02 22:18:06, 2020...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>--0iUa4sNDFiZFrAdIWhZQ</td>\n",
" <td>2010-09-13 21:43:09, 2011-05-04 23:08:15, 2011...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>--30_8IhuyMHbSOcNWd6DQ</td>\n",
" <td>2013-06-14 23:29:17, 2014-08-13 23:20:22</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>--7PUidqRWpRSpXebiyxTg</td>\n",
" <td>2011-02-15 17:12:00, 2011-07-28 02:46:10, 2012...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>--7jw19RH9JKXgFohspgQw</td>\n",
" <td>2014-04-21 20:42:11, 2014-04-28 21:04:46, 2014...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>49995</th>\n",
" <td>NJaR_2hke7NNAC6l1Ohr8g</td>\n",
" <td>2015-01-16 02:17:10, 2015-01-16 04:45:59, 2015...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>49996</th>\n",
" <td>NJcoVbVwnYigsQVDOgl29Q</td>\n",
" <td>2013-07-27 23:05:38, 2013-08-10 22:42:26, 2013...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>49997</th>\n",
" <td>NJe5fkia_63rdKXRdJlmkA</td>\n",
" <td>2018-12-08 02:43:45, 2018-12-09 23:34:42, 2018...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>49998</th>\n",
" <td>NJg2ookzRGD2Ej-VNpuY-w</td>\n",
" <td>2010-11-02 23:09:05, 2010-11-05 14:10:24, 2011...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>49999</th>\n",
" <td>NJhWEmpgMTo_QtndFqu3Hg</td>\n",
" <td>2018-04-03 01:12:08, 2018-04-11 00:48:20, 2018...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>50000 rows × 2 columns</p>\n",
"</div>"
],
"text/plain": [
" business_id \\\n",
"0 ---kPU91CF4Lq2-WlRu9Lw \n",
"1 --0iUa4sNDFiZFrAdIWhZQ \n",
"2 --30_8IhuyMHbSOcNWd6DQ \n",
"3 --7PUidqRWpRSpXebiyxTg \n",
"4 --7jw19RH9JKXgFohspgQw \n",
"... ... \n",
"49995 NJaR_2hke7NNAC6l1Ohr8g \n",
"49996 NJcoVbVwnYigsQVDOgl29Q \n",
"49997 NJe5fkia_63rdKXRdJlmkA \n",
"49998 NJg2ookzRGD2Ej-VNpuY-w \n",
"49999 NJhWEmpgMTo_QtndFqu3Hg \n",
"\n",
" date \n",
"0 2020-03-13 21:10:56, 2020-06-02 22:18:06, 2020... \n",
"1 2010-09-13 21:43:09, 2011-05-04 23:08:15, 2011... \n",
"2 2013-06-14 23:29:17, 2014-08-13 23:20:22 \n",
"3 2011-02-15 17:12:00, 2011-07-28 02:46:10, 2012... \n",
"4 2014-04-21 20:42:11, 2014-04-28 21:04:46, 2014... \n",
"... ... \n",
"49995 2015-01-16 02:17:10, 2015-01-16 04:45:59, 2015... \n",
"49996 2013-07-27 23:05:38, 2013-08-10 22:42:26, 2013... \n",
"49997 2018-12-08 02:43:45, 2018-12-09 23:34:42, 2018... \n",
"49998 2010-11-02 23:09:05, 2010-11-05 14:10:24, 2011... \n",
"49999 2018-04-03 01:12:08, 2018-04-11 00:48:20, 2018... \n",
"\n",
"[50000 rows x 2 columns]"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Processed data saved to ..\\..\\yelp_dataset\\medium\\processed_checkin.csv\n"
]
}
],
"source": [
"# Split the 'date' column to multiple rows based on commas and trim spaces\n",
"df = df.assign(date=df['date'].str.split(',')).explode('date')\n",
"df['date'] = df['date'].str.strip()\n",
"\n",
"# Save the processed data to a new CSV file\n",
"df.to_csv(output_file, index=False)\n",
"\n",
"print(f\"Processed data saved to {output_file}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "env",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading
Loading