Тёмный

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

Jay Feng
Подписаться 48 тыс.
Просмотров 90 тыс.
50% 1

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.interviewq...
👉 Subscribe to my data science channel: bit.ly/2xYkyUM
🔥 Get 10% off machine learning interview prep: www.interviewq...
❓ Check out our machine learning interview course: www.interviewq...
🔑 Get professional coaching from Zarrar here: www.interviewq...
🐦 Follow us on Twitter: / interview_query
Attention Hiring Managers & Recruiters: Ready to find the top 1% of machine learning talent for your team? Accelerate your hiring with Outsearch.ai. Their AI-powered platform seamlessly filters the best candidates, making building your dream team easier than ever: www.outsearch....
More from Jay:
Read my personal blog: datastream.sub...
Follow me on Linkedin: / jay-feng-ab66b049
Find me on Twitter: / datasciencejay
Related Links:
Facebook Data Science Interview Questions: www.interviewq...
Facebook Data Science Internships: How to Land the Job: www.interviewq...

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 64   
@iqjayfeng
@iqjayfeng 3 месяца назад
If you enjoyed discussing this machine learning question with us, explore more on our website! Keyword Bidding: www.interviewquery.com/questions/keyword-bidding? Dynamic Pricing System: www.interviewquery.com/questions/dynamic-pricing-system? Bank Fraud Model:www.interviewquery.com/questions/bank-fraud-model?
@AlexXPandian
@AlexXPandian 5 месяцев назад
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.
@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 2 года назад
Good summary!
@sophiophile
@sophiophile 8 месяцев назад
Decent summary, but most FAANG interviewers would probably dock for not discussing online training, A/B testing, exploratory analysis for selecting model
@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!
@ploughable
@ploughable 8 месяцев назад
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
@albvs1
@albvs1 21 день назад
But as they said, inference speed is not that important as model accuracy/precision for that specific problem (regarding your second point).
@umamiplaygroundnyc7331
@umamiplaygroundnyc7331 11 месяцев назад
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
@ziruiwang7293
@ziruiwang7293 22 дня назад
The first tree based model Zarrar was talking about is probably AdaBoost, where the weight of those misclassified instances will be enlarged for the next tree.
@sallespadua
@sallespadua 2 года назад
Amazing! As a point to improve even more, I’d add as finishing touch fine-tuning the model with adversarial examples.
@sunny2253
@sunny2253 7 месяцев назад
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.
@87prak
@87prak Год назад
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 8 месяцев назад
You can also scrape for images, and generate listing using LLMs for high quality synthetic data.
@junweima
@junweima 2 года назад
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 9 месяцев назад
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)?
@dkshmeeks
@dkshmeeks 2 года назад
Great video. I find all the quick cuts to be a bit disorienting though.
@_seeker423
@_seeker423 2 года назад
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 2 года назад
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.
@KS-df1cp
@KS-df1cp 2 года назад
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 8 месяцев назад
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 8 месяцев назад
@@sophiophile thank you
@being.jajabor2187
@being.jajabor2187 2 года назад
This is a fantastic video for giving an idea for an ML system design interview ! Thanks for making this.
@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
@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 9 месяцев назад
@@jiahuili2133 how does a Gradient Boosted Tree work in this context? Any other models would could use here? Unsupervised machine learning?
@sophiophile
@sophiophile 8 месяцев назад
​@@Gerald-iz7mvYou already have labels, though. So supervised learning is probably superior.
@Gerald-iz7mv
@Gerald-iz7mv 8 месяцев назад
@@sophiophile but labeling the data is a lot of effort?
@sophiophile
@sophiophile 8 месяцев назад
@@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.
@mdaniels6311
@mdaniels6311 4 месяца назад
You wan a system that overfits and hits lots of false positives, as false negatives can be catastrophic, legally, for the reputation of the business, could even lead to regulatory action and media scrutiny, killing sales, market cap, etc.. You then have agents go through the false positives and efficiently decide if they are truly false positive or not. This data can also help train the model. The cost of hiring people to go through and check is much lower than losing 5% of market cap due to negative press.
@Gerald-iz7mv
@Gerald-iz7mv 9 месяцев назад
what does the following mean? TF-IDF: "We scale the values of each word based of each frequency in different postings"?
@chrisogonas
@chrisogonas Месяц назад
Thanks folks! That was incredible.
@iqjayfeng
@iqjayfeng 29 дней назад
We're glad it was helpful!
@chrisogonas
@chrisogonas 29 дней назад
@@iqjayfeng Absolutely!
@RanjitK1
@RanjitK1 Год назад
Great Interview Zarrar!
@claude7222
@claude7222 7 месяцев назад
@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
@marywang8013
@marywang8013 2 года назад
Were you use white board for ML design architecture? Is white boarding helpful in the interview?
@_seeker423
@_seeker423 2 года назад
Around @12:00 the algorithm that upweights incorrect prediction is Adaboost instead of GBM, right?
@Garentei
@Garentei Год назад
Yes.
@alexeystysin8265
@alexeystysin8265 2 года назад
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.
@goelnikhils
@goelnikhils Год назад
Excellent
@iqjayfeng
@iqjayfeng Год назад
Thank you! Cheers!
@georgezhou9211
@georgezhou9211 2 года назад
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 2 года назад
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 2 года назад
Remember tree based models are sensitive to change in data
@bhartendu_kumar
@bhartendu_kumar 2 года назад
Great insights to sample questions
@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
@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/
@songsong2334
@songsong2334 2 года назад
If the dataset is biased? Why bother using accuracy as the metrics to evaluate the model?
@mikiii880
@mikiii880 2 года назад
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.
@fahnub
@fahnub 2 года назад
this is the best video ever
@pratikmandlecha6672
@pratikmandlecha6672 Год назад
Wow this was so useful.
@fahnub
@fahnub 2 года назад
thanks Zarrar
@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!
@evanshlom1
@evanshlom1 2 года назад
INFORMATIVE GOOD SIR
@huanchenli4137
@huanchenli4137 Год назад
GBM is fast to train?????
@scchouhansanjay
@scchouhansanjay 2 года назад
F2 score will be better here I think 🤔
@sashwotkoirala3934
@sashwotkoirala3934 3 месяца назад
What will happen if it's a toy gun?
@lidavid6580
@lidavid6580 2 года назад
Too mock, not like real interview, all things were mouth work without any drawing and writing.
@joelwillis2043
@joelwillis2043 Год назад
intellectual masturbation
Далее
Three Tricky Analytics Interview Questions with Andrew
25:03
HA-HA-HA-HA 👫 #countryhumans
00:15
Просмотров 5 млн
Google Machine Learning System Design Mock Interview
25:18
Watch This To Not Fail Your Next ML Interview
11:04
Просмотров 12 тыс.
The Sad Reality of Being a Data Scientist
8:55
Просмотров 69 тыс.
Why I Fail Candidates During Google Interviews.
5:40
Просмотров 105 тыс.