Skip to content

sasank484/CUSTOMER-CHURN-PREDICTION-IN-TELECOM-INDUSTRY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

🖥️Operating system: Windows 11 Home

🛠️Setting up WSL:

  1. Open the command prompt of the windows machine as an administrator to avoid the permission issues.

  2. Use the command “apt install wsl” to install the windows subsystem for linux (ubuntu). image

  3. Close the command prompt once ubuntu is installed.

  4. Ubuntu will be visible in the start menu. 🐳Setting up docker and MongoDB:

  5. Launch the ubuntu application.

  6. Shift to the root user using the command “sudo su”

  7. Use the command “apt install docker.io” to install docker image

  8. Enable the docker using the commands “sudo systemctl start docker” and “sudo systemctl enable docker”

image

  1. Use the command “docker pull mongo” to install the MongoDB container image

  2. To run the MongoDB container, we use the command “docker run -d --name my-mongo-container -p 27017:27017 -v /root/AIT614:/data mongo --bind_ip 0.0.0.0” Here, “my-mongo-container” is the name of the container, “27017” is the MongoDB port and “ /root/AIT614” is the location of the folder where the dataset is located. “--bind_ip 0.0.0.0” is used to allow traffic from and to the container image

  3. Import the data into MongoDB using the command “docker exec -i my-mongo-container mongoimport --db my_database --collection my_collection --type csv --file /data/telecom_churn.csv --headerline”. In this command, “mongoimport” is the function used to import the data, “my_database” is the database name, “my_collection” is the collection name, since the data in MongoDB is saved as documents in a collection. We have mentioned the the file path as “/data/telecom_churn.csv”. image

🌍Setting up Ngrok:

  1. To use Ngrok, we need to set up a free account and update credit card information to gain access(There is no charge up to 1GB transfers). We need to use the command provided in ngrok along with the token to enable Ngrok. image

  2. Use the command “ngrok tcp 27017” to get the url that will enable the connection between MongoDB and Databricks. image

📜Running the ipynb file: Upload the ipynb file to Databricks. Create a cluster and connect it to the ipynb notebook. Cell 3: This cell holds the url for MongoDB which is the url provided by Ngrok image

The rest of the cells can be run. Note: Since the SVM cells take more time and there is a limit on the cluster, cells 1-11,17,21 need to be run multiple times with a new cluster each time to run each SVM with a different kernel.

About

Machine learning-based prediction of customer churn in the telecom industry using data balancing and ensemble models.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published