137 - What is one hot encoding in machine learning?

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

DigitalSreeni

DigitalSreeni

Күн бұрын

Пікірлер: 10
@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
@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.
@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?
@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.
@pablovaras9435
@pablovaras9435 Жыл бұрын
nice video!
One-Hot, Label, Target and K-Fold Target Encoding, Clearly Explained!!!
15:23
StatQuest with Josh Starmer
Рет қаралды 51 М.
Ozoda - Lada ( Ko’k jiguli 2 )
06:07
Ozoda
Рет қаралды 15 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 69 МЛН
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 38 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 38 М.
Principles behind neural networks and one hot encoding
7:32
Google for Developers
Рет қаралды 15 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 90 М.
One Hot Encoder with Python Machine Learning (Scikit-Learn)
9:03
Ryan & Matt Data Science
Рет қаралды 20 М.
Encoding Techniques for Machine Learning | Data Preprocessing
27:11
Suganya Karunamurthy
Рет қаралды 1,8 М.
One Hot Encoding visually explained using Excel
9:36
Kunaal Naik | Data Science Masterminds
Рет қаралды 6 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 173 М.
Ozoda - Lada ( Ko’k jiguli 2 )
06:07
Ozoda
Рет қаралды 15 МЛН