Latest / Talk Python To Me / #81: Python and Machine Learning in Astronomy
Transcript
- 0:00The advances in astronomy over the past century are both evidence of and confirmation of the highest heights of human ingenuity.
- 0:06We have learned by studying the frequency of light that the universe is expanding.
- 0:11By observing the orbit of Mercury, that Einstein's theory of general relativity is correct.
- 0:16It probably won't surprise you to learn that Python and data science play a central role in modern-day astronomy.
- 0:22This week, you'll meet Jake VanderPlas, an astrophysicist and data scientist from the University of Washington.
- 0:28Join Jake and me while we discuss the state of Python in astronomy.
- 0:31This is Talk Python To Me, episode 81, recorded October 21st, 2016.
- 0:56Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 1:09This is your host, Michael Kennedy.
- 1:12Follow me on Twitter where I'm @mkennedy.
- 1:14Keep up with the show and listen to past episodes at talkpython.fm.
- 1:17And follow the show on Twitter via at Talk Python.
- 1:20I'm very excited to announce this episode is sponsored by not one, but two new sponsors.
- 1:25And they both have excellent offerings for Python developers.
- 1:28Welcome GoCD by ThoughtWorks and DataSchool to the show.
- 1:32Thank you both for supporting the show.
- 1:34Jake, welcome to Talk Python.
- 1:37Thanks.
- 1:38Good to be here.
- 1:39Yeah, it's great to have you.
- 1:40I'm a huge fan of astronomy and science.
- 1:44And I'd love to talk to you about how Python and astronomy interact and all the problems you're solving.
- 1:49But before we get to those, let's start with your story.
- 1:52How did you get into programming in Python in the first place?
- 1:54Well, you know, I came to programming relatively late.
- 1:57I had a little bit of early experience in like sixth grade with Hyperscript, HyperCard, but didn't do much.
- 2:05I took a small programming class in high school, and I didn't really do much programming aside from evaluating physics stuff and Mathematica, simple things, until I was in grad school, actually.
- 2:20So I arrived at grad school and started working with a research scientist who later became a faculty.
- 2:29And I asked him, hey, this was around 2006, I asked him, hey, what programming language should I use?
- 2:36Most of the people around were using IDL, this interactive data language.
- 2:41It's a proprietary scripting language that's similar to MATLAB or Python in some ways.
- 2:47And he was one of the only people using Python at the time, and he said, well, you should use Python.
- 2:53That's the future.
- 2:54Everyone's going to be doing that soon.
- 2:56And so I decided to do it, and I learned Python.
- 3:00I taught myself Python over winter break.
- 3:04Sudoku was big at the time, so I wrote a Sudoku solver, and that was my way of learning how to do control flow and everything in Python.
- 3:12Yeah, that's great.
- 3:13I really think writing those little games like that are a great way to learn a language, or at least get started with it, right?
- 3:22Because the problems are not so complicated.
- 3:24There's not a lot of interaction.
- 3:26It's not like, well, how do I talk to a database?
- 3:27How do I do a UI?
- 3:29How do I call the web?
- 3:30Yeah.
- 3:31It was super fun.
- 3:33And being someone who didn't really have a background, any formal background in algorithms, it was a nice way to wrap my head around what sort of problems you can do in programming.
- 3:42So pretty much Python from then on, you've been doing a lot of stuff.
- 3:46You've been contributing to some machine learning libraries, to the whole Scikit area.
- 3:51Yeah.
- 3:52So where that came in is basically I started doing all this work in Python.
- 3:56I was writing horrible little one-off scripts like most scientists do who don't have formal training.
- 4:04And a couple years into my PhD program, I wrote my first paper.
- 4:09And the first paper was pretty interesting.
- 4:12It was using this relatively new at the time algorithm, a version of manifold learning called locally linear embedding.
- 4:19It was using that to explore some astronomical spectra.
- 4:24This algorithm was implemented out there.
- 4:25The paper introducing it had a link to a little tarball of MATLAB code.
- 4:30But I found pretty quickly that the code didn't scale to the size of the problem we had, which was hundreds of thousands or millions of spectra in several thousand dimensions.
- 4:43And so I spent a summer basically looking at this science and nature paper, looking at this MATLAB software, and trying to figure out how to write a more scalable version of the algorithm.
- 4:56And what came out of that was this C++ package.
- 5:01And I published the paper and did this standard thing of putting the C++ package in a tarball on my website.
- 5:08And I thought to myself, this is ridiculous.
- 5:12And the next person who tries to use this in astronomy is going to have to spend, you know, they're going to have to hire another grad student to spend a summer and figure out how to implement this.
- 5:22So I started asking people about how to make sure that your code can be used by other people.
- 5:30And then I found out there's this whole catchphrase called reproducibility, open science and things like that.
- 5:36So that was my foray into reproducibility and open science.
- 5:40And as I was asking around, someone mentioned that there was this brand new package that might be interested in that algorithm called scikit-learn.
- 5:49And so I got in touch with Gael Varaku, who was getting scikit-learn off the ground, and they thought it would be a good contribution.
- 5:59So I started, I think that was 2010 or somewhere around there, I started contributing to scikit-learn when I was really young.
- 6:06And, you know, I haven't looked back.
- 6:09I've really been turned on by this idea of open and reproducible science by making sure your software products that come out of your research are actually well-documented and reusable.
- 6:21And this thing that was sort of a side project in the beginning has turned into most of what I do during my day-to-day work.
- 6:29Isn't it funny how life takes those kinds of turns?
- 6:32Like you plan to do one thing and you discover another and it really becomes something you're passionate about.
- 6:39That's cool.
- 6:39Yeah, and it turns out now I'm way more excited by general software tools than I am about the astronomy research that drew me into grad school.
- 6:49Yeah, it sounds a lot like my story.
- 6:51That's awesome.
- 6:52Let's talk just really high level for just a moment about machine learning.
- 6:57I know a lot of people out there are into data science and they know machine learning, but there's all sorts of listeners.
- 7:03So, I mean, like how people used to solve problems and they would use like statistics or other types of things.
- 7:09But then this whole machine learning seemed to formalize it, bring some algorithms together.
- 7:13Like kind of give us an overview of what the whole story there is.
- 7:16Yeah, so whenever I introduce machine learning, I always emphasize the fact that it's just a set of models to data.
- 7:25You know, when you fit a line to data, you're doing machine learning.
- 7:29When you take two clumps on a two-dimensional plot and draw a line between them to say this side is one type and that side is the other type,
- 7:37that's a form of machine learning.
- 7:40And where machine learning gets powerful is these algorithms that you can do by eye or by hand in two dimensions,
- 7:47like drawing a line on a piece of paper.
- 7:49Once you formalize those algorithms, you can scale them up to a large number of points and large number of dimensions.
- 7:55You said you have a thousand dimensions in your previous problem.
- 7:58Like you're not doing that by eye, right?
- 7:59Yeah, yeah.
- 8:00So, you know, a thousand dimensions, the equivalent is fitting a 999-dimensional hyperplane to split things into two groups.
- 8:07And you can't really do that by eye.
- 8:09But the key is that machine learning is nothing more complicated than fitting these models to data in a way that scales to large data sets and to high-dimensional data sets.
- 8:19And, of course, it grew out of artificial intelligence and statistics in some sense.
- 8:25But I think the core distinction between the machine learning way of doing things and the statistics way of doing things,
- 8:32this distinction is put together, is described really well in this paper by Leo Briman called Statistical Modeling, the Two Cultures.
- 8:42The overview summary of that is that, you know, in classic statistics, you're building models where you care about the model parameters.
- 8:50Like you fit a line to the data and the slope is telling you something fundamental about the world.
- 8:56Whereas in machine learning, you fit a line to data.
- 8:59And you're not so much interested in the slope.
- 9:02You're just interested in what that line can tell you about new data that you, you know, you want to predict something about.
- 9:09I see.
- 9:10So a lot of machine learning is about prediction in the future.
- 9:13Like you create a model and then you want to ask it questions.
- 9:16Yeah, absolutely.
- 9:17And you're learning something about unknown data.
- 9:20I mean, the distinction is not completely black and white there, but I think it's a useful way to think about machine learning versus statistics.
- 9:27Yeah, that is an interesting way to put it.
- 9:29What are some of the major tools in Python that people use?
- 9:32Yeah, so scikit-learn is one of them.
- 9:36This is the Python package that's built on NumPy and SciPy and kind of uses the classic tools.
- 9:43It's really nice for doing sort of small to medium scale machine learning and modeling problems.
- 9:52It doesn't have a particularly good scalability story.
- 9:56There are some ways to kind of parallelize certain operations within scikit-learn.
- 10:01But if you want to go to out-of-core data and things like that, there are other ways to do this.
- 10:07So scikit-learn, to be honest, is for the bulk of what I end up doing in my work, I can use scikit-learn.
- 10:15And for scaling to large data sets, often in the work I'm doing, I'm doing kind of massively parallel stuff where I can split the data into chunks
- 10:25and run a small scikit-learn algorithm on one of those chunks and loop through them that way or parallelize them that way.
- 10:33Yeah, that makes sense.
- 10:34So maybe you're looking at some large part of the sky and you could break it into little grids or something.
- 10:38Yeah, exactly.
- 10:39I'm often looking at things object by object rather than trying to do things all at once.
- 10:44If you need to do larger models that are doing things all at once, there are these interesting libraries recently built around things like Spark and TensorFlow.
- 10:54TensorFlow. I'm not as experienced with those, but the TensorFlow stuff is interesting.
- 11:00And in particular, there's this SKFlow package that I've been rather intrigued by that kind of builds a scikit-learn API around a TensorFlow backend.
- 11:10Oh, that sounds like that's worth looking into. That sounds cool.
- 11:12And there's also PySpark, which is interesting.
- 11:16So where I'm in the process right now, it's been kind of fun.
- 11:19I'm working with some computer scientists and some neuroimaging people and some database specialists to put together comparison between a number of Python-oriented approaches to doing scalable computation in a scientific setting.
- 11:36And so hopefully that paper will be coming out in the next several months.
- 11:40Oh, yeah. That sounds really interesting.
- 11:41Give us some examples of how this whole machine learning story applies to astronomy.
- 11:49So, like, what types of problems or things are people doing with this?
- 11:53Yeah, so astronomy, we have a lot of areas where we want to predict certain aspects of things.
- 12:00So one example, just to be concrete, is let's say we're looking for the distances to distant galaxies.
- 12:08And the distances or red shifts of galaxies are important in constraining things about our understanding about the cosmology of the universe, the structure of the universe.
- 12:19But getting an accurate distance to a galaxy is an expensive observation.
- 12:25You have to do a spectral observation, which basically, you know, you look at an individual object and you split the light from that object using, like, a diffraction grading into its whole spectrum.
- 12:39You know, red on one end, blue on the other end, and a thousand bins in between.
- 12:43And given something like that, you can isolate certain emission lines or absorption lines and calculate its red shift, which is similar to its distance.
- 12:52And that's really, really accurate.
- 12:53But the problem is it's incredibly expensive because you have to look at individual objects and line up these diffraction gratings one by one.
- 13:01And when we're looking at, when we're just taking pictures of the sky, we're getting thousands or millions of galaxies a night.
- 13:08And it's, and we don't have the resources to take a spectrum of all of those.
- 13:13So the question then is, can you, can you take a small set of objects where you have these very detailed spectral observations and learn something about them so that you can predict what the red shift might be from a more coarse photometric kind of, kind of picture observation of them.
- 13:32And this maps pretty well onto a machine learning model, right?
- 13:35You have, you, you take a picture of the whole sky, and so you get data about each object that way at a coarse level.
- 13:43And then you take spectra of a certain collection of objects, and that gives you finer detail, more information about a subset of them.
- 13:51And then you want to build a model that can predict that, you know, that more information, the red shift and the distance for, for all the rest of them.
- 13:58So at first glance, machine learning seems to map pretty well onto astronomy data.
- 14:04The thing that's difficult about it in practice is most machine learning models assume some sort of statistical similarity between your training set and your unknown set.
- 14:18And in astronomy, unless you specifically design it that way, it's difficult to get that statistical similarity.
- 14:24So for example, we tend to have spectra of nearby bright objects because they're easier to take spectra for.
- 14:31If you're looking at distant, faint objects, the noise characteristics are different, the statistical distributions are different.
- 14:38So a straightforward machine learning approach to that will miss some things, and you might not even know you're missing things.
- 14:47Yeah, I can imagine.
- 14:48You know, one of the things that just blows my mind is that we can see things so far away and so small and effectively so far in the past and still make intelligent statements about them.
- 15:01Yeah, yeah.
- 15:02It's pretty amazing.
- 15:03It's unbelievable some of the things you guys are doing.
- 15:06And the thing that blows me away, actually, about astronomy and astrophysics in general is the fact that these laws that we discovered in the laboratory here over the course of the centuries actually apply to what we see out there 10 billion light years away, right?
- 15:24And it's not just that we're assuming they apply, it's that we can actually test and confirm that they apply.
- 15:30One example is, you know, there's all these scientists in the 18th and 19th centuries studied the behavior of gases, right?
- 15:39What happens if you blow up a balloon and how fast does the air come out?
- 15:43And all that led to this formalized field of thermodynamics and statistical mechanics.
- 15:51And as you go into more detail, like what happens if you're looking at ionized gases and things like that, we learned all this stuff in the lab.
- 16:01And then in the mid-20th century, figured out that the cosmic microwave background, this light echo of the Big Bang, actually comes from a plasma in the early universe.
- 16:15And we can understand the properties of the plasma there by the same laws.
- 16:19And the reason that we know that the universe is 13 point, you know, I can't remember the decimals, but 13 point something billion years old with a very good accuracy.
- 16:30One of the reasons we know that is because we understand the thermodynamics and statistical mechanics of the plasma in the early universe and can compute what that says about the cosmic microwave background.
- 16:42And that story right there is just fascinating to me.
- 16:45Yeah, it's totally fascinating.
- 16:47And what I think is also fascinating is the guys who discovered it, was that Bell Labs in New Jersey?
- 16:52I think.
- 16:53Yeah, yeah.
- 16:53Yeah, the guys who discovered that whole cosmic background radiation weren't looking for it.
- 16:59They found it on accident and it was in their way, right?
- 17:01Yeah.
- 17:02And their first hypothesis, I guess, was that it was pigeon droppings on the detector.
- 17:08And once they cleaned off all the pigeon droppings, they had to figure out it was something else.
- 17:13Yeah, so they got the Nobel Prize for finding static in their instrument and realizing the static was significant.
- 17:19Yeah, normally that would be a problem, right?
- 17:22Yeah.
- 17:22You want to get rid of it.
- 17:23Very cool.
- 17:24And so you gave a really interesting talk at PyData, I think 2015.
- 17:28I'll be sure to link to the – it's up on YouTube.
- 17:31I'll link to the video.
- 17:32Mm-hmm.
- 17:32And you talked about how distance is super important in astronomy.
- 17:35And it relates to many of these big ideas that we hear about if we're sort of paying attention, I guess.
- 17:42Yeah, absolutely.
- 17:43Distance is fundamental to a lot of what we do.
- 17:46And it's also really, really hard to figure out.
- 17:48I mean, if you think about just looking at a dot of light in the sky, how do you tell how far away that is?
- 17:57And so a big part of the story of astronomy over the past couple centuries has been people figuring out how to determine how far away things are.
- 18:07So the first step that people figured out is we can do it geometrically.
- 18:12You know, the same way as if you put your finger in front of your eye and close one eye in the other, your finger seems to jump around in front of the background.
- 18:21That's called parallax.
- 18:23And we can use a similar type of trick to find the distance to nearby stars because the Earth is on one side of the sun in June and on the other side of the sun in December.
- 18:33And if you compare what the nearby stars look like compared to the background stars in June and December, you see them jump back and forth.
- 18:41And you can use the geometry of that to figure out the distance to those stars.
- 18:45I see.
- 18:46So you measure the sky and you basically see which ones kind of move more and which ones are more or less fixed.
- 18:51And then based on the parallax, you can say, well, these ones that move, they're five light years away or something.
- 18:56Yeah.
- 18:56And you can calculate that based on the angle and what we know about the Earth's orbit about the sun.
- 19:01But that only works to within, well, up until a couple months ago, it was within maybe a few thousand light years.
- 19:10There's this Gaia mission.
- 19:11The data was just released in the last couple weeks.
- 19:16And that one of the things that Gaia can do is it's going to give us really accurate parallax distances out to previously unheard of distances.
- 19:28So we're going to really be able to figure out the three-dimensional structure of the stars in our galaxy.
- 19:35But that parallax is not going to work when you go out to more distant galaxies.
- 19:40So you have to come up with other ideas.
- 19:43And one of the ideas that's been really fruitful is this idea of standard candles.
- 19:49If I stick you on a street in the dark and I turn on a 100-watt light bulb and I put it right next to your eye, it's really bright.
- 19:56But if I put it two blocks away down the street, it's really dim.
- 19:59And that brightness and dimness, you can compute that because the apparent brightness is attenuated by a factor of one over the distance squared.
- 20:12So if you know that, if you look at a light two blocks away and you know that it's a 100-watt light bulb and you have a very accurate photometer,
- 20:20you can compute exactly how far away that light bulb is.
- 20:24And this works with stars, too.
- 20:26If we know the exact brightness of a star, the exact intrinsic brightness of a star, and we look at its apparent brightness, we can compute the distance very easily.
- 20:36Now, the trick there is you need to know the intrinsic brightness of the star.
- 20:43Yeah, that's the kind of stuff that amazes me because you look out at these things super far away.
- 20:48And how do you know their intrinsic brightness, right?
- 20:50Yeah, and it's really difficult.
- 20:52One thing you can do is build off these things we learned from parallax, and you can look for certain classes of stars that are always around the same brightness.
- 21:01And you know their brightness when you know the parallax distance.
- 21:05And then you look for the same class of stars that are further out, and you can sort of infer their distance that way.
- 21:13So this is why it's kind of called, in astronomy, it's known as the distance ladder.
- 21:16You know, we have these direct methods that lead to more indirect methods of distances as we go further and further out.
- 21:23And one of the coolest stories of this distance ladder is back in the early 20th century, there was this woman named Henrietta Leavitt.
- 21:33And she was looking at variable stars.
- 21:36So there are stars out there that get brighter and fainter with time.
- 21:39And she was looking at particularly at this class of stars called Cepheid variables.
- 21:44It was named after the fourth brightest star in the constellation Cepheus.
- 21:52And she found something curious when she was looking at the variation of these.
- 21:58They would get brighter and fainter with a period of, you know, somewhere between a day and a couple days, something like that.
- 22:04And she found that the period of how fast they got brighter and dimmer was related to their intrinsic brightness.
- 22:15And so there's this nice plot where she shows that.
- 22:18And it's this roughly linear trend between period and intrinsic brightness.
- 22:22And that's really nice because then you can, a period is something that you can find out in the sky.
- 22:28So she looked out and, you know, found all these stars and confirmed that the period and the intrinsic brightness were related.
- 22:34So then Hubble came along.
- 22:35And you've probably heard of Hubble from the Hubble Space Telescope.
- 22:37And what he did is he used the telescopes available to him and found more and more of these stars.
- 22:44And based on this period brightness relation, was able to estimate the distances to all these stars.
- 22:50And the thing that really completely blew open our understanding of the universe was when Hubble pointed his telescope at one of the, what they called then the spiral nebula.
- 23:02So there were these spiral shaped clouds out in the sky that for a long time people thought were just clouds of dust in our galaxy.
- 23:11But Hubble found individual Cepheid variables in the Andromeda spiral nebula and found that it wasn't in our galaxy.
- 23:20It was about two and a half million light years away, farther away than anything we ever would have imagined existed.
- 23:26So in one fell swoop, the study of variable stars led to us understanding that the universe is orders of magnitude bigger than we ever imagined.
- 23:37That's really amazing how that ladders up there, right?
- 23:41And beyond that, we also learned that the universe is not contracting or sort of static, but it's sort of going away from itself and accelerating, right?
- 23:51Yeah.
- 23:52Yeah, so at the same time, he found that not only were these galaxies really far away, but if he looked at all these galaxies,
- 24:00they were the spiral nebula, and now we know them as galaxies because we know they're separate groups of stars.
- 24:08He looked at all these and he found that there was a relationship between how far away they are and how fast they're receding from us.
- 24:16We can measure their recession velocity by looking at the redshift of the light.
- 24:20And it's kind of like the Doppler shift, when a siren goes by you, you hear it high at first and it passes and it goes low.
- 24:30You know, this...
- 24:31Yeah.
- 24:32And that same Doppler shift, we could see that the light was shifting to a lower frequency,
- 24:38just like the sound shifts to a lower frequency when a car goes away from you.
- 24:43And you can measure the velocity.
- 24:46And he found this relationship between the distance and the velocity,
- 24:50which basically describes a uniformly expanding universe.
- 24:55And, you know, right around the same time, Einstein's predictions, general relativity,
- 25:04people were realizing that the general relativity equations that describe gravity
- 25:09and explained the orbit of Mercury, among other things,
- 25:12you could solve those in a way that led to an expanding universe.
- 25:17So it was another confirmation of general relativity.
- 25:21And this was all based on finding distances to galaxies.
- 25:25This portion of Talk Python To Me is brought to you by GoCD from ThoughtWorks.
- 25:45GoCD is the on-premise, open-source, continuous delivery server.
- 25:49With GoCD's comprehensive pipeline and model,
- 25:52you can model complex workflows for multiple teams with ease.
- 25:56And GoCD's value stream map lets you track changes from commit to deployment at a glance.
- 26:02GoCD's real power is in the visibility it provides over your end-to-end workflow.
- 26:07You get complete control of and visibility into your deployments across multiple teams.
- 26:12Say goodbye to release day panic and hello to consistent, predictable deliveries.
- 26:17Commercial support and enterprise add-ons, including disaster recovery, are available.
- 26:21To learn more about GoCD, visit talkpython.fm/gocd for a free download.
- 26:27That's talkpython.fm/gocd.
- 26:31Check them out. It helps support the show.
- 26:33I think one of the things that's super interesting about this is, you know,
- 26:45this concept of variable stars and the work that woman did was very manual, right?
- 26:51Like she would look at pictures and so on.
- 26:55Yeah, she was measuring the way they measured brightness of stars back before CCDs
- 26:59is you're looking at photographic plates and the brighter something is, the more it's saturated.
- 27:07So you'd have to do a detailed measurement of the size of the dot on your photographic plate
- 27:13and use that to compute the brightness of the star.
- 27:16It's just, it's amazing to me that any of that work got done given how easy we have it now, you know?
- 27:22Yeah, exactly. Exactly. It's such a different world.
- 27:24But at the same time, we've kind of answered those questions for the simple small ones we focused on.
- 27:30And now the amount of data that you guys are getting is so much larger that you have to start applying these machine learning algorithms
- 27:38just to deal with it, right?
- 27:40Yeah, absolutely.
- 27:41So the project I've been involved in that's just starting to get off the ground,
- 27:45first light is going to be in a couple of years,
- 27:47is this project called the Large Synoptic Survey Telescope.
- 27:50And you can think of this as an overview as it's a 10-year movie of the entire southern sky.
- 27:57So it's a very wide-field camera that's going to be on a mountaintop in Chile in the Atacama Desert,
- 28:03one of the driest places on the Earth, so we don't get, don't run into much weather.
- 28:09And it'll be able to scan the entire night sky every three nights or so.
- 28:14So get about 100 full sky frames in this movie per year and then do that for a decade.
- 28:21And the big thing this is going to open up is more of the time domain.
- 28:26You know, typically astronomers tend to treat the sky as this fixed thing.
- 28:32There are individual times where we look at specific regions of the sky and see what has changed.
- 28:40But we don't really have a global survey yet of the time domain of the sky.
- 28:45And LSST is going to do this on a huge scale.
- 28:48We're going to have 10 years of data with something like 30-ish terabytes per night of data coming through.
- 28:58So the full survey size is going to be in the hundreds of petabytes by the end.
- 29:02So it's really, it's bigger than anything that's been done before.
- 29:07And it's really forcing astronomers to confront these old tool chains that they've had that don't really scale anymore.
- 29:15You know, the stuff that you could do, you could sit down, 10 years ago you could sit down on a computer
- 29:21and download, you know, all of the Sloan Digital Sky Survey and do some sort of local analysis.
- 29:28I don't know if, even in 10 years, I don't know if we're going to have hundreds of petabyte size hard drives in our laptop, right?
- 29:37We're going to have to do it a little bit differently.
- 29:39Yeah, that's really a lot of data.
- 29:41And the other thing you had said that was interesting is this data is being collected for everyone,
- 29:46which means that it's not specifically focused on some type of answering some type of questions.
- 29:54So the techniques and the tools and like the machine learning stuff you have to apply has a greater challenge.
- 30:01Yeah, it has to be really, really general because this data, like you said, it's collected for everyone.
- 30:07There's not really specific areas that it's addressing.
- 30:12It's one of these discovery class missions, similar to the Hubble Space Telescope.
- 30:16You know, you put it out there and you hope that the things you find are things that you're not going to be able to predict at the moment.
- 30:22And what that means is that for any particular science case, you're not necessarily going to have the best data.
- 30:33You know, if you were designing LSST to do one thing, like look for variable stars, you would do it very differently than if you're doing it in general
- 30:42because you have to balance all these different concerns and different areas of research.
- 30:48So, for example, going back to variable stars, one of the challenges with LSST is that rather than just observing in the same region of the spectrum every night,
- 30:58that you'd want to do if you want to, you know, if you want to look at a variable star and see how the brightness changed from one night to the other,
- 31:05you'd want to take the exact same observation.
- 31:07But LSST is not taking the exact same observation every night.
- 31:11It's getting a breadth of different bands throughout the spectrum, everything from infrared to,
- 31:18in the near ultraviolet.
- 31:20And what that means is that that's really good for things like determining the redshift of galaxies via machine learning, right?
- 31:30But it's actually very bad for finding variable stars because now you have to model not only the variability,
- 31:38but you have to model the spectral variability over the course of time, too.
- 31:42And it gets much more challenging.
- 31:44So as this data grows and as the heterogeneity of the data grows, having these sophisticated algorithms,
- 31:55whether it's machine learning or some sort of forward modeling or some sort of nonparametric modeling,
- 32:01that's becoming increasingly important.
- 32:03And it's things that need to happen kind of in real time while you're observing the sky
- 32:09because we want to be able to alert people within a minute or so.
- 32:13If something changes on the sky and we find an interesting object,
- 32:17there's going to be this alert stream so that somebody sitting in a telescope in another part of the world
- 32:22could point their telescope there right away and catch this interesting phenomenon.
- 32:27Yeah. Wow. I'm really excited to see what comes out of this. That's a big project.
- 32:32Yeah, it's going to be huge. It's really going to define the way that we do astronomy over the course of the 2020s.
- 32:40Yeah, for sure. So let's talk about some of the libraries that you might be using to answer questions here.
- 32:47So the two major ones, and I guess one is kind of a subset of the other, is AstroPy and AstroML.
- 32:53Yeah, so AstroPy is actually the big community standard.
- 32:57And it's been a really cool project to watch and to be involved in because it started a few years ago
- 33:03where everyone had their own little Python library to do things.
- 33:08This grew out, I should step back.
- 33:11Ten years ago, most people were using IDL.
- 33:14And so the community evolved these sets of routines in IDL to do a lot of the common tasks.
- 33:21And as more and more people moved over to Python because of – well, I'll go into that later.
- 33:27But as more and more people moved into Python because of its advantages,
- 33:32people built a whole bunch of different tools to do different things, and it was this sort of smattering.
- 33:39And the Space Telescope Science Institute people, the folks behind Hubble,
- 33:43came together in around 2012, 2011, and said,
- 33:46we should consolidate all this and create one Uber package to rule them all.
- 33:50And AstroPy was born, and it's actually accomplished its goal.
- 33:57Pretty much everyone is using it now.
- 33:59So that's an incredible package and really, really well done,
- 34:04and awesome software engineering behind it.
- 34:07Lots of buy-in from the community.
- 34:09AstroML is something that I started along the same time.
- 34:13I didn't have as broad of a vision, but I just wanted to bring together functionality
- 34:19and examples of doing machine learning specifically for astronomy in Python.
- 34:25And we actually wrote the package to accompany our book, which is –
- 34:29it's a Princeton Press book on statistical modeling, machine learning, and et cetera in Python for astronomy.
- 34:37Yeah, that's great.
- 34:39And so what kind of things do you cover in your book about –
- 34:43like what problems are solved or presented or data sets, things like that?
- 34:47Yeah, in that book, what we do is we walk through a lot of the –
- 34:52it's meant to be an intro graduate text on statistics and machine learning with astronomers in mind.
- 34:59So we walk through all the basics of data mining, statistics, machine learning,
- 35:06all the while using these data sets drawn from astronomy and problem situations that astronomical researchers will run into.
- 35:16And along the way, we also provide code snippets and provide figures with the full figure source available online
- 35:23so that if people want to actually use these techniques, they can grab our scripts and start modifying them from there and see where it goes.
- 35:31So AstroML is what drives that a little bit.
- 35:34In our next edition of the book, which might happen in the next year or so,
- 35:39my big task is going to be to incorporate AstroPy
- 35:43because we actually wrote that book before AstroPy existed.
- 35:46And so it's already a little bit outdated and I want to make sure that everyone's –
- 35:51I'm pointing everyone to the tools that are in AstroPy.
- 35:53Yeah, that makes a lot of sense.
- 35:54So you created the book and you're like,
- 35:56we really should make this like a package that people can just use,
- 35:59the techniques and whatnot, and then now it's a little more mature, right?
- 36:03Yep.
- 36:04Yep.
- 36:05Do you know of any discoveries that were done as a result of AstroML?
- 36:09It's been referenced in a lot of papers.
- 36:14I don't know offhand if there's anything that came exactly from that,
- 36:19but it's definitely been used for a lot of the incremental building of knowledge over the last few years,
- 36:25and it's been fun to see that.
- 36:26Yeah, I'm sure that's really rewarding.
- 36:28That's awesome.
- 36:29Another big thing in the astronomy community is forward modeling and Bayesian approaches.
- 36:36So I alluded to earlier the fact that machine learning is a little bit difficult
- 36:41because the statistical similarity of the samples is not always a good assumption.
- 36:49So the way that astronomers tend to get around that is to use forward modeling.
- 36:53So you have some model for your system based on the physics that you know,
- 36:59and you can look at the noise properties and the selection effects of your observations to constrain that model,
- 37:06and then that model will tell you about the data that you observe.
- 37:11And that tends to work really well in a Bayesian setting.
- 37:15So a huge push in the last few years in astronomy has been to use tools like Markov Chain Monte Carlo
- 37:22to do Bayesian analysis and to do these really large high-dimensional models to learn about the data.
- 37:31So there's one package that's been pretty impactful there is the MC package, E-M-C-E-E.
- 37:40And that's a package for doing Markov Chain Monte Carlo, doing Bayesian estimation,
- 37:46written by an astronomer and used for, it's been cited, I think, thousands of times in the astronomy community
- 37:54because so many people are doing that style of analysis.
- 37:57Yeah, that's really amazing.
- 37:58Yeah, I guess the whole how do you solve these prediction problems more quickly is really important.
- 38:05And Monte Carlo simulations are really good at that.
- 38:09Mm-hmm.
- 38:09And particularly the Bayesian approaches.
- 38:13Machine learning tends to be more of a frequentist approach,
- 38:17and the Bayesian forward modeling approaches give you some advantage.
- 38:22And when you have some a priori idea about what's driving your observations,
- 38:28you can take advantage of that more in a Bayesian context than in a machine learning context.
- 38:34So you wrote this book, The Statistics, Data Mining, Machine Learning, and Astronomy,
- 38:38and you survived that process and you decided to come back for more.
- 38:42And you're just about to finish up a book, right?
- 38:44Another one.
- 38:45Yeah, I'm just, I'm finishing one that's, it's an O'Reilly book.
- 38:48So think, you know, cute little animal on the cover.
- 38:51You've probably seen that.
- 38:52What's your animal?
- 38:53The animal is a Mexican bearded lizard.
- 38:56Yeah, this one is the Python Data Science Handbook.
- 39:00So the reason I did this is I, for years I've been approached by people who are, you know,
- 39:05in research or in tech or something like that.
- 39:08And they say, hey, I know how to use MATLAB.
- 39:11I know how to use R.
- 39:13But I want to learn how to do Python and I want to learn how to analyze data in Python.
- 39:17And I hadn't found a really good resource to point them to except for kind of collections of videos online.
- 39:23So I decided to write it.
- 39:25And it's taken much longer than I thought because life gets in the way.
- 39:30But we're at the point where it's, I'm doing the final edits right now.
- 39:35So it should be released pretty soon.
- 39:37Yeah, that's great.
- 39:38Congratulations on that.
- 39:39I'll be sure to link to it as well from the show notes so everyone can find it.
- 39:43One thing I'm particularly excited about this book, I wrote it all in the form of Jupyter Notebooks
- 39:48and got the publisher to agree to let me make the Jupyter Notebooks public.
- 39:53So you can buy the printed version of the book or you'll be able to go on GitHub
- 39:57and just work through the Jupyter Notebooks for free.
- 40:00Wow, that really is cool.
- 40:02Yeah.
- 40:02Okay.
- 40:03But you should buy the book to support all the work.
- 40:06Definitely support the project.
- 40:08That's cool.
- 40:09But it's very cool that basically it's a live book, right?
- 40:13Like if you have the data and you have the code and you can run it, you can explore it.
- 40:16Yeah.
- 40:17And we're working on, too, getting a hosted version of it up there on some cloud service.
- 40:24So you could just basically click and have a live executable textbook at your fingertips.
- 40:29Yeah, it's interesting.
- 40:31I think a lot of things are going that way, right?
- 40:33The days of just a printed book and a zip file are fading, let's say.
- 40:38Yeah, yeah.
- 40:39Because there's so much better ways of doing it now.
- 40:41This portion of Talk Python To Me is brought to you by DataSchool.
- 40:59Have you thought about making a career change into the exciting world of data science, but
- 41:03don't know how to get started?
- 41:04DataSchool helps data science beginners like you to analyze interesting data sets and build
- 41:10machine learning models to predict the future, all using Python.
- 41:13You don't need a PhD or a background in mathematics, just a keen interest in using data to answer
- 41:19your questions.
- 41:19DataSchool has created a data science learning path exclusively for Talk Python listeners.
- 41:25So visit talkpython.fm/DataSchool to launch your data science career.
- 41:29DataSchool is run by my friend Kevin Markham, so I know that you're going to get excellent
- 41:34content.
- 41:34Check it out at talkpython.fm/DataSchool.
- 41:37So let's talk a little bit about where you work and what you do, because you are breaking
- 41:47some rules around how people in academia and scientists work with programming technology and how
- 41:55programmers are involved.
- 41:56And I think that's really interesting.
- 41:57So you're at the University of Washington, but you're at this place called the eScience
- 42:02Institute, right?
- 42:03Yeah.
- 42:03So I'm in the eScience Institute.
- 42:04I've been here since the beginning of 2014.
- 42:06And the goal of the eScience Institute is to basically further computational research around
- 42:17campus.
- 42:18And so it's existed for a while, but we really got a big boost in 2014 when I came on.
- 42:26We got this joint grant between New York University, UC Berkeley, and UW.
- 42:33And we all created some version of this Data Science Institute.
- 42:36And so it's a five-year grant to support what we're doing.
- 42:39And the goals are basically to see how we can reshape the culture of academia to take more
- 42:46advantage of data science tools, to train people better, to provide career paths for software-focused
- 42:55researchers.
- 42:56And so, for example, the job that I have right now where I, what I do day-to-day is I spend
- 43:02a lot of time consulting with researchers around the university, helping them figure out their
- 43:07data challenges.
- 43:09I mentor students who kind of have one foot in their home domain, their science, and one
- 43:15foot in like a data science program.
- 43:18And I work a lot on maintaining the software that astronomers and other scientists use.
- 43:24And this is a position that's not really, it's, I feel like, sort of a stepchild in academia because
- 43:29no one really understands that type of position.
- 43:33It doesn't fit into the model of graduate student postdoc faculty.
- 43:39So we have a number of people that are in a similar position to me that are working on
- 43:44this.
- 43:44And it's been super fun to see what comes out of this and the kind of novel trainings and
- 43:52novel approaches to research that we can do.
- 43:54And particularly fun because it's not only happening at UW, it's happening at NYU and UC Berkeley as
- 43:59well.
- 44:00And we can compare notes with those institutions and see how things are going.
- 44:04That sounds like such a fabulous job.
- 44:06Yeah, it's good for the time being.
- 44:08I mean, I'm worrying that I'm peaking early because it's so fun.
- 44:12I don't know what will come next.
- 44:14It's all downhill from here.
- 44:15No, no, that's really cool.
- 44:16One of the things you pointed out in your PyData talk is that every field is entering a data-rich
- 44:22era.
- 44:23So there's all these biologists, sociologists.
- 44:25You're basically there to help support like the biologists, sociologists, chemists, all the
- 44:32people who are hitting the limits of how much data they can handle.
- 44:36Yeah, absolutely.
- 44:37And the way we're doing this is we have a number of different ways to engage with people on campus.
- 44:44So one is we have these open office hours.
- 44:46So just like you used to go see your professor during class, we have office hours that are oriented
- 44:52towards researchers who, if they have a challenge, they can come talk to one of our people.
- 44:56And we have people with expertise in everything from statistics, machine learning, to software
- 45:01engineering, to cloud computing and scalability.
- 45:04Another thing we do is we run these incubator programs.
- 45:07So it's sort of designed off these startup incubators that are coming from the Silicon Valley, where
- 45:12instead of incubating their startup idea, we're incubating their research idea and letting
- 45:17researchers work shoulder to shoulder with a data scientist who has an expertise that complements
- 45:23theirs.
- 45:23And we also have graduate fellowships where students have one foot in their own department,
- 45:30one foot in e-science and are taking not only, say, astronomy courses, but also database,
- 45:36machine learning, statistics, computer science courses and getting a credit on their PhD for
- 45:42that.
- 45:43Yeah.
- 45:44What I thought that was really fascinating is, you know, having gone through some part of
- 45:48a PhD program, just there's so many things you've got to take and learn.
- 45:53And you're so busy learning your specialty, right?
- 45:56Like biology, if that's where your PhD was.
- 45:58That is, it's really hard to be a good data science software type person as well.
- 46:04Yeah, absolutely.
- 46:05I think, you know, you said that these guys in these cohorts, they basically get half of
- 46:12their requirements for their PhD program waived.
- 46:16Yep.
- 46:17So that they can focus the other half on sort of complementing this with data science and
- 46:21programming, right?
- 46:22Yeah, that's the idea.
- 46:23And then what comes with that is they get, they have their home department advisor, but
- 46:27they're also matched with a co-advisor that's more methodological.
- 46:31And so it leads to not only the student growing a lot, but it leads to some interesting interdisciplinary
- 46:38collaborations around campus.
- 46:40And we've had a number of pretty cool grants that have been awarded based on some of these
- 46:45partnerships.
- 46:47Yeah, that sounds really quite amazing.
- 46:49I wish that was around when I was in school.
- 46:52Yeah, I do too.
- 46:54I had to pick a lot of this stuff up on my own.
- 46:56It would have been nice to have something like this.
- 46:58Yeah.
- 46:59If anyone out there is listening and they're maybe in a position where they're like, oh,
- 47:02this is interesting.
- 47:03How do we do this?
- 47:03Right?
- 47:04Like another thing that I thought you pointed out was really interesting is it's in a beautiful
- 47:08location.
- 47:08And you said that that was really important.
- 47:10Yeah, yeah, definitely.
- 47:12So we have this data science studio that it's an old library branch location on campus.
- 47:21And we're on the sixth floor of this tower with where we have the whole floor with 360 degree
- 47:26views looking out over Mount Rainier and the Olympic Mountains and things like this.
- 47:31And it's important not just so that I can have an awesome view while I'm writing code,
- 47:34but it's important because we want people around campus to interact with each other.
- 47:40And so we want to be a place where people would like to come and just hang out.
- 47:44So it's getting back to the, we call it the water cooler effect.
- 47:51The people who are around in the 60s and 70s working on, working on computationally intensive
- 47:57science, talk about the days when everyone would go to the mainframe on campus and you'd
- 48:04be sitting there waiting to put your punch cards in.
- 48:06And, you know, a hydrologist would be talking to an astrophysicist and finding out that they're,
- 48:12they're solving the same equations with their programs.
- 48:15So they would, you know, have that sort of talk and, and as the campus moved towards desktop
- 48:20oriented computing, those sorts of opportunities went away.
- 48:24And I think we're, we're better off if we can have that, that sort of connection.
- 48:29So one of the cool things about our space here is it's a, it's a space that's open to anyone on
- 48:34campus for, for just hanging out and working, but also for scheduling meetings.
- 48:39So we have people from all different departments that are scheduling their group meetings here,
- 48:43coming in, hanging out, having coffee, and then meeting someone from the other side of campus
- 48:48who's solving the same differential equation in their completely different field.
- 48:52Yeah, that's great.
- 48:53Yeah.
- 48:54Very, very nice.
- 48:54Like I said, I wish that existed when I was in school.
- 48:58All right.
- 48:59So we're kind of getting near the end of the show and I have a couple of questions
- 49:03that I wanted to run by you.
- 49:05One is kind of almost metaphysical.
- 49:07So I just heard the other day that there was some study done that there was, we underestimated
- 49:15the number of galaxies by like a factor of 20 or something amazing, right?
- 49:19Yeah.
- 49:19Yeah.
- 49:20That was really interesting that, you know, already there's so many galaxies out there and every
- 49:27galaxy has, you know, so many stars and so many planets.
- 49:29What do you think the chances that there's intelligent life outside the earth?
- 49:33Not necessarily like there's people visiting the earth, right?
- 49:35Just out there somewhere.
- 49:36We will never meet them.
- 49:37That's hard to say.
- 49:39you know, at this point, so, so one thing at UW, we have this, astrobiology group,
- 49:44which sounds like a funny area of study because what are they studying?
- 49:48Right.
- 49:48But, but they're working on really interesting things, combining, what we know about biology,
- 49:54about geophysics, about planetary astronomy, and looking for locations around the universe
- 50:00where, life might exist.
- 50:02And so they study extremophiles around here, like organisms that live on, on deep sea vents
- 50:08and, in acidic boiling water environments, things like that.
- 50:11but one thing that's come out of that group is, this, this notion that, simple
- 50:19life, you know, microbial life, probably could exist just about anywhere.
- 50:25And I tend to think that, you know, I would be, I would be pretty surprised if we
- 50:29don't find some sort of microbial life elsewhere in our, our solar system.
- 50:34but the other thing to come out of that as we study the dynamics of planets and
- 50:39things like this is that there are a lot of things about earth in particular that make
- 50:43it very special and a lot of, coincidences that, that are, that would be hard to duplicate.
- 50:50You know, things like the fact that Jupyter exists, keeps us from having a large number
- 50:57of asteroid impacts on earth.
- 50:58That's kind of a big shield.
- 51:00And, you know, that, that asteroid impacts, as, as we know from geological paleontological
- 51:07history is, they can be pretty bad for life on earth.
- 51:11So, so the type of stability that we have on earth, particularly over the last, tens,
- 51:17hundreds of millions of years, I suspect that's rather rare.
- 51:21And that, that makes me think that intelligent life might be rather rare.
- 51:25You know, I think, I think the seas of Europa, when we get, when we get something that can
- 51:30burrow through the ice and look down there, I really hope there's something swimming around
- 51:35down there because it would be pretty cool.
- 51:37It'd be very cool.
- 51:38I hope I hope I get to see that someday.
- 51:40That'd be awesome.
- 51:41All right.
- 51:42So another one, my wife's a professor here at Portland State University.
- 51:46So I hang out with some other, her colleagues and stuff.
- 51:49And one of her colleagues had this student, she's teaching like a numerical methods for
- 51:55partial differential equations, you know, something like that.
- 51:58Her, her, you know, she's using Python and a lot of things like NumPy and so on in her
- 52:06class for the computation.
- 52:07And one of her students came and said, Hey, I just, I know MATLAB.
- 52:10Can I just use MATLAB?
- 52:11Why do I need to learn this Python thing?
- 52:13What would you tell that student if you got that question?
- 52:16Yeah, that's a good question.
- 52:17so number one, I think, use the tool that's most effective for your research.
- 52:23And for example, if you, if there are programs in MATLAB that, don't exist in Python and,
- 52:29and they were, they're required from your, for your research, there's no reason to learn a
- 52:33new tool just because it's a new tool.
- 52:35But on the other hand, there, there's some distinct advantages to Python.
- 52:39And I alluded to this earlier when I talked about the field of astronomy shifting from 90% IDL over
- 52:45the last 10 years to probably 90% Python.
- 52:47And the advantages, that I see are number one, it's openness, right?
- 52:54It's, it's open and it's free.
- 52:55So that means, one thing that has come up with IDL, is there, there are site licenses
- 53:01required for every instance that you run.
- 53:03You know, it's, it's a pay to play type of operating system or type of, interpreter.
- 53:07And so when people started running, running parallelized jobs, taking advantage of all the
- 53:14computers in the department, there were times where a grad student would start a job and it
- 53:18would use all the site licenses for the entire department and research in the department ground
- 53:23to a halt, right?
- 53:24so you don't have that problem in Python because there's no site licenses with Python.
- 53:28So Python can be cheaper to use.
- 53:31the other thing about it is that, to, to serve students well, you know, the, the
- 53:39number of academic jobs versus the number of, undergrad degrees or PhDs granted is extremely
- 53:47small.
- 53:47So most of our students are going to be going out into the world and working somewhere other
- 53:51than an academic department.
- 53:52And, people in, in the outside world and the tech world, they're much more excited about
- 53:57someone with Python chops than someone with IDL chops or MATLAB chops, just because that's,
- 54:02you know, the way the world has gone.
- 54:04So that, that's another good reason to move to Python.
- 54:07the other thing that I love about Python is the culture of open source.
- 54:13So particularly now, 10 years ago, it was different, but now, just about anything you want to
- 54:20do in Python, you can go out there and there's somebody who has made an open source library
- 54:25for it, put it on a place like a GitHub or Bitbucket and, made it available.
- 54:30And, and often these libraries are really, really well done.
- 54:33There's just been this culture of, of well-designed open source, particularly in the scientific Python
- 54:39community.
- 54:40And it means that, you know, you can, you can do a, an amazing number of things just
- 54:45out of the box with Python and the scientific installation.
- 54:48Yeah.
- 54:50What do you think that means for reproducibility?
- 54:52Like I want to store this thing, of code, the interpreter, maybe even like a Linux Docker
- 55:01image of the thing that I use to generate my paper.
- 55:04Yeah, that's huge.
- 55:06And, you know, it comes back to the, in the beginning, I was telling you how I got into
- 55:09the Python open source world.
- 55:11I realized that there was, I thought it was ridiculous that I'd spent this whole summer
- 55:15building this tool that then no one was going to be able to use.
- 55:18And, the tools in Python for enabling that sort of reproducibility, even having like an
- 55:24executable paper are, are huge.
- 55:26And I think it's really helping science drive, drive itself forward because we don't need
- 55:32to reinvent the wheel every time we do a new study.
- 55:34All right, Jake, I think that we have to leave it there for the topics, but I do have two final
- 55:38questions for you before I let you go.
- 55:40Okay.
- 55:40I just saw on PyPI that we passed 90,000 distinct packages.
- 55:46There's so many amazing things you can just pip install.
- 55:50And, in your field, you probably get exposed to really interesting things that maybe not
- 55:55everybody knows about, tell us about like one of your favorite PyPI packages that you might
- 55:59recommend.
- 55:59Well, I mentioned this earlier, but the MC, for Markov chain Monte Carlo, I think that's
- 56:06just an incredible package and allows you to do so much as far as, Beijing modeling.
- 56:11I could talk about one of my packages, but yeah, well, you know, it's your own packages are not
- 56:17off limits.
- 56:17Like Astro ML is all right, you know?
- 56:20Yeah.
- 56:20So one, one that I'm working on recently, which is a lot of fun is this, Altair package.
- 56:25And what, what it is, is a Python interface to Vega light.
- 56:28And Vega light is a, a visualization grammar aimed at statistical visualizations, that
- 56:37basically, outputs interactive, JavaScript plots.
- 56:42And so we've been, we've been writing this Python wrapper and trying to make a nice API to,
- 56:47to create Vega light grammars and Vega light, visualizations.
- 56:51I'm pretty excited about this because, you know, there's, there's so many options for plotting
- 56:56out there right now.
- 56:57There's, you know, there's matplotlib, there's bokeh, there's plotly, there's hollow views, there's
- 57:04ggplot wrapper for Python.
- 57:07There's, I'm going to miss something and someone's going to get mad at me.
- 57:11seaborn, you know, things like that.
- 57:14but the one thing that, that Altair, that's interesting about Altair is that it interfaces
- 57:21to this Vega light grammar.
- 57:23And that grammar, I think has the, has the possibility of becoming sort of a lingua franca between these
- 57:29various visualization packages.
- 57:31And the Vega light, if you, if you've heard of D3, which is driving a lot of interactive
- 57:35visualization on the web, Vega and Vega light are come out of the same research group.
- 57:40So it's people who really know what they're doing as far as, as visualization design.
- 57:45Yeah, that's cool.
- 57:47That's a great pedigree.
- 57:47Yeah.
- 57:48So, you know, and I, now I get to write the Python classes that output this stuff and
- 57:53it's pretty fun.
- 57:54Great.
- 57:54What's the package called?
- 57:55It's called Altair, A-L-T-A-I-R.
- 57:58All right.
- 57:59Awesome.
- 58:00All right.
- 58:00And when you write some Python code, what editor do you use?
- 58:03I, I go back and forth these days between Emacs and Atom.
- 58:07I actually like the Emacs key bindings, but I like the way that Atom, arranges an
- 58:14entire project and lets you, lets you see all the files.
- 58:17Yeah.
- 58:18Yeah.
- 58:18Those are both nice.
- 58:19Cool.
- 58:19All right.
- 58:20So any final call to action?
- 58:21I heard you had an announcement about your, PhD cohorts, like 50, 50 program.
- 58:28Yeah.
- 58:29Yeah.
- 58:29So, we, we just put out this announcement for our 20, 2017 PhD fellowships or postdoctoral
- 58:35fellowships.
- 58:36So, this is looking for people who have recently finished their PhD who are interested
- 58:41in continuing research in their own field, but also adding some sort of computational or
- 58:46data science element to it.
- 58:47And it's similar to the graduate program I described earlier.
- 58:50You have, you apply to have one foot in your domain department, one foot in the e-science
- 58:56institute with, with two advisors, one from the domain and one in a methodological area.
- 59:01And we have just, a great set of postdocs here who are doing some, really phenomenal
- 59:07work with that.
- 59:08And it, so if you're, if you're, graduating PhD students and this e-science institute or data
- 59:15science stuff sounds good.
- 59:16I'd encourage you to apply to applications or do sometime mid January.
- 59:21All right.
- 59:22That's plenty of time to get them in there.
- 59:23Cool.
- 59:24Yep.
- 59:24All right.
- 59:25And when's your book coming out?
- 59:26probably, probably January.
- 59:29I think, I don't know at this point.
- 59:31It depends how, how, how quickly I get this, this corrected manuscript back to them.
- 59:36Yeah, of course.
- 59:38I saw that you can get like an early access version of it, right?
- 59:41Yeah.
- 59:42The early access is there.
- 59:43So if you want to take a look at the pre-release right now, you can, you can go buy it and they'll
- 59:48update you to the released version when it comes out.
- 59:51All right.
- 59:52Sounds great.
- 59:53So Jake, it's been super interesting talking about astronomy with you.
- 59:56Thanks for coming on the show and sharing your story.
- 59:58Yeah.
- 59:59Thanks for having me.
- 1:00:00You bet.
- 1:00:00Bye-bye.
- 1:00:01This has been another episode of talk Python to me.
- 1:00:05Today's guest has been Jake Vanderplast.
- 1:00:08And this episode has been sponsored by GoCD and data school.
- 1:00:11Thank you both for supporting the show.
- 1:00:13GoCD is the on-premise open source continuous delivery server.
- 1:00:18Want to improve your deployment workflow, but keep your code and builds in-house.
- 1:00:23Check out GoCD at talkpython.fm/gocd and take control over your process.
- 1:00:28Data school is here to help you become effective with Python's data science tools quickly.
- 1:00:34Skip years at the university.
- 1:00:35Check out the talk Python to me learning path at talkpython.fm/data school.
- 1:00:40Are you or a colleague trying to learn Python?
- 1:00:43Have you tried books and videos that just left you bored by covering topics point by point?
- 1:00:48Well, check out my online course Python Jumpstart by building 10 apps at talkpython.fm/course to experience a more engaging way to learn Python.
- 1:00:57And if you're looking for something a little more advanced, try my write Pythonic code course at talkpython.fm/pythonic.
- 1:01:04You can find the links from this episode at talkpython.fm/episodes slash show slash 81.
- 1:01:11Be sure to subscribe to the show.
- 1:01:13Open your favorite podcatcher and search for Python.
- 1:01:15We should be right at the top.
- 1:01:16You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct RSS feed at /rss on talkpython.fm.
- 1:01:25Our theme music is Developers, Developers, Developers by Corey Smith, who goes by Smix.
- 1:01:30Corey just recently started selling his tracks on iTunes, so I recommend you check it out at talkpython.fm/music.
- 1:01:37You can browse his tracks he has for sale on iTunes and listen to the full-length version of the theme song.
- 1:01:43This is your host, Michael Kennedy.
- 1:01:45Thanks so much for listening.
- 1:01:46I really appreciate it.
- 1:01:48Smix, let's get out of here.
- 1:01:49Stay tuned.
- 1:01:51Stay tuned.
- 1:01:51Stay tuned.
- 1:01:51Stay tuned.
- 1:01:53Stay tuned.
- 1:01:53Stay tuned.
- 1:01:53Stay tuned.
- 1:01:55I'll be right back.
- 1:01:57I'll pass the mic back to who rocked it best.
- 1:01:59I'll pass the mic back to who rocked it best.
- 1:01:59I'll pass the mic back to who rocked it best.
- 1:01:59I'll pass the mic back to who rocked it best.
- 1:02:11you
- 1:02:11you
- 1:02:12Thank you.