OER·harvester

← Back to the library
Zenodo PDF resource

Artificial intelligence (AI) with It's Applications

The book "Artificial Intelligence (AI) with It's Applications" provides a comprehensive insight into the field of AI, exploring its fundamental principles, modern applications, and future potential. It serves as a valuable resource for students, researchers, and professionals looking to understand AI’s role in shaping industries and everyday life. The book begins with an introduction to Artificial Intelligence , cov…

Licence
OPEN CC-BY-4.0
Authors
Dr. Dipikaben Umakant Thakar, Mrs. PL. Natchiammai, Dr. R. J. Kavitha…
Published
2025-03-18 · Zenodo
Language
eng
Length
66700 words
Type
narrative text
Open ↗ Download Open original ↗

Making a heatmap to visualize the correlation matrix

plt.figure(figsize=(10,10))

sb.heatmap(df.corr() > 0.8, annot=True, cbar=False)

plt.show()

Output

From the above heat map, we can see that there are only one highly correlated features which we will remove before training the model on this data as highly correlated features do not help in learning useful patterns in the data.

Model Training

Now we will separate the features and target variables and split them into training and the testing data by using which we will select the model which is performing best on the validation data.

removal = ['ID', 'age_desc', 'used_app_before', 'austim']

features = df.drop(removal + ['Class/ASD'], axis=1)

target = df['Class/ASD']

Let’s split the data into training and validation data. Also, the data was imbalanced earlier now we will balance it using the Random Over Sampler in this method we sample some

points from the minority class and repeat it multiple times so, that the two classes get balanced.

X_train, X_val, Y_train, Y_val = train_test_split(features, target, test_size = 0.2, random_state=10)