Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 16 additions & 0 deletions NLP-url-spam/Rashid/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
"waitFor": "onCreateCommand",
"onCreateCommand": "pip3 install --user -r requirements.txt",
"postCreateCommand": "",
"customizations": {
"vscode": {
"extensions": [
"ms-toolsai.jupyter",
"ms-python.python",
"ms-python.pylint"
]
}
}
}

1 change: 1 addition & 0 deletions NLP-url-spam/Rashid/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=postgresql://gitpod@localhost:5432/example
3 changes: 3 additions & 0 deletions NLP-url-spam/Rashid/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__pycache__
.env
.learn
6 changes: 6 additions & 0 deletions NLP-url-spam/Rashid/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"workbench.startupEditor": "readme",
"workbench.editorAssociations": {
"*.md": "vscode.markdown.preview.editor"
}
}
1 change: 1 addition & 0 deletions NLP-url-spam/Rashid/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Template for Machine Learning projects
Empty file.
Empty file.
Empty file.
Empty file.
647 changes: 647 additions & 0 deletions NLP-url-spam/Rashid/notebook.ipynb

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions NLP-url-spam/Rashid/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ipyleaflet>=0.14.0
ipywidgets>=7.7.1
matplotlib>=3.7.0
numpy>=1.24.2
opencv-python>=4.1.2
pandas>=1.5.3
psycopg2-binary>=2.9.3
pymysql>=1.0.2
python-dotenv>=0.20.0
requests>=2.27.1
scikit-learn
seaborn>=0.12.2
sqlalchemy>=1.4.37
sympy>=1.10.1
xgboost
Binary file added NLP-url-spam/Rashid/spam_detection_model.joblib
Binary file not shown.
4 changes: 4 additions & 0 deletions NLP-url-spam/Rashid/src/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from utils import db_connect
engine = db_connect()

# your code here
47 changes: 47 additions & 0 deletions NLP-url-spam/Rashid/src/explore.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Explore here"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Your code here"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.13 64-bit ('3.8.13')",
"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.8.13"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "110cc1dee26208153f2972f08a2ad52b6a56238dc66d48e87fb757ef2996db56"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
13 changes: 13 additions & 0 deletions NLP-url-spam/Rashid/src/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from dotenv import load_dotenv
from sqlalchemy import create_engine
import pandas as pd

# load the .env file variables
load_dotenv()


def db_connect():
import os
engine = create_engine(os.getenv('DATABASE_URL'))
engine.connect()
return engine
16 changes: 16 additions & 0 deletions Rashid/Airbnb2019/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
"waitFor": "onCreateCommand",
"onCreateCommand": "pip3 install --user -r requirements.txt",
"postCreateCommand": "",
"customizations": {
"vscode": {
"extensions": [
"ms-toolsai.jupyter",
"ms-python.python",
"ms-python.pylint"
]
}
}
}

1 change: 1 addition & 0 deletions Rashid/Airbnb2019/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=postgresql://gitpod@localhost:5432/example
3 changes: 3 additions & 0 deletions Rashid/Airbnb2019/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__pycache__
.env
.learn
6 changes: 6 additions & 0 deletions Rashid/Airbnb2019/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"workbench.startupEditor": "readme",
"workbench.editorAssociations": {
"*.md": "vscode.markdown.preview.editor"
}
}
1 change: 1 addition & 0 deletions Rashid/Airbnb2019/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Template for Machine Learning projects
Empty file.
Empty file.
Loading