Intro-to-ML-and-DL is a repository for the 2023 Summer Project offered by the Stamatics Society of IIT Kanpur. This repository shall contain the week-wise lessons, resources and assignments for the project.
- Python 3.6 or higher
- pip
- First check if Git is already installed. In the terminal / command prompt type:
git --version
- If Git is not installed, download Git.
- Set up your local Git profile in the terminal:
git config --global user.name "your-name"
git config --global user.email "your-email"
- To check if Git is correctly configured you can type:
git config --list
- Fork the repository.
- Clone the repository. In your terminal, type:
git clone https://github.com/your-username/Intro-to-ML-and-DL.git
- Navigate to the repository directory :
cd Intro-to-ML-and-DL
- Set up a remote connection to the original repository
git remote add upstream https://github.com/Intro-to-ML-and-DL/Intro-to-ML-and-DL.git
- Verify that the remote connection :
git remote -v
. You would see two remote connections: origin (pointing to your forked repository) and upstream (pointing to the original repository).
- In your remote repository on Github, click sync fork and then click update to update your repository to the latest commit in the upstream repository.
- To update the cloned repository in your system, type
git pull
by opening the terminal inside your project folder.
Mentees are required to upload their solutions to assignments within the respective deadlines. To upload files, they may either use Github or the following command lines:
- Stage the files for commit using the
git add
command.git add filename1 filename2
for specific files andgit add .
for all files. - Verify the files to be modified using :
git status
command. - Use
git reset filename
to prevent a file from getting staged. Or include the filename in the .gitignore file. - Commit the files using the
git commit
command.git commit -m "Commit message"
. - Push the files into your main branch/ other branches.
git push origin main
- When you add files for the first time, create a pull request using Github.
- Install virtualenv using the following command:
pip install virtualenv
- Navigate to your project directory.
cd Intro-to-ML-and-DL
. This may differ according to the location in your system. - Create a new virtual environment.
virtualenv venv
. You can replace venv with any name. - Activate the virtual environment. On Windows ,
venv\Scripts\activate.bat
. On Linux/macOS ,source venv/bin/activate
. - Run the following command :
pip install -r requirements.txt