Machine Learning Lifecycle Overview

0% found this document useful (0 votes)
146 views6 pages
This document provides an overview of machine learning lifecycles and basic terminology. It discusses the 11 steps of a typical machine learning lifecycle including problem definition, data …

Uploaded by

Nikhita Nair
  • Machine Learning Lifecycle
  • Basic Terminologies
  • Types of Data
  • Types of Data Analysis
  • VLOOKUP in Excel
  • Advanced Topics in Machine Learning

📈

Machine Learning Notes


Machine Learning Lifecyle:
1. Problem Definition: Defining the project requirements and business requirements.
Defining data requirements and modules.

2. Data Selection: Collect and prepare all of the relevant data for from dataset used in
machine learning.

3. Descriptive Statistics: Descriptive statistics are used to describe or summarize the


characteristics of a sample or data set.

4. Exploratory Data Analysis: Analysis of data. Find hidden patterns in the dataset.

5. Data Preprocessing: Data Cleaning, Imputing(Removing missing data) and getting


more useful and relevant data.

6. Data Transformation: Transforming the relevant data into appropriate form.


encoding techniques used(one hot), scaling, e.t.c.

7. Feature Selection: Selection of useful and informative features(attributes) and


eliminating irrelevant feature, optimizing the features. Required features to be used.
Filtering out best features. Subset of data selection.

Machine Learning Notes 1


8. Model Selection: Selection of model based on the variables. Selecting right
algorithm.

9. Model Training: 80-20 rule(training-80,test data-20),working on getting max


accuracy in training stage.

10. Model Evaluation: Model evaluation aims to estimate the generalization accuracy
of a model on future (unseen/out-of-sample) data.

11. Model Deployment: The process of taking a trained ML model and making its
predictions available to users or other systems is known as deployment.

Basic Terminologies:
Feature matrix/Data Matrix:

Matrix of all features

Features/Attributes:

Columns in a dataset

N-dimensional array/Data points:

Rows in a dataset

Dataset:

Set of data used for training model

Dependent/Output(y-axis) variable:

Variable which is output or predicted in a training model

Independent/Input(x-axis)variable:

Variable which is used for input in a training model

Target:

used for predicting

Types of Data:
Continuous variables- Always numeric, continuous and infinite, eg: height, score

Machine Learning Notes 2


Discrete variables- Numeric or categorical, countable and finite, eg: number of
fruits, gender,pincode,etc.

VLOOKUP() in Excel:
VLOOKUP()-merging various tables together, fetching data from multiple tables.

VLOOKUP(search criterion ;array; index; sort)

eg: VLOOKUP(State_ID; userState.A2-An; sort(asc/desc))

Types of Data Analysis:


UNIVARIATE ANALYSIS:

only using one feature

BIVARIATE ANALYSIS:

numeric vs numeric

categoric vs categoric

numeric vs categoric

MULTIVARIATE ANALYSIS:

using multiple features for doing analysis

~min()- it will return the minimum data from a particular dataset


Outlier is any data which is out of the range of your dataset. Anything below or above
the limits will be a outlier.

Upper limit=Q3+1.5IQR
Lower limit=Q1-1.5IQR

avg() used for calculation of mean


median() for calculating of

Coefficient of dispersion based on range: (max-min)/(max+min)


Coefficient of dispersion based on mean deviation: mean deviation/mean

Coefficient of dispersion based on range: (Q3-Q1)/(Q3+Q1)

Machine Learning Notes 3


Quartiles are divided in 4 parts:
Q2=median

Q1=25%, Q2=50%, Q3=75%, Q4=100%


QUARTILE()
IQR(INTER QUARTILE DEVIATION)

Q3-Q1=IQR

QUARTILE DEVIATION=IQR/2

Frequency table
-Divide in form particular ranges

-Frequency(data,classes)

-returns arrays

Pivot table for univariate categorical

pie chart used for 100% data

Bivariate Numeric vs Numeric

Correlation is the how two variables are re


Corelation range 1 to -1

1=two variable highly correlated

-1=highly negatively correlated(inversely)

0=no correlation
R-square is the square of correlation

Trendline is line of best fit

f(x) is the line equation (y=mx+c) in graph

Bivariate categorical vs categorical

Eg gender and state

Machine Learning Notes 4


Bivariate numeric vs categorical

eg: weight and gender

Multivariate: analysis on multiple variables

eg: each state and each gender their average height ,weight

CONCATENATE(col1;" ";col2;...;coln)-concatenating columns like names having more


than 1 word

removing inconsistencies from tables: PROPER(TRIM)-making it proper case and


removing spaces

UPPER()-uppercase and LOWER()- lowercase


combine TRIM with other function for removing extra spaces

Removing duplicates: using advanced filters > no duplication check

Imputation: filling out missing data; using average of a column/median/mode of the data;
if there is col where 70 to 80% NA,then you fill in data, dont use for model
Outliers: Anything below or above the lower and upper limits; UL=Q3+1.5Q1

Normalization: normalizing the data on common format in range of 0 to 1

(X-min)/(max+min)

X-value to be normalized
min(of the X's column)

max(X's column)

max+min>x-min

Standarization:
Regression,Linear regression,correlation

Machine Learning Notes 5


📈 Machine learning using scikit learn
📈 Machine Learning Axioms
📈 Deep Learning-Chorale Prelude + I ngression to DL
📈 Neural Networks and Deep Learning
📈 Convolutional Neural Network
📈 Machine Learning -Exploring the model
📈 Understanding Conversational Systems
Machine Learning Notes 6

Common questions

Powered by AI

Mean offers a measure of central tendency affected by all data points, while the median provides the central value less sensitive to outliers . Mode identifies the most frequent occurrence, aiding in categorizing data distributions . Together, they provide insights into data symmetry, spread, and variability .

Deployment allows ML models to provide predictions in real-time, supporting automation and decision-making processes in applications . Challenges include ensuring model robustness against unseen data, maintaining performance under distributed systems, and handling ethical implications such as bias .

Feature selection is crucial as it helps in identifying the most informative features that contribute to predictive accuracy, while eliminating irrelevant features that add noise and complexity . By optimizing the input features, it enhances model efficiency and generalization, avoiding overfitting and improving interpretability .

Data preprocessing influences model accuracy by ensuring data quality, which involves cleaning and imputing missing data, transforming data into a suitable format, and feature selection . Poor preprocessing can lead to models trained on noise or irrelevant data, resulting in inaccurate predictions. Comprehensive preprocessing aids in extracting meaningful patterns, enhancing model performance .

EDA helps uncover hidden patterns, anomalies, and relationships in the data through visual and quantitative analyses . It provides insights into data distribution, missing values, and potential feature importance, guiding subsequent preprocessing and model selection decisions .

Outliers can skew data distributions, leading to misleading mean values and variances . They can disproportionately affect regression models by changing the slope of trendlines or coefficients significantly, leading to reduced model accuracy and poor predictions .

Model evaluation assesses a model's generalization ability on unseen data, ensuring it performs well outside the training environment . It involves metrics like accuracy, precision, recall, and F1-score, providing insight into the model's strengths and weaknesses, and guiding optimizations .

The 80-20 rule allocates 80% of data for training and 20% for testing, ensuring sufficient exposure to data patterns during training while retaining a significant portion for unbiased evaluation . It helps prevent overfitting and provides a reliable performance measure of model generalization .

The correlation coefficient quantifies the degree to which two variables are linearly related, ranging from -1 to 1, indicating perfect inverse or direct correlation, respectively . It helps in identifying dependent relationships in data, influencing feature selection and modeling decisions .

Standardization scales data to have a mean of zero and a standard deviation of one, used in contexts requiring normally distributed input . Normalization scales data to a range of 0 to 1, commonly used when feature ranges vary widely, to ensure inputs are on a consistent scale for algorithms like k-NN .

Machine Learning Notes
1
📈
Machine Learning Notes
Machine Learning Lifecyle:
1. Problem Definition: Defining the project req
Machine Learning Notes
2
8. Model Selection: Selection of model based on the variables. Selecting right 
algorithm.
9. Model
Machine Learning Notes
3
Discrete variables- Numeric or categorical, countable and finite, eg: number of 
fruits, gender,pinc
Machine Learning Notes
4
Quartiles are divided in 4 parts:
Q2=median
Q1=25%, Q2=50%, Q3=75%, Q4=100%
QUARTILE()
IQR(INTER QUA
Machine Learning Notes
5
Bivariate numeric vs categorical
eg: weight and gender
Multivariate: analysis on multiple variables
Machine Learning Notes
6
📈Machine learning using scikit learn (https://www.notion.so/Machine-learning-using-scikit-learn-f96

You might also like