Artificial Neural Network and Its Types
Artificial Neural Network and Its Types
Download Roadmap
Gourav Singh
05 Apr, 2024 � 10 min read
Blogathon
Introduction:
Networks.
Table of contents
input layer, the hidden layer (more than one), and the
Perceptron).
Introduction to Artificial Neural Networks
making predictions.
data.
of cats.
it went wrong.
better guess.
cats.
ANNs include:
security assessments.
research.
2. Forecasting:
some unseen).
ANN.
result.
network-for-beginners/data?select=train_clean.csv.
## import dependencies
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib.pyplot import rcParams
%matplotlib inline
rcParams['figure.figsize'] = 10,8
sns.set(style='whitegrid', palette='muted',
rc={'figure.figsize': (15,10)})
import os
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.model_selection import GridSearchCV
Introduction
from to Artificial Neural Networks
keras.wrappers.scikit_learn import KerasClassifier
from keras.models import Sequential
from keras.layers import Dense, Activation, Dropout
from numpy.random import seed
from tensorflow import set_random_seed
data.
Source: Local
variables.
Source: Local
test the dataset again, for that you can use the following
code.
Source: Local
Source: Local
Now you can use the model for predictions on test data,
# calculate predictions
test['Survived'] = model.predict(X_test)
test['Survived'] = test['Survived'].apply(lambda x: round(x,0)).astype(
solution = test[['PassengerId', 'Survived']]
print(solution)
Introduction to Artificial Neural Networks
Source: Local
Conclusion