Column Transformer in Machine Learning | How to use ColumnTransformer in Sklearn
Column Transformer allows the application of different transformations to different subsets of features, enabling tailored preprocessing for various types of 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
Пікірлер: 108
Why have you used fit_transform for test? Shouldn't it be only transform?
@campusx-official
3 жыл бұрын
Yes it's a mistake. Sorry about that
@okonkwo.ify18
Жыл бұрын
Nope. U fit_transform the data that’s going to be fitted into d model.
Before: No perfect explanation exists. After: Ok, CampusX is an exception😅
bro, your teaching skills are extra ordinary ... I'm in love with ML because of you... I wonder why your channel isn't on the top while suggesting ML videos .. I think the GOOGLE algorithm needs to improve 🤣 Once again thanks for your videos.
Kitna shandaar aap explain kerte hain, dil garden garden ho gaya. Aam zindagi aur mentos zindagi kabhi nehi bhoole ga. 👌🏻
or kch ni pta but Sir apki videos ny meri zindgi zroor mentos bna di. Thanks alot Sir! for this hard work.
Bhai you are good. Specially for we Indians... We know English But Hindi main its so Good and Your content is perfect. Just Perfect. Kudos.
Thank god, I came across this channel. This channel is a hidden gem. Thanks a lot sir.
Good part about your videos is that you not only show the solution but also focus on the pain areas which brings the necessity of a solution.
You are a legend. Thank you so much. Your teaching concepts are so precise.
Was looking for this from long time , Thankyou sir for mking this...properly explained
You are great sir!! Really you are fabulous teacher..... Your teaching is mind blowing....
Your videos convert my life from aam Zindagi to mentos zindagi .
Thankyou so much. It was crystal clear and to the point for a beginner like me.
Aam zindagi and CampusX zindagi... I like the way u teach.... Very interesting n informative videos.... Currently my goal is to cover the 100 days ML playlist..... Thanks alot for your efforts sir😊
wtf bro.!!! climex was more interesting than Avengers: End Game. Thank you so much ,.......
thanku sir❤️ keep on blessing us with your teaching ❤️
Amazing video , love your style of teaching...
For Aam zindagi section, you used fit_transform for X_test also... It should be only transform na..
@Enjoyurlife1789
8 ай бұрын
Yes he committed his mistake in above comments.
Brother, you made it so easy to understand.
O thaank God. Column transformer saved my life.
really mentos jindagi well explained ....thank u very much
Thanks a lot for sharing this precious knowledge.😀
Aam zindagi, Mentos Zindagi😂😂 Great Video Nitish Sir❤❤
Great just amazing. love it
Amazing video.
Beautifully explained... Liked & Subscribed. :)
10:53 awesome ❤
You are the best...
Very clearly explained
Wow good and simple explanation 😇
God level teaching!
kudos to you man!!
great explanation .........
wow , explain so well
Bst vdo bst tutor bst channel ths vdo is awesome
other youtubers : aam zindagi campusx : mentos zindagi
Very well explained... Best resource on youtube... but i have major doubt!! why dont you apply all transformation to data and then split it... why are you splitting it first and then performing transformation?
NICE LECTURES THANKS
15:00 __bas yeh ek line aap ki zindagi badal sakta he !!!
Thanks you 3000 🙂
thank you very much sir
Bro is converting our zindgi into mintos zindagi 😅 , thanks for grate explanation
Awesome ☺☺
awesome
What if we have missing values in numeric column and other one has Categorical column? Could we use simple imputer for two times one as for using mean and other one for MODE for handling the categorical missing values?
Superb Explanation. You are doing a great job. One of my best channels for learning ML along with Statquest ♥ Please confirm if it is possible to get in touch with you personally and get trained by you?
@campusx-official
2 жыл бұрын
nitish.campusx@gmail.com you can contact me on this email id
😅 Really can be more thankful, you are reason, I feel confident that, I will crack machine learning and also learn upto LLM else I would had drop my transition altogether, thank you very much for motivating me. Already bought course, hope all people also support you with same. 🎉
Great Vid
Sir one confusion,after using columntransformer we get numpy array,when we convert it into dataframe,we get column names like 0,1,2,....how we rename the column name? Because there are lots of column...
bhai best
Sir, please make a complete tutorial on Machine Learning Algorithm
Hi Sir, how can we provide column name on the transformed data set ?
Sir their is a bit mistake you made in your code when i went through github, without using column transformer, when the algorithm were applied in each column, the fit_transform was used in both the training dataset as well as the testing dataset but this is wrong because out test datasets is based on the training dataset, so we cant impose fit_transform function on test dataset based on test dataset
@calvinfernandez-hi6ij
Жыл бұрын
I have this question as well as to why are we doing fit_transform on testing data. Should'nt we just be doing transform
Sir columns get shuffled when we do column transformer. Is there any impact of this?
Hello Sir, XGBoost is not included in playlist, could you please make a video on XGBoost ?
resulting array from column transfer is not in same order as of dataframe, right? why?
🤩Wow
🔥🔥🔥🔥
Voiii yaauuuuu voiii yaauuuuu Voiii yaauuuuu voiii yaauuuuu.. DADDU!!💡
What is the difference in using np.hstack and using np.concatenate? 🤔
I have a doubt in data preprocessing. First we remove outlier --> Feature scaling --> Gaussian Distribution or remove outlier --> Gaussian Distribution --> Feature scaling , kindly help.
I would like to thank you for making such awesome videos. But here, you used the fit_transform() method with the test dataset. Isn't it transform()?
@tejaskamble8731
4 ай бұрын
No he fit_transform only training data 14:57
sir can't we use label encoding in gender because we only have two types. male and females, just like you said email classification as spam and non spam? answer = NO, because label encoding is done on y axis and not on x i.e on output and not input
Sir LabelEncoder kaise lagaye gay
where can I get the oneNote file?
Can anyone tell me how does column transformer know columns of which data frame to transform as it is not passed in any argument of ColumnTransformer()
Column names are not shown after column transformation. Any solution for this?
How did we know that 80 rows comes in training data and 20 rows for test data ....i am confused sir please explain
What is logic behind multicollinearity, and you drop='first'
9:45 you didn't fit the age column, is it correct?
Bhaiya m is series ko complete to kr lunga but kya as a associate professional y mujhe help krega??
Anyone getting concatenation error? all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 20 and the array at index 1 has size 80
Sir updated sklearn mein sparse ko remove kar dia gaya hai.
from where I can download all datasets you used in all sessions??
@campusx-official
2 жыл бұрын
From my github account
Aam Zindagi 7:08 😢 Mentos Zindagi 10:53 ❤
I like the Mentos Zindegi😅
day2-date:10/1/24
just one small doubt, would be great if anyone can clear. Why to train test split first and then do column transform separately for both train and test sets.We can also first transform the sets and then split the set into train and test
@rolitrivedi3190
Жыл бұрын
Simply because train test split should always be done before any transformation. Test data is something we should not see beforehand otherwise the result may not be right
done
Could you provide English subtitles please!!! 🥺🥺🥺 Quite difficult for me to understand since I am not Indian
In 14:53 why not fit_transform is used with xtest??
@campusx-official
2 жыл бұрын
Because it is already fitted with the training data
@purushottammitra1258
2 жыл бұрын
@@campusx-official but at 7:38 x_test_fever = si. fit_transform..?? Also, x_test_cough=oe.fit_transform..?? Pls explain?
@purushottammitra1258
2 жыл бұрын
Is it a typo??
@Sara-fp1zw
2 жыл бұрын
@@purushottammitra1258 yes
I am sure this guy is from telangana, most probably from hyderabad
mentos zindagi is best 🤣🤣
You have given the ends in the video only in array format.. do not convert to data frame.
@mukeshnayak7984
Жыл бұрын
how to finally convert to dataframe?
aam zindagi 😁😁😁🤣🤣
mentos zindagi......hehe
Hi Sir, maine ismein N frequent label wala concept ismein add kiya hai. Kindly let me know is my approach sehi hai ? cat=df['brand'].value_counts() threshold=100 repl=cat[cat
please use a little bit of English on your next videos.
I guess it would be ideal you explained in English so some of us could understand. very unfortunate
how can i use your dataset i mean how to download it
Kitna shandaar aap explain kerte hain, dil garden garden ho gaya. Aam zindagi aur mentos zindagi kabhi nehi bhoole ga. 👌🏻
Thank you sir
sir,does SimpleImputer default takes mean value then how can it we deal with mode
@campusx-official
3 жыл бұрын
kzread.info/dash/bejne/n3eAlNqFcqfdaLA.html
Thank you sir