Navigate to your workspace and clone the repository. Type
cd <Workspace>
git clone https://github.com/namangupta98/RANSAC/
cd Code
To run the code for dataset-1, type
python3 -i Data_1.py
For dataset-2, type
python3 -i Data_2.py
Figure 1 - Curve Fitting using RANSAC
The plot for Data-1 shows curve fitting using Least Square Method and Data-2 shows curve fitting using RANSAC method.
For Question3, type
python3 -i Homework1_Q3.py