# How to import libraries for deep learning model in python ?

In this Python deep learning tutorial, we will learn how to import libraries for deep learning model in Python.

Deep Learning models are a very powerful combination of neural networks.these are sometimes called as hierarchical learning but due to the heavy amount of mathematical calculations and computational power required these model cannot be built on normal languages or IDE(Integrated Developer Environment) therefore various new IDE was developed.

## Various IDE for implementation of Deep learning models in Python

Top 3 IDE

- JuPyter Notebook
- Spyder (mainly focused on this topic)
- PyCharm

Spyder is capable of very complex mathematical logic based processing hence this IDE is very easy to handle and to implement the required algorithm. which include library files like.

- Keras
- Numpy
- Pandas
- many more

### Importing Keras and implementing – Deep Learning

**Keras**

is one of the very powerful tools available in the field of deep learning and machine learning, Which is capable of data preprocessing (making input data algorithm friendly),

Running model calculation on multiple GPU which help in reducing time and energy for computation.for more details visit Keras documentation

Importing Keras, Numpy, Pandas

#importing Keras, Numpy, Pandas import keras import numpy as np import pandas as pd

Keras includes many predefined library functions, such as

from keras.layers import Sequential classifier = Sequential()

This is how generally the library is imported based on the requirement of the algorithm and problem.

### Compiling libraries – Deep learning Python

in this part, I will focus on compiling Keras, Numpy, Pandas on Spyder IDE (compiling will be different based on the IDE)

There are two ways to perform this task

- By using the navigation bar
- using keyboard shortcut

**By using the navigation bar**

steps are following

- select the parameter of code, which you wish to run.
- on the top center in the navigation bar, click on run.
- and the select 2nd option

or if you wish to run whole command line then click on the icon which is colored green triangle.this will enable you to run the whole syntax in just one click.

**By using keyboard shortcut**

steps are following

- select the parameter of code, which you wish to run.
- this press clt+i;

this will enable you to run the following selected syntax.

### To verify library import – Deep learning Python

In addition to verify that if the library is imported correctly or not. please check the history log window, which is usually on right side of the screen.

The output will look like following

import keras import numpy as np import pandas as pd

if you are able to see this output then,

**Congratulation libraries well imported **

from this, we came to the end of the tutorial, hope you learned something new and amazing.hope to see you on the next interesting tutorial until then keep exploring.

## Leave a Reply

You must be logged in to post a comment.