The Loan Prediction API offers a robust and efficient solution for predicting loan approvals. With multiple trained models and a simple REST interface, it facilitates seamless integration into applications, enabling accurate loan predictions quickly and easily. Ideal for developers looking to enhance their financial applications.
The Loan Prediction API is a production-ready artificial intelligence system designed to facilitate loan approval predictions through a streamlined, lightweight REST API. It incorporates multiple trained machine learning models, enhancing accuracy to 88.62%. The API is accessible for public use via a demo interface and features comprehensive documentation.
http://localhost:5000GET /: Retrieve API information and statistics.POST /predict: Submit loan application details for prediction.GET /history: Access recent prediction history.GET /statistics: Fetch overall API statistics.Submit loan details to receive a prediction with confidence levels:
{
"ApplicantIncome": 5000,
"CoapplicantIncome": 1500,
"LoanAmount": 150,
"Loan_Amount_Term": 360,
"Credit_History": 1,
"Gender": "Male",
"Married": "Yes",
"Dependents": "0",
"Education": "Graduate",
"Self_Employed": "No",
"Property_Area": "Urban"
}
The prediction will return a success flag, the predicted status of the loan, confidence, and probability distribution:
{
"success": true,
"prediction": "Approved",
"confidence": 0.89,
"probability": {
"rejected": 0.11,
"approved": 0.89
}
}
Effortlessly deploy the API using services like Render, enabling continuous integration directly from GitHub. Developers can run the API locally using Python and Docker, facilitating a seamless development process.
The Loan Prediction API aims to improve financial decision-making processes through data-driven insights, making the loan approval process more efficient and accessible.
No comments yet.
Sign in to be the first to comment.