Skip to content

This notebook builds a machine learning model to classify sonar signal data as either rock or mine. It includes data loading, preprocessing, logistic regression model training, and accuracy evaluation.

License

Notifications You must be signed in to change notification settings

tanishqharit/Rock_vs_Mine_Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock vs Mine Prediction Using Submarine Sonar Data

Sonar data in a CSV file undergoes preprocessing to prepare it for model training. The processed data is then split into training and testing sets. A Logistic Regression model is built and trained using the training data, and the model is subsequently tested on new data for prediction.

Workflow Diagram

Authors

DataSet

The Dataset has been taken from UC Irvine Machine Learning Repository. This dataset contains patterns obtained by bouncing sonar signals off a metal cylinder and rocks at various angles and conditions. The data set contains signals obtained from a variety of different aspect angles, spanning 90 degrees for the cylinder and 180 degrees for the rock. The Last column in this dataset indicates that, whether it's a mine or a rock, which is useful while making prediction model.

DataSet is included in the repository by the name "Sonar_Dataset.csv".

DataSet Link

Libraries and Tools

Libraries: Numpy, Pandas, Scikit-Learn

Model: Logistic Regression

Tool: Google Colaboratory

Lessons Learned

This is my first machine learning project which is done entirely on Google Colaboratory. During the build I learned how to read CSV file from Google Drive and loading that to a Pandas dataframe, seprating data and label, training & testing data using train_test_split, model training using Logistic Regression, accuracy on training & test data, finally predicting the result by pushing new data into the model.

Acknowledgements

About

This notebook builds a machine learning model to classify sonar signal data as either rock or mine. It includes data loading, preprocessing, logistic regression model training, and accuracy evaluation.

Topics

Resources

License

Stars

Watchers

Forks