Function Transformer | Log Transform | Reciprocal Transform | Square Root Transform

Function Transformer is a versatile tool for transforming features, with Log and Reciprocal Transforms being useful for handling skewed or non-linear data.
Code Used : github.com/campusx-official/1...
============================
Do you want to learn from me?
Check my affordable mentorship program at : learnwith.campusx.in/s/store
============================
📱 Grow with us:
CampusX' LinkedIn: / campusx-official
CampusX on Instagram for daily tips: / campusx.official
My LinkedIn: / nitish-singh-03412789
Discord: / discord
Instagram: / campusx.official
E-mail us at support@campusx.in
⌚Time Stamps⌚
00:00 - Intro
00:23 - Revision - Mathematical Transformations
05:40 - Function Transformer
07:15 - How to find if the data is normal?
08:46 - QQ Plots
11:10 - Log Transform
14:08 - Three more transforms
14:10 - Reciprocal Transform
15:04 - Square Transform
15:57 - Example with Titanic Dataset

Пікірлер: 42

  • @webtechbysuraj5942
    @webtechbysuraj5942 Жыл бұрын

    26:38 --I just wrote the simple code instead of using column transformer and to use function transformer on the Fare column. accuracy was improved as you said. Thanks

  • @tarunmohapatra5734
    @tarunmohapatra5734 Жыл бұрын

    I think there is a mistake while applying cross-validation on entire datasets because ideally it should be applied to training data. This is to prevent information leakage from the test set into the training process. The purpose of the test set is to simulate unseen data and evaluate the final model's performance. If you perform cross-validation before the train-test split, you may inadvertently use information from the test set leading to an overly optimistic assessment of the model's performance

  • @narendraparmar1631
    @narendraparmar16316 ай бұрын

    Marvelous knowledge Thanks sir for your efforts😀

  • @acharjyaarijit
    @acharjyaarijit Жыл бұрын

    Sir, u r the best.. u know very think..

  • @jatinnandwani6678
    @jatinnandwani6678Ай бұрын

    This was mindblowingly awesome! Thanks Nitish

  • @muhammadmustafa3158
    @muhammadmustafa31583 жыл бұрын

    thanks sir !!

  • @akshaychauhan545
    @akshaychauhan5452 жыл бұрын

    Should we remove outliers first or we can remove outliers after using transformer

  • @malikahsan6648
    @malikahsan6648 Жыл бұрын

    amazing

  • @shubhamgosain4534
    @shubhamgosain45343 жыл бұрын

    Thank you sir

  • @theanalyst9629
    @theanalyst96292 жыл бұрын

    Thanks man

  • @ParthivShah
    @ParthivShah3 ай бұрын

    Thank You.

  • @guljitsodhi6149
    @guljitsodhi61492 жыл бұрын

    HI Sir, i started watching your vedio's ,very informative,but i have some errors while using some other similar data, can you help explaining and correcting my doubts?, i woulld really appreciate.Thanks

  • @user-fo5uz8oe1s
    @user-fo5uz8oe1s2 ай бұрын

    so handling skewed or non-linear data mean scaling the data and feed it to the model directly . in addition it is use in EDA or feature engineering and moreover can we use standard scaler or any other scaler for data handling (skewed or non-linear)

  • @sandipansarkar9211
    @sandipansarkar9211 Жыл бұрын

    finished watching and coding

  • @parikshitshahane6799
    @parikshitshahane67993 ай бұрын

    One correction: I think square root transformation works good on left skewed data, not square transformation

  • @rehanansari8154
    @rehanansari815425 күн бұрын

    I think nAge column was right skewed than the fare column

  • @1981Praveer
    @1981Praveer Жыл бұрын

    #campux @18:08 min, why did we use mean value. it might inject outliers. I think the median should be better. what's your opinion

  • @mayurnaktode592
    @mayurnaktode5922 жыл бұрын

    @Campusx sir if data is skew or not normally distributed it means we have a outliers correct? For removing outliers we use trimming or capping. And if we use log transform then is it like it will adjust the outliers and convert it into normally distributed?

  • @agnimitram340

    @agnimitram340

    Жыл бұрын

    I don't think non normal data means presence of outlier. Like Binomial distribution, Chi square distribution are not normal does this mean they have outliers??

  • @aaditstudent

    @aaditstudent

    Жыл бұрын

    even after a converting to a normal distribution you can get rid of the outliers by removing from the 3rd or 4th std deviation

  • @gauravgupta4983
    @gauravgupta49832 жыл бұрын

    Sir log, sd and normalization tenio ka use same hi hota hai kiya? Teenon concept mein ham data ko ek normal range mein lekar aate hai, I am right

  • @murumathi4307
    @murumathi43072 жыл бұрын

    This transform control than outlayer sir

  • @vishalodyssey
    @vishalodyssey2 ай бұрын

    IF MY DATASET HAS 10 COLUMN AND FEW OF THEM ARE LEFT SKEWED AND FEW ARE RIGHT SKEWED AND SOME ARE NORMALLY DISTRIBUTED HOW DO WE HANDLE THOSE , DO WE APPLY DIFFERENT DIFFERENT TRANSFORMATION ON THE BASIS OF COLUMN

  • @yujiitadori225
    @yujiitadori225 Жыл бұрын

    i badly need this answer i have looked few place but i ain't getting the correct answer! Variable transformation( Function and Power Transform ) considered as featured transformation technique or this is another part of feature engineering method but not included in feature transformation ?

  • @abhisheksen4440
    @abhisheksen4440 Жыл бұрын

    why we do log transformation when we have Standardization ?

  • @sarbajitde2547
    @sarbajitde25473 жыл бұрын

    Sir, we can use the central limit theorem then why do we use such transformations to convert a pdf to the normal distribution?

  • @amritajoshi8729
    @amritajoshi872911 күн бұрын

    sir cross validation aapne entire data me ku laga diya. aise to before and after results sahi nahi aayenge ... :)

  • @user-qm6qy3vu2d
    @user-qm6qy3vu2d5 ай бұрын

    why without using ML pipeline output [survived=arr[1]] and output of with using ML pipeline [notsurvived=arr[0] are not same ?

  • @depalvveturkar
    @depalvveturkar Жыл бұрын

    Hello Sir, After applying Function Transformer my X_train shape is changing from (719,2) to (80,7) can you help me why is this happening, my X_test shape is intact. I am following your GitHub but still facing issues. Please help

  • @depalvveturkar

    @depalvveturkar

    Жыл бұрын

    It is resolved

  • @yashjain6372
    @yashjain6372 Жыл бұрын

    doubt : Sir LR assume residual to be Normally distributed not the data. So, why we suddenly start making features to be ND . if Residual of LR is not normally ditributed that means relationship is not liner and we try to make those column ND which are not linear with Target Variable, This is my understand . Please explain.

  • @Ganeshkakade454

    @Ganeshkakade454

    Жыл бұрын

    Hi yash...Nice Question...I had also same question..Yeah we know there is assumption that residual should be normallly dirstibuted but also when u get data as normally distributed in certain algos like LR, logR then model performance gets better as we can reduce heterosedasticity from model...when u data is normally distruibuted model statistial power of compuattation gets increase..hope u got u r answer,,if U knew anything more ..plz feel free to share

  • @excalibur2889
    @excalibur2889 Жыл бұрын

    function transformer come under which part of feature engineering ?

  • @beautyisinmind2163

    @beautyisinmind2163

    Жыл бұрын

    To make features normally distributed

  • @parthraghuwanshi2929

    @parthraghuwanshi2929

    Жыл бұрын

    @@beautyisinmind2163 does it is method of handling outlier or outlier should be handle differently

  • @beautyisinmind2163

    @beautyisinmind2163

    Жыл бұрын

    @@parthraghuwanshi2929 For handling outlier you can use other method, transformation is especially to make feature normal for linear model like LR, LogR, NB etc.

  • @bepositivefoxx2241
    @bepositivefoxx22412 жыл бұрын

    Sir ye normalisation bhi to same kam krta hai

  • @beautyisinmind2163

    @beautyisinmind2163

    Жыл бұрын

    normalization does not guarantee normal

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw2 жыл бұрын

    I have a doubt in data preprocessing. First we remove outlier --> Feature scaling --> Gaussian Distribution or remove outlier --> Gaussian Distribution --> Feature scaling kindly help ?

  • @viratmani7011

    @viratmani7011

    2 жыл бұрын

    Second one

  • @surajmeena6797

    @surajmeena6797

    Жыл бұрын

    feature scaling shall be applied at last

  • @as8401
    @as8401 Жыл бұрын

    this project difficult to understand