Web App for project "Data Mining the Water Table"
Steps to create and build package:
-
create folder where we store our app data
-
open terminal in the folder and open vscode using 'code .'
-
create new vitual environment using command 'conda create -p venv python==3.9 -y'
-
create README.md file
-
create repository on github
-
use following commands to setup the repository
git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/vikrantmohite19/Data_Mining_Water_Table-Web_App.git git push -u origin main
-
create setup.py and requirements.txt
-
create source folder as 'DMWT_Package' and a file inside it as 'init.py' to consider 'DMWT_Package' as a package.
-
run command 'python -m pip install -r requirements.txt'. (ugrade pip if required using 'python -m pip install --upgrade pip'). this stage will generate a folder 'DMWT_Package.egg-info'
-
created exception.py and logger.py
-
Created new folder 'notebook' and copied all ipython files into the folder. create data folder inside 'notebook' and copy all raw data files.
- Inside the folder 'DMWT_Package' created exception.py, logger.py, utils.py
- Inside 'DMWT_Package', creat new folder 'pipeline'. Inside 'pipeline created init.py, predict_pipeline.py & train_pipeline.py.
- Inside 'DMWT_Package', create new folder 'components'. Inside 'components' created init.py, data_ingestion.py, data_transformation.py, model_trainer.py.
- Run Data_ingestion.py which inturn will create folders such as artifacts, preprocessed, logs. In this stage we will get preprocessed data and the best model after performing grid-search
- Run command, 'python setup.py sdist bdist_wheel'. In this stage two folders such as 'build' and 'dist' will be created.
- Now go to folder 'dist' and run 'pip install DMWT_Package-0.0.1-py3-none-any.whl. this is to test if package can be installed & binary distribution file run properly.
- Now run python, run 'import DMWT_Package' and their submodules to check if the same can be imported.
- Commit and push everything on git.