What is sequential modelling in Keras?
MACHINE LEARNING RECIPES DATA CLEANING PYTHON DATA MUNGING PANDAS CHEATSHEET     ALL TAGS

What is sequential modelling in Keras?

What is sequential modelling in Keras?

This recipe explains what is sequential modelling in Keras

0

Recipe Objective

In keras we can build model in two ways, one is Sequential API and other is Functional API. Here we will try understand Sequential API.

In Sequential API we can build a model by adding layers to it one by one. By adding layers we can make a stack of layers which will be interconnected and can be used.

We can make a sequential model by using the sequential module from the keras library. In which we can pass two arguments(args).

  • layers : In this we can pass the optional list of layers that we want in the model
  • name : In this we can give a name to the sequential model
keras.Sequential(layers=None, name=None)

Here is a short example of sequential model with two layers. #Defining model model = models.Sequential(layers=None, name=First_sequential_model) #Adding layers model.add(Dense(1024)) model.add(Dropout(0.5))

Relevant Projects

Walmart Sales Forecasting Data Science Project
Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

Data Science Project - Instacart Market Basket Analysis
Data Science Project - Build a recommendation engine which will predict the products to be purchased by an Instacart consumer again.

Credit Card Fraud Detection as a Classification Problem
In this data science project, we will predict the credit card fraud in the transactional dataset using some of the predictive models.

Perform Time series modelling using Facebook Prophet
In this project, we are going to talk about Time Series Forecasting to predict the electricity requirement for a particular house using Prophet.

Machine Learning project for Retail Price Optimization
In this machine learning pricing project, we implement a retail price optimization algorithm using regression trees. This is one of the first steps to building a dynamic pricing model.

Solving Multiple Classification use cases Using H2O
In this project, we are going to talk about H2O and functionality in terms of building Machine Learning models.

Forecast Inventory demand using historical sales data in R
In this machine learning project, you will develop a machine learning model to accurately forecast inventory demand based on historical sales data.

Predict Macro Economic Trends using Kaggle Financial Dataset
In this machine learning project, you will uncover the predictive value in an uncertain world by using various artificial intelligence, machine learning, advanced regression and feature transformation techniques.

Human Activity Recognition Using Multiclass Classification in Python
In this human activity recognition project, we use multiclass classification machine learning techniques to analyse fitness dataset from a smartphone tracker.

Ensemble Machine Learning Project - All State Insurance Claims Severity Prediction
In this ensemble machine learning project, we will predict what kind of claims an insurance company will get. This is implemented in python using ensemble machine learning algorithms.