Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
IshanRattan committed Feb 29, 2024
1 parent cbcedb1 commit a07e41e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ml/predictive_modelling_for_agriculture/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@


# All required libraries are imported here for you.
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
import seaborn as sns
from sklearn.metrics import f1_score

import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd

# Load the dataset
crops = pd.read_csv("soil_measures.csv")
crops['crop'] = crops['crop'].astype('category')
Expand Down

0 comments on commit a07e41e

Please sign in to comment.