Latest / Talk Python To Me / #298: Building ML teams and finding ML jobs
Transcript
- 0:00Are you building or running an internal machine learning team?
- 0:03How about looking for a new ML position?
- 0:04On this episode, I talk with Chip Heughan from Snorkel AI about building ML teams,
- 0:09finding ML positions, and teaching machine learning.
- 0:12This is Talk Python To Me, episode 298, recorded November 18th, 2020.
- 0:17Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the
- 0:35ecosystem, and the personalities.
- 0:37This is your host, Michael Kennedy.
- 0:39Follow me on Twitter, where I'm @mkennedy, and keep up with the show and listen to past
- 0:43episodes at talkpython.fm, and follow the show on Twitter via at Talk Python.
- 0:48This episode is sponsored by Datadog and Linode.
- 0:51Please check out what they're sponsoring during their episodes.
- 0:53It really helps support the show.
- 0:55Chip, welcome to Talk Python To Me.
- 0:57Hi, Michael.
- 0:58Nice to meet you.
- 0:59Thanks so much for having me.
- 1:00Nice to meet you, and thanks for coming on the show.
- 1:03It's going to be a lot of fun to talk about ML and putting ML into production and building
- 1:08ML teams.
- 1:09We're going to talk a lot of, probably cover a lot of buzzwords, right?
- 1:12Like, AIS and ML are so top of mind in all of the...
- 1:16I need to impress people by throwing out all the buzzwords, yeah.
- 1:19That's right, right.
- 1:20IBM had this really funny commercial, which is ironic that it was IBM, but it had this really
- 1:25funny commercial, like, 10 years ago called Buzzword Bingo.
- 1:29I don't know if you ever saw that, but it was really, really hilarious.
- 1:32We'll see if I can link to it in the show notes, if I can dig it back up on YouTube.
- 1:35But yeah, so we could definitely win that one today, just because it's such a growing
- 1:40and interesting topic.
- 1:41Yeah.
- 1:42But before we get to all that, of course, let's start with your story.
- 1:44How do you get into working with programming in Python and machine learning?
- 1:48It's really funny because when I was younger, I thought being a programmer was the most boring
- 1:54job in the world.
- 1:55I was like, why would anyone want to spend the rest of their life sitting in a basement looking
- 2:00to come to screen?
- 2:02This is for the anti-social people.
- 2:04They don't want to go outside.
- 2:06They just, like you said, sit in a basement.
- 2:08Yeah.
- 2:08Don't they have friends?
- 2:09Yeah, I know.
- 2:10Yes, exactly.
- 2:11Come on.
- 2:12Yeah.
- 2:12The views changed over the last 20 years or so, right?
- 2:16Like it's...
- 2:16Yeah.
- 2:17Society has sort of viewed that differently, but yeah, it's how it was.
- 2:20I think as far as growing up, you just realize you becomes a person that you make fun of,
- 2:24you know?
- 2:25So that's the story of my life.
- 2:27So when I was younger, I actually come from a writing background.
- 2:30So I was traveling the world.
- 2:32I know it sounds like nice and stuff, but it's like not that nice.
- 2:36So I was traveling the world and writing a lot about culture, people, a lot of food.
- 2:40So I can't just stand for thinking I would major in script writing because I thought it
- 2:45would be fun.
- 2:46But then I took some CS courses and they talked to CS friends and they were like, what?
- 2:51Is this what you make for an internship?
- 2:53It's like what my family makes like the entire year or something.
- 2:56So I was like, what is so cool about it?
- 2:58So I took CS courses.
- 3:00Wait a minute.
- 3:00Maybe I should pay attention to this, right?
- 3:02This is starting to sound good.
- 3:03Yes, yes.
- 3:05So yeah, so I took some CS courses and I think Stanford did a really great job of like getting
- 3:10people interested in computer science because also introductory courses are extremely well
- 3:15designed and exercises are not just like, I don't know, boring things.
- 3:19It's like trying to design a button to increase something.
- 3:22I don't know.
- 3:22I don't know what boring lectures are, but there's an exercise like building games.
- 3:27So you could play games.
- 3:28Yeah.
- 3:28So a lot of fun things.
- 3:30So I took them and I took the courses.
- 3:32I really enjoyed them.
- 3:33And then I took more courses.
- 3:35I think initially it was more of like financial needs because I need to TA to get some pocket
- 3:41money.
- 3:41But then I TA'd and then I met some wonderful people who are so TAing.
- 3:46I think at Stanford was of course, we couldn't session leading.
- 3:48It was really fun.
- 3:49And I think I just getting sucked into it.
- 3:52And fast forward four years, I major in computer science.
- 3:57Yeah.
- 3:57That's amazing.
- 3:58Do you still do any writing?
- 4:00Oh, yes.
- 4:00I still write a lot.
- 4:02So I think it's kind of tricky because of writing.
- 4:06And technical writing is very different from the kind of writing I did before.
- 4:10So I can't really switch among them easily.
- 4:13So I think for me, it would be like a month just focused on technical writing.
- 4:19So like blog posts and documentation.
- 4:22So I write a lot about, for example, like paper summarizations or just some new techniques
- 4:28that I learned.
- 4:28I think recently I did something about.
- 4:30So I look up like 200 machining tools I could find and I try to analyze.
- 4:35Oh, no, no.
- 4:36Wow.
- 4:37It took me so much time.
- 4:38So the kind of writing is very different because in people in political writing, they want to
- 4:42get to the point, right?
- 4:42But also sometimes I still like to write stories like non-fictions.
- 4:46And when you write stories, people want to take another journey.
- 4:50They just don't want to show the destination right away.
- 4:53So I tried and I do a month of that and then I switch my set to another.
- 4:57So yes, I still write a lot.
- 4:59That's cool.
- 4:59It sounds like a lot of fun.
- 5:00So one of the things that is interesting about your story is like you decided to do some programming
- 5:06classes and get into it.
- 5:07And at first you were not so sure that that was the full on path that you wanted to go
- 5:12down.
- 5:13And as you got deeper into it, you saw it as more interesting.
- 5:16You made friends and connections and you sort of saw the human side of it and got sucked
- 5:20more and more into it, right?
- 5:21Yeah.
- 5:22Like, yeah, programmers do have friends.
- 5:24Yes.
- 5:24I learned that.
- 5:25So yeah, that's good.
- 5:27Right.
- 5:27Encouraging.
- 5:28Yeah.
- 5:29Well, the thing that's interesting to me is a lot of times you hear people early in
- 5:34their career thinking about like, well, what should they study?
- 5:36What should they go into?
- 5:38Or if they're changing careers, what should they go into?
- 5:40And a lot of times the advice is follow your passion.
- 5:43Like, what are you passionate about?
- 5:44Like, well, I'm really passionate about soccer.
- 5:45Okay.
- 5:46Well, go into soccer.
- 5:47Like what I've, I think I've seen over the years is a lot of people who are actually
- 5:52super passionate about what they're doing.
- 5:53They didn't go to it because they just knew from the beginning that that was it.
- 5:57It's like somehow as you get pulled in, as you master a topic and you learn more about
- 6:02it, like it, it's like this mastery and understanding leads to passion, not the other way around.
- 6:07Yeah.
- 6:07No, I totally agree with you.
- 6:09So this is something I think about sometimes.
- 6:12So I realized over the years that there are things I thought I would enjoy doing.
- 6:16So I thought it was my passion.
- 6:17So at some point I think like I would totally want to do AI research.
- 6:21And then I took three months off in travel and I realized it's like I read every day and
- 6:25write every day, but I didn't read a single paper in the three months.
- 6:28So like, it's just not something I enjoy doing.
- 6:31So I realized that I want to become the person who do AI research, but I don't want to do
- 6:36actually be doing it.
- 6:37Yeah.
- 6:37So I think those things, you just need to like spend time and think about it and like
- 6:41to just observe what you do in the three times you'll know what's so passionate.
- 6:45And so don't think of passion as something you find.
- 6:47I think passion is something you cultivate.
- 6:49So you might not know.
- 6:51So, so you know, have you ever had this moment?
- 6:53Like you study, you learn something and it's like so weird.
- 6:55You don't understand anything.
- 6:56It's like miserable.
- 6:57And it has a gotcha moment.
- 6:59Everything just makes so much sense.
- 7:00And it's just like keep doing deeper and deeper into it.
- 7:03And it suddenly becomes a passion.
- 7:04Yeah.
- 7:04So I do think that in the beginning, I think it's really useful to just try a new thing,
- 7:08but like, don't just do too short, like give it some time to actually
- 7:11actually see how much you learn, how much you grow in it.
- 7:14And I think it's no, there's no pain.
- 7:16You know, I just, there's no shame.
- 7:18It's like leaving something you don't think is for you, but you definitely need to give
- 7:21things to Tom.
- 7:22That's good advice.
- 7:23Yeah.
- 7:23A lot of people want to find that thing that they love and just go for it.
- 7:27And I think actually the answer might be just experience a lot of things and then decide,
- 7:31right?
- 7:31Which is awesome.
- 7:32So you took some CS courses and did a bunch of writing.
- 7:36And now all of a sudden you're on the other side of the podium, right?
- 7:41You're doing a little teaching as well.
- 7:42Yes.
- 7:42I don't think learning and teaching have to be mutually exclusive.
- 7:45So I started teaching when I was a student and I started out not because I was an expert.
- 7:51As a TA?
- 7:52No, as an instructor for the course.
- 7:54So I started out not because, I started teaching it not because I was an expert, but rather
- 7:58because I wanted to become an expert.
- 8:00And so in the beginning it was like, so my first course I taught as an instructor was TensorFlow
- 8:06for deep learning research.
- 8:07So at that point, TensorFlow was fairly new and I was using it in my own internship and I couldn't
- 8:12really find good training material.
- 8:15So I went to my professors and was like, hey, can you take a course on it?
- 8:19Take a course on it?
- 8:20And they were like, oh, we don't have time.
- 8:22Like, you know, for professors, you put their name on the line.
- 8:24They could have to like, and I was going to have to make a lot of investment to make it
- 8:28good.
- 8:28And they were like, why don't you do it?
- 8:29And I was like, what?
- 8:30And I was like, yeah.
- 8:31They have Stanford has this thing that you allow students to initiate course.
- 8:34So I did it.
- 8:35And in the process, so it's not really it's like having a group of people who also want
- 8:40to learn TensorFlow and learn to quit them.
- 8:41So I just tried to like anticipate a lot of questions by just Googling a lot.
- 8:46It was like, I know I spent like half of my waking hours, like a flow or something.
- 8:50So that's how I started.
- 8:52Anything now I still continue doing it.
- 8:54That's cool.
- 8:55I think you could just learn so much when you try to teach something.
- 8:58It's a really valuable way to just get deeper and deeper into it.
- 9:01And this is at Stanford, right?
- 9:02Yeah, it was Stanford.
- 9:03I think it's not so like learning, but that you realize what you don't know.
- 9:06Because, you know, sometimes you think that you know something and then you start explaining
- 9:09to people it was like, you have no idea how it goes.
- 9:13Yeah, for sure.
- 9:14The way that I think about it is like if you were, say, a consultant at a company and you
- 9:17had a programming problem to solve, like let's say you need to do something with multi-threading,
- 9:21right?
- 9:22If you find one way that works, you're done.
- 9:24You move on to the next thing.
- 9:25Yeah.
- 9:26But if there's three ways you could have done it as a teacher, you have to know what the
- 9:30three ways are.
- 9:31When should you use one versus the other?
- 9:34What are the three?
- 9:34These are questions that just a lot of times you don't have time or energy to dig into.
- 9:38But once you start teaching, you're like, well, I better know it because they're going to
- 9:40ask me.
- 9:41There's more ways than one.
- 9:42How do I do it?
- 9:43And why?
- 9:44Right.
- 9:44Like it really just makes you give it like this other perspective on trying to learn about
- 9:49stuff.
- 9:49Yeah.
- 9:49No, I think there must be like some like teaching rule.
- 9:52If there's a question you don't want to answer, students don't ask it.
- 9:55Oh, they can like use.
- 9:56Yes.
- 9:57I remember from teaching math classes as well.
- 10:00Like, you know that they're just going to hone right in on that one thing that you were
- 10:03afraid.
- 10:04Please don't ask me this thing.
- 10:05I don't totally.
- 10:06They can smell fear.
- 10:07Exactly.
- 10:09Yeah, exactly.
- 10:10All right.
- 10:10So you are doing teaching at Stanford right now, but you're also working at a new startup,
- 10:16right?
- 10:16So what are you doing today?
- 10:17That is a great question.
- 10:18I have been asking myself a question ever since I joined a startup.
- 10:22So I think startup life is great.
- 10:26I think it's so dynamic.
- 10:28We have been growing so much.
- 10:29The company has increased in size and multiple times since I joined in December.
- 10:34So it's been like less than a year.
- 10:36So it's a blessing.
- 10:37I think when I joined the Snorkel AI, I told the founding team that I'm looking for environment
- 10:43where I can learn like different aspects of business because eventually I want to start
- 10:48my own company.
- 10:48And they've been extremely supportive.
- 10:50And so in the beginning, before we launched, we were like very much heads down building the
- 10:55platform.
- 10:56So my job was like entirely on the engineering side, like building out the modeling service
- 11:01and like other features.
- 11:03And then there's a company launch and we suddenly like had a lot of interest from people.
- 11:07Like I was humble brag.
- 11:09We had two people.
- 11:10We don't have time to talk to them.
- 11:11No.
- 11:12So we still had a lot of interest.
- 11:14So I think we needed more people to like responding, like just talk to potential customers.
- 11:19So I have been spending more and more time on that side.
- 11:23So yeah.
- 11:24So recently I just decided to switch like most of the time on the go-to-market side.
- 11:30You said your ultimate goal in the long run is to do something on your own potentially.
- 11:34And those two things you talked about, those are the two really hard aspects of starting
- 11:38like one, the technical side, because you have to sort of bootstrap it and get it going.
- 11:42But the other is like marketing and get the word out, positioning, like all that stuff just
- 11:47so often on the technical side just gets ignored until you build it and no one comes.
- 11:51You're like, all right, well now what are we going to do?
- 11:53Right?
- 11:53Yeah.
- 11:54I think it's definitely, they are both like really different, difficult aspects.
- 11:59I think like another aspect is like recruiting.
- 12:01I think like, I think companies can like, like good people can like making a bet higher
- 12:06can basically like bankrupt the company early on.
- 12:09And so, so I think like one reason why I joined the company, this company I'm with is that,
- 12:14so I look at the teams like, wow, how did you manage to like convince like great people?
- 12:18And I'm saying, it's like when I said how they managed to convince great people, I mean,
- 12:21how does it manage to convince me to join them?
- 12:23I'm just kidding.
- 12:24I feel like everyone on the team is like, it's pretty great.
- 12:27But I feel like it's with a strong team.
- 12:29Yeah.
- 12:30So I think what I learned about startup life is that like, you don't just stick to an
- 12:34idea, like from beginning to end, you try out different things and try to pivot.
- 12:37You try to like, in the beginning you have a hypothesis, right?
- 12:40You think that like, this might be something people want, but you don't know for sure until
- 12:44you're actually like working with like customers.
- 12:47So over time you learn different things, you change your ideas or like maybe there's some
- 12:51like giant company launching the exact same thing and like, how do you compete with that?
- 12:55Yeah.
- 12:55So sometimes it's not about the ideas, not even about the product, but it's about the people
- 12:59because like with a strong team, even if you throw out some existing product and it be a
- 13:04new product, it can still has a chance of like competing.
- 13:06But if you have a bad team and it's a current idea proof should be like wrong, that you can't,
- 13:11you can't really recover from it.
- 13:13Yeah.
- 13:13One of the things I think is really interesting about working with small, in a small company
- 13:17like a startup is you get exposure to so many different things, right?
- 13:21You're not just the person that does billing in this way or build that part of like this
- 13:25pipeline.
- 13:26Like you have to really get your hands into many parts.
- 13:29It's stressful, but also I think you grow a lot if you get that opportunity.
- 13:32Yeah.
- 13:33I think, I think it's the discussion people have been talking about like the difference between
- 13:37looking at a big company and a small company, right?
- 13:39So like at big companies, you have to, you can't, you're allowed to like focus on one
- 13:44small thing and go really deep into it and you spend like many, many of the waking hours
- 13:48on it.
- 13:49But as startups, like yeah, many things going on and you have to like maybe like cycle among
- 13:53them like quickly.
- 13:54So let's say like at big companies, like big companies can afford to hire specialists who
- 13:59can, who can do one small things really well.
- 14:01But startups, like a lot of, they might want somebody who can do a lot of things.
- 14:06Okay-ish, like not like expert.
- 14:09Yeah.
- 14:09Yeah.
- 14:09A lot of prototypes, do it quickly, try it out, then work, do something else, find a
- 14:14gap, fill that hole, all that kind of stuff, right?
- 14:16Yeah.
- 14:17I think it's good.
- 14:17Like really depends on like the faces of life.
- 14:20I know there are people who, who really just want to like keep their heads down and focus
- 14:24on one thing.
- 14:25So, I mean, there's no, there's no shame.
- 14:27I think I have so much respect for people who can do it as I have so much respect for people
- 14:32who can like adapt quickly and learn things quickly and just like build things.
- 14:36Yeah.
- 14:36You got to find the one that works for you.
- 14:38So one of the things that you've been writing a lot about, you're working on a book actually,
- 14:42is basically about building teams in the ML space and hiring people.
- 14:48And I think that this is a big challenge right now because so much of the folks in the data
- 14:53science space is so hot and so many people are coming from different areas, right?
- 14:57Like there might be somebody doing ML, but three years ago that person was, I don't know,
- 15:03working in finance or maybe another person.
- 15:05She was like a biologist, but she got into programming and now she's doing machine learning
- 15:09because she's sort of right.
- 15:10So it's, I think it's actually a little bit challenging to hire people in this space because
- 15:16it's not just, well, show me your machine learning PhD and we'll talk about it.
- 15:20Right.
- 15:20Like there's probably not that many people in that realm, right?
- 15:24Like there's not as much traditional education in the workforce yet.
- 15:27Yeah.
- 15:28So I think I agree with you that hiring is hard, but I think that hiring is hard right
- 15:35now for machine learning for many reasons.
- 15:37I think the first reason is like, it's probably because companies don't even know what they
- 15:42are hiring for yet.
- 15:43I think because machine learning is like, it's really new.
- 15:46And if you're like imagining a company, like you have never deployed a machine learning model
- 15:50before.
- 15:51And now you're trying to start a new team.
- 15:53So you're probably like, what do you need to build a machine learning model?
- 15:56And you have no idea.
- 15:58So you probably come up with some very generic ways.
- 16:01And like you, like you say somebody who's like doing like state of the art research, somebody
- 16:05who can code really well.
- 16:07Yeah.
- 16:07Somebody who can explain what they are doing.
- 16:09So it's just like, these people just don't exist.
- 16:12Yeah.
- 16:12That's a good point.
- 16:13But I think the second thing is that machine learning itself is not new, but machine learning
- 16:18in productions, like especially from the explosion of like deep learning CNA 2012.
- 16:23I think the first major application of deep learning in industry is probably Google Translate
- 16:28in 2016.
- 16:29And since then, a lot of companies have been looking into it.
- 16:32So it means that, so I think like industry is like lagging behind like research, like a
- 16:38few years.
- 16:38Right.
- 16:38So like research like grows and you have a lot of people knowing like how to do machine
- 16:43in academic environment.
- 16:44And then like industry say, oh wait, you can actually use that like to improve our business.
- 16:48So let's do it.
- 16:49So like at that time, like, so we're in the phase when companies are looking into it.
- 16:54But most people who know machine learning comes from an academic environment.
- 16:57So they are familiar with like how to like do machine learning research, but they actually
- 17:02might not be like familiar with like doing machine in productions.
- 17:04And there are not many people who can teach them because usually you need a hands-on experience.
- 17:08So we have a very early phase of machine adoption in the industry.
- 17:12And I think like, so that's why we are liking people.
- 17:15But I think in a few years, we will have a lot more.
- 17:17And hopefully like understanding of machine in productions plus availability of people
- 17:23with actually hands-on experience will make hiring less, a lot less difficult for companies.
- 17:28Yeah.
- 17:28That's really interesting.
- 17:29I can imagine if I was hiring, say like a couple more web developers or somebody to do
- 17:35database ETL, like bring in the data and clean it up.
- 17:38Yeah.
- 17:39You already have people in your organization who do that and you can say, well, what do you
- 17:43need?
- 17:43And please talk to this person.
- 17:45But if you're creating an ML team, like I know there's really large companies out there
- 17:49that don't have a single person who's doing like productionized machine learning.
- 17:54So it's like you pointed out, like it's starting from zero.
- 17:57And a lot of times, you know, is that person who you're talking to really competent to make
- 18:02that decision or make the right trade-offs, right?
- 18:03Or even know what you're hiring the person for.
- 18:05Yeah.
- 18:06So yeah.
- 18:06So you hire the person for and also like having people to like evaluate the skills can be very,
- 18:13very hard.
- 18:14And so, so I think I say a lot of, so, so, but actually I do see some shift in the future.
- 18:19So I think like a lot of aspects of machine learning are being commoditized.
- 18:23So for example, like you're seeing a lot of pre-trained models, right?
- 18:27And people is like trained the model for you already and they open source it.
- 18:30And you have a lot of like pre-built model, like hugging face.
- 18:33So, so you can just like code API and then you can incorporate like some machine model in those systems.
- 18:38So actually like, so like a lot of tools to allow you like future engineering or like runes-based systems,
- 18:45like monitoring tools and deployment tools.
- 18:47So, so I do believe that there's a bottleneck for machine learning in production now will be in the engineering part.
- 18:54So I'm not saying that we stop doing research.
- 18:56I'm not saying that like a lot less companies will do research.
- 19:00I think that doing like the machine part can be like a few very large established company who know what they are doing.
- 19:07And then a lot of other companies who use machine learning can just like use like existing tools and platforms.
- 19:13So the challenges can be like engineering challenges and not machine learning challenges.
- 19:18Yeah.
- 19:18There's a lot of stuff that's getting pre-built out there.
- 19:20Like I think Apple ships with some pre-trained models for running on iOS.
- 19:24You've got like Azure cognitive services, stuff like that, right?
- 19:28Where you just, you kind of just bring that in.
- 19:30This portion of Talk Python To Me is brought to you by Datadog.
- 19:34Are you having trouble visualizing latency and CPU or memory bottlenecks in your app?
- 19:39Not sure where the issue is coming from or how to solve it?
- 19:42Datadog seamlessly correlates logs and traces at the level of individual requests,
- 19:47allowing you to quickly troubleshoot your Python application.
- 19:50Plus, their continuous profiler allows you to find the most resource consuming parts of your production code
- 19:55all the time at any scale with minimal overhead.
- 19:58Be the hero that got that app back on track at your company.
- 20:01Get started today with a free trial at talkpython.fm/Datadog
- 20:06or just click the link in your podcast player's show notes.
- 20:08Get the insight you've been missing with Datadog.
- 20:11So I guess one question, just thinking, sort of reversing it a little bit,
- 20:16I guess you could see it from both ways.
- 20:17If I was somebody who was looking for a machine learning job
- 20:20or I was hiring somebody,
- 20:22how much do you think that engineering side should matter?
- 20:25It sounds like it's pretty important.
- 20:27So should, say, being competent with Git and source control be important?
- 20:31Yeah.
- 20:31Continuous integration.
- 20:32Should you know something like FastAPI or Flask or something like that
- 20:36to build a service around your model?
- 20:38Yeah.
- 20:38What are the skills you think are really important there?
- 20:41I think it really depends on what type of jobs do you want.
- 20:45So I think Zezia, like, I think I want to say the term traditional machine learning
- 20:49engineering job, but I don't think machine learning engineering is that old
- 20:53to deserve the term traditional.
- 20:55But I think that people have been using the last few machine engineering
- 20:58as in, like, future engineering, creating models,
- 21:01training models, like babysitting models.
- 21:03And I think that part requires quite a lot of machine learning
- 21:05and less engineering.
- 21:07But, like, if you work to, like, set up a distributed pipeline,
- 21:10like how should you do, like, how can you process data in a parallel?
- 21:14How can you print model?
- 21:16How can you deploy model so that it can serve, like,
- 21:19a lot of requests at the same time but lower agencies?
- 21:22Then you probably need more systems and databases and machine learning.
- 21:27And if you are in the part when you want to, like, monitor the system,
- 21:31like, the maintenance and, like, monitoring,
- 21:33so you can, like, how do you, like, push updates without, like,
- 21:36interrupting the service?
- 21:38Or how do you, if something happens, like,
- 21:40how can you be alerted when some bad things happen
- 21:43and then you can address it quickly or how can you run back the system?
- 21:46Then I think a lot of it has, like, it's very similar to DevOps.
- 21:49So you need a lot more things as well.
- 21:51Right.
- 21:52So it really depends on what roles you want, the company you want,
- 21:56because I think one thing I noticed is that, like,
- 21:58companies have very different structure for their machine learning teams.
- 22:01So companies like, for example, Netflix,
- 22:05so they have this, like, separate, like, algorithm team.
- 22:08They focus on the aspect, algorithmic aspect of machine learning, right?
- 22:11But so, so...
- 22:12Yeah, the recommender engine is so important over Netflix, right?
- 22:16I mean, that's so central.
- 22:18Yeah.
- 22:18They even had that million-dollar prize to see who could recommend...
- 22:21Yeah, they do.
- 22:22...movies you should watch next best, right?
- 22:24Yeah, but it's just really funny because, like, I think, like, these competitions are great,
- 22:29but, like, the result is it very hard to actually, like, be deployed.
- 22:33So, so I think, like, I'm not saying Netflix is not using the winning result.
- 22:37I'm just saying that, like, for a lot of these competitions, like, the winning solutions are...
- 22:42Even though the winning solutions perform well on the little board,
- 22:44they tend to, like, be very hard to be deployed because the solution is way too complex
- 22:49to be reliably deployable.
- 22:52Yes.
- 22:52Oh, interesting.
- 22:53Yeah.
- 22:53Or maybe it's over-trained exactly on that one thing, and it's perfect at that, but it's
- 22:57not generalized enough or something.
- 22:59Yes, that's one thing.
- 23:01I think that's one thing we have been talking about, like, how just start a competition,
- 23:05like, leaderboard-driven oriented work is actually not very much close to real life.
- 23:10Because when you have a leaderboard, right, you tend to have one single objective you
- 23:14work toward.
- 23:15For, in this case, you know, like, how good a model with the best performance.
- 23:18But whereas in productions, you don't have one single objective.
- 23:22Like, you might have different stakeholders in the company, and they help as one different
- 23:25things.
- 23:26Like, one person might want, like, hey, we want the best performance.
- 23:29But then it's like, hey, we want the lowest legacies.
- 23:32And that is like, hey, how do we can, like, do it in a way that we can show the most ads
- 23:36without being obnoxious?
- 23:37So there's a lot of things.
- 23:39And sometimes you just optimize for one thing, like, you can't really go for other.
- 23:43I think it's some interesting example of how, like, a machining model that can do very well
- 23:49on leaderboards that's, like, not going to be useful in real life.
- 23:52So think about that.
- 23:52Do you remember that, I think about 10 years ago, it was like, so these giant retail companies
- 23:58who have been, like, trying to, like, predict whether someone is pregnant, so that they can,
- 24:03like, advertise directly to that, right?
- 24:05Yes, yes.
- 24:06So, and, like, someone found out, and then they sent, like, all the baby products to,
- 24:11like, this teenage girl, to her family.
- 24:14And, like, they didn't know about it yet, and now they suddenly know about it.
- 24:17So that's an example of, like...
- 24:18Yeah, they got really angry.
- 24:19Like, why are you sending my daughter this?
- 24:21And it turns out actually she was pregnant, right?
- 24:23Oh, my gosh.
- 24:24That's...
- 24:24Yeah.
- 24:24That's not so good for her.
- 24:26No, no, it's not.
- 24:27So that's an example of, like, it can be so good, it's creepy.
- 24:30And you don't want that.
- 24:32Or...
- 24:32Yeah.
- 24:33I think about, like, how we have a machining model that's, like, that can help the users
- 24:37to, like, solve their problem really well.
- 24:39So there are two things that can happen here.
- 24:41Like, one is that, like, it solves the problem so well, that the user is just done.
- 24:45They never have to come back to you ever again, and you just lose business.
- 24:48Or they, like, they solve the problem so well, that the user just loves the system, they keep
- 24:52coming back for more.
- 24:53So, like, it's really hard to find the linear relationship between the model performance
- 24:57and business performance.
- 24:58Yeah.
- 24:59I did really think about the relationship of these, like, competition winning algorithms
- 25:04and models and stuff.
- 25:05But, yeah, that makes a lot of sense that just because it solves that one problem, it might
- 25:09not be practical to run in production or to maintain or whatever and evolve it.
- 25:13Yeah.
- 25:13I think you need to, like...
- 25:15So I think that's why it's important for people who, like, who are in charge to, like,
- 25:19give a good sense of what they want and how to, like, balance between different objectives
- 25:24of different stakeholders in a project.
- 25:27Yeah.
- 25:28So give me...
- 25:29Put the hiring hat on for a minute.
- 25:31And if you're at a company that does not yet have an internal in-house machine learning
- 25:36team, but you think maybe you want to, maybe we can analyze all this data we have and we
- 25:41can find some trends and do more interesting stuff.
- 25:43Yeah.
- 25:43And you want to create an in-house ML team.
- 25:45Like, what advice do you have for those people?
- 25:47Okay.
- 25:47So it really depends on who you are.
- 25:49Like, you know, like, Walmart or, like, McDonald's, right?
- 25:52You just want to acquire, like, a very promising ML startup and just have an in-house team.
- 25:57And I think a lot of the big companies are, like, going for that approach.
- 26:01Yeah.
- 26:01I think another approach is that I think a lot of companies are doing is, like, to transitioning
- 26:06to ML.
- 26:06You might want to, like, use some existing talent in the company.
- 26:10So machining is new, but data science is not.
- 26:13So I think data science people, teams have been, like, a company has been having data science
- 26:17team for the long run.
- 26:18And data science teams also, like, work with data and they do a lot of it.
- 26:22They probably already have access to data and they also try to get, like, patterns from
- 26:27data.
- 26:27So I think a lot of teams, like, in the beginning, they transition, like, use data science team
- 26:32as, like, hey, why don't you learn machine learning and, like, try these things out?
- 26:36Maybe a couple of you could learn PyTorch and work on this project and get started.
- 26:41You might joke about it, but I think it's pretty much how people do it.
- 26:45And I think I see a lot of people in data science transition into machine learning.
- 26:49And I think especially now with abundance of machine learning courses, there's just so many
- 26:54courses online for free.
- 26:55Yeah.
- 26:56I think it's great that people are taking advantage of it.
- 26:58I was looking up, like, so courses, like, do you know Android machine learning course?
- 27:02Yeah.
- 27:03I haven't taken it, but I've heard of it.
- 27:04Yeah.
- 27:05I think it has, like, more than 2 million people who have taken the course already.
- 27:092 million students, right?
- 27:10Yeah.
- 27:10Yeah.
- 27:10Crazy.
- 27:11Yeah.
- 27:11Yeah.
- 27:12And it's pretty new, right?
- 27:13I think it's pretty new.
- 27:14Yeah.
- 27:14That's really crazy.
- 27:15Yeah.
- 27:15It's new compared to other disciplines.
- 27:18But I think, like, in machine learning, it's, like, one of the older courses.
- 27:21So I think a lot of teams do that.
- 27:23And I think, but I think, like, for companies who do that, I think one, too, like, hopes that
- 27:29they just, like, to look into the difference between data science and machine learning.
- 27:32So data science is, like, to look at data, like, the output, like, insight, like, to help
- 27:38make decisions about business.
- 27:40For us, you can predict the, like, how much the customer demand in the future or, like,
- 27:44yeah.
- 27:45But machine learning is, like, the goal is to have, like, to build product, to be, like,
- 27:50engineering.
- 27:50So for data science, like, you want people with stronger statistics skills because you look
- 27:55at the data and get insight.
- 27:56But for machine learning, it's more engineering.
- 27:59So you want somebody with, like, stronger engineering skill and less that, yeah.
- 28:03Right.
- 28:04So as a data scientist, maybe your output might be, here's a Jupyter notebook with a Plotly
- 28:09analysis of what we're thinking.
- 28:12Whereas as a machine learning person, your output is, here's the API that gives you the answer.
- 28:17Yes, you can think of it that way.
- 28:19Something like that?
- 28:19Yes, yes.
- 28:20Something like that, yeah.
- 28:21Okay.
- 28:21So I think this is a very different focus.
- 28:24I'm not saying just, like, I'm not trying to make a general statement here.
- 28:27I'm just saying just, like, just from talking to a lot of people, I tend to notice that,
- 28:31like, data scientists are seeing much better statistics, whereas, like, machine engineers
- 28:35are much better engineers.
- 28:36Yeah.
- 28:36Yeah, I've seen that as well in some of the trends.
- 28:39So.
- 28:39Yeah.
- 28:39It seems totally reasonable.
- 28:41Let's reverse this a little bit.
- 28:43So we were talking about if you want to build a team.
- 28:45And you did point out, by the way, bringing someone in from the inside.
- 28:48Like, I feel like data science, more than software developer, that role needs to be sort of intimately
- 28:56familiar with the way that the business works and the way the data is collected and all the
- 29:01little idiosyncrasies around it.
- 29:02And so having somebody who already knows all that stuff, and now you're just like, okay.
- 29:06Yeah.
- 29:06Adapt that to machine learning might be easier than getting somebody who's good, but has no
- 29:11experience in the business.
- 29:12I think, like, I make a living out of, like, saying that I know machine learning, right?
- 29:16So, of course, I want to, like, make machine learning as hype as possible.
- 29:20But I have to admit that, like, machine learning for a lot of, like, simple models, you don't
- 29:25need to learn.
- 29:26You don't need to spend years and years and years of, like, learning to, like, be able to
- 29:31use simple models.
- 29:32So I think that's, like, one thing I noticed is, like, it's actually a lot easier for good
- 29:38engineers to, like, pick up machine learning.
- 29:40I've done for machine learning experts to pick up, like, good engineering.
- 29:43Gotcha.
- 29:43Yeah.
- 29:44So, like, if I was to start a team, I would probably try to get, like, really good engineers
- 29:49and have them learn machine learning and then, like, apply machine learning.
- 29:52Then, like, to hire machine learning experts and then, like, having them, like, spend, like,
- 29:56several decades to become good engineers.
- 29:58Yeah.
- 29:59That's a really good perspective.
- 30:01Yeah.
- 30:01All right.
- 30:02So switching the role here to being interviewed for a machine learning job.
- 30:07So you're working on this book for machine learning interviews.
- 30:11It gives you, like, a sense of sort of if you're going to go apply for one of these jobs,
- 30:15what are some of the skills and things you might expect to be asked about and so on, right?
- 30:19Want to tell us quickly about that?
- 30:20Yeah.
- 30:21So this is a book I've been working on for, like, oh, my God, a year and a half now.
- 30:25Do you know, like, how it has so many great plans for 2020 and none of them happened?
- 30:29I think this is what's the case.
- 30:30That's the case with my book.
- 30:31I think it has so much great plan for it, like, and then, like, boom.
- 30:35So, yeah.
- 30:36So it's a slow.
- 30:37It's coming along.
- 30:38So I think my book is not just a book for, like, here are the questions they're going to ask you or, like,
- 30:43how to answer them.
- 30:45I think part of what I want to do with the book is to have some standardizations or understanding into the process.
- 30:51I think it's new in the industry.
- 30:53So it's new for both interviewees and interviewers.
- 30:56So, for example, people still ask me, like, people would be confused, like, what is a machine engineer?
- 31:01What is a data scientist?
- 31:03Like, what's the difference between big company and small company?
- 31:06What is the hiring process?
- 31:08What skills do you need?
- 31:09So I think there's just so many skills that one might need, but usually, like, you don't need all of them for a single role.
- 31:16So I think my book is pretty, definitely start from it.
- 31:18It's a different, I think I lost you.
- 31:20Sorry, I don't know what happened to my network.
- 31:23It just said that it lost and, like, all my stuff disconnected.
- 31:25But we're back.
- 31:26Yeah.
- 31:27So we were talking about the book and you said it wasn't just for people, like, to know what the questions and answers were,
- 31:33but that it, like, it's such a new industry that it's both new for interviewers and interviewees.
- 31:38And I think we were going from there.
- 31:40Okay.
- 31:40Yeah.
- 31:41So part of the book, it should give some understanding, standardization, and it should be a process of differences between different type roles.
- 31:48Like, what is a data scientist?
- 31:49What is a machine engineer?
- 31:51Or what is a research engineer?
- 31:52Also, like, it's a difference between, like, for example, like, machine engineering and data science and MLOps.
- 31:58So it's going to, like, get a good picture of the process, what skills are needed for each process.
- 32:04And I see interview and interview pipeline, building pipeline.
- 32:08Yeah.
- 32:09And a lot more.
- 32:10Yeah, that sounds, look, we need all the help I think we can get for fixing the interview process.
- 32:16Oh, my God.
- 32:17In software development and data science.
- 32:19It seems so broken to me.
- 32:20I've had some friends who have gone through it recently, and it just seemed really, really rough.
- 32:27And I actually did an episode.
- 32:28Wait, let me do a quick search.
- 32:30What are some of the highlights of the, like, pinpoints?
- 32:34I think a lot of it is you get asked to work on, like, low-level algorithms, like, explain or create or recreate low-level algorithms, sometimes even just on a whiteboard.
- 32:45Yeah.
- 32:46Where, like, you know, go create quick sort.
- 32:48And then never, ever in your job will you ever go and create quick sort.
- 32:52Or something like that, right?
- 32:53Yeah.
- 32:54Like, you would just go to the list and say dot sort, and it would be done.
- 32:57I interviewed Susan Tan a while ago, back up, way, way, way, in episode 123.
- 33:03And she said, she did a talk called Lessons from 100 Straight Developer Job Interviews.
- 33:08I think she was in San Francisco as well.
- 33:10I'm pretty sure if I remember correctly.
- 33:12A hundred is so much.
- 33:14She literally did a hundred and then, like, took notes about what worked.
- 33:18Oh, my God.
- 33:19You know, you'll get, like, these big, like, homework projects.
- 33:22Yeah.
- 33:22Right?
- 33:22Like, work on this for, like, a week.
- 33:24And then, you know, there's a hundred applicants.
- 33:25So, like, the energy put into that is often not.
- 33:29Anyway, I think helping both sides of that story would be really good.
- 33:32Yeah.
- 33:33I would definitely love to, like, read her interview because it sounds exactly like what I've been working on.
- 33:38I'm curious.
- 33:39Does she, like, propose, like, what are some things that work?
- 33:43She did, and it's been, gosh, it's been, like, two or three years since I spoke to her about it.
- 33:48But I know she had some advice for, like, these things were really bad.
- 33:51And these things I experienced were really good.
- 33:53Yeah.
- 33:54And so, she basically laid out, like, what are some bad interviews I had and what are some good ones and why?
- 33:58And I think probably in there you could pull out some good advice.
- 34:01Yeah, this is, like, really interesting because I think, like, before, as I was still, like, interviewing for jobs, I was, like, I have so much to complain about the interviewing process, right?
- 34:11But now, as a part of, like, a startup and we're trying to build the reading pipeline, we realize that it's really hard.
- 34:17Like, even though we complain about the existing pipeline, it's really hard to come up with something that is better.
- 34:23So, I think it's just, like, too many.
- 34:25So, the first of all is, like, interviews are just, like, proxy to evaluate somebody's skills, right?
- 34:31Yeah.
- 34:32So, you know, like, how even, like, so, like, this example, I know it's maybe, like, not very exact, but, like, first of all, I think about dating, right?
- 34:39You try to find somebody and it's just approximate whether that person is a good fit for you and you might go dating for, like, years.
- 34:45And you still end up with, like, some bad partner, if possible, right?
- 34:48So, like...
- 34:49Exactly.
- 34:50The divorce rate's, like, 50% or something, right?
- 34:53Like, we're not totally getting this nailed.
- 34:55Yeah.
- 34:56So, I think, like, for job interviews, like, you try to, like, admittedly, like, the stake is lower.
- 35:01It's, like, for a job, not for a partner.
- 35:03But you still have much less time, right?
- 35:05Like, you only have, like, a resume.
- 35:06Everyone say you shouldn't keep the resume longer than one page.
- 35:09You have one page of that.
- 35:10And then you maybe go on LinkedIn, social media, local things.
- 35:13And then you have, like, a few hours.
- 35:14Like, it's really hard to, like, get a good picture from it.
- 35:18And a lot of it's, like, biases, like, because interviewers are humans.
- 35:21And even though we try not to, like, we learn, we are taught that you shouldn't let biases,
- 35:27you shouldn't decide, like, judge people beyond that.
- 35:29But something we, like, we grew it.
- 35:32Like, something is, like...
- 35:33Yeah.
- 35:33We just do it without even, like, being conscious of doing so.
- 35:37And also, like, it's very different for different people because something that might work for
- 35:41a group of people might not work for as a group of people.
- 35:45So I think, like, for example, like, we have been trying to debate on take-home challenges.
- 35:49So a lot of candidates told us, like, oh, my God, interviews, like, so stressful.
- 35:53Like, one-on-one is really hard.
- 35:55Why don't you just give a take-home challenge?
- 35:56Like, just make it, like, I don't know, make it hard.
- 35:58We're going to spend, like, a day on it.
- 36:00When it be done, and you can see how good a way we are.
- 36:02But then, like, we thought about it, and we talked to people.
- 36:05And then we realized, like, for people who have a lot of responsibilities outside of work,
- 36:10like, especially, like, for example, women or, like, people with small kids,
- 36:13they can't spend a day, like, do or take-home challenges.
- 36:15So I think, like, it's what might work for me.
- 36:18Yeah.
- 36:18And if they apply to 100 jobs, then all of a sudden that's half a year or something like that, right?
- 36:22Yeah.
- 36:23Yeah.
- 36:24So it's very hard.
- 36:25So some companies, some people told me that, oh, they like this concept, like that company,
- 36:29when they bring you on to, like, as an intern-ish for, like, a month, they pay you.
- 36:34And then if you do well, then you can get a job.
- 36:36And somebody say, oh, that's great, because now everyone gets a chance to, like, show how good they are at the job.
- 36:40But then not everyone can afford to, like, just go on a job without any commitment for, like, for a month, right?
- 36:46And it's going to be totally excluded on immigrants.
- 36:48Like, for example, if somebody needs visa sponsorships, they can't just go and work for it.
- 36:52Right.
- 36:52It's a very precarious situation if your presence in the country is based on, you know, you have to have a job.
- 36:59And if it lapses for more than a month or two, then you've got to leave.
- 37:03That's really stressful.
- 37:03Yeah.
- 37:04Yeah.
- 37:04So I think it's really hard to find something that can work for everyone.
- 37:07Yeah.
- 37:08So a couple of thoughts.
- 37:09One, it's been a very long time since I hired anybody.
- 37:12But I used to help with hiring people to do training, people who would become trainers to teach, you know,
- 37:18basically for professional development for software developers.
- 37:21And we would obviously go through the resumes and see if they made any sense.
- 37:24And then we would just do a quick, like, 30-minute call.
- 37:27And I would say, okay, so imagine this person says, I'm a Python expert and I specialize in Flask.
- 37:33All right, we're on a Zoom call.
- 37:34Share your screen.
- 37:35Build me a Flask app that has one function that returns JSON.
- 37:39If I give it two numbers, it adds them.
- 37:42I mean, like, anybody who's ever worked with Flask should be able to knock that out in five minutes.
- 37:47And you can tell from, like, one minute in, is that person on that path to, like, get there?
- 37:52Because they know you start with import Flask and then you create app equals Flask.
- 37:55Or are they just flailing about, right?
- 37:58They just have no idea.
- 37:59And there's no way that they can both be an expert in Flask and not be able to create, like, a Hello World app in it, right?
- 38:07And so, I mean, that was the first sort of filter we used before we actually would ask them the equivalent of, like, here's a take-home project or something.
- 38:15It's just like, show me live that you're semi-confident with the tools you claim to be, like, top-notch in, right?
- 38:22And that actually worked pretty well, I think.
- 38:24I was blown away at how many people would claim to be, like, I've done five years of this and I'm a super expert and I'm ready to teach it to other people.
- 38:30And then they can't even begin to touch it.
- 38:32So, I think that's an interesting interview approach.
- 38:35But I also find it's, like, for, if we do interviews, it's very, like, tailored, like, specific, like, overfit to a specific tool.
- 38:42Then we might find people who are really good at one tool, but then don't really just, like, scale, like, right at a range of scale.
- 38:48And I think that for startups, if, like, if a fast-changing company where you need to, like, have a lot of, like, new problems and have to keep, yeah, we will have to, like, keep learning new things.
- 38:57If you just, like, get someone who's really good at, like, one thing and they can't generalize the other.
- 39:02Sure.
- 39:02What I was trying to more find, what we were trying to discern was they said they were expert at this thing.
- 39:09Yeah.
- 39:09Are they actually, like, how much can you trust?
- 39:12So, if they can show they're expert at this thing they said, then probably the other stuff that they said they're pretty good at.
- 39:16They're probably also in that realm.
- 39:17Yeah.
- 39:18But if they're, like, really far from, like, how they describe themselves in one axis, then they're probably not really going to be in a good fit.
- 39:25So, yeah.
- 39:26I don't know.
- 39:26It worked okay.
- 39:27We didn't do that much hiring.
- 39:28This portion of Talk Python To Me is sponsored by Linode.
- 39:32Simplify your infrastructure and cut your cloud bills in half with Linode's Linux virtual machines.
- 39:36Develop, deploy, and scale your modern applications faster and easier.
- 39:40Whether you're developing a personal project or managing large workloads, you deserve simple, affordable, and accessible cloud computing solutions.
- 39:48As listeners of Talk Python To Me, you'll get a $100 free credit.
- 39:52You can find all the details at talkpython.fm/Linode.
- 39:57Linode has data centers around the world with the same simple and consistent pricing regardless of location.
- 40:02Just choose the data center that's nearest to your users.
- 40:05You'll also receive 24-7, 365 human support with no tiers or handoffs regardless of your plan size.
- 40:12You can choose shared and dedicated compute instances or you can use your $100 in credit on S3 compatible object storage, managed Kubernetes clusters, and more.
- 40:22If it runs on Linux, it runs on Linode.
- 40:24Visit talkpython.fm/Linode or click the link in your show notes.
- 40:29Then click that create free account button to get started.
- 40:32The other thing that I wanted to bring up is, did you hear that Guido Van Rossum just joined Microsoft?
- 40:37Oh my God, yes.
- 40:39I think, yes.
- 40:40Yeah, I was like, it was really interesting.
- 40:43What was the thought on it?
- 40:44So he said, basically, he's been retired for six months.
- 40:47He's like, I'm really bored with this.
- 40:48I want to go back to do something.
- 40:49There's a ton of cool open source stuff going on there now.
- 40:52And, you know, he gets to work with some of the other language teams and make Python, basically just focus on Python and be around it.
- 40:58Yeah.
- 40:59And that's all interesting.
- 41:00And I think it's actually kind of a big deal that that happened.
- 41:02And it's like a really big contrast from Microsoft 10 years ago that this is even possible.
- 41:07But the thing that I want to bring up specifically now is somebody on Twitter asked him, so did you actually have to send in a resume, Guido, before they hired you?
- 41:16And he said, yes.
- 41:18Yeah.
- 41:18He had to send in a resume.
- 41:20He went through a bunch of interviews.
- 41:22The interviews make sense, but he had to send in his resume and he had to provide his degree he got in university.
- 41:28And like his transcript, like his grades and stuff he got in college.
- 41:31That's what I don't get.
- 41:33And I'm just thinking like, who cares if he got an F in literature or didn't?
- 41:40Like, look what he's accomplished since then.
- 41:42It doesn't matter.
- 41:43But that's just another one of these hiring things, right?
- 41:45Well, we got to check the box.
- 41:46We need his like university degree in transcript.
- 41:49This is so funny.
- 41:50Or this technical fellow.
- 41:51Does that remind me of like a few years ago?
- 41:54Do you know Malala?
- 41:55She was like the youngest Nobel recipient for Nobel in Peace?
- 41:59No, no, Malala?
- 42:00Yes.
- 42:01Yes, I do.
- 42:01Uh-huh.
- 42:02Yeah.
- 42:02It's really funny because like at the time she was like, oh, she wanted to study at Stanford.
- 42:06And like Stanford was like, yes, but what's her SAT score?
- 42:09And everyone was like, she's like youngest recipient in Nobel Prize for Peace.
- 42:13And you're asking her like, what's her SAT score?
- 42:16I thought it was just like, yeah.
- 42:17Just going to cram them through the bureaucratic pipeline.
- 42:21It's so funny.
- 42:22Yeah.
- 42:22All right.
- 42:23So what are some of the other takeaways that you're like hoping to give in this book?
- 42:27And you also have a chapter that's open on GitHub People Can Download, right?
- 42:32Yeah.
- 42:32So this is the chapter.
- 42:33So I think one part of the interview a lot of people ask is a machine learning system design.
- 42:39And so the question is usually like, yeah, like if you want to like build a system to do that, how would you do it?
- 42:46So it's very design high level kind of questions.
- 42:49And I think, so first of all, one question could be like, if you try to build a system to predict what keyword is trending on Twitter, then what would you go about it?
- 43:00Like what is considered trending and blah, blah.
- 43:02So I think this question is very interesting because it's usually like try to measure the understanding of like the different part of the system and not just like machine learning.
- 43:12But also find that questions can be like pretty, very hard for especially junior candidates because they don't have a good graph of like what is a production environment.
- 43:22So some companies.
- 43:23Yeah.
- 43:24A lot of times you have to see examples of that or have built examples of that to know like, well, these are the five pieces we got to put together.
- 43:30And then you do it, right?
- 43:31Yeah.
- 43:31So originally I wrote it as part of the interviews book, but then as I start writing more about it and I learning more about it, it was like, oh my God, there is like so much more in machine learning system design.
- 43:43So now it's actually become like a full blown book on its own.
- 43:47So that's why it's taking me longer.
- 43:49And I'm actually like teaching you a course on it, like machine learning system design, just on that part.
- 43:53Oh, that's cool.
- 43:54And you're teaching that in January.
- 43:56Is that right?
- 43:57At Stanford?
- 43:57Yes.
- 43:57And I'll be in January at Stanford.
- 44:00Yeah.
- 44:00It's a bit strange because I'm not sure how teaching online is going to go.
- 44:05I'm a bit, a little bit nervous about that.
- 44:07Yeah.
- 44:08It's not the same as standing in front of the class and having that experience.
- 44:11That's for sure.
- 44:11Yeah.
- 44:12But most people told me that it's a different experience because some students like it more because especially for the introvert.
- 44:18Now they can just like ask questions anonymously without having to raise their hands and having anyone stare at them.
- 44:24So it's going to be interesting.
- 44:25I'm looking forward to it.
- 44:26Yeah.
- 44:27It should definitely be interesting.
- 44:28All right.
- 44:28I think we're just about out of time, but maybe just real quickly, you could give us the elevator pitch on Storkel, Snorkel AI and what you guys got going on there.
- 44:37Ooh.
- 44:37Okay.
- 44:38So I think like for the pitch, I think you can just say why I decided to join Snorkel.
- 44:43So it's funny because it's a startup that comes out from Stanford AI lab and I have heard of them for a while.
- 44:49And when it first approached me, I was like, oh my God, another startup from Stanford.
- 44:53I know it sounds super smart, but I was like, oh, startup AI, whatever.
- 44:57But then I came across the paper.
- 44:59So most of the founding teams are like PhD students and they have been publishing a lot.
- 45:05I read one of their papers and I was like, this is really smart.
- 45:09So the key idea for their paper was that like, instead of manually label on the data, right?
- 45:15You can have some heuristics and causal heuristics into programming functions and apply to all the data at once.
- 45:22That's the really hard thing about training your models is you get like all the state that you have to say car, bicycle, ball, tree, right?
- 45:30And you just got to like go through it and teach it basically.
- 45:32Yeah.
- 45:33So you notice a helpful like labels.
- 45:35Like for example, you see like an email with a spam or not spam, right?
- 45:38You probably notice you probably have some heuristics.
- 45:40Like, hey, if you say like, hey, you're going to have like, hey, please send me money to like Nigerian Prince or something like you're going to spam.
- 45:48So, so you have some like heuristics in the brain.
- 45:50Like, so if you can find what you end cause of heuristics and you don't have to manually do it on at once.
- 45:55So I think that's the algorithm.
- 45:56So like how should I combine because some heuristics are going to be noisy and like overlapping and they can't see each other.
- 46:02So the current algorithm was like how should I combine one of them and I generate like what the techniques of.
- 46:08most likely to be correct gradsures because you don't have gradsures actually compare gradsures.
- 46:12So then you generate the set of gradsures and then you, and so they, they open source support.
- 46:19So like anyone can just go on GitHub and use it.
- 46:21So I went to the core and thought like, wow, these people are like good engineers.
- 46:25Because you think of like PhD students are like bad engineers, but then they, their core is like good, very clean.
- 46:31They have more testing and everything.
- 46:32Like unit tests.
- 46:33Oh my God.
- 46:34No.
- 46:34So, no, no.
- 46:38So, so I think the product now is a, it's not just a part because actually a lot of thing of snorkels is thing of that labeling part, but we actually be like a full non like a end to end platform.
- 46:49So we have your format data to like modeling training.
- 46:52Like we do a lot with like monitoring analysis because we believe that you can't, machine learning is because it's changing fast and each updates on models constantly.
- 47:02And so we believe in iterative development.
- 47:04So like you have a, you, you train model and you see it and it's not good.
- 47:08So you go back and see what's wrong and how do you improve it.
- 47:10And like you manage more data.
- 47:11So, so we version everything as a process, by the way.
- 47:14And so.
- 47:15That's cool.
- 47:15It's like agile data.
- 47:17We don't use agile yet, but if it's one of the buzzwords of sales and maybe we can adopt it.
- 47:23Yeah, I know.
- 47:24I'm just teasing.
- 47:24It's one of my buzzwords.
- 47:25I'm just kidding.
- 47:25Oh my God.
- 47:27Please, somebody from snorkel, please don't fire me.
- 47:29But, but yeah, so, so we do a lot of, so it's an end to end platform for people to build machine, AI applications.
- 47:37And it goes on data model, monitoring analysis.
- 47:41And I think it's pretty dope.
- 47:42You guys should totally check it out.
- 47:44Yeah.
- 47:44Right on.
- 47:45Awesome.
- 47:45Well, it sounds like a cool company to work for and definitely nice applied machine learning stuff.
- 47:51So building tools for machine learning folks, right?
- 47:54Yeah.
- 47:54Awesome.
- 47:55I think it's for machine learning folks, but I think like.
- 47:57All right.
- 47:57We recently wanted to lower the entry barriers for people to build AI applications.
- 48:01So I think like, so our platform is actually no code.
- 48:05So like you have the option to just build an application without any code at all.
- 48:09But we also have like our SDK.
- 48:10So like for people who want more like flexibility, then you can also like code.
- 48:15Yeah.
- 48:15Very nice.
- 48:16All right.
- 48:16Well, good luck with the whole company and the startup.
- 48:19Hopefully it takes off and does well.
- 48:20It sounds nice.
- 48:21Yeah.
- 48:21Yeah.
- 48:21Thank you.
- 48:22So we're pretty much out of time, but yeah.
- 48:24Thanks for all the advice on building machine learning teams or getting to be part of one.
- 48:28Now, before you go, there's always the two questions I ask at the end of the show.
- 48:32And one is if you're going to write some code, some Python code, what editor would you use these days?
- 48:37So sometimes I really want to be smart and say it's like I use Vim, but actually just use VS Code.
- 48:43VS Code is definitely the most popular answer these days.
- 48:47It's all good.
- 48:48And notable PyPI package, like something, some Python library or package that you've come across like, oh, this was so cool.
- 48:54People should know about X.
- 48:56I'm not sure.
- 48:57Is this, so, so, so, do you know about, I think it's like Paper Mill.
- 49:00So it just allows you to format.
- 49:02Yeah.
- 49:03I think it's pretty cool.
- 49:04It allows you to do a lot of experiments with like Jupyter Notebooks.
- 49:07I think.
- 49:08Yeah.
- 49:08And Paper Mill comes out in Netflix.
- 49:10So it's a neighbor of yours.
- 49:11And.
- 49:12Nice.
- 49:13Yeah.
- 49:13The idea is you can almost treat Notebooks like functions, right?
- 49:16Like you can pass arguments to them, run them and get like something out and then even chain them together.
- 49:20Yeah.
- 49:21And one of the things I heard was really nice about it is if you create sort of data pipelines of one notebook going to the next, the next.
- 49:27And if something goes wrong, like the notebook actually contains like all the data that came in and what it tried to do and how far it got.
- 49:34Yeah.
- 49:34And it's like almost a record instead of just like server failed with 500.
- 49:38Like, no, like here's all the details.
- 49:40You can go back and look at it.
- 49:41Yeah.
- 49:41It's pretty dope.
- 49:41I think, I think it's really cool.
- 49:43I think there's been like so many exciting work in the notebook space.
- 49:47I think it's a real like Streamlit.
- 49:48I think Showlit is like, it's like really cool.
- 49:51Like you create like very quick applications.
- 49:53I mean, there's just so many.
- 49:55Yeah.
- 49:55That's really nice as well.
- 49:56Yeah.
- 49:57What's your, which is your favorite?
- 49:59My favorite.
- 50:00Oh my gosh.
- 50:01You know, there's all these different ones that always blow me away.
- 50:04I go through so many of them.
- 50:06One that I came across recently that was pretty neat is called a back off.
- 50:09Someone told me about that.
- 50:10And back off what you do is just put a decorator on one of your functions.
- 50:13You say, if I get this kind of error, like this type of exception.
- 50:16Yeah.
- 50:17Like wait five seconds and then try again and then wait 10 seconds and then try again.
- 50:20So if you're doing like testing against like an API and you get like a too many requests error,
- 50:26you can say instead of fail the test, just wait one second and try again.
- 50:29This sounds pretty dope.
- 50:31I think I need to check it out.
- 50:33Yeah.
- 50:33Yeah.
- 50:34Yeah.
- 50:34It's super easy to use, but it kind of solves that problem of like mostly reliable, but not
- 50:38all the time reliable stuff.
- 50:39Do you like stars things on GitHub when you see repos that you like?
- 50:43I do.
- 50:44Yeah.
- 50:44I star stuff all the time.
- 50:46Yeah.
- 50:46Can I just go into those, can I see you go to the star list and let's see like what have
- 50:50you been like looking at?
- 50:51Yeah.
- 50:52So github.com/Mike C. Kennedy.
- 50:54And let's see, I'll pull up my stars and see where are the things that I've starred?
- 50:59There we go.
- 51:00So the things that I have up here right now, that's a really good question, by the way,
- 51:04like really cool way to look at it.
- 51:05So I have pip chill, which is like pip.
- 51:08You know, if you do pip freeze, it'll show you what you've installed.
- 51:11Pip chill will like pip freeze will include everything that was installed, including the
- 51:15dependencies.
- 51:15Pip chill will just show you just what you manually installed, not the dependencies, which is cool.
- 51:21Nice.
- 51:22Then link it, L I N Q I T adds like link functionality to the Python language is cool.
- 51:28I love the name, by the way, pip chill.
- 51:31Pip chill, yeah, it's so good.
- 51:33And then I have a FastAPI chameleon and FastAPI Jinja, which adds like those templating languages
- 51:40to FastAPI as a decorator.
- 51:42Oh, you saw MB black is cool.
- 51:44Yeah.
- 51:45Yeah.
- 51:45MB black adds black to notebooks.
- 51:47Yeah.
- 51:47So those are the ones I've starred recently, I guess.
- 51:49I'm so funny.
- 51:50So those are all good.
- 51:51So you saw like a lot of FastAPI, but still still a lot of flask.
- 51:55Do you have like, you prefer one of another?
- 51:58Yeah, I do.
- 51:58I really like FastAPI.
- 52:00I've been liking it a lot.
- 52:01Oh, it's brilliant.
- 52:02Yeah.
- 52:03I think it's, yeah, it's so brilliant.
- 52:05It takes all the cool modern features of Python and puts it together.
- 52:08So let me make one recommendation for you.
- 52:10Check this out.
- 52:11I just want to get your reaction to this for people as a data science machine learning
- 52:15person.
- 52:15Hand calcs.
- 52:16What is that?
- 52:17Have you, have you seen hand calcs?
- 52:19No.
- 52:19So hand calcs is crazy.
- 52:21So what this does is you write, you create a Jupyter notebook.
- 52:23Yeah.
- 52:24And you write some sort of math equation that is actually just the computation.
- 52:28And then you can ask it to show you, and it'll show you as if it wrote it in LaTeX.
- 52:32What?
- 52:33Like step by step, like how, yeah, like how it solved out the problem.
- 52:37So it'd have like, like the nice square root.
- 52:38So if you're doing some kind of like computation that's somewhat technical and hard.
- 52:43Yeah.
- 52:43In Jupyter, it'll actually show you like what you would put into like a math textbook or a
- 52:48physics textbook to derive the equations and even the steps you might take to go from what?
- 52:52Can it do proof for you?
- 52:54I don't know how far it can go with a proof, but if you just go to like Google hand calcs.
- 52:59Wait, how do you spell it?
- 52:59There's a bunch of animated GIFs.
- 53:01How can you say the name?
- 53:03H-A-N-D, C-A-L.
- 53:05H-A-N-D.
- 53:06C-S.
- 53:07Like.
- 53:07Oh.
- 53:07C-A-A-L-C-S.
- 53:10Like hand calculations.
- 53:11Okay.
- 53:11Is this, is this from corner first?
- 53:14Yes.
- 53:14Oh, that's dope.
- 53:16And.
- 53:16Oh yeah.
- 53:17If you just page down through it, you can see like all these amazing steps.
- 53:20You can like render like symbolic mathematics and like the steps between various things.
- 53:24Yeah.
- 53:24It's really, really.
- 53:25So if you were doing like complex calculations.
- 53:28Whoa.
- 53:28That you want to make sure you got right.
- 53:30Like reading the Python code to do it is harder than like reading the symbolic mathematics of it.
- 53:36Wait, how does it do this?
- 53:37Yes.
- 53:38I have no idea.
- 53:38But it uses like Sempy and a bunch of other LaTeX and all sorts of crazy stuff.
- 53:43So as a data scientist, like this thing is killer, I think.
- 53:47That is pretty dope.
- 53:48Nice.
- 53:49Thanks for showing me.
- 53:50I'm going to show it to my friends.
- 53:51Yeah.
- 53:52Yeah.
- 53:53There you go.
- 53:53So there's, there's a topical recommendation.
- 53:56How's that?
- 53:56Nice.
- 53:57That's helpful.
- 53:58Thank you.
- 53:58That's dope.
- 53:59Of course.
- 54:00Cool.
- 54:01All right, Chip.
- 54:02Well, I think we're about out of time, but I just want to say thank you for being on the show and sharing all of your advice.
- 54:07And I guess one final question, if people are interested, if they're out there looking to do some machine learning, are you guys hiring?
- 54:14Yes.
- 54:14We are hiring a lot, actually.
- 54:18That's actually one of our challenges.
- 54:21Like how to give on, yeah, hiring a large quality of like quantity of very good people.
- 54:27Yeah.
- 54:27That's, that is definitely a challenge, but we'll put a link maybe over to like the jobs page or something.
- 54:31If you want, people can check it out.
- 54:33This has been another episode of Talk Python To Me.
- 54:37Our guest in this episode has been Chip Hewn, and it's been brought to you by Datadog and Linode.
- 54:42Datadog gives you visibility into the whole system running your code.
- 54:46Visit talkpython.fm/datadog and see what you've been missing.
- 54:51We'll throw in a free t-shirt with your free trial.
- 54:52Simplify your infrastructure and cut your cloud bills in half with Linode's Linux virtual machines.
- 54:58Develop, deploy, and scale your modern applications faster and easier.
- 55:01Visit talkpython.fm/linode and click the create free account button to get started.
- 55:06Want to level up your Python?
- 55:08If you're just getting started, try my Python Jumpstart by building 10 apps course.
- 55:13Or if you're looking for something more advanced, check out our new async course that digs into all the
- 55:18different types of async programming you can do in Python.
- 55:21And of course, if you're interested in more than one of these, be sure to check out our Everything Bundle.
- 55:26It's like a subscription that never expires.
- 55:27Be sure to subscribe to the show.
- 55:30Open your favorite podcatcher and search for Python.
- 55:32We should be right at the top.
- 55:33You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 55:38and the direct RSS feed at /rss on talkpython.fm.
- 55:43This is your host, Michael Kennedy.
- 55:44Thanks so much for listening.
- 55:46I really appreciate it.
- 55:47Now get out there and write some Python code.
- 55:49Thank you.
- 55:49Thank you.
- 56:09Thank you.