<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Attentive Sapien on Medium]]></title>
        <description><![CDATA[Stories by Attentive Sapien on Medium]]></description>
        <link>https://medium.com/@attentivesapien?source=rss-c16603b84588------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CapZNBpXHBgS4Q2QAGF8wg.jpeg</url>
            <title>Stories by Attentive Sapien on Medium</title>
            <link>https://medium.com/@attentivesapien?source=rss-c16603b84588------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:03:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@attentivesapien/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Microsoft Data Scientist Interview Experience (Series)]]></title>
            <link>https://medium.com/series/microsoft-data-scientist-interview-experience-series-ece41d0f2e6?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/ece41d0f2e6</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Mon, 28 May 2018 07:06:46 GMT</pubDate>
            <atom:updated>2018-05-28T07:06:46.549Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 14th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Telephonic Interview Round</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*Exca6IprX-2qxelo.png" /></figure><p>Started with tell me about yourself.</p><p>We started discussing on convolutions. What are they. Advantages, uses, applications.</p><p>Why is it better than ANN? How weight sharing makes convolution better.</p><p>I think he might have wanted the definition of convolution more from a mathematical or signal processing standpoint and not from the ML point of view, in which I was answering.</p><p>Why is Logistic regression a linear classifier?</p><p>Derivation for SVM? Support vectors, what are they and how are they determined?</p><p>How to do POS tagging?</p><p>Imagine a 4x4 square grid, like shown above. Now, count total number of ways in which you can join two corner points/nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*y58Wf-u3wYAf7YtmwVMW8Q.png" /></figure><p>Let us say you are given a binary tree. Write a code to join all the nodes in a single level. eg: as shown below. i.e. WAP to have connected pointers (shown as dotted lines) between the nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/1*OHt2nL4xwHgGWa5kpRMiHg.png" /></figure><p>Gave me 5 mins to write the code / pseudocode and then I dictated out to him.</p><p><strong>Face to Face Interview</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*eXJrPAQbtAqFrkL5.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*51AO8lZ2eZsSQsrT.jpg" /></figure><p>What are eigen vectors?</p><p>Write down cost function for PCA.</p><p>What is KNN?</p><p>Show the derivation for K NN using Parzen density window?</p><p>Given a circle containing uniformly distributed points, where each point is at some distance r and circle is of radius 1, what is the average distance of all points from center?</p><p>It is essentially like moment calculation in physics for a circle;</p><p>ans:(2.pi / 3)</p><p>What is matrix factorization, non-negative matrix factorization and sparse matrix factorization?</p><p>Cost function for NMF?</p><p>What are auto regressive networks? what are auto encoders?</p><p>How is convolution in signal processing different from convolution in ML?</p><p>What is curse of dimensionality? why? give an example</p><p>example expected is of cube and reduce delta from each dimension.</p><p>How is it different with increasing dimensions?</p><p>What are markov processes? Do they always have single equilibrium state?</p><p>Some basic questions on project.</p><p>What are KKT conditions?</p><p>What is frobenius norm?</p><p>What is xgboost? Have you read its paper?</p><p>what are u-nets(something in my project)</p><p>difference between LSTMs and GRUs?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/0*TZ2-qiHHU-_qFidU.jpg" /></figure><p>Programming question:</p><p>We are given an array of n points in the plane, and the problem is to find out the closest pair of points in the array.</p><p><a href="https://www.geeksforgeeks.org/closest-pair-of-points/">Link1</a> and <a href="https://www.geeksforgeeks.org/closest-pair-of-points-onlogn-implementation/">Link2</a></p><p>Programming question:</p><p>Write a white paper code for inorder tree traversal and pushing the nodes into doubly linked list</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vamOhik4C1UYHVfc.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ece41d0f2e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ice Cream Labs DL Engineer Interview Experience (Series)]]></title>
            <link>https://medium.com/series/ice-cream-labs-dl-engineer-interview-experience-series-b0dce9d1fc86?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0dce9d1fc86</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Mon, 28 May 2018 07:06:01 GMT</pubDate>
            <atom:updated>2018-05-28T07:06:01.827Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 13th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Telephonic Interview Round</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*tVBCx74NzpX2U9U4.png" /></figure><p>He started with a question in maths which I am not sure I completely understood what he was trying to ask.</p><p>However, from what I could understand:</p><p>Give me an example of a function such that f(x) = f(x+T).</p><p>To tell this he didn’t say this directly but rather in words.</p><p>I started by saying things like constant function, etc.</p><p>He said can I think of anything else?</p><p>I tried guessing here and there and then finally settled for periodic functions.</p><p>Probably the interviewer wasn’t satisfied with the answer, but seeing the confusion he went with next question.</p><p>Problem Statement:</p><p>Imagine the process flow in a call center for a company. The customer calls the call center, the call center executive makes notes of the complaint and then classifies the department to which the complaint should get routed to, and action is then initiated by the department. However, it has been observed that 50% of complaint tickets get misclassified, resulting in again re-routing to appropriate department, resulting in overall customer dissatisfaction. If we could reduce the classification accuracy to 10%, it should be great. What should we do about it?</p><p>I started saying how I would begin with structuring the problem, how I see it as NLP problem, how to create the dataset, do classification etc.</p><p>He was somewhat satisfied.</p><p>Next, he asked that let’s say we have trained a model and train accuracy is 95%, validation accuracy is 94% and test accuracy is 80%. However, when it gets deployed, we observe an accuracy of 50%. What could have gone with the model?</p><p>I said this is a typical example of overfitting the validation set. Typically, our models could overfit to train set, but if we are careful enough we can avoid that.</p><p>But next, as we start to tune our hyper-parameters looking at validation accuracy, we are actually creating a model that overfits to training and validation set but might not generalize well.</p><p>Little more discussion on bias variance tradeoff.</p><p><strong>Face to Face Interview</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r5b007q5sELHugvX.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/0*cMC9Q92-hI7VRKBc.png" /></figure><p>Introduce yourself, discussed briefly about projects, etc.</p><p>Next, he asked that if we were to take images from online retail website like Flipkart or Amazon and we would like to find the major color of that image. How to do it?</p><p>I said yeah all pixels will have some values and if I were to plot them, I would expect to see Gaussian curve or may be multi-modal Gaussians and then we could pick the pixel value or color corresponding to tallest Gaussian.</p><p>He seemed decently satisfied.</p><p>Next, he asked that if we wanted to find the major color corresponding to the object in the image, how to do tha?</p><p>I said that as explained previously, I expect to see multi-modal Gaussian, the major color of the object has to be one of the two tallest Gaussians.</p><p>If background is huge, then second tallest Gaussian should be color of the image, assuming that we normally use somewhat contrasting background.</p><p>I probably made 1 more suggestion in this regard. He was somewhat satisfied.</p><p>Next, he asked me that if we wanted to kind of find the set of pixels in an object that correspond to same color, how to do it?</p><p>Eg: Let us say there is a shirt of 2 colors, white in upper half and blue in lower half, how to group these pixels.</p><p>I started by saying that first we would need to detect which pixels belong to object.</p><p>So, I would use something like an edge detector algorithm or simply doing a convolution of image should give me the boundary of the object, the boundary pixels in the object where white separate from blue, etc.</p><p>Now, we should have closed shapes with proper boundaries and then probably we could cluster them using Mean shift or k-Means.</p><p>He asked a little more on effect of different values of k in k-Means when used here.</p><p>He seemed convinced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r775FQ-lvtLSTUdM.jpg" /></figure><p>We briefly started discussing about my project.</p><p>Seeing a project of mine in convolutions we started talking about convolutions and neural network in general.</p><p>Then he asked me about convolutions, types, advantages of its use over ANN, etc in brief.</p><p>Then he started asking on how neural networks train, problems with it etc.</p><p>We then started discussing about the vanishing gradient problem and why it occurs.</p><p>I tried to explain that how errors when back propagated keeps on reducing as a result of which weight updates in final layers are better or faster than those in initial layers.</p><p>He confused me by asking more questions and I went on to talk about how -ve part of RELU can be responsible and the reason why we might want to use leaky RELU to fix it.</p><p>I could quickly see why I got confused while explaining him the first reason for vanishing gradient and tried explaining him again.</p><p>He got convinced with my current explanation of reducing errors in back propagation.</p><p>Next he asked how could this be solved.</p><p>I talked about residual connections and how they can help or using differential learning rate between initial and final layers could help too.</p><p>He seemed good about it.</p><p>Next, he asked briefly about how to judge god vs bad model. So like if this is train accuracy and this is validation and test accuracy what we can conclude about the model type of questions.</p><p>Or if I have a model using 5 features with x,y as training and validation accuracy and another model using other 5 features with a,b train and validation score and if I were to combine them, what could happen and why kind of questions.</p><p>He seemed more or less convinced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5nTilx62dHMcBF1H.jpg" /></figure><p>This was conducted by Technical Head of the company.</p><p>I started with brief introduction of myself and was asked little generic questions.</p><p>Then, she asked how would you go about solving the problems of class imbalance.</p><p>I gave her a number of suggestions, at data level, model level, optimizer level.</p><p>Bias variance tradeoff</p><p>Most of the questions here were on standard data science or ML questions.</p><p>She seemed kinda ok about it.</p><blockquote>Checkpoint</blockquote><p>I was initially supposed to have 3–4 rounds of formal interview, but seeing me not getting tired after 3 rounds, we had 5 more rounds of interview</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*PsNQQSPF1Sl3ztLJ.png" /></figure><p>A guy from data engineering team came to talk as an interview.</p><p>It was less of an interview and more of an interaction. He was supposed to ask 3 questions to me and then I had to ask him.</p><p>These questions may or may not be ML related it.</p><p>Frankly speaking, this was first time a person from data engineering side had come to interview me and I grabbed this opportunity to understand as much as possible about the data engineering processes. It was a neat discussion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/0*mlx5u-dR5pcoDuv2.png" /></figure><p>I had a quick chat with a lady (probably from administration) who probably handled the teams there.</p><p>It was again an informal discussion on interests etc.</p><p>What I like to do in free time etc.</p><p>We discussed on how neural networks originated, how neuroscience is impacting machine learning, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*rsuvZes73uNOe0X6.jpg" /></figure><p>After briefly discussing about my background he went on to ask some questions in ML and DL domain.</p><p>I could answer the ML domain questions confidently but fumbled on DL questions.</p><p>He felt I am weak in DL but I am a smart kid and I should be able to pick it up.</p><p>I agreed with him and tried to give justifications and he said that he understand but he is interested in hiring only smart people and cannot spoil work environment with a false positive.</p><p>He didn’t seem that satisfied though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/0*Wpo3WSi2Nz3j06GN.jpg" /></figure><p>This round was based totally on my Mtech project which was not in ML.</p><p>We discussed at length on the problem statement and the solutions that I tried and the improvements we got on those.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z6kl-Z_7RcBK2Qf8.jpg" /></figure><p>This was the most ML/DL heavy round of the whole day.</p><p>Asked me how to I do ML in my everyday life outside work, etc.</p><p>I talked about meetups and kaggle competitions, etc.</p><p>For image classification, we use images as data and for NLP we use words as data. What is the key difference in inputs to the ML model, that we should keep in mind while creating our ML model.</p><p>The answer he was looking for is that image classification data is continuous data and NLP data is categorical data and we try to convert it into continuous data before we start using it.</p><p>How and why word embeddings are used?</p><p>Do you know about CRF or hidden Markov models?</p><p>What could be the technology used in Apple’s face recognition?</p><p>Probably some more Qs but overall he was not so satisfied but little convinced that I could understand his answers to the questions and think more on that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*UtorLMfZmqHMl74T.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0dce9d1fc86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So1 Machine Learning Engineer Interview Experience (Series)]]></title>
            <link>https://medium.com/series/so1-machine-learning-engineer-interview-experience-series-8ace8e6c5420?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ace8e6c5420</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Mon, 28 May 2018 07:05:17 GMT</pubDate>
            <atom:updated>2018-05-28T07:05:17.258Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 12th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Hackathon</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*ceJVnlOxqeqqes3q." /></figure><p>This lasted for 7 days.</p><p>Task 1:</p><p>Some customer purchase prediction model was given. Our task was to theoretically model it using distributions and also reason about them or think about more factors affecting it.</p><p>Task2 :</p><p>Given a dataset of some users, items over a period of time containing which user purchased what and when, we needed to predict what items will be purchased by each user in next week. We also knew which items were advertised when. Evaluation metric: AUC</p><p><strong>Telephonic Interview Round</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/0*gtUbiZy0njB3NDtk.png" /></figure><p>This was a video call with them. It was taken by two guys. Both of them had non-ML background but were currently in a strong ML field.</p><p>After giving a quick introduction about themselves they asked me to introduce myself briefly.</p><p>Next they said that they had evaluated the results for Task 2 and it turns out that I was top 3 among some 50 odd submissions by various other applicants and hence were quite happy with it.</p><p>They wanted to know how I had gone about solving it.</p><p>I said that obviously I did a quick survey on internet for ideas and realized that kaggle’s Instacart competition was somewhat similar to this problem and I tried understanding their kernels etc.</p><p>I also looked at solutions of top 3 submissions and saw that rank 1 guys had used lot of feature engineering whereas rank 2 had used mostly automatic feature engineering using RNNs LSTMs bidirectional CNNs, etc.</p><p>I said that I would have loved to go the automatic path but since I had only 7 days of time I went for the path of feature engineering.</p><p>Then I quickly described how i had extracted close to 76 different features for each user-item pair and how i ran it, etc.</p><p>They seemed impressed, or probably were already impressed.</p><p>As I was discussing that I used xgboost in my final model step, they said lets ask you more on decision trees and forests.</p><p>I said I was not really confident in those questions but I can definitely try.</p><p>They asked me about what are boosted trees and gradient boosted trees, how is a random forest different from a normal decision tree, bagging vs boosting etc.</p><p>More questions on random forest, why are they random, whats the advantage of it, etc.</p><p>They felt somewhat satisfied.</p><p>Next, they asked me to describe everything about neural networks.</p><p>I talked about the forward pass, how cost function is structured and then detailed explanation of back propagation, how error gets divided, weights get updated etc.</p><p>They seemed satisfied with the answer.</p><p>Next, they wanted to ask me few probability questions.</p><p>Questions about central limit theorem. How is it relevant to data containing height of all people in a country.</p><p>Then he asked me to explain Bayes theorem, the motivation the formulae etc.</p><p>Next, he asked this probability question:</p><p>He said let us consider there is a coin which has a probability of head = p. Now given that you did ten coin tosses and all the 10 turned out to be head, how are you going to use Bayes theorem to update your bias or perception about the coin.</p><p>Next they wanted to ask me few questions from linear algebra.</p><p>He asked about SVD, how we do it, why we do it, what are each things in U, sigma and V.</p><p>He also asked about positive definite, what is it, when is it necessary etc.</p><p>Next, they asked me questions about inner and outer join.</p><p>Finally as a programming question, they asked me about what are the difference between linked list, hashmap and array.</p><p>I asked if they could give me more specific question as I could talk on lot of things.</p><p>They asked me to say everything I knew.</p><p>I spoke about how they are used, how they are stored in memory, time complexities of insertion, deletion, search, etc.</p><p>They seemed somewhat more than happy with this answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*mPpTdc7hoWai6Puz.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ace8e6c5420" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Morgan Stanley Data Scientist Interview Experience (Series)]]></title>
            <link>https://medium.com/series/morgan-stanley-data-scientist-interview-experience-series-bc33022a9a4f?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc33022a9a4f</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Mon, 28 May 2018 07:04:51 GMT</pubDate>
            <atom:updated>2018-05-28T07:04:51.098Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 11th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Telephonic Interview Round</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*mAgSCElIzdsMTsa-.jpg" /></figure><p>Started with my introduction.</p><p>Then we discussed about SVM. The derivation part.</p><p>How regularization can be applied in the cost function.</p><p>What are support vectors or what are outliers, what to focus most on model, etc.</p><p>Then, he asked if we could use SVM line for doing regression.</p><p>I said that we can’t use the PCA line for regression and looking how similar they might be, I said no.</p><p>But he said yes we can and we didn’t discuss much on that.</p><p>Then questions on difference between Linear Regression and Logistic Regression. Lot of discussion on that</p><p>Different ways of measuring accuracy. Precision recall and stuff</p><p>Different ways of measuring performance of model, AUC, RMSE, R-squared, adjusted R-squared, etc</p><p>Problem Statement:</p><p>For any online retailer that has a subscription policy, let us say that for some user the subscription is about to expire and we are tasked with their retention.</p><p>Let us also assume that the subscription is fast approaching the expiration date and we would like to retain the customers.</p><p>How would you go about doing it? Any differential promotion or subscription or just any idea?</p><p>He asked me to silently think for a while before answering.</p><p>This is quite contrary to general type of interviews where the interviewer would like us to think out aloud.</p><p>After 5 mins of thinking, I started suggesting things like obviously we would have some data about the customer or what kind of subscriptions he would have had used in the past.</p><p>We could obviously create a dataset out of this for each customer and then we could train a model to see which kind of customers have been retained in the past and which haven’t and now we could target those kind of customers not retained in the past.</p><p>Next idea was that since a customer already has a subscription, then he would have definitely used it in the past.</p><p>Which means he would have seemed the benefit of having a subscription but might not be able to gauge how much of it was useful to him.</p><p>So, we could show him comparison charts on how much money did he save as a result of subscription or how much he was benefitted from it compared to when he wouldn’t have wanted it.</p><p>I suggested that as a matter of fact, this is what at least I try to think about before going for a subscription and this is what most customers would be interested in.</p><p>The interviewer seemed pretty happy with this idea.</p><p>Next idea was that if we have some recommendation model ready per user that could predict which items the user would be interested in or he is going to buy next, we could kind of tempt him into renewing the subscription along with some offers on those items too, i.e. tempting him to subscribe.</p><p><strong>Face to Face Interviews</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*uM77f4oUOvxMqH3O.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N8kC1_uuNxGX0w6b.png" /></figure><p>He had printed a set of questions that he wanted to ask me.</p><p>Started with brief introduction.</p><p>He showed the image of smiley on paper, which was just a set of dots. Essentially, each collection of dots made up the face boundary, the eyes, and the smile.</p><p>He asked given this image how would I extract the eyes the smile and the face boundary points.</p><p>This was obviously an unsupervised learning type of question.</p><p>I said I could use something like local linear embeddings or stochastic neighbour embeddings to get them.</p><p>I then started suggesting more ideas but he asked me to move on to next question.</p><p>He showed me a set of points that looked like a set of points arranged as a normal distribution.</p><p>He said how would you fit it.</p><p>I said looking at it I can clearly use Bayesian regression to fit this data.</p><p>He started saying we can’t do that as it is not frequency but actual points.</p><p>I told him again that I knew it and that is why I am suggesting to use Bayesian regression instead of something like Mixture of Gaussians for classification.</p><p>He admitted he hadn’t tried Bayesian regression on this problem and will do so after the interview.</p><p>He asked me to try other methods than this.</p><p>We discussed on few other regression techniques.</p><p>He asked me a good no of other ML questions too, centered around bias-variance tradeoff, PCA etc.</p><p>He asked me few questions on python coding and how to handle big data in it.</p><p>I said I knew a little and not much on these things.</p><p>He said he wished he had more C programming questions to ask.</p><p>I think he still asked somewhat coding questions before leaving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/0*VcPi45jNzUHwJ5vn." /></figure><p>I started with describing most of my projects.</p><p>Then I described about a paper that I had implemented in detail. It was on recommender systems.</p><p>We discussed a lot on recommender systems</p><p>Next he asked me everything about k means.</p><p>Things like how to tune the value of k, what is the cost functions, write the steps of the algorithm on the white board etc.</p><p>Probably 2 or 3 more ML questions, questions on scikit probably.</p><p>Was asked about decision trees, random forests.</p><p>Why are random forests random, how it makes them useful etc.</p><p>He asked me few big data questions that I fumbled on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*HUMTdclybss_x2ec.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc33022a9a4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ZS Associates A-Consultant Interview Experience (Series)]]></title>
            <link>https://medium.com/series/zs-associates-a-consultant-interview-experience-series-1a470f998935?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a470f998935</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Mon, 28 May 2018 07:04:16 GMT</pubDate>
            <atom:updated>2018-05-28T07:04:16.641Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 10th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Hackathon</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*iZeAqb4hcFVPjFID.png" /></figure><p>It was a 3 day hackathon on HackerEarth.</p><p>A dataset of comments were given. We had to classify them as ads or non ads. There were hardly 1200 such comments and quite well balanced.</p><p>An AUC score of about ~96% helped me clear this round.</p><p><strong>Face to Face Interviews</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*T3xb4kWFgoe6B8q0.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*KBc0BMkEb08yPPk0.jpg" /></figure><p>In this round, I was supposed to give presentation of the work I had done in my hackathon and explain all the concepts and face the questions.</p><p>It started with my introduction though, some discussion on projects etc.</p><p>There were questions on how I had solved some of my projects.</p><p>Some questions on deep learning technique but major questions focused on data mining concepts:</p><p>Decision trees, DBscan, association rule mining, clustering, etc. 1 or 2 questions on WordNet.</p><p>Then we moved on to the presentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*FjAlX_ZlDTomUGsl.png" /></figure><p>This round was to check how good are my fundamentals like Probability, calculus, linear algebra, optimization, basic ML etc.</p><p>I was asked question from each of the topic mentioned above.</p><p>Essentially these were also the things I had written in my resume under relevant courses so I was supposed to be able to answer these questions.</p><p>From multivariable calculus I was asked questions like what is a partial derivative?</p><p>Geometrically, what it is?</p><p>He literally created a 3d cost function and asked me how exactly the partial derivatives helps in weight updates in gradient descent?</p><p>1 or 2 other questions from this domain.</p><p>From optimization, he did ask me few questions like in neural networks are the cost function convex or in linear regression or SVM are the cost function convex or not?</p><p>How to solve for non-convex functions.</p><p>From linear algebra, he asked me questions like what is rank of a matrix?</p><p>How SVD is done, what does it give and every detail about SVD?</p><p>Some questions on PCA.</p><p>What are positive definite matrices and what are its properties?</p><p>What exactly is eigenvectors and eigenvalues of a matrix and why are they used?</p><p>From probability, all questions were on Bayes theorem, how is it used, what is the formula, what does it mean, etc.</p><p>Another question on what is likelihood function and how is it different from probability function.</p><p>From machine learning, questions like what is cost function of logistic regression?</p><p>What is difference between linear regression and logistic regression?</p><p>What are support vectors in SVM and how are they useful?</p><p>Some questions on kMeans.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*hRdqMwVPiKmUcURV.png" /></figure><p>This round was taken by head of Data science.</p><p>The questions were initially around my project and all.</p><p>Then, we moved on to few non ML may be big data or data structure or code design kind of questions.</p><p>More on my aims, how the company would help me grow etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*c9XIrvWmvWQRve6Z.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a470f998935" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bewgle Research Experimenters Interview Experience (Series)]]></title>
            <link>https://medium.com/series/bewgle-research-experimenters-interview-experience-series-eb726553e3b8?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb726553e3b8</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Sun, 27 May 2018 09:38:04 GMT</pubDate>
            <atom:updated>2018-05-27T09:38:04.114Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 9th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Telephonic Interview Round</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/0*rMSURQAU7kguslsD.jpg" /></figure><p>Had quite an informal discussion about my background, about background of the company and suitable time to meet with them at their office</p><p><strong>Face to Face Interview</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IB8XPdhZXg7dIrTH.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/0*6F-bNzF7yfqNx7pD.png" /></figure><p>The CEO escorted me to inside of the office.</p><p>Gave a brief introduction of himself. Then, we began discussing on the wide variety of projects that they work on.</p><p>I was constantly asking questions about them, showing interest and also comparing it to other know ML projects that I knew.</p><p>He showed me a working prototype of their review summarizer system and I myself had once done some analysis and thought of building something similar to this.</p><p>No typical interview questions but just general discussion</p><p>Next, he asked me to introduce myself.</p><p>I did.</p><p>We went over most of my projects in great detail.</p><p>He did find one of the project I had done in Image domain which he felt was relevant to a problem statement they were working in NLP domain.</p><p>We went on to discuss more on that.</p><p>I had quick quick tea with the CEO and Product director.</p><p>Then we came back for next round.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*DqfjAvmIOb_RZ6XV." /></figure><p>This round was taken by Director of Product.</p><p>His questions were non-ML generic about what are my strengths, where do I see myself in 5 years kind of questions</p><p>There were few technical questions on how you would structure the project, what tools you know, how to use this and that, attitude towards different kind of problem scenarios in data science, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/0*Dab8KbTPikjL6m3Z." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb726553e3b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bert Labs Data Scientist Interview Experience (Series)]]></title>
            <link>https://medium.com/series/bert-labs-data-scientist-interview-experience-series-579db4a4a600?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/579db4a4a600</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Sun, 27 May 2018 09:37:52 GMT</pubDate>
            <atom:updated>2018-05-27T09:37:52.264Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 8th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p>Most or all of the questions were non-ML / data science type questions.</p><p>It did seem like they may not have any data science or ML guy to ask those questions.</p><p>So, all the rounds were conducted by the CEO himself.</p><p><strong>Telephonic Interview Round</strong></p><p>I had 2 rounds of video call where most of the questions were about my past, things like, what I had done in Mtech, the complete project, questions on them, other projects I had done in my M.Tech.</p><p>Questions were also asked on my Btech life, my current role etc.</p><p>There were discussions about the interview’s profile what the company is doing etc.</p><p><strong>Face to Face Interview</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*xYzPKVambO0UlGMV.png" /></figure><p>We met at Starbucks, and there the questions went more abstract related to how I was in school, my aim in life, what I value most.</p><p>I remember being asked questions like why don’t I start my own startup etc.</p><p><strong>Task Session</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ayJJmnDcZaOktZcp." /></figure><p>I was supposed to have 7 day task session, where I will be given some task from the company and I was supposed to solve it that day.</p><p>I was expected to work on that task only for 2–3 hours per day on video call with other employees at the company.</p><p>For example, they could ask you to read a paper and explain it in the end or something of that sort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/0*85fe89gm4_gCxxZz." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=579db4a4a600" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IPSoft R&D Engineer Interview Experience (Series)]]></title>
            <link>https://medium.com/series/ipsoft-r-d-engineer-interview-experience-series-d34c12f36056?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/d34c12f36056</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Sun, 27 May 2018 09:37:28 GMT</pubDate>
            <atom:updated>2018-05-27T09:37:28.740Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 5th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Telephonic Interview Round</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/0*8szNI512Hj1PgEL5.gif" /></figure><p>Started 15 mins late. Lasted for about 45 mins.</p><p>Initially, the interviewer started with explaining about Amelie, what they do, what are the requirements of profile I am interviewed for, etc.</p><p>Then I introduced myself: college, current work experience, ML background from college days till now</p><p>Then we discussed on the project: Quora Question Pairs.</p><p>He asked some NLP questions and coding questions.</p><p>Basically 50% of the time was spent in ML + Project portion, 50% on coding questions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*Pxl4DrdzUppzo02d.png" /></figure><p>He wanted to know about one of the NLP projects I had worked on.</p><p>I said Quora’s Question Pairs project, maybe slightly bigger one so let me explain it.</p><p>I explained what paraphrase detection is</p><p>Then went on to explain the 3 models I had used: LSTM, Logistic regression with hand tuning and CNN on similarity matrix.</p><p>Not much questions on implementations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9M5-EB4y224bjLDl.jpg" /></figure><p>He asked if I knew about Glove vectors and asked me to explain about it and its importance</p><p>I knew glove vectors overall, but didn’t know the actual implementation or actual mathematical/technical specifications.</p><p>However, I made my best attempt to explain what they are and how they are different from word2vec, how word2vec captures local co-occurrence statistics and glove tries for capturing it at the global level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*V3OaFe9UhjWn1LC5." /></figure><p>Programming Question 1:</p><p>He asked me about Binary search. I quickly explained it to him and then he told me to write about the recurrence relation for it.</p><p>Since, I had nearly forgotten what the recurrence equation was, I said I don’t remember it actually. ( for future reference, the relation is <em>T(n) = T(n/2) + 1</em>, where <em>T(n)</em> is the no of computations required at every step to process <em>n</em> elements and get the desired output (here desired output is the element we are looking for)).</p><p>But then he asked if I knew what was the time complexity, to which I said it is <em>log n</em>.</p><p>Programming Question 2 :</p><p>A sorting question: You have a long array of 1 million (<em>=n</em>) elements which have been sorted. At one instant, we take two nos. and swap them. We do 50 (<em>=k</em>) such swaps. How will you sort this array?</p><p>My answers: I went on to say that since we know most of them were swapped, probably using some sorting also like quick sort would help because in average case quick sort performs <em>O(n log(n))</em> and it also randomly chooses a pivot so probably it could work.</p><p>Next, he asked to consider only the worst case time bounds for time complexity of al</p><p>o for quick sort is <em>n²</em>, so I better not use it and I can’t use merge sort efficiently because of huge array size.</p><p>After some pause, I started saying we have <em>k</em> swaps only in a <em>n</em>-count array and we should use it wisely.</p><p>He said, look closely, what are you missing and not taking into account.</p><p>After pondering for a while, I realised that only 50 swaps were done in a array of 10 million so it is basically unchanged.</p><p>So, I realised if we could quickly find these elements in the whole array, we could take them out and do something.</p><p>Here is my final answer:</p><p>I said we do a linear search and find out all the elements that were swapped in <em>log(n)</em> complexity.</p><p>We can find that using comparing its neighbours with that element and see if they are in ascending order or not.</p><p>And then take out these elements, leaving a void, create a new array of these utmost <em>2k</em> elements and then sort them using merge sort, in <em>k log(k)</em> complexity.</p><p>So total complexity = <em>n + log(k)</em>.</p><p>He probably wasn’t paying attention to complete algorithm but hearing the complexity in the end he thought I am right and we went ahead with next question.</p><p>(</p><p>Please note: that once we have figured out which elements were swapped, we can account them accordingly by sorting and replacing.</p><p>But main problem with the algorithm that I said in the end: what if the swapped elements are near each other; what if swapped elements form a circular rotation;</p><p>the given algorithm breaks down and we will need to make changes to account for these boundary cases</p><p>)</p><p>I couldn’t find any proper reference on the web.</p><p>Programming Question 3:</p><p>A max heap question: Given a max heap, find the 2nd smallest element in it.</p><p>I said for that naively that we can do <em>n-2</em> pops and we will get the 2nd smallest element. (I did not mention though that each pop takes <em>log(n)</em> operation.)</p><p>Then I said that I know heap is stored as an array, so we can do a linear search and get the 2nd biggest element. So in <em>O(n)</em> time complexity we will get that.</p><p>I began trying to find if we could do better. I said I know the 2nd smallest element can be in last level of max heap or 2nd last level of max heap and heap is stored as array.</p><p>After 2–3 minutes he without any prompt from me said that that is indeed the best you can do and nothing else.</p><p>He did go on to say that we can just consider the last two levels of max heap and do binary search to get the 2nd smallest element. I didn’t verify and nodded along.</p><p>(BTW, I am pretty sure he was wrong, but I can’t say that we certainty. I probably can sit down and prove, but then I am little lazy too. Not lazy enough to document all this, but lazy enough to prove all this.)</p><p>For reference: <a href="https://stackoverflow.com/questions/11644987/time-complexity-to-get-min-elements-from-max-heap">https://stackoverflow.com/questions/11644987/time-complexity-to-get-min-elements-from-max-heap</a></p><p>Towards the end he asked if I had questions.</p><p>Normally, I don’t have questions, because, who cares.</p><p>You really need the job.</p><p>But, asking a question shows you care about the company and profile you are interviewing for.</p><p>I asked that once you guys deploy the ML algos, how is scalability handles, who handles, do we need to handle in our current role, etc.</p><p>He gave a brief explanation that seemed reasonable and I nodded along</p><p><strong>Face to Face Interview</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*TUSBh8sY8pNJAsx8.gif" /></figure><p>Asked me to give brief introduction of myself. He said he was mostly interested in knowing about NLP and Image projects.</p><p>I give him the introduction.</p><p>He probably had gone through my resume and therefore there were no questions on my project.</p><p>He went ahead with the questions.</p><p>He brought out a Notebook and a pen for Q&amp;A.</p><p>He asked: Given 1000 sentences and 10 classes for classification, how will I proceed about it.</p><p>I started giving answers like how I would preprocess, etc.</p><p>He said he is more interested in the ML algorithms that I will use and all the intuitions.</p><p>I said I will use word2vec/glove for converting the words to vectors and for the model I said I could use some thing like ANN or Logistic regression or RNN.</p><p>But I said for using NN, I must reduce the dimensionality of data using PCS or auto encoders and</p><p>he seemed confused why would I do that.</p><p>(Actually, I too realised what the hell was I speaking. Note: This interview was quite fast paced and therefore I was speaking whatever was coming to my mouth.)</p><p>Then, he asked if using NN on this kind of problem is fair enough.</p><p>I said yes I understand that the main problem of using word2vec, which is about 100–300 dimensional here, on so few classes without data augmentation will overfit so I started suggesting other ML algos and other methods to reduce overfitting.</p><p>Unsatisfied with previous replies he asked if I knew what a SVM is and difference between SVM and Feedforward NN.</p><p>At once, it shined on me that the answer to that question was SVM.</p><p>I told him that, that yes in these cases we use SVM and told him the differences between them like SVM with less noisy, few data samples and NN can handle noise needs lots of data samples, etc.</p><p>He seemed partially satisfied.</p><p>Next he asked if I knew unsupervised methods</p><p>I explained him what they are, when they are used, on being asked, I explained kMeans and Meanshift quickly.</p><p>He asked me to write about kMeans. I asked if he wanted cost function or steps. He asked me to write down steps in mathematical equations.</p><p>I did. He seemed satisfied.</p><p>Next, he wanted to ask on some kind of POS tagging question but later stayed on the old question and asked me that:</p><p>In the 1000 sentence question for 10 class, lets say there are 3 methods. He first described RNN and began asking me about it.</p><p>He asked how would I use it.</p><p>I said we can train an LSTM on all words per sentences with embedding layer on a embedding matrix of word vectors and use the final output vector to classify.</p><p>He asked how.</p><p>I said we can pass it through a NN or simply train using any classifier like logistic regression or SVM by considering each dimension as a feature.</p><p>He said this now becomes two step (train using RNN then classify using NN) but he wants a simpler in 1 step.</p><p>He asked can it be done?</p><p>I started thinking puzzled and he started hinting on what else comes out from RNN.</p><p>I said hidden activations for next timestep RNN also comes out of RNN model.</p><p>He asked can we use them to classify efficiently?</p><p>(at this point, I dont know if “them” here explicitly means the hidden state or something else.)</p><p>I said I am not aware of any use of hidden layer activation for classification.</p><p>He asked if I knew seq2seq.</p><p>I said I am aware of it and how attention model works (as overview).</p><p>He seems to have changed his mind and unsatisified goes ahead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GHPM3QB6ZHQ8HzKP.png" /></figure><p>Programming question:</p><p>Write a function to get the intersection point of two Linked Lists.</p><p><a href="https://www.geeksforgeeks.org/write-a-function-to-get-the-intersection-point-of-two-linked-lists/">Link</a></p><p>Programming question:</p><p>You are given a list of n-1 integers and these integers are in the range of 1 to n. There are no duplicates in list. One of the integers is missing in the list. Write an efficient code to find the missing integer.</p><p><a href="https://www.geeksforgeeks.org/find-the-missing-number/">Link</a></p><p>In the above question he asked what should we do if the array size now given is much less than n and now some numbers from 1 to n can also repeat.</p><p>I said the naive solution would be to just simply count at which he seemed satisfied and went ahead.</p><p>Next, he asked if I knew any sorting algos. I said yes and listed them.</p><p>He asked if I could write code for quick sort.</p><p>I said I know how quick sort works but I may not be confident to write its code.</p><p>He asked me to explain the algo and I did.</p><p>Next he asked if I could write down the algo for merge sort and I did.</p><p>He seemed satisfied.</p><p>Next, we had brief discussion about company the role etc. and after that we were done with the interview.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*2ze1-EuVdTiH2-SM.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d34c12f36056" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ascena Retail Data Scientist Interview Experience (Series)]]></title>
            <link>https://medium.com/series/ascena-retail-data-scientist-interview-experience-series-5d790a4676f6?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d790a4676f6</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Sun, 27 May 2018 09:30:58 GMT</pubDate>
            <atom:updated>2018-05-27T09:30:58.973Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 7th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Written Round</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*yiYnpdxi9R6bOKOe.jpg" /></figure><p>Essentially in an online format I had to answer to following questions:</p><p>What is the difference between random forest and boosted trees?</p><p>Why are random forests better than decision trees?</p><p>Types of data types in Python and R</p><p>What is map reduce and why is it useful?</p><p>What is cross validation and why is it useful?</p><p>What are some libraries used in Python and R used by you and tell us what do you like and dislike about each one of them?</p><p>What is spark and its uses?</p><p>What is the difference between inner join, union and left/right join?</p><p><strong>Face to Face Interview</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/0*Qol8xAzjhYe3waeS.jpg" /></figure><p>The guy asked me to introduce myself.</p><p>I did.</p><p>At this point, he went out to bring in two other employees.</p><p>Now he started asking standard ML questions like how do evaluate performance of models or explain F score in layman terms.</p><p>He asked me to pick a project I am most proud of.</p><p>I chose a NLP based project.</p><p>After explaining him, he asked me about how did I come about the features used in the project and some basic concepts of handtuning etc.</p><p>Problem statement:</p><p>Customers go to store and purchase products. So, initially they buy some stuff and eventually will keep buying and then there might come a point where a customer stops coming altogether.</p><p>Given you have purchase records of lot of customers for past 5 years, you would like to predict when some customer is going to come next and when some customer is going to stop coming.</p><p>I started comparing to time series. I said I can use methods use for stock market prediction.</p><p>He said he would like to give a hint that time series methods won’t work.</p><p>Eventually, it came down to plotting cumulative purchases till now and time.</p><p>It had started to look something like sigmoid curve and I started on discussing in that direction.</p><p>Next he said what can you do about the duration a customer takes to come next.</p><p>I quickly got reminded that this is something that has started to look like modelling inter-arrival times in queuing theory.</p><p>I said we could use Poisson distribution for modelling inter arrival time and determine when the customer comes next.</p><p>He asked what models would you like to use?</p><p>At this point, seeing me confused with no more new ideas we moved on to next question.</p><p>Next problem statement:</p><p>Now again you have store records of some store and assume some product like jeans: there are about 100 types of jeans and you would like to reduce the no of categories to jeans.</p><p>How will you get final 70 categories?</p><p>I said naive methods would be to select popular 70 categories.</p><p>But we know that we really care about what kind of categories will be in demand in future.</p><p>So, I would like to find categories that I see growth in.</p><p>Fashion changes with time so, we should try to find what works best as per latest fashion.</p><p>Also, I know people might want to buy from different categories, so kind of seeing what kind of grouping we can do or what kind of fashion is popular for individual retail store based on location.</p><p>I started talking on how we can group categories using unsupervised approaches.</p><p>Then, the main guy asked that if we have images of these products can you use it to do something?</p><p>I said we can apply CNN and then the discussion shifted in that direction.</p><p>He asked conceptual questions on CNN, like how it is done why we do what we do where it is used etc.</p><p>Then, we began discussing on image classification project of mine.</p><p>Next, they asked if I knew how to handle words with different meaning in NLP.</p><p>I said yes they are called word sense disambiguation.</p><p>He asked if I ever used a tool in NLTK for that.</p><p>I said I don’t know of tool but started describing how I can do that without the tool.</p><p>Next, we shifted gears on handling big data.</p><p>He asked what is the largest dataset I have ever handled.</p><p>I said I have only handled normal datasets but I can think of something.</p><p>Made some guesses in that direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rKbIDANqux5YphQQ.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d790a4676f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Klarity NLP Engineer Interview Experience (Series)]]></title>
            <link>https://medium.com/series/klarity-nlp-engineer-interview-experience-series-ee6c1d286295?source=rss-c16603b84588------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee6c1d286295</guid>
            <dc:creator><![CDATA[Attentive Sapien]]></dc:creator>
            <pubDate>Sun, 27 May 2018 09:17:22 GMT</pubDate>
            <atom:updated>2018-05-27T09:17:22.150Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the 6th card series from the collection of data science interview experiences.</p><p>If you have just landed here, feel free to check other interview experiences <a href="https://medium.com/series/data-scientist-interview-experiences-8b08d63a7a18">here</a>.</p><p>If you would like to read it as a medium post, please check here later.</p><blockquote>How to use it?</blockquote><ul><li>Typically, each card would be about a question or a concept.</li><li>In case of question and answer, each question card would be followed by an answer card.</li><li>This gives you enough time to think on a question or concept before proceeding to next card.</li></ul><p><strong>Face to Face Interview</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RkaK_4Qd_3IHSTzg.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*3U5DKStVEiukB3ez.jpg" /></figure><p>He first explained me what work is carried on their company.</p><p>Problem statement:</p><p>Given a chapter of technical book in text format, i.e. imagine you copy all the contents of to a notepad. Now you are given the contents of this notepad. Your task is to identify the hierarchy of headings.</p><p>( He said first to discuss about non ML based topics and later discuss ML topics. We never really reached to ML topics. )</p><p>I started by saying that some way we are actually storing all the context of headings in the paragraphs. So, I would like to use it to get hierarchy.</p><p>He said obviously first we will try to identify the headings.</p><p>That can be done using rules or handtuned features like seeing no of words per sentence or checking if a sentence has a full stop or not.</p><p>Once we have headings, next we can try to get the hierarchy.</p><p>I was like that’s absolutely correct, something that I could not think of.</p><p>Next, I started thinking about how to get hierarchy.</p><p>I started saying about using word similarity percentage across the headings and we will start to see patterns that whenever two sections are similar, we can say that one is sub-heading of another, and if two sections are different then they are probably two sibling sections.</p><p>Using this idea we should able to get some hierarchy.</p><p>He asked if I knew about TF-IDF?</p><p>I said yes and instantly regretted not speaking about it.</p><p>I said in a way I was doing that essentially but not exactly.</p><p>Next, he started saying that we can use to TF&amp;IDF in a single pass to get all heading tier 1 and then recursively do the same for each heading to get tier 2 heading.</p><p>He had said all the answers with no input from me.</p><p>I said that does make sense and I tried justifying that I was actually trying to go for single pass method to which he said single pass will not work in real life.</p><p>I had to agree as he did seem right.</p><p>Next he was interested in knowing how will I implement this. Or how exactly will things pan out.</p><p>I started talking about how TF IDF works which words will get picked up in a sample example etc.</p><p>He looked happy.</p><p>Then, he asked me on how exactly will I implement it and draw clear diagrams.</p><p>I started scribbling the ideas on the board.</p><p>Seeing that he said it looks like I might not be exactly familiar with how the flow of thoughts should be and wrote down two concise points.</p><p>Next he asked how would I go about implementing it.</p><p>I said things like using a dictionary and giving sentence id for easier parsing etc.</p><p>He agreed and started himself telling how to implement. I probably helped in a place or two.</p><p>Towards the end he commented that nearly he had given answers to all questions so far.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*SqDARzfhkUuJB0MH.jpg" /></figure><p>Next he said he wanted to check my Python skills and flow of thoughts.</p><p>He asked that out of the two ways of initializing a dictionary mentioned below, which one should be computationally faster than others:</p><p><em>Dict1 = { a : a * a for a in range(100000)}</em></p><p><em>Dict2 = dict( [ (a, a * a) for a in range(100000)])</em></p><p>I said 2nd one as it looks like 1st will do a lot of appending.</p><p>(The correct answer will be unveiled in subsequent cards)</p><p>Next we do this:</p><p><em>r1 = range(10000)</em></p><p><em>r2 = range(10000)</em></p><p><em>r = random.sample(r1 + r2, 50000 pts)</em></p><p><em>Dict1 = { a : a * a for a in r}</em></p><p><em>Dict2 = dict( [ (a, a * a) for a in r])</em></p><p>Which dictionary creation will be faster? <em>Dict1</em> or <em>Dict2</em>?</p><p>As I started to think more it became clear that 1st way should be faster than 2nd in both the above cases.</p><p>But unclear, I said first one will be faster in this case.</p><p>He said he would like to code himself and check that out as I try to think of the answer.</p><p>He said he would be happy if both answers are correct, but if none are correct, that would make him very sad.</p><p>I decided to not change my answers and take the risk of not rectifying my stand. Though I was starting to think <em>dict 1 </em>should be faster in both cases.</p><p>He signed off saying that it looks like I don’t have experience, but I do have potential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*YTburfTFiCG0FLqL." /></figure><p>This was core ML round.</p><p>Asked me why am I here. Why Klarity and all?</p><p>And why NLP?</p><p>Asked me to explain precision-recall.</p><p>I did.</p><p>For a given tweet, he asked me what would be trigrams after stop word removal.</p><p>I said so.</p><p>He asked about LDA.</p><p>I said since I don’t have much experience working On it and I only have idea on what idea LDA works and I explained it to him.</p><p>He seemed to want to know more about theoretical aspect, but I could only explain and give a brief overview</p><p>He asked what is stemming and lemmatization.</p><p>Next he asked how to build model to get NER.</p><p>Seeing me struggle with the meaning of NER he asked if I can do for POS tags.</p><p>I started describing ideas from one of my project of text normalization.</p><p>Problem statement:</p><p>You have a classification model to solve. You get your dataset from 3 customers. The 1st customer’s dataset contains <em>n</em> classes, 2nd customer’s dataset contains <em>n+2</em> and 3rd’s contains <em>n+5</em> classes. Now you have already trained a model and a customer comes to you and asks how your model is performing.</p><p>A hint in next card.</p><p>Specifically, he wants to know my model performance for individual classes (specifically keeping the new 3 classes in mind which do not have many datapoints).</p><p>I started guessing stuff from classwise accuracy to classwise precision recall F1 scores.</p><p>I started saying about data augmentation, class imbalance, etc.</p><p>He said he is interested in classwise metric.</p><p>I tried murmuring nearly every ML metrics that I knew of and I ran out of any more ideas. I said I am clueless and need alittle hint.</p><p>He asked if I knew of confidence interval in statistics.</p><p>Obviously, I haven’t prepared for statistics. I said I know of confidence intervals, but don’t know how exactly to calculate it, nor am aware of its statistical significance.</p><p>At this point he said they are looking for someone who is strong in maths and statistics and a little more experienced and not so beginner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/0*yavqxhGE68AnuFps.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee6c1d286295" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>