Are you sure you want to delete this access key?
Legend |
---|
DVC Managed File |
Git Managed File |
Metric |
Stage File |
External File |
Legend |
---|
DVC Managed File |
Git Managed File |
Metric |
Stage File |
External File |
license | title | sdk | emoji | colorFrom | colorTo | app_file | pinned |
---|---|---|---|---|---|---|---|
mit | Credit Card Defaults Prediction | streamlit | 🦀 | green | indigo | streamlit_app.py | false |
This project focuses on building a credit card fault detection model using machine learning techniques. The model aims to predict default payments based on various demographic and credit-related features.
This dataset contains information on default payments, demographic factors, credit data, history of payment, and bill statements of credit card clients in Taiwan from April 2005 to September 2005.
For more information on the dataset, please visit the UCI ML Repository https://archive.ics.uci.edu/dataset/350/default+of+credit+card+clients
or Kaggle website at https://www.kaggle.com/code/selener/prediction-of-credit-card-default/input
MongoDB
The XGBClassifier model emerged as the most effective have below metric scores:
This project is licensed under the MIT License.
# making connection with mongo db
from pymongo.mongo_client import MongoClient
# Create a new client and connect to the server
uri = <DB URI>
client = MongoClient(uri)
# Send a ping to confirm a successful connection
try:
client.admin.command('ping')
print("Pinged your deployment. You successfully connected to MongoDB!")
except Exception as e:
print(e)
# Creating DB instances of database which is already created from MongoDB Atlas
db=client["credit_card_defaults"]
collection= db['data']
# inserting the records into mongo db
records = df.to_dict(orient='records')
collection.insert_many(records)
# Retrieve data from the collection
data = list(collection.find())
# Load data into a Pandas DataFrame
df = pd.DataFrame(data)
df.sample(3)
# Create conda environment 'venv'
conda create -p ./venv python=3.9 -y
# Activate the environment
conda activate .\venv
# Upgrade pip and install required packages
python -m pip install --upgrade pip
pip install -r requirements.txt
# Install project as package
python setup.py install
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?