Latest / Talk Python To Me / #193: Data Science Year in Review 2018 Edition
Transcript
- 0:00This year, 2018, is the year that the number of data scientists doing Python
- 0:04equals, maybe even exceeds, the number of web developers doing Python.
- 0:09That's why I've invited Jonathan Morgan to join me to count down the top 10 stories
- 0:13in the data science space.
- 0:14You'll find many accessible and interesting stories mixed in with a bunch of laughs.
- 0:19We hope you enjoyed it as much as we did.
- 0:22This is Talk Python To Me, recorded November 25th, 2018.
- 0:26Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the
- 0:44ecosystem, and the personalities.
- 0:46This is your host, Michael Kennedy.
- 0:48Follow me on Twitter, where I'm @mkennedy.
- 0:50Keep up with the show and listen to past episodes at talkpython.fm.
- 0:54And follow the show on Twitter via at Talk Python.
- 0:56Jonathan, welcome back to Talk Python.
- 0:58Hey, Michael.
- 0:59Thank you so much.
- 1:00It's super awesome to be back.
- 1:01And it is great to have you back.
- 1:02Where have you been?
- 1:03I've been like a thousand places.
- 1:04I have not been podcasting.
- 1:06I feel a little bit guilty about it.
- 1:08Very much miss the partially derivative audience.
- 1:11Very much miss being on the show.
- 1:13I don't think we did this last year, so I'm super pumped to be doing this again.
- 1:16But it's because I've been doing two things.
- 1:20I have a company, New Knowledge.
- 1:22We're focused on disinformation defense, so a lot of data science.
- 1:26Ultimately, we like to think that we're protecting public discourse, improving democracy, big
- 1:30things like that.
- 1:31Not at all pretentious.
- 1:32That is a really awesome goal.
- 1:34And I suspect you've probably been busy, right?
- 1:36I'm just saying.
- 1:37It's a lot.
- 1:38It's a lot.
- 1:38I mean, we've perhaps bitten off more than we can chew.
- 1:41It's like every month we expect that to be fading from public consciousness.
- 1:45Like, all right, this is the month when people are going to get tired of talking about
- 1:49online manipulation and Facebook and Twitter and everything.
- 1:51And then every month, it's like it gets worse, which is, you know, it's like it's a thing.
- 1:55But it's great.
- 1:56And then there's also Data for Democracy, which is the nonprofit that I work on as well.
- 1:59And that's a community of about now 4,000 technologists and data scientists who are working
- 2:04on social impact projects.
- 2:05So also kind of mission aligned.
- 2:07You know, democracy is cool.
- 2:08But yeah, between those two things, I haven't had as much time to podcast as I would have
- 2:13liked.
- 2:14But I'm glad, you know, back on the saddle.
- 2:16Well, I'll say if you're going to hang up your headphones and your microphone, you've hung
- 2:19them up for pretty good reasons.
- 2:20Like, those are pretty awesome projects.
- 2:22Thanks, man.
- 2:23Thanks.
- 2:23Yeah, it's exciting times.
- 2:24Lots of lots of good stuff to work on.
- 2:26Yeah.
- 2:26Well, you know what else is exciting?
- 2:27I would say data science is as popular as ever, wouldn't you?
- 2:30I agree.
- 2:31I feel like data science is coming into its own a little bit.
- 2:33It's actually it's been interesting to see some of the transition towards just some more
- 2:39like established workflow driven team based data science, like a lot of things that I
- 2:44think software engineers are probably super familiar with and comfortable with that were
- 2:48still pretty nascent the last time that we talked even a couple of years ago.
- 2:51So, yeah, it seems it might be here to stay.
- 2:54I don't know.
- 2:54I'm not going to call it, but I think it's possible that it will be here for a while.
- 2:57I definitely think it's a thing.
- 2:58You know, it's starting to show up as like full on courses at Berkeley and things like that,
- 3:03which is pretty awesome.
- 3:04We'll come back to that.
- 3:05But I found a cool definition of a data scientist, an individual who does data science.
- 3:10And I thought I'd throw that out there and just see what you thought in light of what
- 3:13we're about to talk to.
- 3:14So this guy named Josh Wills, I don't know him, but Twitter knows him.
- 3:17And he said a data scientist is defined.
- 3:19He is.
- 3:21At least this tweet is.
- 3:22He said that a data scientist is defined as a person who is better at statistics than
- 3:26any software engineer and better at software engineering than any statistician.
- 3:30What would you say?
- 3:31Just like burn left and right.
- 3:34I think those are both good.
- 3:36I think it's a positive representation of a data scientist.
- 3:39I think that that's actually true.
- 3:40I don't think that Josh is trying to demean anybody with that tweet, although it kind of
- 3:45sounds like it, you know, like take that statisticians.
- 3:49My software engineering skills totally blow yours out of the water.
- 3:51But I think that's right, because it is like this weird hybrid where the you're producing
- 3:56software.
- 3:57Ultimately, I think software engineers might disagree with that.
- 4:01The data scientists are producing software.
- 4:03And that's fair.
- 4:04That's fair.
- 4:04You can debate whether a notebook is a piece of software.
- 4:06I think it's a very interesting debate.
- 4:08That's a good point.
- 4:09And actually, it's interesting how much people are trying to like turn notebooks into runtime,
- 4:14like actual production execution environments.
- 4:17But that's probably a whole we could go down that rabbit hole all day.
- 4:20But it's true.
- 4:21I think that's actually that really captures it.
- 4:23It gets that blend right in the middle of the Venn diagram between stats and software engineering.
- 4:28Yeah, it's cool.
- 4:28Yeah.
- 4:29So with that, that very precise definition, what we have done is, is mostly you, Jonathan,
- 4:36have gathered up a bunch of topics that represent some of the bigger pieces of news from 2018.
- 4:43And we're going to go through them for all the data science fans out there.
- 4:46Yes.
- 4:46I mean, it was a joint effort.
- 4:47It was a collaboration.
- 4:49I feel like we've touched on some important things here in our list.
- 4:51I don't know if you were thinking along these lines, but I had a little bit of a theme with
- 4:56a lot of the stories that I was choosing.
- 4:58There's kind of a AI may be coming to kill us all or save us all.
- 5:02It's like, it's one of the right now.
- 5:04It's like, it's like dark times for machine learning.
- 5:07It's very interesting.
- 5:08It might accidentally kill us while trying to save us.
- 5:11Right.
- 5:11It's like really well intentioned.
- 5:13Like, oh, I can see what you're trying to do there.
- 5:14I mean, I'm dead, but I can, I can see.
- 5:18You know, you had my best interest in mind.
- 5:20All right.
- 5:21Thanks for thinking of me, man.
- 5:22Right.
- 5:22Good try.
- 5:24Good try.
- 5:24A forever.
- 5:25That's right.
- 5:26So would you say that the AIs need a babysitter or maybe the other way around?
- 5:29Whoa, look at that.
- 5:31That was like smooth like butter.
- 5:32Speaking of babysitters, I'm not sure how many people have seen this.
- 5:37It was kind of an odd little story, but I wanted to, it's like perfectly encapsulates
- 5:42well intentioned, but perhaps unforeseen consequences, air quotes AI.
- 5:47So a software company called Predictum thought to themselves, you know, it's really tough
- 5:54to find a babysitter.
- 5:55And it's true.
- 5:56You know, you're a parent.
- 5:57I'm a parent.
- 5:58When you're trying to find somebody to watch your kids, you're like, well, maybe my friends
- 6:02use somebody who worked out or maybe I use some online service and they do background checks
- 6:07or whatever.
- 6:07But it's tough to feel comfortable and confident that the person who's going to come into your
- 6:12home and be responsible for your child is a good person, or at least not somebody who
- 6:16will put them in danger.
- 6:17Like somewhere in that like sweet spot.
- 6:19Especially when the baby, when it's a baby, when the baby doesn't speak, it can't report
- 6:24to you.
- 6:25Yeah.
- 6:25The babysitter beat me or the boyfriend came.
- 6:27Like it's, you know, you don't even write.
- 6:30It's just a baby.
- 6:30It doesn't know.
- 6:31Exactly.
- 6:31It can't, it can't say.
- 6:32Right.
- 6:33So how do you know?
- 6:34Well, the old fashioned way is to, is to use some of the social signals that I mentioned
- 6:39before.
- 6:39But the new AI way is to use social signals from social media.
- 6:45So this gets into kind of creepy territory, I think.
- 6:49So, but basically parents have started to turn to this application.
- 6:52And, and what, what the system does is that it crawls the social media history of potential
- 6:57babysitters and it ranks them on like a risk scale.
- 7:02It gives them a risk rating.
- 7:03And so it risks them on all sorts of, or it rates them on all sorts of things like
- 7:07drug abuse, bullying, harassment, disrespectful, bad attitude, all sorts of things that I guess
- 7:13you could get from social media.
- 7:15Although I think for most of us, like we would get a five for all of those things because like
- 7:19that's just how social media works.
- 7:20Like that's what we want out of it, you know?
- 7:22But nevertheless, like relatively speaking, I guess you get some kind of rating.
- 7:26So it's caused a little bit of controversy for reasons that you might expect.
- 7:30Like how would you classify?
- 7:32So I should take a step back and say, I'm not sure if most of your listeners will
- 7:36be familiar with how an AI system might even go about determining these things.
- 7:40So how would I read your social media content and make a judgment that you were at risk of
- 7:46bullying or harassment or disrespectful, but there's no way of knowing because the system
- 7:50doesn't explain.
- 7:50So it might be something really simple.
- 7:53Like it just looks for quote unquote bullying words, like some keywords that they pulled out
- 7:58of a dictionary that are related to bullying.
- 8:00So really simple.
- 8:01Or it might be that it's trained a machine learning classifier that it's somehow got a hold of
- 8:07a bunch of example, bullying tweets or bullying Facebook posts or whatever it is.
- 8:11And it said, Oh, I can now recognize bullying content versus non bullying content.
- 8:16And it's trying to use that as a rating system.
- 8:18Who knows?
- 8:18Nobody knows.
- 8:18But the same, the idea basically is that it's scoring any potential babysitters and it's
- 8:23giving these to parents on a scale of one to five.
- 8:26So somehow there's a difference between a risk assessment of one on the bullying scale, a risk assessment
- 8:34of two on the bullying scale.
- 8:35And so as parents, we'll have to decide in this kind of like arbitrary scale, am I comfortable
- 8:40with a disrespectful score of three, but a bad attitude score of one?
- 8:45I'm not really sure.
- 8:46What are you teaching my child?
- 8:47What kind of disrespect are you teaching my child?
- 8:50But AI system has warned me that based on your social medias that maybe, you know, you're not
- 8:54like a voice god or whatever it is.
- 8:56So in any case, it's like it kind of gets at this idea that like, I think there's this
- 9:00dream that we can look at people's digital exhaust on the internet, what they say on social media,
- 9:05how they spend their money, where the places that they've been and get some kind of picture
- 9:10about who they are as a person.
- 9:12So that's the big leap.
- 9:13Like you could probably make a guess about how people will behave on social media based
- 9:18on how they behave on social media.
- 9:20Or you could probably get a sense of what people are likely to buy in the future based on what
- 9:23they purchased in the past.
- 9:24But that like leap to say, now I know something about you as a person, like how you'll behave
- 9:30in other environments where I've never observed you before.
- 9:32That's what this application is doing.
- 9:34And I think it's like a generally a trend in AI.
- 9:36And I'm not sure anybody believes that's actually possible, which is where it's kind of tricky.
- 9:43Like, should we use these types of tools and hiring and recruiting and other types of assessments
- 9:47that we're making about really, you know, delicate, sensitive things like babysitters or maybe
- 9:52less delicate and sensitive things?
- 9:54Like, should you be my tax accountant if you get a four out of five for bullying on social
- 9:59media?
- 9:59Like, I don't know.
- 10:00Maybe it's a good thing.
- 10:01Maybe you want an aggressive tax account.
- 10:02I don't know.
- 10:02Exactly.
- 10:03Exactly.
- 10:03But what is a four, relatively speaking, to a three for bullying?
- 10:07Like, I don't know.
- 10:08Could you give me something on like a, you know, who's the most harassing person on social
- 10:13media?
- 10:13And we'll just call them a five.
- 10:14And then everybody else is ranked on that person's scale.
- 10:16I'm like, I'm trying not to call out anybody in particular.
- 10:18Like, I'm really, really trying not to call out anybody in particular.
- 10:22But I mean, I don't know.
- 10:24So anyway, that's the debate that it's that this is stirred.
- 10:28So like, predict them.
- 10:28I'm sure.
- 10:29Well-intentioned.
- 10:30I'd love, you know, to know more about it.
- 10:33It sounds so like Orwellian and creepy.
- 10:36But let me read you just the quote from one of the founders of people that works there.
- 10:40Because it sounds so like something you would want.
- 10:43It says, if you search, this is like one of the people from Predict I'm speaking.
- 10:47It says, if you search for abusive babysitters on Google, you'll see hundreds of results right
- 10:51now.
- 10:51There are people out there who either have mental illness or just born evil.
- 10:55Our goal is to do anything we can to stop them.
- 10:57And when you think of that description and your brand new baby alone, like, you really
- 11:03don't want to put them together.
- 11:05So it sounds so good.
- 11:06But it's also got this really dark side, right?
- 11:09It does.
- 11:10Yeah, I agree.
- 11:11Like, I think that the Predictum folks are pretty well-intentioned.
- 11:15But it does highlight what is the unintended consequences of maybe giving too much weight to the output
- 11:24of a data science model.
- 11:26Like, just because we can package it in a data science workflow, just because it kind
- 11:31of walks and talks like something that is algorithmically decided and therefore objective, like, it's
- 11:37not necessarily objective at all.
- 11:39Like, it's just as easy for me to encode my subjective bias into a machine learning model
- 11:43as it is for me to act on that bias in real life.
- 11:45So it's difficult for people who aren't familiar with data science to, I think, recognize that.
- 11:50And it has these really strange implications.
- 11:52What about all those babies?
- 11:53Not the babysitters who are actually abusive.
- 11:56Like, for sure, let's get rid of those.
- 11:57But like, but what about the, you know, what about the people who have, who are otherwise excellent
- 12:03babysitters, but at one point, you know, said something mean about a TV show they didn't like on social media, and their
- 12:11bullying ranking went through the roof.
- 12:12And so now they can't get jobs as a babysitter anymore.
- 12:15Like, what are we, I think we need to think about how we're being transparent about the algorithms that we're using to make these sorts of choices.
- 12:22And, and of course, that's a difficult thing for those developing those algorithms, because you want to, you know, it's your, it's your, it's your sort of
- 12:29special sauce, your, you know, your secret sauce for your product.
- 12:32So there's a real tension there.
- 12:33And I'm not sure we're getting it right just yet.
- 12:35Yeah, it's, it's pretty crazy.
- 12:36I guess a few parting thoughts is like, okay, for babysitters, right?
- 12:40That's usually a part time small thing for most folks.
- 12:42It's not right.
- 12:43If you're babysitting career goes a little sideways, you could do something else.
- 12:47But a lot of this is applied to all sorts of jobs.
- 12:50Like they talked about a company called Fama that uses AI to police all of the workers at like these companies or how Amazon actually canceled what became a clearly biased algorithm for hiring across all of Amazon.
- 13:04Then it becomes a sort of have more serious social effects, right?
- 13:07Yeah.
- 13:08And I think this is coming at a moment when it's like a reckoning for Silicon Valley and technology and machine learning in general.
- 13:16We've been, I think, almost naively assuming that everybody who uses our technology will use it with the best intentions or the intentions that we had when we developed it.
- 13:26And I think the theme of 2018 is like actually not.
- 13:31It's actually possible for things to go horribly wrong in ways that you didn't intend.
- 13:37And I think it's good.
- 13:38I think it's a good time to have this debate about how close are we actually to encoding our real life values into our digital technologies.
- 13:45Like maybe, maybe we're just not that good at it yet.
- 13:48Yeah.
- 13:48Yeah.
- 13:48It's, we're definitely new on it.
- 13:50Yeah.
- 13:50And I feel like the goodwill tours.
- 13:52Exactly.
- 13:54I feel like a lot of the goodwill has kind of left that, that space a little bit.
- 13:57So we've got to be careful.
- 13:58Something that is not new was invented in the 1600s and the Renaissance, right?
- 14:05Like we're talking the scientific paper.
- 14:07What?
- 14:08You know, Kepler's orbiting of the planets and all those things, right?
- 14:13Written up.
- 14:14So actually the scientific paper turned out to be a big invention.
- 14:18It was, it used to be you have to write books or you just wouldn't write it down your, your inventions.
- 14:22Or they'd be like private papers, like Einstein wrote to Niels Bohr or something like, we just have to run across those papers, right?
- 14:29But it turns out that the scientific paper has been around and basically unchanged for like 400 years.
- 14:36I would say science has changed and certainly the dependence upon computing has changed, right?
- 14:42Yeah, absolutely.
- 14:43I mean, I'm, I'm not in most of the like quote unquote hard sciences and even in social science.
- 14:48I think almost the majority of the work is, I have no basis of that.
- 14:53That's probably fake news, but, but it does, you know, a lot of it is data driven.
- 14:57It requires some type of computation for sure.
- 14:59And difficult to reproduce papers without having access to that data and computation.
- 15:03Right.
- 15:03And a lot of times the computations were not published, just the results.
- 15:07But I think that's starting to give way.
- 15:09And one of the articles, this was published in the Atlantic and it's, it's a serious research project really.
- 15:16It's called the scientific paper is obsolete.
- 15:19Okay.
- 15:20That's a big statement.
- 15:21That is a big statement, right?
- 15:23And the graphic is super intense, right?
- 15:26On that homepage.
- 15:27Yes.
- 15:27Yes.
- 15:28So it's, it's this sort of traditional scientific paper with lots of, there's probably 15 authors and all sorts of, you know, stuff on there.
- 15:37And it's literally on fire.
- 15:39And it turns out to be a really interesting historical analysis, like sort of a storytelling of how do we go from scientific paper to closed source software with egomaniac sort of folks leading it like Mathematica to Python and open source and Jupyter and all that.
- 15:57Right.
- 15:57Yeah.
- 15:57Yeah.
- 15:57And I mean, I think it's interesting to see even the shift away from the traditional publishing model for anybody who's gotten into any type of research before that.
- 16:08It used to be that research only happened primarily at academic institutions and everything goes through peer reviewed journals.
- 16:14But almost like in the tradition of open source.
- 16:15And I think it's like, yeah.
- 16:15Yeah.
- 16:15Yeah.
- 16:15So it's like, yeah.
- 16:16So it's like, yeah.
- 16:16Yeah.
- 16:17So it's like, yeah.
- 16:17So it's like, yeah.
- 16:18So it's like, yeah.
- 16:18So it's like, yeah.
- 16:19So it's like, yeah.
- 16:19It's like a lot of people posting on something called archive.
- 16:22So they'll write like in the style of a peer reviewed paper, but before it's peer reviewed, because partially because the technology changes so quickly, but also because they want to be open and transparent about their work.
- 16:32They are uploading basically to this website called archive where you can search academic papers prior to them being published in some type of peer reviewed journal or in a conference or whatever, which is super interesting.
- 16:43And I think it gives people a lot more access to a lot more techniques.
- 16:46It feels kind of like posting your code to GitHub.
- 16:48And this is anecdotal, but at least what I find is that the code that sits behind some of these papers is usually available on GitHub.
- 16:55Like the same types of authors who post to archive, I find are the ones that also say, oh, by the way, here's the GitHub repository so you can go run it yourself.
- 17:02And like, here's the sample data set that I used, which is like really gets at this idea, which really gets at this idea that there's something to be said about reproducing these findings for these, especially for these like complicated.
- 17:17And I mean, I'm thinking mostly from the perspective of new machine learning developments, but these like these complicated new modeling techniques have to be replicable to be usable.
- 17:24And in the same way that like your open source project is kind of only as good as it is usable.
- 17:29So you might have the best new like JavaScript NBC framework.
- 17:34Those probably aren't cool anymore.
- 17:35But like when I was a software developer, everybody, blah, blah, blah.
- 17:40But like, whatever, you might have the coolest new like JavaScript app.
- 17:42But like if nobody uses it, it doesn't really matter how good it is.
- 17:45Like the ones that ultimately the community rallies around are the ones that are the most usable, the most accessible, the most transparent.
- 17:49And I think it's interesting to see that creeping into research as well.
- 17:53So, I mean, I really dig the idea that perhaps it's a model that just model that needs to change.
- 17:59Yeah.
- 17:59And they talk a lot of this is a pretty deep research piece here.
- 18:03It's quite the article.
- 18:03It's not just a few pages.
- 18:05And it really digs into the history of Mathematica, how it became really important for computation
- 18:10and research.
- 18:12But it just didn't really get accepted.
- 18:13And then along comes Perez and Granger and those folks with their IPython and their open source and their not centralized way of doing things.
- 18:25And it's just really interesting how that's become embraced by science and data science.
- 18:29And I think how it's actually influencing science.
- 18:32Like I hear all these scientists who I speak to talking about embracing open source principles and styles and more engineering.
- 18:39And I think all of that is being brought to them from this.
- 18:41Oh, yeah.
- 18:41And I think it's even being embedded in the way that students are educated now, which is totally different.
- 18:48I mean, I think in the article they talk about one of the authors of one of the open source projects, open source Python projects, like has a faculty appointment in the stats department at Berkeley now.
- 18:56And I know that Brian Granger's work and his team focused on Jupyter Notebook is I think they're also based at Berkeley or not at Stanford.
- 19:06But I mean, they're embedded inside a university department and they do some teaching as well.
- 19:10And they're starting to teach courses that are entirely based around this like open source, like open source science, open science workflow.
- 19:16So like Python as a programming language and then Jupyter Notebooks, which is if you're not familiar with Jupyter Notebooks, it's basically a way to like execute snippets of code sequentially, but in a web based environment.
- 19:27So, you know, you can write a little bit of code, you can run it, you can see what the output is, and then you can build on that.
- 19:32And then you can share your notebooks as you go.
- 19:34So in the same way that like it basically captures the rough draft process of finding your way towards a data science solution or really any type of programming solution.
- 19:44But often they're used by data scientists.
- 19:46And these sorts of tools, I think, have made it possible to share like your entire thought process, which is a really important part, like kind of like showing your work to getting to the results that you need to, which I think is maybe more specific to data science and machine learning than it is to most types of software engineering.
- 20:01Because like in software engineering, it works or it doesn't.
- 20:04And it works fast enough.
- 20:05Then like, all right, dope.
- 20:07Like, let's move on.
- 20:07Like, check that box and move on to the next task.
- 20:09Push the button.
- 20:10It did the thing.
- 20:11We're good.
- 20:11All right.
- 20:12Fantastic.
- 20:12I'm going to close that Jira ticket and march right along.
- 20:15That is true to a certain extent in data science.
- 20:17Like, you know, your code runs or it doesn't.
- 20:19But often we're trying to evaluate like what's the quality of the findings or like what's the quality of the predictions that you're making and what tradeoffs is your model making.
- 20:26And like all these like more like fine grained decisions.
- 20:29It really matters like what's behind the curtain with most of the data science work and most of these like most of these research papers.
- 20:36And so I think that's why these tools have basically like figured out how to capture all of that in a way that makes it really useful.
- 20:43Like really usable, really easy to share, really open and transparent, which is why I think they've caught on.
- 20:48Like they've caught on because they're usable and they have this great byproduct, like this great knock on effect that they make all of our work more transparent.
- 20:54I see a lot of promise and I definitely see things going this way.
- 20:57I think it's really good.
- 20:58One of the things is you were describing that to me that really resonates is I feel like a lot of science is dull and boring to people who are not super into it because it's been massively sterilized down to its essence.
- 21:11All right.
- 21:11Here's the formula.
- 21:12You plug this in and you get the volume of gas by temperature or whatever.
- 21:17Right.
- 21:17You're like, well, who cares about that?
- 21:18That's so boring.
- 21:19Right.
- 21:19But if the story is like embedded with it and the thinking process that led up to it's so interesting, like one of the most interesting classes I ever had was this combination of sort of the history of mathematics and something called real analysis for the math people out there where we basically recreate calculus.
- 21:35But from like the thinking about the building blocks and it was just so interesting because it had all the history of the people who created it in there.
- 21:43Whereas if you just learn the formulas, you're like, well, this is boring.
- 21:45Forget this.
- 21:47This has the possibility of keeping more of the thinking and the exploration in the paper and in the reporting.
- 21:54Oh, yeah, absolutely.
- 21:56Which I agree is like is fascinating because it is an investigation at the end of the day.
- 21:59And, you know, one of the authors of the Jupyter, like one of the leads of the Jupyter team, it's kind of meta because like his development of Jupyter is now part of this like upper level data science course at Berkeley in which all the students use Jupyter for all of the data science work that they're doing.
- 22:15Like it's cool.
- 22:16It's like, you know, it's it's it's notebooks all the way down.
- 22:18Yeah.
- 22:18Yeah.
- 22:19Although I didn't know.
- 22:20I mean, I know that you like pulled this out of the article, which I thought was is really spot on that the name Jupyter is actually in honor of Galileo.
- 22:28So like going back to an early scientist, like going going way back into history.
- 22:33So it's like we haven't forgotten where we came from, like the scientific method and how that gets encapsulated in these this structure that we've all accepted as, you know, research papers that we're standing on the shoulders of giants.
- 22:45We're just moving forward into this new like kind of rapidly iterative, open source, more transparent era, which is cool.
- 22:51Like why shouldn't research be democratized with all other types of information?
- 22:54Like thank you, Internet.
- 22:55And we're not forgetting where we came from, which I think is really important.
- 22:59Like we don't want to throw the baby out with the backwater.
- 23:01Yeah, absolutely.
- 23:02There's so many interesting parallels between sort of early scientific discovery and open source versus closed source.
- 23:07We'll come back to this actually.
- 23:09But like part of his quote that you were pointing out is like Galloway couldn't go anywhere and buy a telescope.
- 23:14So he had to build his own.
- 23:15It's sort of like, you know, we just put it on GitHub and we had to just make it.
- 23:19It wasn't there.
- 23:19It's awesome.
- 23:20You got to scratch your own itch.
- 23:21You know, if you're fine, I'll build it myself.
- 23:24I was going to take the weekend off.
- 23:26But, you know, whatever world.
- 23:27Come on, we're doing this.
- 23:28This portion of Talk Python To Me is brought to you by us.
- 23:35Have you heard that Python is not good for concurrent programming problems?
- 23:39Whoever told you that is living in the past because it's prime time for Python's asynchronous features.
- 23:44With the widespread adoption of async methods and the async and await keywords,
- 23:49Python's ecosystem has a ton of new and exciting frameworks based on async and await.
- 23:54That's why we created a course for anyone who wants to learn all of Python's async capabilities,
- 23:59async techniques and examples in Python.
- 24:02Just visit talkpython.fm/async and watch the intro video to see if this course is for you.
- 24:08It's only $49 and you own it forever.
- 24:10No subscriptions.
- 24:11And there are discounts for teams as well.
- 24:16So this next one, we were speaking about advanced machine learning and AI and analyzing social media sentiment analysis.
- 24:24This next one is more about algorithms and less about AI.
- 24:28It probably could be implemented with if statements, but it's actually pretty evil.
- 24:31And just the focus on algorithms at the core is pretty interesting.
- 24:34I thought so.
- 24:35Although I would like to point out that I think half the time that people are talking about AI,
- 24:38in air quotes, they're talking about a thing that could have been implemented with an if statement.
- 24:42And in fact, I would argue, I know that there's technical definitions of AI,
- 24:46but what most people mean is software making a decision for me.
- 24:49And it's like, well, there is a way that software does that.
- 24:51It is an if statement.
- 24:52It's AI.
- 24:54If you've written an if statement in your code, your freshman programming class,
- 24:58you've written AI.
- 24:59You just hang your head up.
- 25:00It could go crazy and do a switch statement.
- 25:03It may seem sort of wow.
- 25:04But yeah, one of these branching things.
- 25:07The decisions are endless.
- 25:08You know, theoretically endless.
- 25:10As many decisions as you want to spend time programming by hand.
- 25:13Yeah.
- 25:13So this one goes back to the sort of everything's going to be used for good, right?
- 25:17I'm not sure how anybody thought this could have been used for good, actually.
- 25:21Like this algorithm was just intentionally designed to screw everybody over.
- 25:25So, you know, this episode is going to come out around the holidays and people will be traveling.
- 25:29People will be traveling.
- 25:30And if you are traveling with your family, you may have had this experience where you're like
- 25:36trying to buy cheap plane tickets because there's like you and like all your kids and you're
- 25:39traveling across the country at an expensive time to travel.
- 25:41And you're trying to like get to your parents' house in time for Christmas.
- 25:45And it's really stressful and you're annoyed.
- 25:47And then you book your tickets and you try and get seats together and you can't do it.
- 25:52And you're like, wait a second.
- 25:53Come on, airline.
- 25:54Like, you know, I booked all these tickets at the same time.
- 25:57I'm clearly traveling with like a couple of kids like under 10 years old.
- 26:00Come on.
- 26:00Like this is this is hard enough as it is.
- 26:03Shake fists.
- 26:03Surely they know they should put the kids with the parents, right?
- 26:06Right.
- 26:07That's like a common.
- 26:08It's like, why is this system not smart enough to recognize that?
- 26:11But it turns out it is smart.
- 26:13It's just smart in exactly the evil opposite way that you don't want it to be.
- 26:19Because it turns out that at least in the UK, some airlines are using algorithms not to put families together, which is what we all assume they would be doing, but to intentionally split us up.
- 26:32And you might ask yourself, why?
- 26:35Like, are you just like, you know, like a sadist?
- 26:38I don't know.
- 26:38Like, what's the somewhere?
- 26:40There's like, you know, the developer of this algorithm at the back of every airplane twiddling his thumbs like Mr. Burns and like laughing maniacally.
- 26:46Exactly.
- 26:47But it's because that way they can charge people more money so that they pay to sit together.
- 26:53They're like, oh, do you not want the inconvenience of asking 47 people whether or not they're going to switch with you so that you can sit with your like your child who may or may not have the like emotional fortitude and maturity to to not like freak out by themselves on an airplane going across the country.
- 27:09Yes.
- 27:09So this apparently this is common practice with a number of airlines.
- 27:13They are algorithmically looking at people who share last names.
- 27:17So if you have a common surname, you are you will not be seated with each other when the seats are assigned, which seems really uncool.
- 27:26I just come on.
- 27:27So you can pay for the reserve seat, the extra twenty seven dollars per traveler or whatever.
- 27:32Right.
- 27:32Right.
- 27:32How much do you care about your kids or like how uncomfortable are you with asking a bunch of strangers during the holidays?
- 27:39To switch with you when it becomes that like that like really complicated calculus problem where you're like, well, my wife's sitting seven seats up and and she's at the window.
- 27:46But we're also traveling with my son who's four seats up on the aisle.
- 27:49So if you switch with her and this person in row 47, which is with him, then I actually think that we could get, you know, approximately close to each other.
- 27:56It's like it's absurd.
- 27:57So if you don't want to go through that, yeah, you can just like pay an extra 50 bucks.
- 28:00But like wouldn't the decent thing to do just be.
- 28:04It's so evil to split the families apart so that they'll pay to go back together.
- 28:09Although, to be clear, I'm well out of the range where this matters.
- 28:13Right.
- 28:13My kids could sit alone and it wouldn't be that big of a deal.
- 28:16But my thought is, all right, evil airline and your algorithms.
- 28:20I see your play and I raise you in a lone child at three in the back by the business traveler.
- 28:26I'm going to bed now.
- 28:28Thank you very much.
- 28:29I love it.
- 28:33Just like probably shouldn't implement it.
- 28:35But it seems like, you know, you could just turn it around.
- 28:38I love it.
- 28:38It's like, yeah.
- 28:39Oh, you know what we did?
- 28:40We skipped nap.
- 28:41You know who had and I just like dumped like three, you know, pop rock sugar packets down their throat right before we got on the plane.
- 28:48Because, you know, in 30 minutes they're going to freak out.
- 28:50Yeah, exactly.
- 28:52I like it.
- 28:52I like it.
- 28:53Let's see like how many kids we can stack up, how many screaming children we can stack up on airplane at holiday.
- 28:58It's really bad.
- 28:59It's really bad.
- 29:00Something like this actually happened to my daughter.
- 29:01Not from algorithms, just other bad, bad stuff.
- 29:04So it's not great.
- 29:06And I do think it's really evil, the airlines, to do this.
- 29:08It is.
- 29:09It is.
- 29:09But what was interesting is that it actually got referred to in the UK.
- 29:13There's a new government organization called the Center for Data Science Ethics and Innovation.
- 29:18So they actually have.
- 29:19That's crazy.
- 29:20It's cool, right?
- 29:21It's cool.
- 29:21So like.
- 29:21Yeah, it's very cool.
- 29:22Yeah.
- 29:23And like we have similar types of stuff here in the US.
- 29:24There's an Office of Science and Technology Policy that's in like in the administration, like it's part of the White House.
- 29:29And so anybody who's kind of follows that sort of stuff or is interested in data science, like that's where our first US chief data scientist sits is in the OSTP.
- 29:39I don't think there is a data science, chief data scientist in the current administration yet.
- 29:44But there's a chief technology officer.
- 29:45And anyway, it's where like it's where the geeks sit.
- 29:48So but in the UK, there's a Center for Data Science Ethics and Innovation.
- 29:50And this case was actually referred to them.
- 29:54So I think they've just formed and they just formed.
- 29:57And basically I got handed like this is the most offensive thing that algorithms have done.
- 30:00Good luck with it.
- 30:02Center for Data Science Ethics and Innovation.
- 30:03Like fix this, man.
- 30:05They're like, great.
- 30:07This is why we exist.
- 30:08Oh, my gosh.
- 30:09It is.
- 30:09It is.
- 30:09I guess like, you know, it's like because it's a real softball.
- 30:12You know, it's like what would the ethical thing to do it be to do in this situation?
- 30:16Like, I don't I don't know.
- 30:17Gosh, I'm I'm spent.
- 30:19I couldn't I couldn't possibly come up with a better, more ethical alternative.
- 30:24than splitting parents up from their children.
- 30:25Even bureaucrats could totally solve this.
- 30:28Yeah, for sure.
- 30:30Yeah.
- 30:30So, you know, that's a thing.
- 30:31I mean, it seems like one of those like open and shut cases.
- 30:35I think government ministers are calling it exploitative.
- 30:38So that's usually not a good sign for your business practices.
- 30:40No, but I.
- 30:43Yeah, no, that's a bad start.
- 30:44It's a bad start.
- 30:45It's a bad start.
- 30:45I think they may.
- 30:46You know, they've got nowhere to go but up.
- 30:47We can say that, you know.
- 30:48That's kind of like a pun, I guess, because there are airplanes that go up in the air.
- 30:52But anyway, but it brings me to something that I was really excited to talk about with all
- 30:57of your listeners because it's something that's important to me personally and something that
- 31:04I'm involved with is actually an ethics project for data scientists so that hopefully we could
- 31:11prevent these types of mishaps in the future.
- 31:14So as I mentioned at the top of the show, I'm involved in an organization called Data
- 31:17for Democracy.
- 31:18It's a nonprofit.
- 31:19And we have recently launched what we're calling our ethical principles for data practitioners.
- 31:26So the global data ethics principles.
- 31:30So this is like the Hippocratic oath, like the doctor's take, but for.
- 31:33Exactly, exactly.
- 31:34And so because like we mentioned, this has been kind of a bad year, I would say, for technology
- 31:39in general and technologists and and, you know, Silicon Valley and Silicon Valley culture
- 31:43and data science and machine learning and AI.
- 31:45And everybody's wondering, like, well, is this a good thing for society?
- 31:49Is it not?
- 31:50Like, how did we get here?
- 31:51Like, how did we kind of like stumble into this dystopia where our minds are being manipulated
- 31:57by propagandists on Facebook and in China?
- 32:00They're doing social credit like that terrible Dark Mirror episode that I saw that we'll get
- 32:03to like what's happening to us.
- 32:05And, you know, fundamentally, as the people who are implementing this technology, we have a real
- 32:10opportunity to think about our values, think about our ethics, like think about the way
- 32:15that our technology might be used in ways that we hadn't intended because, you know, we're
- 32:19a pretty optimistic group technologists.
- 32:21I think we assume that like we want to put something really useful and meaningful out in
- 32:25the world.
- 32:25Maybe not this like family splitting algorithm.
- 32:27That was probably.
- 32:28There's probably the business department.
- 32:29They say, hey, guys, can you?
- 32:30Yeah.
- 32:31They're like, well, this will, you know, we'll improve revenue by like 17 percent in
- 32:35Q4.
- 32:35Like, that'll be good for the world, you know, which and there's nothing wrong with improving
- 32:39revenue.
- 32:39I'm great.
- 32:41Businesses are fantastic.
- 32:42Not in the back of three year olds, maybe.
- 32:44Right.
- 32:44Maybe maybe not in this way, you know.
- 32:47But I think also like the stuff that we do is actually pretty complicated.
- 32:51People don't really understand at a deep level like what the software is doing and all
- 32:55the potential ways that it might be used other than the intended use case.
- 32:59Like that's something that really only we think about or are in a good position to think
- 33:03about as technologists.
- 33:04And so anyway, that was the idea behind this data for democracy project.
- 33:07It's a global initiative and it's basically like what's a framework for thinking through
- 33:13like putting ethics into your process.
- 33:16So how do you incorporate these principles just in your everyday data and technology work?
- 33:21What does it look like for data science?
- 33:23I know it looks like for doctors.
- 33:24You won't do any harm and that kind of thing.
- 33:26How about for data scientists?
- 33:27Yeah, exactly.
- 33:28So like we have a we call it forts.
- 33:30There's the high level, which is kind of like do no harm.
- 33:33So you think about fairness, openness, reliability, trust and social behavior.
- 33:36There's a handful of principles that is kind of like a checklist.
- 33:41And so you can kind of go through this checklist.
- 33:43And as you're developing a new feature or maybe developing a new model, if you're a data scientist
- 33:49or, you know, some system for processing data, like anything that touches data, any of the
- 33:55kind of technology work that you're doing, you can go through and, you know, it may be that
- 33:59some of these principles like you don't have to check every box every single time.
- 34:02But it's a nice like it's a framework for thinking about catching potential blind spots.
- 34:07And so what's your intention when you're coding, like building this feature or developing this
- 34:12model?
- 34:12Have you made your best effort to guarantee the security of any data that you're going to use?
- 34:16I mean, that seems like a no brainer.
- 34:18But, you know, it's easy to forget when you're moving fast and you're maybe thinking about,
- 34:22you know, the deadline or the fact that, you know, you're trying to ship this really important
- 34:25feature because your customer really needs it.
- 34:27Like, you know, give a second to remind yourself whether the data security is important.
- 34:31Have you made your best effort to protect anonymous data subjects, which is really important in a lot
- 34:36of data science research?
- 34:37Sometimes if we don't think about this, we can inadvertently leak private data to the public
- 34:43when they consume our research, even though that was never our intention and potentially is,
- 34:47you know, irresponsible.
- 34:49You can practice transparency, which is a lot of times understanding how our algorithms work.
- 34:54So in this case, there was no transparency around how the algorithm that shows seat assignments
- 35:00was functioning.
- 35:01And then after an investigation, it was revealed that, well, it was actually examining whether
- 35:05or not you shared a last name.
- 35:06And if you do, it was splitting you up.
- 35:07And if we if that was a transparent algorithm, we would have said, wait a second, this is totally
- 35:12uncool.
- 35:12You can't explain this algorithm transparently and people still accept it.
- 35:17So, you know, like that would that's kind of like the light is great disinfectant, right?
- 35:20In politics and all that in business.
- 35:22Yeah, yeah, absolutely.
- 35:23Another principle that maybe would have mitigated this problem was to communicate responsibly.
- 35:28If the engineer who was responsible for implementing that went, hey, this is going to split up families.
- 35:33And like during holiday travel, you can respect relevant tensions of stakeholders, which I also
- 35:39think is really interesting because this is exactly what probably happened here.
- 35:42The business team said, hey, but it'll improve revenue by 17 percent throughout the year.
- 35:46And or whatever the number is, I'm making that up.
- 35:48So it's a set of principles.
- 35:50You can sign on to it, which is so if you go to data for democracy dot org, you will find
- 35:54a link to sign the ethics pledge.
- 35:56If you think that ethics are important, then you should totally sign up for it.
- 35:59And here's why you should sign the pledge.
- 36:01A, I think it's an important.
- 36:03It's a cool thing to do if you think that ethics are important and you want to have this
- 36:07like kind of mental checklist.
- 36:09But it's also important because, you know, we all work for organizations or we're students
- 36:13at academic institutions or we're otherwise doing this as our profession.
- 36:18And the organizations that we work for are starting to adopt more ethical practices as companies
- 36:25and academic institutions and governments.
- 36:27like this is becoming more prominent.
- 36:29But what's the way that we can make sure that our values are encoded in these kind of larger
- 36:36business processes and these larger institutions is by making ourselves heard by sort of showing
- 36:41our numbers.
- 36:42And so if we show up as a technology community and we sign a pledge or we kind of communicate
- 36:47to our manager or whatever it is, I mean, ultimately, like this isn't going to come from the top down.
- 36:51And I don't think we want it to come from the top down.
- 36:53I don't think we want this to come from people who aren't doing the work every day, who hear
- 36:57about this ethics thing and they wanted this like a stamp of approval on whatever products
- 37:01they're making.
- 37:02That's fine.
- 37:03But ultimately, the systems that they design won't actually accommodate the technology work
- 37:07that we have to do every day.
- 37:09So I think for those of us who are like writing software, for those of us who are developing
- 37:13models, who are doing data science and software engineering every day, I think we need to make
- 37:18our voices heard about the ethical principles that we want to see applied to the work that
- 37:23we're doing.
- 37:23So anyway, that's why I think it's important.
- 37:25Data for democracy.org.
- 37:26Don't be the developer who splits up families at the holidays.
- 37:31You're better than that.
- 37:32That's right.
- 37:34That's awesome.
- 37:35So I think this is great.
- 37:36And I think it ties in really well to a lot of the themes that seem to be happening around
- 37:41tech companies.
- 37:41Like it used to just be, oh, tech companies are amazing.
- 37:45Of course, we want to just encourage them.
- 37:46And now there's some real skepticism around Facebook and Uber and all these types of companies.
- 37:51And they kind of have to earn it.
- 37:53And this oath is part of earning it, I think.
- 37:56It's cool.
- 37:57Yeah, I think so, too.
- 37:58I think so, too.
- 37:59And it's a good opportunity, I think, for, like I was saying, the actual doers, like
- 38:04those of us who are doing the work, to participate in that conversation.
- 38:07Because it's happening, like you're saying, it's happening whether we might want it to or
- 38:10not.
- 38:11The kind of attitude has changed.
- 38:13People are thinking about legislating Silicon Valley, which would have been a totally foreign,
- 38:17like bizarre idea almost, even a year or two years ago.
- 38:21Yes, that's exactly what I was thinking of, is that kind of stuff.
- 38:23It's like, wait, what?
- 38:24What do you mean?
- 38:25Right.
- 38:25It's like, we're just over here doing good, making cool stuff.
- 38:28Come on, like pull out that iPhone, buddy.
- 38:30Like, let's play some Angry Birds.
- 38:31And times have changed.
- 38:35And more people are aware of the potential negative consequences.
- 38:38And so, you know, now's our time to have a conversation and make the industry that we want
- 38:43to be a part of.
- 38:44Yeah.
- 38:44So some of the things we've covered have been a little creepy.
- 38:46Indeed.
- 38:47Like the babysitter one.
- 38:49But this next one is, I think it's just pure goodness.
- 38:52100%.
- 38:53I couldn't agree more.
- 38:54So we know that Python is being used more in general scientific work.
- 39:00And it's probably being used more in sort of the hard sciences.
- 39:03Would you consider economics hard science?
- 39:06Ooh.
- 39:06Oh.
- 39:07I'd put it right on the edge, right?
- 39:09I mean, that's a lot of math in there.
- 39:11There's numbers.
- 39:12There's a lot of math in there.
- 39:14I guess because I never really took economics.
- 39:16I've only listened to like a couple economics textbooks in adulthood to try and something
- 39:21I feel like I should know a little bit about.
- 39:22And like, I feel like they were behavioral economics.
- 39:25And it seems like a lot of correlation without causation.
- 39:30Personally, no offense, economists out there.
- 39:32But it's really data driven, which I think is really cool.
- 39:36So there is a huge amount of information to consume when you're doing good economics.
- 39:41So in any case, yeah, let's do it.
- 39:43I'm on board.
- 39:44I'm going to go one step further.
- 39:45Let's call it a hard science.
- 39:46I'm in.
- 39:46All right.
- 39:46Right on.
- 39:47I certainly think some aspects of it are.
- 39:50Now, we talked about the scientific papers obsolete, the move from just PDF or written
- 39:56paper over to Mathematica to Jupyter.
- 39:58And that's sort of a high level conversation of a trend.
- 40:03But this year, the Nobel Prize in economics was basically won with Jupyter and Python, which
- 40:10is awesome.
- 40:10That is amazing and not surprising.
- 40:13I mean, if you're going to do some scientific research, what other programming language would
- 40:17you choose?
- 40:18Yeah, absolutely.
- 40:19Especially if you're like an economist.
- 40:21So there was a bunch of folks who did a bunch of mathematics, Mathematica, and included in them
- 40:27were these two guys named Nordhaus and Romer.
- 40:31I think they're both American university professors.
- 40:34And they're, let me see if I can mess up, poorly described what their Nobel Prize was, their work
- 40:41generally is about.
- 40:42But it was like, basically looking at how do you create long-term sustainable growth in a
- 40:48global economy that improves the world for everybody through things like capitalism and
- 40:53whatnot that mostly focus on very, very narrow self-interest.
- 40:57They think they cracked that nut, which is pretty interesting.
- 41:01And they cracked it with Jupyter.
- 41:03I mean, that sounds Nobel Prize worthy to me.
- 41:05And also the economic discoveries are probably useful.
- 41:09No, but what I think interesting, because we talked about this in one of the previous stories,
- 41:16is that the team, or Romer in particular, was the Python user.
- 41:20And he wanted to make his research transparent and open.
- 41:23That was like a key part of the research.
- 41:24So that people could understand how he was reaching his conclusion.
- 41:26So like all of my, you know, joking about behavioral economists a minute ago aside, like this is
- 41:31actually an important part of the work.
- 41:32So that you can understand his assumptions and, you know, at least understand the choices that
- 41:37he's making and the data that he's choosing and that he tried to do it with Mathematica,
- 41:41which is another way that people use or sort of perform computation for their research.
- 41:46And apparently that just made it too difficult to share his work in a way that anybody who wanted
- 41:52to try and understand his work would have to also use this proprietary software, which is a really,
- 41:56really high bar.
- 41:57Like it's really expensive.
- 41:58Not everybody knows how to use it.
- 42:00And it's not as simple, intuitive, open, and transparent as Python and Jupyter Notebooks.
- 42:04So it was really core to the work that he did that ultimately won him the Nobel Prize,
- 42:08which is pretty awesome.
- 42:10Yeah, it's super cool.
- 42:11And I do think that there's, if your goal is to share your work, having it in these super
- 42:15expensive proprietary systems is not amazing, right?
- 42:19I mean, we're talking about Mathematica here.
- 42:21My experience was I did a bunch of stuff in MATLAB at one point and we worked with some
- 42:27extra toolkits.
- 42:28And these toolkits were like $2,000 a user just to run the code.
- 42:32And if you wanted to run the code and check it out, you also paid $2,000.
- 42:36Like that's really prohibitive.
- 42:37It really is.
- 42:38And I mean, I think that was my experience with proprietary software.
- 42:42I mean, not only do those like programming languages or applications make it, it's just
- 42:47difficult to collaborate.
- 42:48And I think this will be of no surprise.
- 42:51I would think that this is something that everybody accepts as fact amongst all of your
- 42:54listeners.
- 42:54But the open source community has made this current software revolution possible.
- 42:59The fact that we are able to collaborate at this scale and share ideas and share code and
- 43:06build on top of each other's work, I think is the reason that we've had this explosion in
- 43:10entrepreneurship, this explosion in the kind of energy and excitement that comes out of Silicon
- 43:15Valley, even though we were just talking about it, you know, maybe being a bad thing.
- 43:19But this level of sort of rapid innovation that we've been going through is because programming
- 43:23and it's just it's so much more accessible than it's ever been before.
- 43:27And I think that that's largely because we transitioned away from these proprietary software
- 43:31models.
- 43:32Yeah.
- 43:32And you think about the people who that benefits.
- 43:34Obviously, it benefits everyone.
- 43:36But if you live in a country where the average monthly income is a tenth of what it is in the
- 43:41U.S. and you have to pay $2,000, it doesn't mean it's expensive.
- 43:44It means that you can't have it.
- 43:45Right.
- 43:46I mean, it's just inaccessible to you.
- 43:47And so these sort of opening ups of this research and these capabilities, I think it benefits the
- 43:54people who need the most benefit as well.
- 43:55Yeah, absolutely.
- 43:56And it almost like distributes creativity much more broadly than we would have been able to
- 44:01before.
- 44:01Like we can we can tap sources of creativity and innovation that, like you're saying, would
- 44:08have been just taken off the taken off the board because proprietary software is only accessible
- 44:13to the small portion of the global population that can afford to spend thousands of dollars
- 44:18annually on licensing it.
- 44:21Yeah, absolutely.
- 44:21So there's there's a couple more thoughts.
- 44:23I just want to share really quickly from this before we move on to something I guess I'll call
- 44:27positive.
- 44:27So this you got it in 2018.
- 44:32You got to put it up there positive or not.
- 44:34So one thing I think it's really awesome about this is this guy is 62.
- 44:37He transitioned into Python recently.
- 44:40Right.
- 44:41You feel a lot of people are like, oh, I'm 32.
- 44:44I couldn't possibly learn programming or get into this.
- 44:46Like this guy made this Nobel research change into Python programming and the data science
- 44:51tools at 60s, late 50s.
- 44:54That's awesome.
- 44:54It is awesome.
- 44:55And what's interesting is that he's now been like exploring how software works.
- 44:59And you pulled out a really great quote where he says, the more I learn about proprietary
- 45:03software, the more I worry that, wait for it, objective truth might perish from the earth,
- 45:09which is an insanely powerful statement.
- 45:12That is a powerful statement from a guy who won the Nobel Prize.
- 45:15So he's probably right.
- 45:15Yeah.
- 45:16He definitely sees a change in the world.
- 45:18And I think this opens, this is a little bit of what I was saying, like thinking when
- 45:22I said, look, we've got open source being used by scientists, but also changing science,
- 45:27science.
- 45:27Right.
- 45:28Right.
- 45:28Absolutely.
- 45:29Because it's not only making the work more approachable and accessible, but it's making
- 45:35it more repeatable.
- 45:36And it's allowing us, especially now that so much research is based on computation, like we've
- 45:40been saying before, it really does make it possible.
- 45:43It would be impossible to come to a consensus about whether or not something is correct, acceptable,
- 45:50whether we can say that this is an established fact.
- 45:52You can't really say it if you can't show your work.
- 45:55And in this case, showing your work is the computation in the data.
- 45:58Right.
- 45:58It's like just writing the final number down in calculus.
- 46:00You're like, no, no, you got to show your work.
- 46:02Exactly.
- 46:02Exactly.
- 46:03It's very important.
- 46:03Like science and objective truth depends on it.
- 46:06Show your work.
- 46:07That's right.
- 46:08Show your work.
- 46:09All right.
- 46:09So the next one is more like a mundane day to day thing, but actually makes a big difference.
- 46:15So what's the story with Waze and Waze reducing crashes?
- 46:19So this is pretty cool.
- 46:21So we've talked about using quote unquote AI to predict things.
- 46:25Sorry.
- 46:26Maybe we should tell people what Waze is.
- 46:27I don't know how global Waze is.
- 46:29Maybe they don't have experience.
- 46:30Just give us a real quick summary.
- 46:31That is a really good point.
- 46:32So Waze is a mapping application that helps you find the shortest route from one point
- 46:41to another in your car.
- 46:42And so there's a whole thing about Waze.
- 46:44Like it's a community of people.
- 46:46And so you're kind of collaborating to point out things on the road.
- 46:49So I'm stuck in traffic and you can tap a button or there's a police car trying to catch people
- 46:55for speeding and you can tap the button or there's been an accident.
- 46:58You can tap a button.
- 46:59And so it's this way for like drivers to communicate with each other on the road.
- 47:02And it's so big.
- 47:03That community is so large that it can help you.
- 47:06It routes you to one point from one point to another in a city that helps you avoid obstacles
- 47:11that might be pretty dynamic and changing all the time.
- 47:13So it's kind of like Google Maps.
- 47:15It's more of a two-way street for sure, right?
- 47:17Like the users send info back a lot more to it.
- 47:20Okay, cool.
- 47:20With that in mind, how does Waze play into this story?
- 47:23Well, as you can imagine, it captures a ton of data about driving patterns.
- 47:29So not only does it know what's happening in real time, but all that data is stored.
- 47:33And so you start to get a sense about how people move through cities in general.
- 47:37And once you have data that captures a behavior in general, in data science, you can start to make predictions using that data.
- 47:44So you can train a model and say, generally, this is how things work.
- 47:49And then maybe you could make some predictions about how things work in the future.
- 47:52And assuming that historical data is accurate, then you can usually make pretty decent predictions.
- 47:57And so the cool thing about an application like Waze that captures not only traffic patterns, but also events like accidents or car crashes,
- 48:07is that you could predict when and where car crashes are likely to occur, which is kind of mind-blowing.
- 48:13Like I think traffic seems like this total, super complex, impossible to understand, messy organic...
- 48:18If you ever thought of chaos, it should totally apply to this, right?
- 48:22Like if a butterfly can affect weather, like people should just be crazy in cars.
- 48:27They can be crazy in cars.
- 48:28And I don't know if everybody will be familiar with this.
- 48:31There's this like famous experiment in where they, scientists set up a circular track and put cars,
- 48:37they had cars drive around the circular track, all like equidistant from one another.
- 48:41So in theory, they could all maintain their speed.
- 48:43But because there are human beings driving the cars, they would occasionally make these little choices.
- 48:48Like they would feel like they got a little bit too close to the car in front of them,
- 48:51where they put a little bit too much gas and they would get too close.
- 48:53And so they'd brake.
- 48:53And then as soon as they put their foot on the brake,
- 48:56then the car behind them will put their foot on the brake.
- 48:57And then there was this like cascading effect.
- 48:59And no matter what, even though there was enough room for all of these cars on the road,
- 49:02they wound up in a traffic jam driving around in the circle.
- 49:05It's like...
- 49:05That's awesome.
- 49:06Yeah.
- 49:06It's like a beautifully designed system that humans cannot participate in fully.
- 49:11Because we're just too human.
- 49:14So we could cause traffic.
- 49:15We're flawed.
- 49:15We're flawed.
- 49:16We're flawed.
- 49:17And all those flaws are captured by Waze.
- 49:20And so what Waze basically started doing is that they have all this data from connected
- 49:26cars and road cameras and apps and whatever.
- 49:28And they have an overview of how the city works.
- 49:31And they've shared that data with local authorities who then basically have developed models that
- 49:37predict when and where these accidents are going to occur.
- 49:39And so the city's traffic and safety management agencies were able to take that data and say,
- 49:45oh, there's likely to be an accident in this area at this time.
- 49:49And then they sent...
- 49:50They went to those areas to take preventative measures.
- 49:53So they basically identified what are the most high risk areas for where accidents are likely
- 49:56to occur at certain times of day or in certain conditions or whatever.
- 50:00And if you can then take action to make those areas more safe, then, of course, you can reduce
- 50:06the number of crashes.
- 50:07And they reduce crashes by 20%.
- 50:09So if on a normal day there's 100 car crashes, there's only 80, which, I mean, that's pretty
- 50:14amazing.
- 50:14So not only that, but if you're in an area where an accident's likely to occur, all of the other
- 50:20services that happen around that accident are more readily available.
- 50:23So you can get faster treatment for anybody who was injured.
- 50:26You can more quickly clear and restore normal traffic flow.
- 50:30And so in addition to actually making the health implications, like the public health implications
- 50:37of having fewer car crashes, you can actually make it easier for people to get around the
- 50:41city more quickly by moving, by sort of quickly dealing with accidents as they occur, because
- 50:46you kind of knew or had a pretty strong indication that that accident was going to happen in advance.
- 50:50So it's like minority report, but for car crashes.
- 50:53It's like a pre-crash.
- 50:54It is.
- 50:55So they've got the pre-crash.
- 50:57If that system is not called pre-crash.
- 50:59Sir, do you know why I'm pulling you over?
- 51:00No, you were going to crash up there.
- 51:03What?
- 51:05Right.
- 51:05You were the cause of an accident that was about to occur.
- 51:08Like what?
- 51:09I actually, I kind of like this idea.
- 51:12I mean, we're getting into territory that sounds like the wrong, like the unintended use of AI,
- 51:17like we've been talking about this entire episode.
- 51:19But I kind of love it.
- 51:21I would love for the AI to tell me in advance, even if it meant I got a ticket.
- 51:25Like you were going to cause an accident.
- 51:27You didn't because we told you and we've changed the future.
- 51:30But you still have a $25 ticket.
- 51:32I'd pay that.
- 51:35I would pay that $25 ticket.
- 51:36That's so interesting.
- 51:37That's like the 2025 edition.
- 51:39The 2018 edition is they were able to cause fewer crashes, address the ones that happened better,
- 51:45and basically just improve life for all the drivers.
- 51:48That's awesome.
- 51:49Yeah, it's totally cool.
- 51:50And I think this is one of those like almost like classic data science problems now,
- 51:54where it's weird to say that, that there are like such a thing as a classic data science problem,
- 51:58but like maybe like an archetypal data science problem,
- 52:00where there's like where you have a bunch of data about the past,
- 52:02and whatever system it is that you're interested in understanding is so predictable and repeatable
- 52:07that all you really need to do is understand how it behaved in the past,
- 52:10and then you can have a pretty good idea about how it's going to behave in the future.
- 52:13Like if only you could crunch enough numbers.
- 52:15So it's kind of like we could have a grand theory of the universe if only we could compute the universe.
- 52:20Sorry, not to get too philosophical,
- 52:23but like, but the systems that we have the computing power to understand are increasingly large and complex.
- 52:29So like a city's traffic flow is pretty large and complex,
- 52:32and probably too much data to really process in any meaningful way until now.
- 52:38And now we not only have the data, but we have the ability to process it and make predictions.
- 52:41And so this is a real significant, tangible improvement on human life.
- 52:45Pretty awesome.
- 52:46Yeah, that's really awesome.
- 52:47I think another thing that would make an improvement on life is if more people participated in speaking about what they would like to happen in their country,
- 52:56and what they would not like to happen in their country.
- 52:58What do you think?
- 52:59That seems like a good idea.
- 53:00You know, like participating in the process.
- 53:02I think that'd be a win all around.
- 53:04You know, you know, way better than I do.
- 53:06I feel like the average voting turnout is something like 65% or something in the US, maybe 70 on a crazy period.
- 53:13But then that's just among registered voters.
- 53:15What about all the people who aren't even registered, or they've become unregistered because they moved and they forgot to update it?
- 53:21Right. This is, as we probably heard about in the 2018 election cycle that we just had, a big part of the process.
- 53:28And anybody who, well, you probably met somebody who was like standing in front of your office or your church or your school or walked around your neighborhood and was saying,
- 53:37hey, are you registered to vote?
- 53:38Like there's these get out the vote campaigns that are really important because what?
- 53:41Twitter asked me at least five times if I was registered.
- 53:44Twitter did.
- 53:44I think I Googled something the day before the election.
- 53:47They were like, hey, here's your local polling location where you can go get registered to vote right now.
- 53:52It's kind of cool.
- 53:53I think there's people have recognized that there's low voter turnout.
- 53:56And so there's all of these interesting initiatives to try and get people to go out, make sure that they follow the appropriate procedures and they actually cast their vote, which, you know, ultimately, you know, democracy dies in darkness.
- 54:08Right.
- 54:08Like it's important that we're, you know, participating in the process.
- 54:12So technologists are, of course, trying to help.
- 54:15And there's a guy called Jeff Jonas.
- 54:18He's a prominent data scientist.
- 54:19And he is interested in the integrity of voter rolls.
- 54:24And so this is an interesting aspect of it.
- 54:27So in most places, I think in all places, you can't just show up to the polling place and vote.
- 54:32You have to be registered to vote.
- 54:33And there's lots of reasons that you might get unregistered like you were just talking about.
- 54:37So I recently moved from one place to another in Austin and the people were coming around my neighborhood.
- 54:42And I actually didn't know that this impacted my ability to vote here where I live.
- 54:46They said, hey, are you registered to vote?
- 54:48I said, of course I am.
- 54:48And I mentioned offhand like, oh, just move to the neighborhood.
- 54:52Love it so much.
- 54:52And they were like, oh, well, then you're not registered to vote because you've just changed your address.
- 54:56And so there's all these like little details that are important, sometimes hard to understand.
- 55:01Like it's a big government bureaucratic process at the end of the day.
- 55:03And so this guy, Jeff Jonas, used his software for this multi-state project that he called the Electronic Registration Information Center that basically uses machine learning to identify eligible voters.
- 55:17And then it cleans up the existing voter rolls.
- 55:20So, OK, great.
- 55:22Because the reason that you might need machine learning for this and not just like normal string matching is because people's names are sometimes slightly different on one form or another.
- 55:30Or maybe their address has changed or maybe multiple people have the same name.
- 55:34And so there's like all sorts of ways where like it's sometimes difficult to know whether a record in one database that represents a human being represents the same human being in another database, even if their names are identical or similar.
- 55:47So there's it gets a little bit complicated.
- 55:49And so that's why, you know, machine learning and AI are useful here because they can recognize these kind of subtle variations and patterns that ultimately lead you to be able to kind of triangulate a bunch of different data to point at the same human being.
- 55:59And so this nonprofit, the Electronic Registration Information Center, identified 26 million people who are eligible to vote but unregistered and then 10 million registered voters who have moved.
- 56:12Who maybe became uneligible because of that.
- 56:15Yeah, that's right.
- 56:15So it somehow became uneligible.
- 56:17So they've moved.
- 56:18They appear on more than one list for whatever reason.
- 56:21This does happen.
- 56:22Or they died.
- 56:23So important to nobody.
- 56:26After your death, you remain registered to vote.
- 56:28And because who are you going to even you just died.
- 56:32It's not the thing that you think of on your deathbed.
- 56:34It's like, wait, take me off the voter rolls.
- 56:36The end is near.
- 56:37So, you know, this is actually pretty common.
- 56:39But again, like, matching a record of death with a name on a voter registration roll is much more difficult than it sounds.
- 56:48So anyway, super interesting project because I think in every sense, like we want our voter rolls to be authentic.
- 56:55We want them to have integrity because we want our democracy to have integrity.
- 56:58Like, you know, we should make sure that one person, one vote.
- 57:00But at the same time, we want to make sure that as many people who can vote do because that's how the whole process works.
- 57:06We want to make sure that the people are represented in their and their elected leader.
- 57:09So, yeah, really, really interesting project.
- 57:12And I think hard to imagine this going wrong.
- 57:16Yeah, it's really good.
- 57:18There was some conversation in the article about this project where it talks about trying to thread the needle of not looking partisan.
- 57:28We just want people to vote.
- 57:29How do we do that?
- 57:30And that's an interesting challenge.
- 57:31Right.
- 57:32Right.
- 57:32Right.
- 57:32Because, of course, that's become a polarized topic of conversation.
- 57:35There's a lot of concern about whether or not voting rolls are authentic.
- 57:40Nobody wants this concern on one side of the aisle about voting fraud.
- 57:44And then there's concern about from the other side of the aisle about voter suppression.
- 57:48So how do we get to some common ground?
- 57:51Because I think ultimately the common ground that everybody has is that we want an authentic process, whereas many people who are eligible to vote can.
- 57:58I think we all believe in democracy at the end of the day.
- 58:01But there's these two kind of opposing points of view on what to prioritize when making sure that our process has integrity.
- 58:06So it was great to thread the needle and find a technology driven, sort of a nonpartisan approach to making sure that the system functions as best as it can.
- 58:15Right.
- 58:15Let's take this technology applied to a problem that is inherently political and try to make our political system better without, you know, raising the hairs and anger of any particular group.
- 58:26It's pretty good.
- 58:27Yeah.
- 58:28It's a challenge.
- 58:28It's a challenge.
- 58:28So it's almost like these days it's hard to find anything that AI can do that makes everybody happy.
- 58:35However, I think this next story that you found actually is something that I think universally we can all agree on.
- 58:42I think it's pretty awesome.
- 58:43Apolitical and universally beneficial, sort of unequivocally beneficial.
- 58:47Yeah.
- 58:47So I think there's two really interesting angles to this.
- 58:50Let's take the super positive one first.
- 58:52So this is about using machine learning and computer vision to fight breast cancer, which there's been several projects around this.
- 59:02And they're universally good, I think.
- 59:05Right.
- 59:05You have these mammograms.
- 59:07They have pictures of potentially cancerous regions.
- 59:11But the key to catch cancer is to catch it early.
- 59:13But to catch it early means to see things that are utterly subtle.
- 59:17Right.
- 59:17So they were saying something like 38% of radiologists or whatever group of doctors is called that looks at this.
- 59:26They were doing like a 38% catch rate on these really super early cancers.
- 59:35So Google came up with an AI.
- 59:38It's even just like, well, they took one off the shelf and they applied it.
- 59:41It's like something ridiculous.
- 59:43Like off the cuff.
- 59:44You're just like off.
- 59:45We pointed at these and asked it some questions.
- 59:47And apparently it found the cancerous regions 99% of the time.
- 59:52Yeah, it is.
- 59:53And for exactly the reasons that you mentioned.
- 59:55Because it's capable of seeing much subtler patterns than human beings can.
- 59:59Which is, I mean, exactly what machine vision is good for.
- 1:00:03Yeah.
- 1:00:04So first it started out like we're just going to show the AI all the pictures and just get its opinion.
- 1:00:09Like forget the doctors.
- 1:00:10And then they said, well, what if, like we have doctors.
- 1:00:13And I think there still always will be doctors.
- 1:00:15But what if we give the doctors a stethoscope?
- 1:00:18We give them a tongue depressor.
- 1:00:20We give them a camera.
- 1:00:21What if we gave them AI as one of the tools they could point at the people and ask, you know, and analyze what the results are coming out of that machine, right?
- 1:00:28So they basically said, all right, the second one would take six pathologists.
- 1:00:32And they said they found it easier to detect small cancerous regions.
- 1:00:46And it only took half the time.
- 1:00:48At least for me, like in terms of where AI can be helpful in health care, especially these life-saving moments when the earlier that you detect cancer, for example, the more likely you are to be able to treat it.
- 1:00:59Like it's so complicated.
- 1:01:01Like I feel like the medical profession, the amount that doctors are expected to hold in their minds in order to like recognize relevant pieces of information and put together like a theory of the case.
- 1:01:13You know, what might this be based on all the pieces of information that I'm seeing?
- 1:01:16It is really like a marvel.
- 1:01:19I have nothing but respect for doctors who go through the amount of training that they go through, the amount of information that they're able to retain, and the kind of creativity that's required to recognize these different symptoms and put together, you know, some likely candidates for what might be ailing the patient.
- 1:01:33However, that type of pattern matching, assuming that you can capture accurate data, is exactly what machines have become really, really, really good at.
- 1:01:43And so I do think this is an area where, again, assuming that good data is available, and I think when it comes to something that is more kind of binary to determine, like whether or not there's cancer tissue, like cancer tissue present, and we can take an image of a region of the body and sort of reliably provide that to the algorithm that's trying to make a determination about whether or not cancer is present.
- 1:02:03Like, in examples like that, where the data is readily available, I think there's no reason that AI can't be a really powerful assistant so that doctors with all their knowledge and creativity can't augment that and sort of help recognize where they might have blind spots or where there might be technical limitations to their ability as human beings.
- 1:02:22Like, our eyes only work so well.
- 1:02:52I think that's open source earlier.
- 1:03:22Aggregate knowledge of the medical community can be available to any practitioner, which is kind of amazing.
- 1:03:27Yeah, it's pretty amazing.
- 1:03:28So you spoke about the computers detecting these really careful, nuanced details and images.
- 1:03:34And I would say China is doing a whole lot of interesting stuff like that to sort of assess people.
- 1:03:40So they've got crazy facial recognition, the stuff going on over there.
- 1:03:45They have a system that will detect your gait and identify you by the way you walk.
- 1:03:50That's, yeah.
- 1:03:51And all of these types of things are generally around this idea of like a social credit.
- 1:03:55Like, can we just like turn cameras and machines on our population and find the good ones in the background?
- 1:04:00It's true.
- 1:04:05I mean, it's a really interesting.
- 1:04:06It sounds crazy, right?
- 1:04:08Like you're laughing, but it's kind of like you're going to laugh or you're going to cry.
- 1:04:11Pick one.
- 1:04:12Well, it's true.
- 1:04:12It's true.
- 1:04:13So, A, I think China is a really interesting counterpoint to the debate that we're having here in the U.S.
- 1:04:19where here our values are very much privacy, individual freedom.
- 1:04:25And whenever technology encroaches on that privacy, we're very suspicious.
- 1:04:30So even the fact that advertisers can target me based on my browsing history, like, you know, makes a lot of people uncomfortable.
- 1:04:37Like maybe that's a violation of my privacy.
- 1:04:39Even though the advertiser doesn't know who I am as an individual, it's possible to make a pretty good guess about who I might be based on my behavior.
- 1:04:46They know you want a Leatherman pocket knife, but they just don't know your name.
- 1:04:49Right, right.
- 1:04:50And they know that people like me also like other products that people who like Leathermans like.
- 1:04:55I don't know.
- 1:04:56We're outside of my comfort zone.
- 1:04:57I'm sorry.
- 1:04:59I'm just making this up.
- 1:04:59But you get the idea, right?
- 1:05:01Yeah, exactly.
- 1:05:02But here, you know, a lot of the conversation is like, is that okay?
- 1:05:05Whereas in China, they've gone the other direction.
- 1:05:07They were like, I mean, it's a way that we can find the best people and maybe maintain social order.
- 1:05:12I mean, I don't know.
- 1:05:13I don't know what they're thinking.
- 1:05:13Just quickly, because not everybody will have seen this, but there's a Netflix TV show called Black Mirror.
- 1:05:20If you are into kind of a dystopian technology future or technology enabled dystopian future or whatever, I highly recommend Black Mirror.
- 1:05:28There is an entire episode dedicated to a social credit system.
- 1:05:32And everybody in the episode is ranked.
- 1:05:34Like every social interaction you have, you can basically like rate the person you had the interaction with.
- 1:05:40So did you get a smile from the barista at your favorite coffee shop?
- 1:05:43Five stars.
- 1:05:44Did you tip?
- 1:05:45You get five stars back from the barista.
- 1:05:47Like, did you take an Uber and the person was friendly?
- 1:05:50Five stars.
- 1:05:50And some of these things we already do.
- 1:05:52Like, we rate our Uber drivers and our Uber drivers rate us.
- 1:05:55But they're usually kept within the little space of Uber or Starbucks or whatever.
- 1:06:01It's not like your global rating.
- 1:06:02Like, you don't get a mortgage based on how you treated your Uber driver.
- 1:06:05Or not.
- 1:06:06Right.
- 1:06:07Well, I mean, you get your babysitting gig depending on what you posted on social media.
- 1:06:11But that's, again, here, like, it's like, oh, we're debating.
- 1:06:14Is it okay to judge potential babysitters based on that rage post they made about the ending of the Dark Mirror episode that they thought was stupid?
- 1:06:24Like, whatever.
- 1:06:25But China's gone the other direction.
- 1:06:27And so they, like, exactly like you were saying, they have all of these ways in which they are scoring and rating people based on the social behaviors that they can observe, either through surveillance or people's behavior online, their social media behavior.
- 1:06:41And so the Shanghai city in China, you may be familiar with it, is going to pool data from several departments.
- 1:06:49And they're going to reward and punish about 22 million citizens based on their actions and reputations by the end of 2020.
- 1:06:55So social.
- 1:06:57Right.
- 1:06:57Like a year and a half.
- 1:06:58Yeah, exactly.
- 1:06:59Like.
- 1:06:59It's not in the future very far.
- 1:07:01We're.
- 1:07:02Yeah, this is not something like far future dystopia.
- 1:07:05This is today, people.
- 1:07:06And so pro-social behaviors are rewarded.
- 1:07:09So if you do volunteer work, if you donate blood, which actually sounds cool, like I'd like to be rewarded for those things.
- 1:07:15This doesn't seem that bad.
- 1:07:16But people who violate traffic laws or charge under the table fees are punished.
- 1:07:21OK.
- 1:07:22If we're getting in.
- 1:07:24I mean, in a way, like we're already socially rewarded for doing good things and we're socially harmed for doing mean things, I guess.
- 1:07:32Or things that aren't cool.
- 1:07:34But and so in a way, it's like China wants to use technology to optimize the social systems that we already have in place.
- 1:07:42Like if I'm rude to you, then I suffer social consequences for that.
- 1:07:46But it's not really captured anywhere.
- 1:07:47I guess like that damage is pretty localized.
- 1:07:50Like it doesn't go on your permanent record.
- 1:07:52Exactly.
- 1:07:55This is everybody's permanent record is now captured digitally and managed by artificial intelligence.
- 1:08:00That's welcome to.
- 1:08:01Welcome to China.
- 1:08:03Yeah.
- 1:08:03So, yeah, it's pretty interesting.
- 1:08:05I mean, on one hand, I can see this benefiting society, but it just seems Black Mirror-esque to me as well.
- 1:08:12And so you might be wondering, like, well, what the heck is a punishment, right?
- 1:08:16So they say in another city, Hangzhou, they rolled out a credit system earlier this year and rewarding pro-social behaviors such as volunteer work or blood donations and punish those who violate traffic laws.
- 1:08:29They charge under the table fees and whatnot.
- 1:08:32And statistically, they said by the end of May, they've been blocking more than 11 million flights and 4 million high-speed train trips from the bad guys.
- 1:08:42Right.
- 1:08:43Right.
- 1:08:44And not bad guys, like, broke a law.
- 1:08:47Not.
- 1:08:48Bad guys, like, doesn't volunteer enough.
- 1:08:52Doesn't seem like, you know, heart's probably not in the right place.
- 1:08:55We're not going to let you take this train trip, buddy.
- 1:08:57Just denied.
- 1:09:00I'm sorry.
- 1:09:01Yeah, you're like, I was wrong.
- 1:09:02You got three and a half.
- 1:09:03Yeah, totally.
- 1:09:04Like, I was going to go visit my family.
- 1:09:05I wasn't going to be able to sit with them on the plane, but at least I was going to take a trip home for the holiday or whatever.
- 1:09:10And that, you know, trip was thwarted.
- 1:09:12Like, actual real-life consequences for things that we've all come to accept as, like, pretty much being a right if we can afford to pay for them.
- 1:09:19Right.
- 1:09:20Yeah.
- 1:09:20Yeah, kind of bizarre.
- 1:09:22Well, it's going to be a very interesting social experiment.
- 1:09:25Yeah.
- 1:09:25I don't want to be part of it.
- 1:09:26I'm glad that I won't be part of it either, although I wonder if everybody will just be, like, super friendly.
- 1:09:30Well, but hey, like, maybe that's the outcome that we're just not seeing.
- 1:09:33It's like, we'll go to Shanghai and be like, man, people are just, this is like a Leave it to Beaver episode.
- 1:09:40Exactly.
- 1:09:41Well, you know, how much of that would be disingenuous?
- 1:09:44You know, like, oh, bless your heart.
- 1:09:46You know, that type of stuff.
- 1:09:47You know?
- 1:09:48Then we just need to optimize the algorithm, man.
- 1:09:50Like, downvotes.
- 1:09:51Exactly.
- 1:09:52Downvotes for disingenuous social pleasantries.
- 1:09:54It's a double downvote.
- 1:09:55You were mean and you were disingenuous about your nitheness.
- 1:09:57Boom.
- 1:09:58All right.
- 1:09:59So, the last one is, I thought it'd be fun to leave people with something practical on this one.
- 1:10:04Have you seen this new data set search from Google?
- 1:10:07Yes.
- 1:10:08I am so, so into this.
- 1:10:10Partially because it's useful and partially because I've worked on a project where we tried to accomplish something similar.
- 1:10:16And it is super freaking hard.
- 1:10:20So, props to Google.
- 1:10:21Of course, if someone's going to get searched right.
- 1:10:23Google.
- 1:10:24Yeah, for sure.
- 1:10:25So, tell people what this is.
- 1:10:26Well, I mean, it's just like it sounds.
- 1:10:27It's a data set search.
- 1:10:29So, sometimes the data is like an actual data set that got captured somewhere as like a CSV.
- 1:10:35And or it's data that was extracted from sort of less structured material, like a table and a web page or something.
- 1:10:43But the way that you can search for it is like by topic.
- 1:10:46And I just want, as somebody who suffered through this very difficult problem, I just want people to understand what that actually would mean.
- 1:10:54Like to know what a data set is about in air quotes.
- 1:10:57And a data set in this case, if you're not like a data person, it's like a spreadsheet with column names at the top and a bunch of rows, for example, in the simplest case.
- 1:11:07And so, maybe you can look at the column headers and perform some machine learning or something and get a sense that the column headers are really well named.
- 1:11:14But they never are.
- 1:11:15Trust me.
- 1:11:15They never are.
- 1:11:16They always have some random name, like the name of like the column in the database table that was named in the 1970s that like this thing ultimately spit out in the first place.
- 1:11:25And there's like random characters in there that have no place in any data set ever.
- 1:11:29And there's a bunch of random missing values.
- 1:11:30And everything is a number.
- 1:11:32And so, you can't actually make any guesses about what's in there because it's just a bunch of random numbers.
- 1:11:35And so, you end up looking at weird things like the structure of the data set.
- 1:11:39And like you go to some strange places, my friends.
- 1:11:42But the fact that Google's figured out how to catalog this type of information and make it accessible to people, this like almost like semantic search for data sets, it really is a real feat of machine learning and engineering.
- 1:11:53Yeah, it's awesome.
- 1:11:54So, you just go to the data search page, which is toolbox.google.com slash data set search, at least for the time being.
- 1:12:03And you just type in a search and it'll give you a list, like here's all the places we found.
- 1:12:06And some of them will be like legitimate just raw data.
- 1:12:09And sometimes it's just embedded tables in a web page and all sorts of stuff.
- 1:12:13It's really well done.
- 1:12:13Yeah.
- 1:12:14It kind of lets you look for data in the way that you would look for any other content on the internet.
- 1:12:19Just the way that you would, well, the way that you would search normal Google.
- 1:12:21Yeah.
- 1:12:23Which is pretty impressive because there's usually not that much context around data sets on the internet.
- 1:12:28But like that kind of semantic real world context.
- 1:12:30So.
- 1:12:30Yeah, it's great.
- 1:12:31So, if people are out there looking for data sets, definitely drop in on Google data set search and throw some stuff in there.
- 1:12:37There's some good answers.
- 1:12:38I also really like the 538 data.
- 1:12:40Have you seen that?
- 1:12:41Oh, yeah, totally.
- 1:12:42So, the website 538, for folks who aren't familiar with it, kind of a data journalism focused website.
- 1:12:47A lot about sports, a lot about politics.
- 1:12:49But most of the work is driven by some type of data analysis.
- 1:12:53Yeah.
- 1:12:53And over at github.com/538, all spelled out, slash data, they have all of the data sets they use to drive their journalism,
- 1:12:59which is like hundreds of different data sets.
- 1:13:02So, I'd love to go and grab data there for various things I'm looking into.
- 1:13:05Yeah, absolutely.
- 1:13:06It's a great resource.
- 1:13:07Especially because then you can go see how they use the data and what questions they asked.
- 1:13:11And then it's kind of an easy way to, well, it's a great way to learn.
- 1:13:14Especially if you're kind of toying around with data for the first time and just getting comfortable with some of the amazing data exploration and modeling tools in Python.
- 1:13:23Best software language.
- 1:13:24Take that.
- 1:13:25Our users.
- 1:13:26That's right.
- 1:13:27Stick it.
- 1:13:28So, if you're looking for data sets, where do you go?
- 1:13:33Now, I go to data set search.
- 1:13:36But there's also a lot of great, it depends on kind of what you're looking for.
- 1:13:40But there's a company based in Austin, actually, called data.world that is trying to do kind of a similar thing to Google's data set search.
- 1:13:46But it's more curated.
- 1:13:48So, it's kind of community-based.
- 1:13:49People are sharing interesting data sets that they found and contextualizing them.
- 1:13:53So, it's a great, a lot of data for democracy volunteers when they're working on projects, they'll upload them to data.world to make the data available.
- 1:13:58But then there's also a lot of kind of open data portals, both at the national level.
- 1:14:04So, there's still data.gov.
- 1:14:06I believe that's still up.
- 1:14:07There was some rumors that it might all come down eventually, but it's still around, I think.
- 1:14:11And a lot of cities that have had open data projects or open data initiatives have collected all of those into a portal that's specific to where you live.
- 1:14:19So, if you want to find out, you know, how many dogs and cats are in your local animal shelter from one month to the next or whatever the analysis is that you're curious about that's super relevant to your city,
- 1:14:28you can probably find one that is for the city closest to where you live.
- 1:14:32I know there's one here in Austin, New York, Chicago, L.A., San Francisco.
- 1:14:38There's a lot of cities have this now, and it's a great way to find data that answer interesting questions and just toy around a little bit and learn more about where you live.
- 1:14:44Yeah, that's cool.
- 1:14:45And data.world's cool as well.
- 1:14:46I haven't seen that.
- 1:14:47All right, Jonathan.
- 1:14:48Well, that's the 10 items for the year in review.
- 1:14:51And I definitely think there's an interesting trend, and it's been super fun to talk to you about it.
- 1:14:56Yeah, of course.
- 1:14:56Thanks so much for having me on the show.
- 1:14:58And I hope everybody had a wonderful 2018 and is looking forward to an exciting year ahead.
- 1:15:02Absolutely.
- 1:15:03So, I have a few quick questions before you get to go, though.
- 1:15:05First, when are you coming back to podcasting?
- 1:15:08Are you just going to make these guest appearances?
- 1:15:10Do you have any plans to come back, or are you going to just keep working on your projects?
- 1:15:13You know, I'm thinking maybe towards the end of 2019, I'll try and find a year in review podcast where I can sit in.
- 1:15:19Well, you can definitely come back in 2019.
- 1:15:21That'll be good.
- 1:15:22I'm just pre-positioning for the next year.
- 1:15:25I love doing it.
- 1:15:26It's really fun.
- 1:15:27And I have no timetable for actually returning, though, because even the thought of committing to the amount of work that it takes to put on an episode.
- 1:15:34Yeah, it's a crazy amount of work per episode.
- 1:15:36That's for sure.
- 1:15:37Well, I'm really glad you came back for, you came out of retirement to do this one.
- 1:15:41Oh, thanks, man.
- 1:15:42I really appreciate it.
- 1:15:42And I'm super happy to come on the show and do it.
- 1:15:44I mean, especially because I won't be responsible for any of the work once this is recorded.
- 1:15:49Exactly.
- 1:15:51That's the way to do it.
- 1:15:52Be a guest.
- 1:15:53All right.
- 1:15:54Last two questions, which I know you answered a couple years ago, but it could have changed.
- 1:15:57So if you write some Python code, data science or otherwise, what editor do you use?
- 1:16:01Well, I use Jupyter Notebooks pretty heavily.
- 1:16:04And actually, more recently than not, I write much less software.
- 1:16:09Like almost everything I write now is some type of like exploratory data analysis.
- 1:16:13So it's almost entirely in Python.
- 1:16:14But when I do code, I still use sublime text a lot, which I feel like is kind of old school.
- 1:16:21I hear that the world has moved on.
- 1:16:22There's like Python specific, like quasi IDEs.
- 1:16:26And I'm out of the game, Michael.
- 1:16:28What can I tell you?
- 1:16:29It's all right.
- 1:16:30No, it's all good.
- 1:16:30It's a great one.
- 1:16:31And then a notable package on PyPI.
- 1:16:35Oh, man.
- 1:16:36Well, I mean, given what we've been talking about, I would strongly encourage everybody to check out a package called Keras, K-E-R-A-S, or TensorFlow,
- 1:16:48which is a both are very popular machine learning libraries or kind of machine learning frameworks.
- 1:16:54Keras is more high level.
- 1:16:55It's kind of it's a very accessible way to get into exploring neural networks, basically.
- 1:17:00So there's lots of kind of popular machine learning techniques that are sort of more traditional and super effective.
- 1:17:07There's nothing wrong with them.
- 1:17:08But the world has kind of moved into these like deep learning and AI is largely based on neural networks.
- 1:17:15And Keras is a great way to explore those without getting too much into the weeds.
- 1:17:18And then once you get into the weeds and you find it kind of interesting and you want to get down lower level and really play around with some of the network structures yourself,
- 1:17:24then you can get into TensorFlow, which is one of the underlying libraries that Keras is both on top of.
- 1:17:28So highly recommend both of those.
- 1:17:31Right on.
- 1:17:31Yeah, I've definitely heard nothing but good things about them.
- 1:17:33All right.
- 1:17:34Final call to action.
- 1:17:34Maybe especially around this whole democracy data pledge and stuff.
- 1:17:38People heard all your stories.
- 1:17:40They're interested.
- 1:17:41What can they do?
- 1:17:42They can.
- 1:17:42If you're like, I don't want to live in a Black Mirror episode, know that you have the power to change it.
- 1:17:47Python programmer and podcast listener.
- 1:17:49The power is in your hands.
- 1:17:51First up, go to datafordemocracy.org and you can sign the ethics pledge and you can let the world know that you believe in ethical technology.
- 1:18:01And together, we'll make our voices heard.
- 1:18:04We'll make sure the practitioners have a voice in this whole thing.
- 1:18:05And so datafordemocracy.org, we really would love to both have you sign the pledge but then also participate in the conversation.
- 1:18:12Because there's a whole community there that's really hashing out these ethical principles, making sure they work for real-world technologists who have real-world jobs.
- 1:18:20So you can contribute to that process.
- 1:18:22It's open source.
- 1:18:23It's happening on GitHub.
- 1:18:24We'd love to have you participate.
- 1:18:25All right.
- 1:18:26It's a great project.
- 1:18:26Hopefully people go and check it out.
- 1:18:28Jonathan, thanks for being on the show.
- 1:18:30It's been great to have you back, if just for an hour this year.
- 1:18:33Thanks, Michael.
- 1:18:34I really appreciate the opportunity.
- 1:18:35It was super fun.
- 1:18:35You bet.
- 1:18:36All right.
- 1:18:36Bye-bye.
- 1:18:36This has been another episode of Talk Python To Me.
- 1:18:40Our guest on this episode was Jonathan Morgan.
- 1:18:42And it's been brought to you by us over at Talk Python Training.
- 1:18:46Want to level up your Python?
- 1:18:48If you're just getting started, try my Python Jumpstart by Building 10 Apps course.
- 1:18:53Or if you're looking for something more advanced, check out our new async course that digs into all the different types of async programming you can do in Python.
- 1:19:01And of course, if you're interested in more than one of these, be sure to check out our Everything Bundle.
- 1:19:06It's like a subscription that never expires.
- 1:19:08Be sure to subscribe to the show.
- 1:19:10Open your favorite podcatcher and search for Python.
- 1:19:12We should be right at the top.
- 1:19:13You can also find the iTunes feed at /itunes, the Google Play feed at /play, and the direct RSS feed at /rss on talkpython.fm.
- 1:19:22This is your host, Michael Kennedy.
- 1:19:25Thanks so much for listening.
- 1:19:26I really appreciate it.
- 1:19:27Now get out there and write some Python code.
- 1:19:29I'll see you next time.
- 1:19:29Bye.
- 1:19:32Bye.
- 1:19:34Bye.
- 1:19:36Bye.
- 1:19:38Bye.
- 1:19:40Bye.
- 1:19:42Bye.
- 1:19:44Bye.
- 1:19:46you
- 1:19:47you
- 1:19:47Thank you.
- 1:19:49Thank you.