Importing Data ML

First you need to have data, so download your data from any online CSV Data providing website. I will list some for you at the end of this post (Our first ML model will be linear regression so download linear data). Oh What is Linear Data now. Linear data structures are in which all the data are arranged in sequence manner.for example:linked list,stack queue. Let me show you a pictorial example.

Linear Data

In a Linear Data a line can be drawn drawn through pictorial representation of data and that line passes close to or on those data points. This line is called the line of best fit.

So now to import data in Jupiter Notebook open Jupiter Notebook and click on NEW and select Python 3 from the drop down box. Now in the Python cell type following commands.

Command to load data

Here I am loading a CSV(comma separated values) file from my desktop. Here I am assigning my data name as ” Data_Frame” and the pandas command to load data is “pd.read_csv” . In the the double quotation(remember you can also use single quotation instead to double) is my path where the data is stored on my computer. Here “r” is used to treat the data as raw data.

Now data has been successfully loaded into our working cell. Remember this is not the only way of loading csv data but this is the most preferred way.

In the next blog I will be teaching you how to know your data what are features and labels and how can you decide what are your features and lables

LINK’S

Link to download data : http:// https://archive.ics.uci.edu/ml/datasets.html?format=&task=reg&att=&area=&numAtt=&numIns=&type=&sort=nameUp&view=table

Link to the data I am using : http:// https://www.kaggle.com/andonians/random-linear-regression

Link to my previous post : https://machinelearningpower.home.blog/2019/03/29/setting-up-environment-for-ml/

For any doubts comment !!

Setting up environment for ML

Now lets download and Install all the required software/packages to get started with our ML model.

First Download latest version of Python from https://www.python.org/downloads/ . Download according to your operating system. Second Download a IDLE to write our code. There are many IDLE’s but I suggest you to Anaconda. Download Anaconda from here https://www.anaconda.com/distribution/ . Open Anaconda and download Jupiter Notebook.

Now you are all set up to start coding your ML model.

You have to Install some Libraries into Anaconda. Open the Anaconda Prompt and type these commands to install required libraries. Pandas Library :
pandas is a software library written for the Python programming language for data manipulation and analysis. In particular, it offers data structures and operations for manipulating numerical tables and time series.

< conda install -c anaconda pandas > type this in conda prompt to install pandas(without the brackets).

NumPy Library :
NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.

< conda install -c anaconda numpy > type this in conda prompt to install pandas(without the brackets).

That’s it for now if there are any other packages required I will guide those installation during our model.

STAY WITH ME TO LEARN MACHINE LEARNING also share this blog with your friends.