Комментарии:
This is an amazing tutorial! saved me so much time and brought so much clarity!!! Thank you!
Ответить@codebasics what if we have some new another category in test data set. How we can handly that.please reply.
ОтветитьThe parameters in OneHotEncoder are updated their is no parameter of categorical_features and it gives an error like on OneHotEncoder their is no parameter like categorical_features can any one know solution
ОтветитьHello,
Why we don't drop rows referring to the "west windsor" in first solution for the dummies? We drop column, but we don't drop rows contains data from dropped columns. Why last column? Can we drop , for example, the middle one? Anyone could me explain?
if anyone is getting the values in True and False in dummies variable just do this in " dummies = dummies.astype(int)" and they will get the values in "1"and "0"
Ответитьdid anyone try to plot this ? please share code
ОтветитьHello brother, I am not completely understand why we need to drop one of the dummys column
he said if one of the column can derived we need drop one of them , it was a trap for training,
but I don't known why, can you help me understand the principle?
I found my AI journey gold mine
ОтветитьI must say this is the best course I've come across so far.
ОтветитьIn encoding feature method, How to find original value of numerical value....🤔
ОтветитьI achieved the same result using a different method that doesn't require dropping columns or concatenating dataframes. This alternative approach can lead to cleaner and more efficient code
df=pd.get_dummies(df,
columns=['CarModel'],drop_first=True)
There is no such attribute categorical_features. What can we use ???
ОтветитьUse .astype(int) to convert boolean to integers in get_dummies like
pd.get_dummies(df.town).astype(int)
I wish I could give this videos 2 thumbs up! Great explanation of all the steps in one-hot encoding! Thank you!!
Ответитьohe = OneHotEncoder(categorical_features = [0]).
This line is throwing error on colab, anyone with the solution ?
You are a Gem
ОтветитьI am getting 84% accuracy without encoding variable, but after encoding i am getting 94% accuracy on model. Thank you for your teaching. Doing great Job
ОтветитьAccuracy is coming out to be 94% change. Is it correct?
Ответитьaccuracy- 0.94%
ОтветитьMany Thanks ! Great Explanation :)
ОтветитьI could not get the difference
ОтветитьIn the step:
ohe = OneHotEncoder(categorical_features=[0])
The categorical features isn't working, the attribute has been changed. Can someone help?
please update this video. The categorical_feautures[ ] argument is no more there in updated OneHotEncoder. They use column_transformer.
ОтветитьHow do I draw a scatter plot with multiple variables?
ОтветитьHi, I've been looking for an understanding of what neural networks mean for a long time, as a hobby, and I only found the answer in your videos, but please help me with a question. How can a contextual neural network be implemented, let's say I have a bird X, but I also have a sound that bird X makes, a sound processed by another neural network. How can two neural networks, one that knows the image and one that plays the sound of the bird, confirm to me in a context that it is a bird X? I appreciate your attention
ОтветитьPls give data link
ОтветитьSir
I got dummy colums value in form of boolean .. true or false
How I can get value in format 0 or 1
Thank you sir🎉. You made my ML Journey Better.. 🤩
Ответитьcan we use either one for encoding ? or is there a deciding factor of when to use one hot encoder and when to use dummy encoding ?
Ответить❤🎉🎉 Thank you. You earned a subscriber
ОтветитьGreat tutorial, but the code is outdated; starting from version 0.20, OneHotEncoder no longer accepts categorical_features as a parameter. Instead, you should use the ColumnTransformer class to specify which columns in your input data should be one-hot encoded. Here is a more updated code
from sklearn.preprocessing import OneHotEncoder
from sklearn.compose import ColumnTransformer
# define the column transformer
ct = ColumnTransformer([('encoder', OneHotEncoder(), [0])], remainder='passthrough')
# fit and transform the input data
X = ct.fit_transform(X)
You make it easy with your explanation !! Thank you !!
Ответитьhow we select number for prediction anyone please reply
Ответитьpandas dummies is better in my opinion
ОтветитьA PLACE TO RUN TO WHEN ONE IS STUCK, THANK UOU SO MUCH SIR
ОтветитьAge_Catg such as young, adult , old. comes under ordinal or nominal pls answer anyone??
ОтветитьEven in 23 your video is such a relief..kudos to your teaching.
ОтветитьGreat videos! Unfortunately it becomes harder and harder to code in the same time as the video because there are more and more changes in the libraries you use. For example sklearn library removed categorical_features parameter for onehotencoder class. It was also the case for other videos from the playlist. Would be great to have the same playlist in 2022 :)
ОтветитьThanks
Ответитьdifficult topics are easily understood, Thank you so much for the content sir
ОтветитьOneHotEncoder(catergorical_features=[0]) is deprecated?
Ответитьupdate 2022: use columntransformer for your categorical column with OHE
Ответитьthanks sir nice lecture
sir you are really a great teacher
you teach everything so nicely
even tough thing becomes easy when you teach
thanks a lot
I will say this is one of the best tutorial i have seen in ML
ОтветитьSince the latest build of sklearn library removed categorical_features parameter for onehotencoder class. It is advised to use ColumnTransformer class for categorical datasets. Refer the sklearn's official documentation for futher clarifications.
Ответить