This project demonstrates the efficient array operations facilitated by NumPy broadcasting. Whether you're a beginner exploring NumPy or an experienced data scientist, this project will provide valuable insights into broadcasting and its applications in array manipulation. play with it!
- Generate random datasets for demonstration
- Perform element-wise addition using broadcasting
- Visualize original datasets and the result
-
Clone the repository:
git clone https://github.com/RavinduPabasara/broadcasting-example.git
-
Install dependencies:
pip install -r requirements.txt
-
Navigate to the project directory:
cd broadcasting-example
-
Run the main script:
python main.py
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature
) - Make your changes
- Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature
) - Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by NumPy Broadcasting Documentation