Notebook and python code for Machine Learning Crop Prediction Program
Crop folder contains python file to run crop prediction model. Additional file including 4 Tensorflow models and architectures (.h5 format) and 2 .csv files as input.
Use the package manager pip to install all python dependencies.
You can use requirements.txt
pip install -r requirements.txt
Python 3.8.7
Pandas 1.2.4
Numpy 1.19.5
Tensorflow 2.5.0
Run from your terminal with command line arguments:
python3 crop.py <subrounds> <city> <type of crop>
Example:
python3 crop.py 2 bogor jagung
.ipynb files can be opened and run using Jupyter or Google Colab (https://colab.research.google.com/)