Advanced Analytics and Deep Learning Models. Группа авторов. Читать онлайн. Newlib. NEWLIB.NET

Автор: Группа авторов
Издательство: John Wiley & Sons Limited
Серия:
Жанр произведения: Программы
Год издания: 0
isbn: 9781119792413
Скачать книгу
Availability If the land is currently available or not. Location Location of the land/plot. Size Number of bedrooms and hall kitchen in the flat. Society Name of the cooperating society. Total square feet Area of the plot in square feet. Bath Number of bathroom in the flat. Balcony Number of balcony in the flat. Price Price of the plot/flat.

      2.3.4 Data Handling

       2.3.4.1 Missing Values and Data Cleaning

      In the size column, there are values with different attributes like 3 BHK and 3 BK, which means different; hence, to generalize, we will create a new column BHK. In this column, we would apply a function where we would tokenize each word; here, we keep the numbers and get rid of the other words. Therefore, we get a column BHK. In the total square feet column, there are entries where range is mention and not exact number; in this case, we replace it with the average of both the number.

Graph depicts the visualizing missing values using heatmap.

       2.3.4.2 Feature Engineering

       2.3.4.3 Removing Outliers

      Outliers are data points or errors, which represent extreme variations in our dataset. There are techniques to detect outlier; one of them is by visualization. We can graph box plot or scatter plot and, from the patterns, draw inference.

      In BHK, there are some flat whose average area of one room is larger, which appears unusual, whereas in some instances, the number of bathroom is larger than number of rooms in the house, hence affecting the result.

Graphs depict the BHK visualization.

      Figure 2.6 BHK visualization.

Graph depicts the scatter plot for 2 and 3 BHK flat for total square feet.

      Figure 2.7 Scatter plot for 2 and 3 BHK flat for total square feet.

      2.4.1 Linear Regression

      Linear regression is an approach linear in nature to modeling the relationship connecting a scalar response and one or more explanatory variables. A prognostic modeling technique finds a relationship among independent variable and dependent variable. The independent variables can be categorical or continuous, while dependent variables are only continuous.

      2.4.2 LASSO Regression

      2.4.3 Decision Tree

      A selection tree is flowchart-like tree, in which a characteristic is represented by using inner node; the choice rule is represented with the aid of a branch and final results by way of each leaf node. The pinnacle node in a choice tree is called as the root node. It partitions the tree in a recursive way, namely, recursive partitioning. The time complexity is a characteristic of the range of statistics and the variety of attributes