Sunday, January 23Digital Marketing Journals

towards-data-science

Deploying a Machine learning model as a Chatbot (Part 1) | by Abdulquadri Ayodeji Oshoare | Nov, 2021
ai, ai bot, ai chat, ai chatbot, analytics-vidhya, best chatbot, chatbot, chatbot ai, chatbot app, chatbot online, chatbot website, chatbot-design, chatbots, conversation with ai, creating chatbots, google chat bots, robot chat, towards-data-science

Deploying a Machine learning model as a Chatbot (Part 1) | by Abdulquadri Ayodeji Oshoare | Nov, 2021

The Dataset we are going to use is the Loan prediction dataset. The loan prediction dataset is a unique dataset that contains 12 columns. The data was gathered to predict if a customer is eligible for a loan.The Dataset is publicly available on Kaggle and can be accessed using this link.Let's Start with the bottom-up approach and build a simple Machine learning model. For this project, we would not be concerned with achieving high accuracy on our models. We only need enough accuracy so that our chatbot can make decent predictions on the fly.Loading and Analyzing the DataWe start by importing the necessary libraries like Pandas, NumPy, Matplotlib, and seaborn. We then use pandas read_csv() to read the data.#import neccessary libraryimport pandas as pdimport numpy as npimport matplotlib.p...
Deploying a Machine learning model as a Chatbot (Part 2) | by Abdulquadri Ayodeji Oshoare | Nov, 2021
ai, analytics-vidhya, best chatbot, chatbot, chatbot app, chatbot online, chatbot website, chatbot-development, chatbots, creating chatbots, robot chat, towards-data-science

Deploying a Machine learning model as a Chatbot (Part 2) | by Abdulquadri Ayodeji Oshoare | Nov, 2021

© https://palletsprojects.com/p/flask/Flask is a python web framework used to build a lightweight, scalable webhook service to communicate with our chatbot. When the chatbot gets input from the user, it communicates to the machine learning model using Flask to make a prediction.Before creating our Flask webhook, we need to create a virtual environment to install Flask and its dependencies.#Navigate to a folder on your computer cd abdulquadri/oshoare/desktop/loanbot#install the virtual environment pip install venv myflaskbot#myflaskbot is my virtual environment nameInstall the DependenciesUsing the requirement.txt file found on my Github page, install the dependencies.pip install -r requirement.txtCreate the app.py file#import required librariesimport numpy as npfrom flask import Flask, ...