Latest / Talk Python To Me / #144: Machine Learning at the Large Hadron Collider
Transcript
- 0:00We all know Python is becoming increasingly important in both science and machine learning.
- 0:04This week, we journey to the very forefront of physics.
- 0:07You'll meet Michaela Paganini, Michael Kagan, and Matthew Feikert.
- 0:11They all work at the Large Hadron Collider and are using Python and machine learning
- 0:15to help make the next major discovery in physics.
- 0:18Join us this week on Talk Python To Me, episode 144, recorded December 14, 2017.
- 0:24Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the
- 0:43ecosystem, and the personalities.
- 0:45This is your host, Michael Kennedy.
- 0:47Follow me on Twitter, where I'm @mkennedy.
- 0:49Keep up with the show and listen to past episodes at talkpython.fm.
- 0:53And follow the show on Twitter via at Talk Python.
- 0:55This episode is brought to you by Linode and Talk Python Training.
- 0:59Be sure to check out what the offers are for both of these segments.
- 1:03It really helps support the show.
- 1:04Hey, everyone.
- 1:06Before we get to the interview, I want to share a quick update about our Python courses with
- 1:09you.
- 1:09Do you work on a software team that needs training and could really use a chance to level up their
- 1:14Python?
- 1:14Maybe your entire company is looking to become more proficient.
- 1:17We have special offers that make our courses here at Talk Python the best option for everyone
- 1:22you work with.
- 1:23Our courses don't require an ongoing subscription like so many corporate training options do.
- 1:27And they're roughly priced about the same as a book.
- 1:31We're here to help you succeed.
- 1:33Send us a note at sales at talkpython.fm to start a conversation.
- 1:36Now, let's get to the interview.
- 1:38Michael, Michaela, Matthew, welcome to Talk Python.
- 1:42Hi, everyone.
- 1:43Thanks for having me.
- 1:44Yeah, it's an honor to be on the show.
- 1:46Thanks so much for inviting us.
- 1:47Yeah, you bet.
- 1:48I'm really, it's, you know, the honor is mine, to be honest.
- 1:51You guys are doing amazing stuff.
- 1:52You are pushing the boundaries of science.
- 1:54And I'm just really excited that you're here to share what you're working on and how that
- 1:59intersects with the Python space with my listeners.
- 2:01So we're going to talk about large Hadron Collider, particle physics, and machine learning and how
- 2:07those three amazing things go together.
- 2:09But before we get into them, let's just start real quickly with how you guys got into programming
- 2:15in Python.
- 2:16Michaela, you want to go first?
- 2:17Yeah.
- 2:17So actually, when I started programming, it certainly wasn't Python for me at first.
- 2:21It was IDL and MATLAB and some undergraduate physics and astronomy labs.
- 2:26But then when I got to CERN and I started my career as a graduate student in Atlas, that's
- 2:31when I first encountered Python and C++.
- 2:34And so just like everybody else, I guess I learned on the job.
- 2:38And I'm really thankful that I had great mentors that really taught me what good code and bad
- 2:42code looked like, such that I could start writing good code instead.
- 2:46Yeah, I feel like so much of what people do in programming really is learning on the job.
- 2:52Even for people who have degrees in computer science, you study one thing, but then you go
- 2:57and you actually build something different.
- 2:58So I think, you know, it's probably not that different, actually, than what most people went
- 3:03through.
- 3:03Yeah, absolutely.
- 3:04I think that's something that a lot of people could relate to.
- 3:06Yeah, nice.
- 3:07And IDL, that's the astrophysics type language.
- 3:10Is that right?
- 3:10That's correct.
- 3:11That's correct.
- 3:12Yeah, I started as an astronomer in undergraduate.
- 3:15And so that was my first encounter, I would say, with real coding.
- 3:18I see.
- 3:19So you started out with really tremendously large things.
- 3:21You're like, no, no, let's look at the really small stuff instead.
- 3:23Yes, it was quite a transition.
- 3:25All right.
- 3:26Michael Kagan, how about you?
- 3:27Yeah.
- 3:28So I guess my story is pretty similar to Michaela's.
- 3:32But so I took a few classes in undergraduate.
- 3:36And actually, the first language I really used on the job was Fortran, because a lot of the
- 3:40old physics simulation and code for doing calculations is built in Fortran.
- 3:45So that was kind of my first real projects.
- 3:48And then once I got to graduate school, everything on the modern high energy physics experiments
- 3:54was C++.
- 3:54And that's where I kind of learned on the job.
- 3:56And then Python is kind of used there a bit.
- 3:59And so I was beginning to learn Python through some of the glue scripting that's done there.
- 4:05And then once I kind of got into more machine learning stuff and realized how many great
- 4:09tools there were, then I dove a lot more into using Python.
- 4:12Yeah, that's cool.
- 4:12At CERN, a lot of the actual data processing is done in C++.
- 4:18But then the consumption of that is done in Python, if I understand it right.
- 4:22Yeah, that's right.
- 4:22So basically, the enormous kind of database of code that kind of crunches on the data is
- 4:28all in C++.
- 4:29And then there's a wide range of different Python scripts that help guide the set of code
- 4:36that helps crunch on data from one type of experimental apparatus and then from another
- 4:41piece of experimental apparatus and then put that information together.
- 4:44Nice.
- 4:44Matthew, how about you?
- 4:46Yeah.
- 4:46So similarly, the first time I really did any programming was in a CS 101 course at university
- 4:52where I learned a little bit of C and some MATLAB.
- 4:55And nothing was really kind of clicking then.
- 4:58But then I joined an undergraduate.
- 5:01Well, as an undergraduate, I joined the research group at the University of Illinois.
- 5:05And my advisor at the time was like, hey, do you want to do this stuff?
- 5:08And it seemed really exciting.
- 5:09He was telling me about his work at the Large Hadron Collider.
- 5:12So I said, sure.
- 5:13And he was like, great.
- 5:14And he sent me down in front of a Linux terminal.
- 5:16And that's when I first got introduced to Bash and C++ and things like that.
- 5:21Then actually, I was starting to get to see how I could use programming to actually solve
- 5:25problems in analysis.
- 5:26That's kind of when I had this aha moment and it started to click.
- 5:30But I really didn't start using Python much until I got to grad school.
- 5:34And yeah, as Michael said, once I started to get a bit more introduced to how the physics
- 5:43community is using machine learning, then Python.
- 5:46And it's a really great ecosystem for machine learning tools.
- 5:51That kind of became a really obvious choice for me to start to hone my Python skills.
- 5:57But for me, pretty much all of my programming was just learned on the job.
- 6:01That's really cool.
- 6:01I think one of the things that really draws people in once they get started with Python
- 6:06is all the extra libraries that you could use.
- 6:09Oh, you can just pip install TensorFlow.
- 6:11You can just do this, just do that.
- 6:13And it's like, wait a minute.
- 6:14It's just, it's all right here.
- 6:16That's been fantastic, especially with these like very, very quickly growing set of libraries
- 6:20and tools.
- 6:21And even in the machine learning domain, there's a new package pretty frequently that you want
- 6:25to try out.
- 6:26And yeah, pip and Kanda and these kinds of these package managers that make this so quick
- 6:31is really much faster development time than a lot of the stuff we're doing in C++, where
- 6:37a new package comes out.
- 6:38Given the code base is enormous, can take a relatively long amount of time just to compile
- 6:43any changes you want to make.
- 6:44Yeah, that's for sure.
- 6:46So it's really, I think it's a really, I think of it as one of Python's superpowers.
- 6:50It's really cool.
- 6:52Michaela, one of the things I wanted to ask you about is it feels like this open source
- 6:56aspect of Python fits really well with the sort of open science.
- 7:01You know, this research is for public consumption.
- 7:04A lot of stuff you can do here seems like it's much better done with an open source set of
- 7:10software than say like MATLAB and proprietary paid add-ons or whatever.
- 7:14Is that for Michael or Michaela?
- 7:16Michaela.
- 7:17Yeah, Michaela.
- 7:17Oh, hi.
- 7:18Sorry.
- 7:18Yes.
- 7:19No, I totally agree with you in the sense that it's a lot easier for us being a large
- 7:25collaboration to be able to share tools and be able to collaborate across so many different
- 7:32domains, even within physics, using these libraries that one can very simply, as you both
- 7:37said, install in their environment, as opposed to perhaps using something closed source, which
- 7:42then needs to be distributed correctly.
- 7:44And so I totally agree that it fits very well with the design that at least I have in
- 7:49mind for what our workflows should look like.
- 7:53And I think a lot of the other people on this podcast would agree with me.
- 7:56Yeah, very cool.
- 7:56I was going to say, I would just add, I mean, and this is something like even the experiments
- 8:00take quite seriously, even, you know, kind of within any language, even if there's proprietary
- 8:05software that could be quite useful, we're very, very hesitant about, you know, kind of engaging
- 8:09with it because of our inability to look inside the box and our inability to really know that
- 8:13it's doing what we want to do.
- 8:14So, which is why even within the experiment, we end up writing a lot of our own code, even
- 8:19if there's a proprietary solution, just because it's not really adequate for us to be able
- 8:23to do the research we need to do.
- 8:24That makes a lot of sense.
- 8:25Is that new?
- 8:25You know, is that something like 15 years ago would have people said the same thing?
- 8:30Yeah, absolutely.
- 8:31Because a lot of these decisions that I'm even thinking about are about packages from
- 8:3515 years ago at the beginning of the experiment where there's even a nice neural network package
- 8:39that from 10 years ago that was decided not to really be used because it was proprietary
- 8:43at the time.
- 8:44Okay.
- 8:44Yeah, very interesting.
- 8:46I would say that those decisions were even more important back then than they are right now.
- 8:51I think these days, like we see more adoption of standard tools, still open source tools, but
- 8:57a lot of the standard tools from industry, whereas I would say that back in the days, maybe
- 9:02like decades ago at CERN, we would tend to really customize every single piece of code
- 9:06and write it ourselves.
- 9:09I guess you're probably right.
- 9:10That's an interesting point because today we're swimming in open source software and these ideas
- 9:15and it kind of seems more accepted.
- 9:16So yeah, it's even more important to have that sort of early when it wasn't so obvious.
- 9:21Nice.
- 9:22So let's talk about what you guys each do day today.
- 9:25You all are doing such amazing stuff.
- 9:27You're all involved in Atlas to some degree.
- 9:31And we'll talk about the Large Hadron Collider a little bit, but maybe you could just touch
- 9:34on what that is.
- 9:35So maybe Matthew, let's start with you.
- 9:36Yeah, sure.
- 9:37So I'm a graduate student at Southern Methodist University in the United States, but I'm stationed
- 9:44over at CERN.
- 9:44And so like you said, I work on Atlas.
- 9:46So as a graduate student, in some sense, you could say like one of my main responsibilities
- 9:51is to make plots.
- 9:53But I mean, what I mean by that is that I'm both like learning how to do analyses and then
- 9:58I'm actually one of the people who's kind of going in and writing the code.
- 10:02And so I do work on a specific analysis that's looking at trying to measure specific properties
- 10:09of the Higgs boson given a specific decay channel that it might have or that it does have.
- 10:16And then the way that I'm kind of doing this right now is actually by using Jupyter notebooks.
- 10:22So I can actually go in and use some of the great Python tools like Keres to be able to
- 10:30interact with the data and actually write some neural networks and actually try and do some
- 10:36exploratory data analysis.
- 10:38So in addition to that, I also do some operations work on Atlas.
- 10:42So I work on something that's called our trigger system.
- 10:44We can talk a bit more about that if there's time.
- 10:47Yeah, the trigger system is really amazing and critical as well, right?
- 10:51Yeah.
- 10:51Yeah.
- 10:52We'll definitely talk about that.
- 10:53Yeah.
- 10:54So there I'm basically just writing a combination of C++ and Python to try and do optimization studies
- 11:01and provide support for the trigger system.
- 11:03Okay, cool.
- 11:04How about you, Michaela?
- 11:05What do you do day to day?
- 11:06What are you doing on all these experiments?
- 11:08Yeah, okay.
- 11:08So, well, these days I always joke about this, but what I spend most of my time on is preparing
- 11:14talks and posters for conferences and workshops and interviews and all of that.
- 11:18But I guess my average day as a PhD student in Atlas consists primarily of three things,
- 11:23I would say.
- 11:23First of all, training neural networks.
- 11:25And then while those are training, I contribute to the experiments or my analysis code base.
- 11:31I read lots of papers on the archive, but I would say certainly roughly 90% of my time
- 11:36is spent on coding and documenting the code.
- 11:39And I'm also involved in various reconstruction and analysis groups.
- 11:43And my goal personally is to bring better algorithmic thinking to the table to help identify bottom
- 11:50quarks or pairs of Higgs bosons in my case or any other particle that we might be interested
- 11:55in at the Large Hadron Collider.
- 11:57I can go into more detail if you want about some of the work that I'm doing with neural networks.
- 12:02Specifically, I'm working on speeding up a part of our simulation that is very competentially
- 12:08intensive.
- 12:08And my idea is to use generative adversarial networks to have a higher accuracy, but at the
- 12:16same time, a faster simulator that is powered by deep learning.
- 12:19That is really awesome.
- 12:20And I do want to ask you more about that.
- 12:22But one question that came to mind while you're describing that is, you say you spend 90% of
- 12:26your time writing code.
- 12:28When you got into physics, did you think, and you thought about, what am I going to do as
- 12:33a physicist once I'm done with the books?
- 12:35Like, is that what you actually saw yourself doing?
- 12:37Absolutely not.
- 12:38I was not ready for that at first.
- 12:41It came as a surprise.
- 12:42It was a pleasant surprise, I have to say.
- 12:44It turned out that I love coding a lot more, perhaps, than I like more traditional ideas
- 12:49of physics.
- 12:50But it was a transition, let's say, because not much of our coursework prepares us for what
- 12:58the reality of the work of a graduate student in an experiment like Atlas is really like.
- 13:02And as I said, the majority of it is coding.
- 13:04Yeah, for sure.
- 13:04I didn't take any graduate classes in physics, but I took a number of high-level ones.
- 13:08And I don't remember doing hardly any coding for them.
- 13:11It was all pen, paper, you know, prove this, prove that.
- 13:15A lot of equations, not much actual software.
- 13:18I would certainly advocate that some of the curriculums should be probably updated to reflect
- 13:24what the real life of a graduate student in experiments in high-energy physics looks like.
- 13:28Yeah, that makes a lot of sense.
- 13:31All right, Michael, how about you?
- 13:32I'm a research scientist at Slack without the K. So that's the Stanford Linear Accelerator Center.
- 13:38Not the chat thing, but the really fast thing at Stanford, right?
- 13:41Exactly. Yeah.
- 13:42So it's a linear accelerator center.
- 13:44It's a kind of one of the DOE, Department of Energy National Laboratories, that's run by
- 13:49Stanford.
- 13:49And actually, most of what they...
- 13:52This used to be a high-energy physics lab, primarily.
- 13:55And that's kind of been turned into basically a big X-ray laser, a free electronic laser.
- 13:59But anyways, I don't really work on that stuff.
- 14:01I'm part of the team that works on Atlas.
- 14:03And so kind of as a research scientist, you know, we work in Atlas, which is this 3,000-person
- 14:10collaboration.
- 14:11And, you know, each of us kind of work for our own institutions.
- 14:14And so one aspect of that is with 3,000 people trying to, you know, run, improve and run a
- 14:20large piece of equipment and then do all this data analysis is we have to organize.
- 14:25So I found myself now in kind of a phase of my career where, you know, I'm more and more
- 14:31a part of that organization.
- 14:32So I'm helping to run one of the groups which looks at a certain kind of particle, which we
- 14:38might find in our detectors, which is called a bottom quark.
- 14:40And we basically develop algorithms to find those particles in the detector.
- 14:46And so once we find them, we can then give those algorithms out, supply them to any other
- 14:52analyzer on the experiment who wants to, you know, look at some data and find out, you
- 14:56know, in a given collision, how many bottom quarks were there in that collision.
- 14:59So that's, I spend a lot of my time kind of running that group, which is kind of maybe 50
- 15:04or 60 people kind of organized together, working together to get that moving forward and working.
- 15:09And then, you know, with the free time that I have left, you know, working with kind of
- 15:15postdocs and grad students on data analysis.
- 15:17I mean, I've worked both with Michaela and Matthew on various data analysis projects.
- 15:21And then also on exploring how we might take some new ideas in machine learning or even
- 15:27develop some when needed to solve some of our specific tasks.
- 15:30Yeah, that sounds really, really interesting.
- 15:32And you're using some machine learning and those types of algorithms to create these techniques
- 15:39for discovering these bottom quarks?
- 15:41Yeah, absolutely.
- 15:42So kind of machine learning, you know, machine learning is, you know, has been around for a
- 15:46while.
- 15:47And especially, you know, so we've had algorithms that that kind of work.
- 15:51And I guess this is probably a pretty, you know, still a very common and powerful paradigm,
- 15:55which is we look at our data.
- 15:57And, you know, based on our domain knowledge, we can we can develop all sorts of features
- 16:01or all sorts of use all sorts of algorithms to say, OK, well, this looks like the properties
- 16:07of a bottom quark.
- 16:08And we can compute all these features and then run them, train machine learning algorithms to,
- 16:11you know, for instance, classify whether this set of data really was a bottom quark or not.
- 16:16And so that's been around for a while.
- 16:18And one of the things we're also working on then is saying, OK, well, let's if we can take
- 16:21a step back and look at this data and see if, you know, if we can think about it in different
- 16:26ways, sometimes that maps on to problems like problems in vision or even natural language
- 16:31processing, where we can then start to use some of these super modern techniques, you know,
- 16:36coming from things like deep learning so that, you know, we can even improve our classification
- 16:40or in some cases we're doing regression or even generative type problems.
- 16:45So there's a lot of work.
- 16:47Yeah, you basically are working.
- 16:49Yeah, you're working with a huge camera, basically.
- 16:51Exactly.
- 16:52With Atlas.
- 16:53Yeah, it's it's it is a keep thinking of it in meters, but it's like a 75, 75 foot tall and
- 16:59100 and 120 foot long detector that sits 100 meters underground.
- 17:04And it's built of like many different kinds of cameras.
- 17:07And so we have to kind of take that and these different kinds of cameras detect different
- 17:11kinds of particles.
- 17:13And we take all that information together to build a picture of what happened every time
- 17:16we collide.
- 17:17Yeah.
- 17:17So maybe that's a great place to segue into just like a really quick summary of this particle
- 17:23physics stuff.
- 17:24So Matthew, maybe we'll start let you start this off.
- 17:27You know, we were told I was told in, I don't know, fifth grade or something that atoms, that's
- 17:34the smallest stuff that everything is made of.
- 17:36Right.
- 17:36But, you know, not so much.
- 17:38Right.
- 17:38Tell us about it.
- 17:39Yeah.
- 17:39So we I think everyone kind of has this idea going through like schooling that, you know,
- 17:44you have the periodic table where you have like your atoms that are made of protons and
- 17:49neutrons and electrons.
- 17:50And that's it.
- 17:51Right.
- 17:51Well, yeah.
- 17:52So it turns out that's not really the whole story.
- 17:54And that while electrons, as it turns out, do seem to be fundamental particles, protons
- 18:00and neutrons, these are these are actually composite particles that are made of even more
- 18:06fundamental particles that we call quarks.
- 18:08And so and there's also gluons in there, which are other subatomic particles.
- 18:13So it turns out that there's kind of this whole particle zoo, if you will.
- 18:17But kind of the amazing thing is that when we go and kind of explore the world and and
- 18:23actually look, it turns out that there's 12 matter type particles in the world that there's
- 18:29six of these quark particles that make up the protons and neutrons.
- 18:32We call these things protons and neutrons more generally hadrons.
- 18:36And then there's things like the electron that are called we call leptons.
- 18:42And there's both electrically charged things, electrically charged leptons like the like the
- 18:48electron.
- 18:48And then there's also kind of their ghostly neutral cousins that hardly even interact with
- 18:54matter at all.
- 18:55So I think maybe Michaela and Michael can talk about the fundamental forces and other
- 18:59things.
- 18:59Yeah, sure.
- 19:00Michaela, take it away.
- 19:01Yeah, of course.
- 19:02But on top of all of these matter particles that Matthew just described, we also have what
- 19:07we call the force carriers or gauge bosons in a way.
- 19:12And these are particles that can be thought of as being exchanged among other fundamental
- 19:17particles to mediate some of the forces and attractions that connect these that are more
- 19:22fundamental particles.
- 19:23And so we can think of the photon, for example, as being the force carrier for electromagnetism.
- 19:29And then I think to complete the puzzle, we have the most recently discovered particle
- 19:35for the standard model of particle physics, which is the Higgs boson.
- 19:38And by the way, the standard model of particle physics is just this great theory that we've
- 19:43come up with over the years that kind of puts all of our fundamental particles in this periodic
- 19:49table that Matthew and I have just tried to describe to you.
- 19:52So there is a little bit of an analogy maybe to chemistry, but at even more fundamental
- 19:56level than the atom itself.
- 19:58Yeah.
- 19:59And it's really amazing that this was created somewhat theoretically.
- 20:02And then the machine to go find things like the Higgs boson was built.
- 20:07And then it really was there.
- 20:08That's true.
- 20:09It's very fascinating.
- 20:10I think at a certain point in history, experiment was ahead of theory.
- 20:15And then theory surpassed experiment once again.
- 20:18And so it's a very fascinating field to be in.
- 20:22And I think at different historical moments, things were very different from what they look
- 20:26like today.
- 20:27Yeah.
- 20:27How much do you think that comes from people just getting better at theory versus computational
- 20:33techniques assisting theory?
- 20:36I think it's probably part of what you said, but as well as the energy regimes that we are
- 20:43trying to probe now.
- 20:44So I think most particle physicists would agree that in terms of the energies that we were able
- 20:50to probe right now, we think we have a good understanding of all of the particles that could exist there.
- 20:56But what we're really searching for right now is something that is an even higher energy.
- 21:01And that's the main issue.
- 21:03At that point, the complication is not so much whether the theory is there or not, but it's
- 21:09being able to produce machines.
- 21:12So it's the hardware technology even to go search for these particles.
- 21:16And I think certainly software will help us get the most out of the hardware that we currently
- 21:20have and the next hardware that we will build in the future generations.
- 21:24But it's both hardware and software, in my opinion.
- 21:27Yeah.
- 21:27Okay.
- 21:28Really cool.
- 21:28All right.
- 21:29Maybe the last one on this physics intro stuff.
- 21:33Michael, what was the big deal about finding the Higgs boson and what did people learn from
- 21:38it?
- 21:38Yeah, absolutely.
- 21:39The Higgs boson is probably the hardest of the particles to describe in some ways.
- 21:43So it sounds enormous, but the job of the Higgs boson is many things.
- 21:49And it's probably the easiest way to explain is it gives mass to all the other particles.
- 21:54And so the way you can think about that is as particles move around, they bump into Higgs
- 22:00bosons.
- 22:01And the Higgs bosons kind of slow them down and effectively give them mass.
- 22:06Kind of like if you're trying to walk through water, it takes a lot more force or a lot more
- 22:10effort to kind of move your body.
- 22:11And that's the same way that's kind of happening with the particles.
- 22:14This is an imperfect analogy.
- 22:15So if any theoretical physicists are listening, I apologize.
- 22:19That's roughly the idea.
- 22:21But it turns out the Higgs boson really played a fundamental role in making this theory that
- 22:26Michaela and Matthew explain, which is incredibly predictive, maybe the most predictive theory
- 22:30ever, kind of makes sense.
- 22:32Without the Higgs boson, the theory effectively predicts things that have probabilities larger
- 22:37than one, which we knew didn't make any sense.
- 22:39And that's kind of a little bit how you were saying that that knowledge of the theory breaking
- 22:44down really helped drive what became a 40 or 50 year long experimental search.
- 22:50Yeah, it's amazing how people get excited when they're wrong.
- 22:54It's like, oh, the theory might be wrong.
- 22:56It would be so exciting.
- 22:57Yeah, absolutely.
- 22:59I think, you know, that's every time something doesn't make sense, the theoretical physicists
- 23:03get incredibly excited that they're going to have to come up with a completely new theory.
- 23:06Yeah.
- 23:06And I don't think we're done with that at all.
- 23:09That's cool.
- 23:10So if people are out there listening and they really want to get a sense for what's going
- 23:15on LHC and particle physics, I definitely want to recommend the documentary Particle Fever,
- 23:20which I think is available on Netflix.
- 23:22But I'll link to at least the trailer.
- 23:24And there's a book called Present at Creation, Discovering the Higgs boson, which is great.
- 23:28And then there's another one, We Have No Idea, A Guide to the Unknown Universe.
- 23:32Who recommended that one?
- 23:33Yeah, so I recommended that.
- 23:34That's actually co-written by our Atlas colleague, Daniel Whiteson, and then also the famous PhD
- 23:41comics cartoonist, Jorge Sham.
- 23:43I really like that book because I think it's both like a celebration of how much we still
- 23:48don't know about the universe and how now is really a great time to get into science because
- 23:54we're truly in an age of discovery.
- 23:56But it also talks about just how much we do know as well.
- 24:00So I think it's both, it's just a great celebration of science.
- 24:03And it also, given that it's co-written by a physicist, it really does convey ideas really
- 24:08well.
- 24:08Yeah, excellent.
- 24:09Yeah, so people can check all three of those things out.
- 24:11They're really good background information.
- 24:13This portion of Talk Python To Me is brought to you by Linode.
- 24:18Are you looking for bulletproof hosting that's fast, simple, and incredibly affordable?
- 24:22Look past that bookstore and check out Linode at talkpython.fm/Linode, L-I-N-O-D-E.
- 24:29Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 24:33They have 10 data centers across the globe.
- 24:35So no matter where you are, there's a data center near you.
- 24:38Whether you want to run your Python web app, host a private Git server, or a file server,
- 24:42you'll get native SSDs on all machines, a newly upgraded 200 gigabit network, and 24-7 friendly
- 24:48support, even on holidays, and a seven-day money-back guarantee.
- 24:51Want a dedicated server for free for the next four months?
- 24:55Use the coupon code python17 at talkpython.fm/Linode.
- 25:00So let's catch up on the LHC just a little bit.
- 25:03Michaela, maybe could you just give people a sense of the scale?
- 25:07Like Michael said, there are 3,000 people working on Atlas, and Atlas is just part of one of the
- 25:12experiments.
- 25:12Give us a sense of what this place is like.
- 25:14Yeah, absolutely.
- 25:15I really love CERN.
- 25:16It's a group of fantastic people, some of the brightest minds in the world.
- 25:20And it brings together researchers and engineers and computer scientists from all around the
- 25:25world, probably hundreds of different nationalities.
- 25:28And one of my favorite thing about it is that I can absolutely say that every single time I
- 25:32am there, I'm never hanging out with more than one or two people from the same nationality.
- 25:37So to me, that's the best thing about it.
- 25:39Again, there's probably tens of thousands of people across the various different experiments.
- 25:45We've been talking a lot about the LHC, a large hadron collider that hosts four experiments.
- 25:51So not only Atlas, but also LHC-B, ELISE, and CMS.
- 25:56But then again, the large hadron collider is only one small part of the entirety of CERN.
- 26:02There are a lot of other experiments going on.
- 26:04For example, some antimatter experiments at the antiproton decelerator, as well as even
- 26:11astronomy experiments, as far as I know.
- 26:13So it's a large laboratory that spans across two different countries at the intersection,
- 26:19at the border, basically between France and Switzerland.
- 26:22So fantastic place to work at.
- 26:24Yeah, it sounds really, really cool.
- 26:25And people can go tour it, right?
- 26:27They can set up a tour?
- 26:27Absolutely, yes.
- 26:29Anybody can just show up and do the quick tour of, for example, Point One, which is where
- 26:36Atlas is located.
- 26:37So you can visit our control room and learn more about our experiment.
- 26:42And if you're lucky enough to be able to visit during a shutdown period, so oftentimes in the
- 26:47winter, that's when we have quick shutdowns.
- 26:49You might even be able to go underground and visit the actual experiment, which is absolutely
- 26:54breathtaking.
- 26:55Yeah, I'm sure that it is.
- 26:56Just the scale from the pictures, it looks like, is just incredible.
- 26:59Yeah.
- 26:59I just want to jump in and just make an additional comment about what Michaela said, in the sense
- 27:05that CERN really is an open laboratory.
- 27:07And it's a big part of CERN's mission to make sure that the scientific discoveries that are
- 27:12made there are made for all of humanity.
- 27:14So CERN really welcomes the public getting involved and being curious and coming and asking
- 27:21questions.
- 27:22So yeah, if you're ever traveling through nearby Geneva, Switzerland, sign up for a tour.
- 27:27Come visit.
- 27:27Yeah, that sounds great.
- 27:29Michael, the data that flows through these experiments out to the collectors and then into the trigger
- 27:36that Matthew mentioned, and then on to the larger computing structures that are there is
- 27:42pretty insane.
- 27:43Do you want to give us like a kind of an overview of the scale of data?
- 27:46Yeah, absolutely.
- 27:46The way that kind of the LHC works is, well, I'll give you a little bit of the physics
- 27:51background about why we have to design the systems this way.
- 27:54So a lot of the things we're searching for are very rare.
- 27:57And the physics that we deal with is probabilistic.
- 28:00So we might be looking for something that's interesting that only happens in one out of a trillion
- 28:04collisions or maybe even less frequently.
- 28:06And so we have to collide protons as many times as possible.
- 28:10So we collide protons 40 million times a second.
- 28:13And those collisions fly out into the massive detectors that Michaela was describing or that
- 28:20we've been discussing.
- 28:22So the thing is, we can't record all that data.
- 28:25So we can only record a fraction of that data because it would simply be too much.
- 28:29So we have a set of systems called the trigger, which allows us to go from 40 million collisions,
- 28:34of which many are not super interesting, down to about kilohertz, so about 1,000 a second.
- 28:40And each of those collisions, the data that comes out of the detector, I think it's about a megabyte
- 28:45per collision.
- 28:46So that means we're taking about a gigabyte of data per second.
- 28:49That's the data that made it through the trigger that was not discarded by the hardware, right?
- 28:53Exactly.
- 28:54That's just the data that made it through the detector.
- 28:56And the actual processing there is a combination of custom-built hardware and FPGAs, which are
- 29:03fast enough to deal with looking at the data really quickly at 40 million times a second and
- 29:07helping us pipeline it down through various both hardware and software systems down to this
- 29:15kind of kilohertz rate.
- 29:16So we don't run the detector all the time.
- 29:18We run it a lot.
- 29:19There's shutdown periods.
- 29:20There's times when you have to kind of refill the beam.
- 29:22And I think we accumulate something like, what is it, like three or four petabytes of data
- 29:28a year.
- 29:29Yeah, that's just crazy.
- 29:30And then it's not just there in Geneva.
- 29:33It's also broadcast out, right?
- 29:35Right.
- 29:36So I think I was, yeah, I think there's something like 170 institutions around the world that make
- 29:41up the kind of worldwide computing grid or the LHC worldwide computing grid.
- 29:44And there's something like 300,000 or maybe more at this point computing cores, which then
- 29:50can, well, we distribute the data around the world.
- 29:53And then we often need to process and reprocess and analyze that data.
- 29:56And that's done on this enormous computing grid.
- 29:59And so that's kind of once it's stored and distributed, that's how we go and analyze it is by basically
- 30:04sending jobs to this grid, which you can kind of think of as a precursor to what the cloud
- 30:09is now.
- 30:09Right.
- 30:09And so there's so much data probably that I suspect putting it on your laptop doesn't
- 30:14make a lot of sense, right?
- 30:15You need to send your computation to the data rather than bringing the data to you, right?
- 30:21Exactly.
- 30:22I know.
- 30:23I just said exactly.
- 30:24That's exactly how it works.
- 30:25You certainly wouldn't want to be downloading petabytes of data onto your computer.
- 30:29So thankfully, we have this grid of tier zero, tier one, tier two, tier three locations spread
- 30:36all around the world where you can send your scripts and they'll be run and then you'll
- 30:41get the results back.
- 30:42Yeah.
- 30:42So give me a sense of what that's like.
- 30:44You have a question you want to ask about the data.
- 30:45You could write some C++.
- 30:47You could write some Python.
- 30:48You could write maybe even Fortran.
- 30:50What is the mechanism from?
- 30:52I have this thing, this Python, let's say Python here.
- 30:55And I would like to make it run there and analyze the data.
- 30:59What's the steps look like there?
- 31:00From the user's perspective, which is the one that I get, it's very simple because of the
- 31:05work of hundreds of people who've made it simple for us.
- 31:08So we simply have an interface with our computing grid where we can specify specific locations
- 31:15if we want to do so.
- 31:16We can specify the length of the job, the number of cores that we're requiring, the number of
- 31:21nodes, et cetera.
- 31:22And then we can simply submit our script as long as it's in a format that is compliant
- 31:28with what our systems are able to handle.
- 31:31And then you specify what data to operate on, whether it's true data that has been collected
- 31:36from the LHC or if it's simulated data, you can also operate on that.
- 31:41And then you're able to monitor all of your jobs and eventually get the results back and
- 31:46download the histograms or whatever format your results will come to you as.
- 31:52That sounds really cool.
- 31:53And Michael, you said 300,000 computing cores?
- 31:56It's something I think it might even be larger at this point.
- 31:58As of 2010, it was more than 200,000.
- 32:01It's ever growing with the amount of data we have and the amount of computing we need.
- 32:06Just as Michaela was saying, we kind of send our jobs out and it's kind of built on top of
- 32:11a kind of virtual machine file system where we actually, all these sites are kind of working
- 32:18in coherently with having the same distribution of the Atlas software located all these sites.
- 32:23So you can send your job with a known even version of the software and it's already available
- 32:28locally to you.
- 32:28Wow.
- 32:29Okay.
- 32:29That sounds really, really fun.
- 32:30I guess one thing that I was wondering looking at the LHC is we have Atlas, we have LHCB and
- 32:39Alice and CMS.
- 32:40What is the purpose of Atlas?
- 32:43Like what is Atlas trying to do relative to the larger goal of LHC?
- 32:47Maybe Matthew take that.
- 32:48So Atlas and CMS, these are two of our general purpose detectors.
- 32:52And so the idea there is these detectors were explicitly designed and then built to be sensitive
- 32:59to a wide range of interesting physics.
- 33:02Whereas for example, backtracking a little bit like Atlas and CMS, they kind of have, if
- 33:07you will, like they're sometimes referred to as like cylindrical onions in the sense that
- 33:11the architecture is you kind of have your beam pipe and then you have successive layers of
- 33:17very detailed and detectors going out around them.
- 33:21Is that so you can basically take a 3D picture?
- 33:23Yeah, exactly.
- 33:24Because when we have these collisions, when you have the really hard collisions, then in
- 33:30some sense you have like just the result of the collision is that you have sprays of
- 33:35particles kind of coming out in all directions.
- 33:37And so you want to have as much coverage as possible.
- 33:41And the idea is if you have both like calorimetry systems and tracking systems, then you're
- 33:46able to get a much more detailed picture of what actually happened.
- 33:49Because we're trying to reconstruct essentially point-like interactions that are happening at
- 33:55the subatomic level.
- 33:56But we're doing that by seeing what kind of is just coming splattering through our detector.
- 34:01So it's kind of like trying to reconstruct what might have happened if you took like two,
- 34:06if there is some sort of like car crash.
- 34:09And the only way you could investigate what happened is if you were able to look at what
- 34:14the walls of a tunnel or something nearby.
- 34:16But so Atlas and CMS, they're general purpose detectors.
- 34:19And then Elise and LHCB, their geometries are a little bit different.
- 34:24And so they're more specialized detectors that are looking at specific types of physics.
- 34:29All right.
- 34:29Okay.
- 34:29Yeah.
- 34:30Yeah.
- 34:30Very cool.
- 34:30So one of the things I want to dig into with each one of you is what you're doing day to
- 34:36day and sort of how Python and machine learning fit into that.
- 34:41So Michaela, let's start with you.
- 34:42You're doing some, you already mentioned your generative adversarial networks and some really
- 34:47amazing stuff.
- 34:47You said that you were able to speed up some of these simulations like 100,000 times.
- 34:52That's correct.
- 34:53Cool.
- 34:53Techniques.
- 34:54That's incredible.
- 34:54Can you talk about how you're doing that?
- 34:56Yeah.
- 34:56So these are obviously preliminary results and there's a lot more R&D that is now just being
- 35:01started within our collaboration.
- 35:03But the point is that we built this great prototype we call the Calogan.
- 35:08Calo stands for calorimeter.
- 35:10That is one of the detector layers inside of this big onion-like structure that we just described
- 35:17our detector to look like.
- 35:18And the calorimeter measures the energy deposited by certain particles as they travel through,
- 35:24as Matthew was just describing.
- 35:25The issue is that because some of these physical processes that the particles undergo are so
- 35:32complicated, simulating these traversals of the particles through the calorimeter is really,
- 35:40really computationally intensive.
- 35:41And that's actually taking more than half of the computing grid power that we were just
- 35:47describing.
- 35:47So it's billions of CPU hours per year.
- 35:49So what I'm working on is this new technique to speed up that part of the simulation, which
- 35:54currently occupies the majority of our computing resources worldwide.
- 35:57And what I'm using is generative adversarial networks.
- 36:00I think some of your audience maybe will recognize this word.
- 36:05So we use GANs to provide a function approximator to our simulator while retaining, hopefully, the majority
- 36:14of the accuracy that the slower physics-driven simulator possesses.
- 36:19And again, as I said, multiple preliminary results have been put out so far.
- 36:23And we are achieving speed up times of over 100,000 times.
- 36:27But now the complicated part will really be to learn how to calibrate all of these, this machinery and
- 36:33bring it, port it into the real simulation within the experiment.
- 36:39But speaking of Python, I think the cool thing for everybody to know is that this is very
- 36:44easily built using Keras and TensorFlow.
- 36:46So very standard machine learning tools from Python, as well as other standard tools from the Python
- 36:53ecosystem, such as NumPy, scikit-learn, H5Py, and Matplotlib all make it into my project.
- 36:58Yeah, that's really cool.
- 36:59I think people are probably familiar with most of those.
- 37:01But H5Py, what is that?
- 37:03Oh, it's just the interface for HDF5 in Python.
- 37:08HDF5 being like a very standard data format that can be ported across various different languages,
- 37:13C++, Python, and H5Py certainly saved my life in terms of being able to open these files.
- 37:20Yes.
- 37:20Of course.
- 37:21That's really cool.
- 37:22Michael, you want to talk a bit about how you're using machine learning for what you're up
- 37:26to?
- 37:27Yeah, absolutely.
- 37:28So kind of in the past, I've been working a lot on, again, these kind of ideas of taking
- 37:33detector measurements and turning them into classifying whether this data was from a given
- 37:38kind of particle or not.
- 37:39And so I've been working on connecting kind of the data that we have with ideas of machine
- 37:44learning.
- 37:44So we have, so when we were talking about quarks, and when you produce quarks, it turns out
- 37:49they produce kind of collimated streams of particles that smash into these calorimeters and
- 37:54kind of leave a bunch of energy with kind of distributed in space.
- 37:58It turns out we can connect those distribution of energy in space with basically imaging type
- 38:02approaches.
- 38:03And then we can, we've been running a lot of computer vision type techniques to study those
- 38:07jets, those quarks.
- 38:09And so that's, you know, really jumped into connecting with things like convolutional neural
- 38:14networks and modern computer vision.
- 38:16And so, yeah, I've been working on that just like Michaela with tools like Keras and TensorFlow
- 38:21and, you know, built on top of core packages like SciPy and NumPy.
- 38:26Well, one of the things I was going to ask you is it seems like the things you're actually
- 38:30looking for are quite rare.
- 38:32Like there was only a few collisions that produced the Higgs boson, for example, back in 2013,
- 38:3814.
- 38:38Right.
- 38:39And my sense, I haven't done a lot of machine learning, but my sense is you have to give a
- 38:44lot of examples to machine learning.
- 38:47And then the machine learning can find more of those, even if they're subsequently rare.
- 38:51But how do you like bootstrap this?
- 38:53How do you get it started and where there's enough?
- 38:55How do you teach them?
- 38:56I guess is what I'm asking.
- 38:57And so that they can then go find these things, especially when those occurrences are rare.
- 39:01In some sense, it is kind of a bootstrap, but it's based on this idea that those super
- 39:04rare particles like Higgs bosons, we don't observe them directly.
- 39:07They decay into other things that we know about, like electrons.
- 39:11I see.
- 39:11So they're easy to find.
- 39:12Decay result is easy to find.
- 39:15And you can teach it to find those.
- 39:16And when you find them in certain configurations, you're like, oh, this may have originated
- 39:20from what we're looking for.
- 39:22Exactly.
- 39:22So I work a lot on making sure we can find not electrons, but other types of particles that
- 39:27are produced copiously.
- 39:29And then we can say, okay, in this case, okay, I know how to find electrons.
- 39:33I can train an algorithm using our simulation, which is very precise.
- 39:37I can go look for those in our real data to make sure that the simulation makes sense in
- 39:42a different configuration.
- 39:43And then I can go hunting with my well calibrated and well tuned algorithm for finding electrons.
- 39:49I can go hunt for configurations with four or five electrons.
- 39:52And that might be a really rare thing you want to look for.
- 39:54Okay.
- 39:55Yeah.
- 39:55Very interesting.
- 39:55I see how that works.
- 39:56Because I was thinking about this.
- 39:58You know, how do you get started trying to find very rare things?
- 40:02But I can see that now.
- 40:03Okay.
- 40:04I'll throw this question out to everyone.
- 40:06Are any of you using special hardware?
- 40:08Or are you just leveraging the many, many cores out there on the computing environment?
- 40:13Like are you using the tensor CPU type things or GPUs or those sorts of things?
- 40:19I think the majority of us are using GPUs to train some of our machine learning models these
- 40:25days on top of obviously the worldwide grid that we just described.
- 40:29But that's more reserved for simulating samples or doing, you know, more standard types of analysis.
- 40:36But I think most of us rely on GPUs these days.
- 40:39I would add, I think one of the interesting potential future directions on top of all the
- 40:44work with GPUs and CPUs is if we ever want some of these algorithms to work in our trigger
- 40:49in that super fast system that needs to operate at 40 megahertz, this may be a place where,
- 40:54you know, there's some people already in the community beginning to look at, you know,
- 40:57putting neural networks onto FPGAs so that we can actually run them at super high speed.
- 41:02So that may be a future direction in the field move.
- 41:04Okay.
- 41:04Yeah.
- 41:04That would be really amazing.
- 41:06Maybe Matthew, this is a good time to talk about that trigger thing.
- 41:09So you have to take 40 million observations across this thing and get it down to 1000.
- 41:16And you've got to do that extremely, like every second.
- 41:20Yeah.
- 41:20So how do you do that?
- 41:22Yeah.
- 41:22So Michael's already given a very nice intro summary there, but the trigger is an immensely
- 41:27complex system.
- 41:28And so, I mean, I definitely don't understand how all of it works.
- 41:31I actually just work on a subsystem of the trigger subsystem.
- 41:36So if you want to actually do an analysis, then you need to have, let's say like you're looking for a Higgs decay that goes to two B quarks.
- 41:47Well, if you want to go searching for that, then you want to have some confidence that there ever could have been a recording of an event in the Atlas detector that had two B quarks in it.
- 42:00So you want to make sure that some of these interesting collisions aren't getting thrown out.
- 42:05And so we have, that's one of the reasons we have the trigger system is that we kind of have what we call a trigger menu, which is a list of basically logical sequences in that we are looking for in the different subsystems of the detector to say that, oh, okay.
- 42:21So I think that's a lot of the way.
- 42:26So I think that's a lot of the way.
- 42:30So I think that's a lot of the way that we're looking for a lot of the things that we're looking for.
- 42:34So I think that's a lot of the way that we're looking for a lot of the things that we're looking for.
- 42:36We're looking for a lot of the things that we're looking for, but we're looking for a lot of the things that we're looking for, but we're looking for a lot of the things that we're looking for.
- 42:43But we want to make sure that as we go up to higher energies and as we go up to even more collisions, so basically what we call luminosity is the number of collisions that we have per crossing increases.
- 42:56We want to make sure that our trigger system can still deal with this because in a single crossing of the beam, we don't just get one kind of collision point.
- 43:07We might get right now somewhere between like 30 and 50, but as we go to higher energies and to higher luminosities, we're looking at getting something like 200 collisions that are happening every beam crossing.
- 43:19So if you're trying to say, oh, I have like an electron or I have a B-jet that looks interesting over here, I wonder if it might also have a partner that can tell me if I had a collision, you have a really difficult problem because you're trying to now pick out what might these other energy deposits or tracks be from 200 other collisions that are happening at the same time.
- 43:42Yeah, it's one of these combinatorial types of things.
- 43:46How many different relationships between, you know, 30 or 200, right?
- 43:50That turns out to be astronomically bigger, right?
- 43:52Yeah, it gets pretty crazy.
- 43:53I'm sure it does.
- 43:56I'm sure it does.
- 43:57So that's mostly like embedded C++.
- 44:01Is that right?
- 44:02But what other stuff are you doing there?
- 44:04Is there any Python at that layer?
- 44:05So actually like in the trigger system, no.
- 44:08But so as a student, what I'm doing a lot more is performance studies of how our trigger is doing.
- 44:16And so there I do use kind of both a hybrid of Python and C++.
- 44:20We have colleagues at the University of Chicago that have written a really nice analysis framework that a lot of people in the collaboration use.
- 44:29And that's it's all implemented in C++.
- 44:32But then there is also a way for us to interact with it from Python.
- 44:37So that's really nice because then that allows us to, for example, I was able to write some tools, some command line interface tools using arg parse and things like that.
- 44:47So I can give, if I want to do a quick performance study, I can, without really having to ever write a line of C++, I can kind of spin up a small analysis to say like, oh, okay.
- 44:58How is the trigger performing under these scenarios and things like that?
- 45:03And using things like Jupyter Notebooks and stuff to sort of do that exploration?
- 45:07For the trigger, I don't use Jupyter Notebooks so much.
- 45:09That's more regular.
- 45:11I use Jupyter more for the exploratory data analysis that I'm using for, if you will, like my actual like PhD research.
- 45:18But for the operations work that I do on Atlas, that's more just kind of going into your favorite editor and then writing some command line tools in Python.
- 45:28And then also making sure that it interfaces well with these C++ frameworks that we've developed.
- 45:34Okay.
- 45:34Very interesting.
- 45:35So, Michaela, maybe we could talk a little bit about where you guys are going in the future.
- 45:40LHC has been a really long running project.
- 45:44It started producing major results in 2013, 14, but it was started way before then, right?
- 45:50So where's the future going now with what you're up to?
- 45:54Of course.
- 45:54So there are still so many open questions, I think, about the standard model.
- 45:59We know, as Michael said, that the standard model has been validated over and over again.
- 46:04And it's probably one of the most predictive theories in the history of all theories.
- 46:10But there are some missing pieces.
- 46:12So, for example, we don't have a complete quantum theory of gravity, for example.
- 46:17So there is this hypothetical particle called the graviton that some are searching for.
- 46:22So I think there are very many open questions that could potentially be answered through some of the theories that have already been proposed, whether it's supersymmetry or others.
- 46:34And so I think right now the goal is to continue looking for those while we also continue making very high precision measurements of all of the particles that we know and love.
- 46:47So I think some ideas for what else could be out there doesn't necessarily come from directly searching for these new particles, but it could come from measuring properties of particles that are already a part of the standard model.
- 47:01So I think that's a good thing.
- 47:03So I think that's a good thing.
- 47:03I think that's a good thing.
- 47:04So I think that's a good thing.
- 47:05So I think that's a good thing.
- 47:06So I think that's a good thing.
- 47:07So I think that's a good thing.
- 47:08So I think that's a good thing.
- 47:08So I think that's a good thing.
- 47:09So I think that's a good thing.
- 47:10So I think that's a good thing.
- 47:11So I think that's a good thing.
- 47:12So I think that's a good thing.
- 47:13So I think that's a good thing.
- 47:15So I think that's a good thing.
- 47:16So I think that's a good thing.
- 47:17So I think that's a good thing.
- 47:19So I think that's a good thing.
- 47:20So I think that's a good thing.
- 47:21So I think that's a good thing.
- 47:23It could look entirely right.
- 47:25But there could be these subtle, subtle deviations.
- 47:27Like just look at Newton and gravity and then Einstein and gravity, right?
- 47:32Newton looked right.
- 47:33Yes, of course.
- 47:34I mean, to first degree, it was.
- 47:36But obviously, there are then in certain regimes, some deviations from the more simplistic theory.
- 47:43And so we think that perhaps there could be other corrections to what we're measuring that
- 47:49could come from more complicated theories that we're still to validate.
- 47:52Cool.
- 47:53So, Michael, one thing I wanted to ask you is, how do you feel that machine learning and
- 47:59doing that with Python and TensorFlow and all these things have changed physics and the
- 48:04physics exploration?
- 48:05Like how much would have it just been more work or stuff actually being discovered that
- 48:10wouldn't have been discovered?
- 48:11What do you think?
- 48:12Yeah, I think a lot of algorithms may not have been discovered or maybe, or I should say,
- 48:17maybe applied or implemented in a reasonable timescale.
- 48:20I mean, so, you know, we're not, since we're not professional machine learning, you know,
- 48:25machine learning engineers or machine learning researchers, a lot of the times what, you know,
- 48:28the tools we're using, we either built from scratch or use what's available.
- 48:32And so the kind of this availability of things like TensorFlow make it really easy for us to implement and just try things out on our data and then try to make these connections between the machine learning world.
- 48:43So things like these generative models, you know, they might not, we may not have access to these kind of really, potentially really fast speed ups or new ways to look at the data, like, you know, with vision or natural language processing approaches.
- 48:57You know, these algorithms may not even be implemented anywhere.
- 48:59Nowadays, you can just kind of download the model if you want and use that as a place to start.
- 49:04And I think that one of the things that's been really helpful is the core kind of C++ libraries that we use at CERN are built with this, with kind of internal dictionaries with the kind of have this idea of reflection so that they can really easy be bound to Python.
- 49:18And we can just take our data that's in one format and really quickly switch into Python and just start pounding or, you know, running through all these different kind of algorithms and see what comes out.
- 49:30That's really cool.
- 49:30So it's a little bit like what NumPy did for numerical analysis.
- 49:34You kind of have something similar where it's got this sort of native layer really close to Python.
- 49:40Exactly.
- 49:40And so, yeah.
- 49:42And in fact, then we can also interface directly with NumPy and pull our data right into formats that are kind of standardized in the machine learning and data science community.
- 49:50Yeah, very cool.
- 49:51Michaela, maybe I could ask you the same question because your work has made computational so much faster.
- 49:59And it seems like the machine learning played an important role there as well.
- 50:02If you could really make these simulations 100,000 times faster, that's almost like going from regular computers to quantum computers.
- 50:10It's such a jump.
- 50:11Yes, of course.
- 50:12I mean, obviously, we would like to empower more physicists to be able to do the analysis that they want to do at the precision levels that they require.
- 50:21And right now, obviously, that simulation bottleneck means that some analysis cannot necessarily be performed with the statistical uncertainties that we would like to have.
- 50:32Or some of them cannot be performed at all in terms of the required accuracy that they need.
- 50:38And so hopefully this type of projects will enable more physics to be done and more analysis in the future of the LHC.
- 50:45Yeah, very cool.
- 50:47So, Matthew, do you think there's room for normal developers, people who want to just go contribute to open source, maybe some kind of open science they want to play around and just like, hey, they're really good at programming, but they're not physicists.
- 50:58Is there a place for them to kind of jump in and be part of this?
- 51:01Yeah, I think so.
- 51:02I mean, so we have, as Michael mentioned earlier, it's really important that our code is open source.
- 51:08And so if people actually want to go take a look at it, it's out there.
- 51:12And then there's also, I think there's some efforts to get something like this started on Atlas, but then on one of our other, one of the, at LHCB, one of the other experiments, they have what's called the LHCB Starter Kit.
- 51:26And that was started by two PhD students, Kevin Duns and Tim Head, who are now, have now left the field to go work at Google and be a data science consultant.
- 51:35But they thought like, hey, you know, a lot of our students are coming in and we don't have, and we're all physicists, but we're not all necessarily software experts.
- 51:44So they created this thing called the LHCB Starter Kit, and they've done some partnering with softwarecarpentry.org to actually go ahead and hold training seminars where people from software carpentry come in and help them learn how to actually get started to do data analysis and programming and physics.
- 52:03So I think software carpentry and data carpentry, those are really great organizations.
- 52:08So if people want to get involved there, they definitely can as well.
- 52:11Yeah, that's really cool.
- 52:12And I had the software carpentry guys on the show a couple of months back.
- 52:15Yeah, that was a good episode.
- 52:17Yeah, thanks.
- 52:17Yeah, it was really nice.
- 52:18So I think that's, I think it's great.
- 52:21I think, you know, there's more and more of these tools are becoming accessible to everyone.
- 52:25And I suspect uploading to the whole computing system and running stuff there is probably restricted to you guys.
- 52:31But still, people can work on these algorithms.
- 52:34And in a sense, they're contributing, right?
- 52:35People who make TensorFlow or Keras better, they're in a sense making it better for you guys as well, right?
- 52:40Yeah.
- 52:41Absolutely.
- 52:41Yeah, there's a big push right now.
- 52:44I think Michaela is a great example of this to really kind of go out into the communities that are going and actually building these great tools and interact with them directly and contribute.
- 52:55So, I mean, we want to try and use really powerful tools to do the best analysis we can.
- 53:01So the people that are making the Python tools that we use better, they're really directly impacting science.
- 53:09So we appreciate it.
- 53:11Yeah, that's amazing.
- 53:12All right.
- 53:13Well, I have so many more questions to ask you all, but we're pretty much out of time.
- 53:18So I want to be respectful of that as well.
- 53:20Before we go, I'm going to ask you all the two questions.
- 53:23I'll start with Michael, favorite editor.
- 53:25Emacs.
- 53:26Michaela.
- 53:26Sublime.
- 53:27Matthew.
- 53:28Adam with Vim key bindings.
- 53:29All right.
- 53:30Right on.
- 53:30And Michael, notable PyPI package?
- 53:33PyTorch and Scikit Optimize.
- 53:35I don't think I've talked about PyTorch on the show before.
- 53:38Maybe just really briefly talk about what that is.
- 53:41Yeah.
- 53:41So PyTorch is a deep learning library that's built on a different way of building the graphical representation of your deep neural network for all the downstream computations.
- 53:51But actually, the API is just really, it's very, I find it very smooth and easy to really quickly spin up a neural network and have it running.
- 53:59Excellent.
- 54:00Michaela, how about you?
- 54:01I'm a huge fan of Keras.
- 54:03I've been using it since it was first started as a project.
- 54:05And it's been enabling me to go from idea to experimentation very quickly.
- 54:11And then huge shout out, I think, to Matplotlib.
- 54:14It allowed me to make all the plots that I've ever made during my PhD.
- 54:18So those two for sure.
- 54:19All right.
- 54:20Excellent.
- 54:20Matthew?
- 54:21Definitely Keras.
- 54:22I mean, like Michaela said, like, that's kind of a bread and butter thing for us.
- 54:26And then also Scikit-HEP, which is a...
- 54:29HEP is high energy physics?
- 54:30Yeah.
- 54:30So similar to scikit-learn, how that was supposed to be a toolbox for machine learning, Scikit-HEP is a collection of Python tools that have been developed inside the high energy physics community, but are meant to try and help us interface with things like with NumPy and Pandas data frames and make our lives a lot easier when we're actually trying to go from our root data file format to things like NumPy.
- 54:55Yeah, very cool.
- 54:56I'll give you guys a chance for a final call to action.
- 54:59And people are excited about what they heard.
- 55:01They want to get involved.
- 55:02Michael, you can go first.
- 55:03Sure.
- 55:04Yeah.
- 55:04I think there's a lot of ways in which you can get involved, especially through the CERN, you know, open data portal and CERN Open Science.
- 55:10You can download some of our data.
- 55:13You can play around with it and also just help spread knowledge about, you know, science and scientific reasoning and, you know, how that can benefit society, both from advancing science and advancing the way we think.
- 55:24All right.
- 55:25Excellent.
- 55:25Michaela?
- 55:26Well, certainly if you're interested in working at the intersection of science and machine learning or data science, CERN, I think, is quickly becoming one of the best places in the world to do that because the scale and the fascinating problems that we're working on are completely unparalleled.
- 55:39And we're always looking for new skilled software engineers that are curious about mysteries of the universe.
- 55:45And as I said before, the community of CERN is truly fantastic.
- 55:49So we can always use more Python experts.
- 55:52And you absolutely don't have to be a physicist to make a huge impact at CERN.
- 55:56Oh, excellent.
- 55:57Sounds really fun.
- 55:58I'd love to work there.
- 55:59All right, Matthew, you got the final word.
- 56:00Yeah.
- 56:00So physicists, we love to collaborate and we like to think at least that we have really cool and really hard problems.
- 56:06So we were always looking for it.
- 56:09And you consider those to be the same thing, right?
- 56:11Cool equals hard.
- 56:12Yeah, probably.
- 56:12So and we've we've started in the last couple of years to have some really fruitful collaborations with our CS colleagues.
- 56:21So, you know, if you if you know a friendly neighborhood particle physicist and you want to talk with them, please do.
- 56:28We we're happy to talk and we really want to try and have our field grow with other fields and try and do the best science we can.
- 56:37All right.
- 56:37Thank you all so much for being on the show.
- 56:40It's been really interesting and I've learned a lot.
- 56:43Thanks for sharing what you're doing and keep up the good work.
- 56:45Thank you.
- 56:46Yeah.
- 56:46Thanks for having us on, Michael.
- 56:47Yeah, thanks.
- 56:48And thanks for for hosting this great show.
- 56:50You're welcome.
- 56:51Bye, everyone.
- 56:51Bye bye.
- 56:52Bye.
- 56:52This has been another episode of Talk Python To Me.
- 56:55This week's guests have been Michaela Paganini, Michael Kagan and Matthew Feigert.
- 57:00And this episode has been brought to you by Linode and Talk Python Training.
- 57:04Linode is bulletproof hosting for whatever you're building with Python.
- 57:09Get your four months free at talkpython.fm/Linode.
- 57:13Just use the code Python 17.
- 57:16Are you or a colleague trying to learn Python?
- 57:19Have you tried books and videos that just left you?
- 57:21bored by covering topics point by point?
- 57:23Well, check out my online course Python Jumpstart by building 10 apps at talkpython.fm/course
- 57:29to experience a more engaging way to learn Python.
- 57:32And if you're looking for something a little more advanced, try my write pythonic code course at talkpython.fm/pythonic.
- 57:39Be sure to subscribe to the show.
- 57:42Open your favorite podcatcher and search for Python.
- 57:44We should be right at the top.
- 57:46You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct RSS feed at /rss on talkpython.fm.
- 57:55This is your host, Michael Kennedy.
- 57:57Thanks so much for listening.
- 57:58I really appreciate it.
- 57:59Now get out there and write some Python code.
- 58:01Thank you.
- 58:02Thank you.
- 58:02I'm out.