Table of Contents

Introduction

Modelling classification problem using keras and tensoroflow.

References:

Colab

Imports

Useful Scripts

Load the data

Data Processing

Class balance

Train test split with stratify

Normalize the data

Class weights

Bias Initializer

Modelling: Keras Sequential

Params and Metrics

Define the Model

compile(
    optimizer='rmsprop', loss=None, metrics=None, loss_weights=None,
    weighted_metrics=None, run_eagerly=None, **kwargs
)

Fit the model

fit(
    x=None, y=None, batch_size=None, epochs=1, verbose=1, callbacks=None,
    validation_split=0.0, validation_data=None, shuffle=True, class_weight=None,
    sample_weight=None, initial_epoch=0, steps_per_epoch=None,
    validation_steps=None, validation_batch_size=None, validation_freq=1,
    max_queue_size=10, workers=1, use_multiprocessing=False
)

Model Evaluation

Time Taken