text_html_output_1.png
from sklearn.ensemble import RandomForestClassifier

from sklearn.model_selection import RepeatedStratifiedKFold,train_test_split,cross_val_score,RandomizedSearchCV,GridSearchCV

import matplotlib.pyplot as plt

import numpy as np

import numpy as np # linear algebra

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

df = pd.read_excel('/kaggle/input/pumpkin-seeds-dataset/Pumpkin_Seeds_Dataset.xlsx')

df.shape

df.duplicated().sum()

df.isna().sum()

numerical_cols = df.select_dtypes(include=np.number).columns.to_list()
numerical_cols[:4]

skewness_values = df[numerical_cols].skew().to_list()
skewness_values[:3]

skewness_values = df[numerical_cols].skew().to_list()
skewness_values[:3]

cm = df.corr()

X = df[numerical_cols]
y = df['Class']

cv = RepeatedStratifiedKFold(n_splits=10, n_repeats=1)
model_0 = RandomForestClassifier(n_jobs=-1)
model_0_result = cross_val_score(model_0, X, y, scoring='accuracy', cv=cv, n_jobs=-1).mean()
model_0_result