Meta (Facebook) Machine Learning Mock Interview: Illegal Items Detection

  Рет қаралды 75,121

Jay Feng

Jay Feng

2 жыл бұрын

Today Zarrar talks us through this question asked by Facebook about how to use Machine Learning to flag illegal items posted on a marketplace.
Try adding your own solution to the question here: www.interviewquery.com/questi...
👉 Subscribe to my data science channel: bit.ly/2xYkyUM
🔥 Get 10% off machine learning interview prep: www.interviewquery.com/pricin...
❓ Check out our machine learning interview course: www.interviewquery.com/course...
🔑 Get professional coaching from Zarrar here: www.interviewquery.com/coachi...
🐦 Follow us on Twitter: / interview_query
More from Jay:
Read my personal blog: datastream.substack.com/
Follow me on Linkedin: / jay-feng-ab66b049
Find me on Twitter: / datasciencejay
Related Links:
Facebook Data Science Interview Questions: www.interviewquery.com/blog-f...
Facebook Data Science Internships: How to Land the Job: www.interviewquery.com/p/face...

Пікірлер: 56
@anasal-tirawi2096
@anasal-tirawi2096 2 жыл бұрын
Typical end to end ML Question: Understate the problem, Data collection, Feature Engineering, Building Model, Train Model, Evaluate Performance ( Confusion Matrix: Precision ± Recall) , Deploy Model, Rebuild Model if needed
@hongliangfei3170
@hongliangfei3170 Жыл бұрын
Good summary!
@sophiophile
@sophiophile 3 ай бұрын
Decent summary, but most FAANG interviewers would probably dock for not discussing online training, A/B testing, exploratory analysis for selecting model
@AlexXPandian
@AlexXPandian Ай бұрын
This guy has mastered the art of how to talk for 20 minutes something that can be explained to a technologist in 2 minutes, and that my friends is what a system design interview is all about. You have to talk about every detail no matter how boring/mundane it is to you or how obvious you might think it is.
@julianmartindelfiore7420
@julianmartindelfiore7420 2 жыл бұрын
I feel this video is a fantastic resource, not only the explanation was great and very insightful, but I think you also made the right questions, going for the extra-mile of the explanation/analysis...thank you for sharing!
@iqjayfeng
@iqjayfeng 2 жыл бұрын
Thanks for tuning in! If you're interested in learning more about machine learning, be sure to check out our machine learning course. It's designed to help you master the key concepts and skills needed to excel in machine-learning roles. www.interviewquery.com/learning-paths/modeling-and-machine-learning
@umamiplaygroundnyc7331
@umamiplaygroundnyc7331 6 ай бұрын
Wow this guy is good. I really like how he start from model framework with baseline model, point out the reasoning and key considerations - and we can evolve from there to more complicated model just by all similar reasoning
@being.jajabor2187
@being.jajabor2187 2 жыл бұрын
This is a fantastic video for giving an idea for an ML system design interview ! Thanks for making this.
@sallespadua
@sallespadua Жыл бұрын
Amazing! As a point to improve even more, I’d add as finishing touch fine-tuning the model with adversarial examples.
@ploughable
@ploughable 3 ай бұрын
2 points that I would added for the end questions: 1. in order to overcome the coded firearm words -> use tranformers models like BERT as you can catch the meaning by the embeddings (ie: cosine similarity) and filter the best ratings 2. Computer Vision on the images can be used as additional inference if the F1 score is low, but not always as this type of inference is more expensive
@RanjitK1
@RanjitK1 Жыл бұрын
Great Interview Zarrar!
@junweima
@junweima Жыл бұрын
It's also possible to use re-ranking or bagging approaches to combine xgboost model and vision/nlp model, which would most likely improve performance
@Gerald-iz7mv
@Gerald-iz7mv 4 ай бұрын
you mean use a gradient boosted tree in the first stage and in the second stage use a vision/mlp model (which is more complex and takes longer to excute)?
@sunny2253
@sunny2253 2 ай бұрын
Should've mentioned that people try to disguise the actual product description using proxy words. Also, to include image analysis or not, I'd draw multiple samples and train models in A/B setting. Then run a t-test to see if the mean prediction metric is significantly different or not.
@marywang8013
@marywang8013 Жыл бұрын
Were you use white board for ML design architecture? Is white boarding helpful in the interview?
@87prak
@87prak 8 ай бұрын
Sorry, where did you discuss the label generation part? There are multiple ways to generate labels with pros and cons: 1. user feedback: Automatic, lot of data but noisy. 2. Manual annotation: accurate labels but not scalable. Very high proportion of examples would be tagged as negative. 3. Bootstrap: Train a simple model and sample more examples based on model scores to get a higher proportion of positive examples. 4. Hybrid: Manually annotate examples marked as "X" by users where "X" can be tags like "illegal", "offsensive", etc.
@sophiophile
@sophiophile 3 ай бұрын
You can also scrape for images, and generate listing using LLMs for high quality synthetic data.
@robertknight9242
@robertknight9242 2 жыл бұрын
Great videos! Where do you get the sample questions from shown at the start of the video?
@iqjayfeng
@iqjayfeng 2 жыл бұрын
www.interviewquery.com/
@bhartendu_kumar
@bhartendu_kumar 2 жыл бұрын
Great insights to sample questions
@fahnub
@fahnub Жыл бұрын
this is the best video ever
@alexeystysin8265
@alexeystysin8265 Жыл бұрын
I can never remember what Precision and Recall stands for. It is clearly visible how the interveiwee was also confused and video is edited around that point.
@Gerald-iz7mv
@Gerald-iz7mv 4 ай бұрын
what does the following mean? TF-IDF: "We scale the values of each word based of each frequency in different postings"?
@pratikmandlecha6672
@pratikmandlecha6672 Жыл бұрын
Wow this was so useful.
@KS-df1cp
@KS-df1cp Жыл бұрын
I would have suggested CNN as an alternative approach but ya agree. The listing is not only about an image but also text. Edge case where they have different text and different images then that won't get captured. Thank you.
@sophiophile
@sophiophile 3 ай бұрын
I haven't watched the video yet, but a lot of people will dock points for over-engineering. I haven't seen his suggested solution yet, but if a really basic ensemble approach (one model for image, one for text) can achieve the goal instead of a single multi-modal one and with less resources at every step- go for that and explain why. Now, to be fair, you were commenting prior to the multimodal LLMs being everywhere, so that does change the considerations.
@KS-df1cp
@KS-df1cp 3 ай бұрын
@@sophiophile thank you
@hasnainmamdani4534
@hasnainmamdani4534 2 жыл бұрын
Very useful! Thanks for sharing. Do they ask about data pipelines and technologies that might be useful to scale the model (for the MLE role)? Would love to know more resources on it! as well as more mock interviews :)
@iqjayfeng
@iqjayfeng 2 жыл бұрын
Definitely in the MLE interview loops!
@ArunKumar-bp5lo
@ArunKumar-bp5lo 2 жыл бұрын
great insights but the text data can be various language but when he also said augment the some keywords to detect can that work or train different language different??just curious
@iqjayfeng
@iqjayfeng 2 жыл бұрын
Synonyms and similar words can help embellish the classifier and create new features
@_seeker423
@_seeker423 Жыл бұрын
Re; whether or not to do CV on images - shouldn't one do error analysis to check if text and other features lacked the predictive power and the signal was elsewhere (aka images) which is why we should invest in extracting signals from images; as opposed to building a giant model with all features and doing ablations to understand feature class importance. Latter seems quite expensive?
@besimav
@besimav Жыл бұрын
If you are working for FB, you can afford to go for an expensive model. If a candidate didn’t mention CV, I would be unhappy since there is a good source of data you are not making use of.
@fahnub
@fahnub Жыл бұрын
thanks Zarrar
@dkshmeeks
@dkshmeeks Жыл бұрын
Great video. I find all the quick cuts to be a bit disorienting though.
@jamessukanto8078
@jamessukanto8078 2 жыл бұрын
Hello. I think this was super helpful overall. I'm a little confused when he describes Gradient Boosting. For each successor tree, we should set new target labels for training errors in the predecessor, no? (and leave the weights alone)
@jiahuili2133
@jiahuili2133 2 жыл бұрын
I think he was talking about adaboost instead of gradient boosting.
@Gerald-iz7mv
@Gerald-iz7mv 4 ай бұрын
@@jiahuili2133 how does a Gradient Boosted Tree work in this context? Any other models would could use here? Unsupervised machine learning?
@sophiophile
@sophiophile 3 ай бұрын
​@@Gerald-iz7mvYou already have labels, though. So supervised learning is probably superior.
@Gerald-iz7mv
@Gerald-iz7mv 3 ай бұрын
@@sophiophile but labeling the data is a lot of effort?
@sophiophile
@sophiophile 3 ай бұрын
@@Gerald-iz7mv You already have labelled data in this case. They described having the historical set of previously flagged posts. Also, expecting to cluster out the gun posts in an unsupervised manner when they make up such a small proportion of the listings is unrealistic. The other thing is that feature engineering and labeling pipelines are simply part of the job, when it comes to ML. Nowadays, you can also very easily create synthetic labelled data of a very high quality using generative models as well to help with the imbalanced set.
@claude7222
@claude7222 2 ай бұрын
@iqjayfeng I think Zarrar mistakenly mixed up False Pos and False Neg around 2:00 mark. It would be ok if customer service received False Neg (model pred True but its really False) not False Pos
@evanshlom1
@evanshlom1 Жыл бұрын
INFORMATIVE GOOD SIR
@_seeker423
@_seeker423 Жыл бұрын
Around @12:00 the algorithm that upweights incorrect prediction is Adaboost instead of GBM, right?
@Garentei
@Garentei 11 ай бұрын
Yes.
@georgezhou9211
@georgezhou9211 Жыл бұрын
Why does he say that it is a better idea to use NN rather than gradient boosted trees if we need to continuously train/update the model with every new training label that we collect from the customer labeling team?
@sandeep9282
@sandeep9282 Жыл бұрын
Because you can update a NN weights with just new data points by fine-tuning unlike tree based models which *may* require re-training with old+new data
@sandeep9282
@sandeep9282 Жыл бұрын
Remember tree based models are sensitive to change in data
@goelnikhils
@goelnikhils Жыл бұрын
Excellent
@iqjayfeng
@iqjayfeng Жыл бұрын
Thank you! Cheers!
@huanchenli4137
@huanchenli4137 11 ай бұрын
GBM is fast to train?????
@scchouhansanjay
@scchouhansanjay 2 жыл бұрын
F2 score will be better here I think 🤔
@songsong2334
@songsong2334 2 жыл бұрын
If the dataset is biased? Why bother using accuracy as the metrics to evaluate the model?
@mikiii880
@mikiii880 Жыл бұрын
I believe he was using accuracy in its semantic meaning, not the actual metric. He already said he would use F1, and then referred to it as “accuracy” because it’s an easier word. Probably “score” would have cleared the confusion.
@lidavid6580
@lidavid6580 Жыл бұрын
Too mock, not like real interview, all things were mouth work without any drawing and writing.
@joelwillis2043
@joelwillis2043 Жыл бұрын
intellectual masturbation
Uber Data Engineer Interview: Design a Ride Sharing Schema
29:39
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Рет қаралды 9 МЛН
ФОКУС С ЧИПСАМИ (секрет)
00:44
Masomka
Рет қаралды 4,6 МЛН
How to open a can? 🤪 lifehack
00:25
Mr.Clabik - Friends
Рет қаралды 11 МЛН
Лизка заплакала смотря видео котиков🙀😭
00:33
7 Types of Machine Learning Interview Questions!
13:14
Jay Feng
Рет қаралды 7 М.
Netflix Machine Learning Mock Interview: Type-ahead Search
18:27
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Рет қаралды 162 М.
Watch This To Not Fail Your Next ML Interview
11:04
Boris Meinardus
Рет қаралды 6 М.
All Learning Algorithms Explained in 14 Minutes
14:10
CinemaGuess
Рет қаралды 95 М.
Machine Learning Interview Questions
6:37
Jay Feng
Рет қаралды 37 М.
Google system design interview: Design Spotify (with ex-Google EM)
42:13
IGotAnOffer: Engineering
Рет қаралды 943 М.
Теперь это его телефон
0:21
Хорошие Новости
Рет қаралды 311 М.
I wish I knew this When Istarted Programming #school #software  #codingtips
0:34
Claude Ams - Programming Guru 💻
Рет қаралды 14 МЛН
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24