B12 - Crop Yield Prediction Using Machine Learning
B12 - Crop Yield Prediction Using Machine Learning
Machine Learning
Under the guidance of
K Praveen Kumar
Assistant Professor
What is Machine Learning ?
• Machine learning is the study of
computer algorithms that improve
automatically through experience and
by the use of data.
• It is basically where we train the
computers through the data, create
models and predict the future values
using different algorithms.
• Ability to mimic humans and replace
certain monotonous tasks which
require some intelligence.
• Examples: Traffic Prediction, Self-
driving cars.
Why Crop Yield Prediction?
We add the target values as bio conditions and soil type in the arrays.
We will be encoding the null points in the data by using onehotencoder which is an inbuilt function.
The final data that is preprocessed is saved into another csv file named “finalyield.csv”.
Now, we split the data into training and testing. i.e., 20% Testing data and 80% Training data .
We then train the model with the algorithms (DNN, Random forest, Logistic regression and Support Vector
Machine).
Deep Neural Networks
Algorithm
• Deep learning is a class of machine
learning algorithms that uses
multiple layers to progressively
extract higher-level features from the
raw input.
• Neural networks are formed through
neurons .
Result :---
Logistic Regression
We then import our values into the model for predicting the soil yield based on the given parameters.
Support Vector Machine
Algorithm
Accuracy -----
How do we decide which algorithm suits best ??