No video

137 - What is one hot encoding in machine learning?

  Рет қаралды 7,844

DigitalSreeni

DigitalSreeni

Күн бұрын

Пікірлер: 10
@andrewmamchyn5031
@andrewmamchyn5031 2 жыл бұрын
Grate video as always. If you guys are using pandas library for your data preprocessing you can use their get_dummies() function that will convert whatever categorical columns you want into one hot encoded. import pandas as pd df = pd.read_csv(“file path”) one_hot_encoded = df.get_dummies(df[“categorical column”]) It’s just a rough sketch but you can read more about it in pandas documentation. Plus if you’re let’s say using TensorFlow you can split your data into training and testing and feed it directly into network, because pandas runs on top of numpy and TensorFlow know hot to deal with numpy.
@minipc123
@minipc123 Жыл бұрын
Thank you for the informative tutorial. I am learning deep learning using tensorflow as backend. May I ask whether it is really necessary to use one-hot encoding in training multiclass model? Since I understood in tensorflow there are sparsecategoricalcrossentropy (for non one-hot label) and categoricalcrossentropy (for one-hot label) for loss calculation. Hence I have an impression that both type of data structures are acceptable? Or is there a large difference in training performance? Thanks again
@diegostaubfelipe4310
@diegostaubfelipe4310 2 жыл бұрын
I converted my image that had 2 label into one-hot, ie (0,1,2), but when I removed the first one, because I thought it was unnecessary (redundant, it presented the background), the model did not converge... my model only converges if I send all 3, including the background... does that make sense?
@pablovaras9435
@pablovaras9435 Жыл бұрын
nice video!
@pavankrishnateja3154
@pavankrishnateja3154 3 жыл бұрын
So what is the use if we train our model with this rather than a number... Will it be beneficial
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
You cannot use a vector with just numbers if you want to use categorical cross entropy as loss function for multiclass classification in deep learning. Many loss functions for multiclass problems require you to convert it to categorical (one-hot). If you are working with traditional machine learning (RF or SVM) you do not need to convert.
@shilpashree4860
@shilpashree4860 4 жыл бұрын
Very informative videos sir. Can you please explain how to generate binary masks for segmentation of microscopic images.
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
This is a common question that people ask me and it is really challenging as there is no easy to use tool. Please sign up for a free APEER.com account and we plan on releasing a tool soon (mid-July 2020). By the way, APEER is an online image analysis platform that is free for academia, non-profits and individuals.
@ZhiGangMei
@ZhiGangMei 4 жыл бұрын
Python for Microscopists by Sreeni Dear Sir, is the tool you mentioned available now? Is there any tutorial showing how to use it? Thanks.
One Hot Encoder with Python Machine Learning (Scikit-Learn)
9:03
Ryan & Matt Data Science
Рет қаралды 17 М.
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 24 МЛН
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 17 МЛН
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 101 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 3,8 МЛН
Principles behind neural networks and one hot encoding
7:32
Google for Developers
Рет қаралды 15 М.
One Hot Encoding visually explained using Excel
9:36
Kunaal Naik | Data Science Masterminds
Рет қаралды 5 М.
139 - The topology of deep neural networks, designing your model.
26:37
A demo of One Hot Encoding (TensorFlow Tip of the Week)
4:33
TensorFlow
Рет қаралды 37 М.
Encoding Techniques for Machine Learning | Data Preprocessing
27:11
Suganya Karunamurthy
Рет қаралды 1,8 М.
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 24 МЛН