BASIC SYNTAX OF KERAS!!!!
from keras.models import Sequential
from keras.layers import Dense
model = Sequential([Dense(2, input_dim=1), Dense(1)])
Layers can also be added piecewise:
model.add(Dense(2, input_dim=1))
model.add(Dense(1))
This is the main object we create for our model where we stack our layers one upon another
BASIC SYNTAX OF KERAS!!!!
Dense //dense creates a dense layer that is fully connected layer with mentioned perceptron
Arguments:
compile //compile is used to finally stack all the layer one above the another and build the complete model with given optimizer and metrics in concern
Arguments
BASIC SYNTAX OF KERAS!!!!
fit //fit is used to train the model and fit the regression line in the dataset
Arguments
x: Input data.
y: Target data.
batch_size: Integer or None.
epochs: Integer