The Tunisian Company of Electricity and Gas (STEG) is a public and a non-administrative company, it is responsible for delivering electricity and gas across Tunisia. The company suffered tremendous losses in the order of 200 million Tunisian Dinars due to fraudulent manipulations of meters by consumers.
Using the client’s billing history, the aim of the challenge is to detect and recognize clients involved in fraudulent activities. The solution will enhance the company’s revenues and reduce the losses caused by such fraudulent activities.
In this notebook the potential of the XBoost classifier is evaluated for the detection of fraudulent cases.
For more information about this challenge, click here: https://zindi.africa/competitions/fraud-detection-in-electricity-and-gas-consumption-challenge
macOS
type the following commands :For installing the virtual environment and the required package you can either follow the commands:
pyenv local 3.11.3
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
Or ....
use the Makefile and run make setup
or install it manually with the following commands:
make setup
After that active your environment by following commands:
source .venv/bin/activate
WindowsOS
type the following commands :Install the virtual environment and the required packages by following commands.
For PowerShell
CLI :
pyenv local 3.11.3
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install -r requirements.txt
For Git-bash
CLI :
pyenv local 3.11.3
python -m venv .venv
source .venv/Scripts/activate
pip install --upgrade pip
pip install -r requirements.txt
Note:
If you encounter an error when trying to run pip install --upgrade pip
, try using the following command:
python.exe -m pip install --upgrade pip