Git Product home page Git Product logo

study-of-the-effects-of-climate-change-on-crop-yields's Introduction

Study of the Effects of Climate Change on Crop Yields

Prediction of crop yields based on climate variables using machine learning algorithms

dataset-cover

Data

The data contains 28242 rows and 7 columns

Screenshot 2023-03-04 095913

the columns are :

1- Area
2- Crop
3- Year
4- Average rain fall mm per year
5- Pesticides tonnes
6- Average temperature
7- hg/ha_yield (Output)

Data Analysis

Screenshot 2023-03-04 100232 Screenshot 2023-03-04 100315 Screenshot 2023-03-04 100419

Preprocessing

1- Dropped the "Year" column because it has no relevance
2- Hot encoded categorical data using pandas get dummis
3- Split the data into X (features) and Y (output)
4- Normalized the feature columns to be between 0 and 1
5- Split the data into 80% for training and 20% for testing

Prediction

1- Used LazyPredict library to compare the results of multiple regression algorithms

Screenshot 2023-03-04 100539

2- Use Random Forest Regressor for regression as it has the best accuracy

Screenshot 2023-03-04 100715

study-of-the-effects-of-climate-change-on-crop-yields's People

Contributors

mohabwafaie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.