- Welcome to my short session.
We're gonna do some stretches and some exercises
that work our core.
My name is Andy, I'm a co-founder of Databricks.
I was in the lab at Berkeley with Matei,
when he created Spark.
And I created the first Spark Summits,
or lead the team that did that.
Speaking of Spark Summits, since you're here,
you probably use a computer.
And that means that you're vulnerable
to strains or injuries in your neck, in your shoulders,
in your wrists, a lot, like me.
I actually have tendonitis in my wrists.
And so, I'm gonna actually focus my session today,
a little bit on those areas that we might all need to give
a little extra care to.
You don't need any experience, I'm a beginner myself
for a lot of stuff that we are gonna be doing.
What we're focusing on is gonna be a fork of
vinyasa flow yoga, called mlflow yoga.
I'm also gonna mix in some Qigong,
which is a very gentle type of exercise as well.
And some things that I've learned
in my high school gym class,
and some weird things that I've seen Databrick engineers
doing next to their standing desks in the middle of the day.
When we borrow from yoga and Qigong,
it's good to remember that these are traditions of people,
and that they go back a very long way.
I'm very grateful that these traditions exist,
even though I don't know a lot about them,
and I'm happy to be able to have the chance
to do them, with you.
Speaking of traditions, we're gonna work traditions
from our community into this as well.
What is the thing that we all have in common?
Even though we are pretty diverse,
as a community of Spark Summit attendees, we all love data
and we all are pretty darn nerdy.
So I'm gonna work some of that in too.
To get started, we're gonna begin with
a little bit of stretching of our necks, our shoulders,
and our wrists.
They're some of the key supporters of our careers in tech.
Great, so, all it takes is just find a place to stand
in front of your desk, you can do a lot of the stretches
that we're gonna have at the beginning here,
sitting down too.
And turn your neck, all the way to the left.
Just rotating your neck.
And, hold for five seconds.
And then back to center.
To your right.
Hold for five seconds.
And back to center.
One more time.
As you let your neck drift over to the left,
think about the features in your future store,
and how they drift.
Drift away from the true distribution,
as new data arrives.
And as you stretch, allow your neck drift to the right.
Think about that data drifting,
and then your production pipeline.
Noticing, catching it with an alert or trigger.
And retraining, rerunning that pipeline and returning
the data to the true distribution that you've observed.
Now, let's go forward and back.
Lean your neck to the forward position,
all the way to the end, the edge of your range of motion.
Very gently.
Be gentle on yourself.
Hold there for five seconds.
And backwards.
And back forward.
As you put your head forward, think about applying an input
to your inurnment and having all those
nodes percolate the data through,
dot products and nonlinear transformations.
All the way to your loss function on the other side.
Then we compute our loss, and we go backwards.
We send back all sorts of partial derivatives.
Building upon each other, updating our parameters,
forward pass and backprop.
One more range.
Forward pass
and backprop.
Ah, feels good.
Great!
Okay, and finally for our neck.
We're going to do just roll our neck up.
Real slowly, all the way around.
Full range of motion.
Taking time to notice what it feels like at each angle.
Rolling like we're in our gradient descent.
Training our network.
And we hit a saddle point.
And now we've got to move in all different directions.
Exploring the full space that we can move within
the loss function.
Looking for positive tension.
Just looking.
And if you're feeling ambitious, you can accelerate
push yourself a little bit more towards your range of motion
like adding in some momentum with atom.
Or some other advanced optimizer.
Thanks to Tensorflow or Torch.
Some other audio gruden differentiator.
We don't have to even know how to do the math.
Great!
Now let's roll out our shoulders.
Roll back, up and back, up and back.
As you get back to the back part, try and touch
your shoulder blades together.
Down and forward, and your shoulder blades pushing apart.
Like they're two same poles of a magnet.
And then switch, attracted, pushing apart.
attracted, pushing apart.
Now change directions, rolling forward.
This rolling should be very easy, don't push it.
Should be very easy.
Unlike rolling your own spark cluster.
And finally, we're gonna do our wrists.
Starting with the right wrist, just tuck your arm in,
close to your body.
Take your other hand, and apply downward pressure gently
to your full range of motion, of that right wrist.
You can include your thumb for part of it,
or you can skip the thumb.
You should feel tension,
a stretch in the forward part of your palm
and in the upper part of your wrist.
On the inside.
Just hold for five seconds.
And switch sides.
Flat wrist, arm tucked.
Breathe deeply.
Return your awareness to your feet.
Fix your feet on the ground.
Feel the pull of gravity,
pulling you down to the ground.
Now, right arm with your wrist inside.
Five seconds.
Breathing into your...
And now left wrist inside.
Five seconds.
(exhales)
And one more round.
Right wrist outside,
left wrist outside.
Right wrist inside,
and left wrist inside.
(exhales)
And take a moment at the end of our stretching and loosening
to just stand in what we call mountain pose, in yoga.
Hands at your sides, feet, hip width apart.
Just feeling gravity pull your down into the ground.
Moment of quiet.
Before we start to work our core muscles
and our leg muscles.
For this next section,
which is the only remaining big section
before we do our calm down,
we're going to work through a flow of positions.
And the way I would like to frame this is,
we're building a pipeline.
You can think of a three stage pipeline.
With three poses.
And then we're gonna put those into production.
Or working through two flows.
In vinyasa yoga, we would call these things
a flow of yoga poses.
In a production machine learning, we would call
production pipeline and we would build
a production pipeline, and we would do that using mlflow.
So, the three poses that we're gonna do are warrior one,
warrior two, and reverse warrior.
With that, let's just practice the moves at first,
and then we'll put them into production.
The three moves are these;
for warrior one, you may have seen this before,
it's a very popular yoga move,
left foot forward, right foot behind you,
right leg straight.
And left foot bent, left knee bent I mean.
Don't have your leg, your feet on a single rail.
Imagine that they're on like railroad tracks.
So there's a foot, half a foot, of space between them
on vertical paths.
Next, you're going to make sure
that you're tucking your butt under,
so that you've got some tension in your butt muscles
and your lower back muscles,
and your abdomen, especially your abs as you tuck.
And then you're gonna bring your arms
straight up next to your head,
however high you can get them.
And look your gaze towards the sky a little bit,
hold that back foot forward
that back foot down to the ground.
All your weight evenly distributed between both legs,
and just hold warrior one for two seconds.
Okay great.
Next in our flow, we're going to flow from that,
into warrior two, by bringing our right hand down behind us,
and our left arm, down in front of us.
You want to create a flat plane with your two arms.
(exhales) Looking forward,
keeping your weight distributed between both legs,
warrior two, two seconds.
And finally, reverse warrior.
Put your right hand on your back, near the pocket.
Flip your left palm, and raise your arm up,
feeling the stretch along your left side.
Raise it up straight.
Looking up to the sky.
Okay, so those are the three positions in our pipeline.
The three operators, if you will.
And now we can run our pipeline.
We're gonna start with our right leg.
So, instead of our left,
we're gonna go right leg forward this time.
We're gonna work our way through,
each of those three poses twice, two breaths each.
And then switch and do our left, again.
Okay, ready?
So warrior one.
(exhales)
(inhales)
(exhales)
Warrior two, flow right in to it.
(exhales)
And reverse warrior.
(exhales)
Great.
And, switch sides.
Warrior one.
(inhales)
(exhales)
(inhales)
(exhales)
Warrior two.
(inhales)
(exhales)
(inhales)
(exhales)
And reverse warrior.
(inhales)
(exhales)
Okay, back to the right.
Warrior one.
(inhales)
(exhales)
Warrior two.
(inhales)
(exhales)
(inhales)
(exhales)
Reverse warrior.
(inhales)
(exhales)
(inhales)
(exhales)
To the left.
Warrior one.
(exhales)
(inhales)
(exhales)
Warrior two.
(exhales)
And reverse warrior.
(exhales)
Very good.
And now, that we've warmed up our core muscles,
sides, back, neck, and upper legs.
Releasing our whole body.
Let's take a chance to come back and loosen and relax,
back into that original,
flow we had from the first section.
To that, we're just going to shake out one part,
starting with the top of our head,
all the way down through our whole body.
So, start by kind of loosely shaking your head,
just very gently, and your shoulders.
Your elbows, your wrists, your torso,
your hips,
your knees.
One foot, the other foot.
Kind of just your whole body.
Just shake it all out real gentle.
All within your range of motion.
Nothing stressful here.
Just really all the tension, pour out of you,
down into the ground.
All right, very good.
That leads us naturally into our sprint retrospective.
In which we're gonna take a moment
to stand in warrior pose, here at the end.
Feet hip width apart, hands at your side.
Or you can put your hands at your chest,
in a prayer position.
You're just gonna close your eyes and reflect back.
Thank our bodies, for their support in our careers.
And reflect on how
data has really changed everything for us.
Oh data, we rooted in your understanding.
You bring us better decision making
and deepen our impact upon the world.
May we always remember, when we are lost, that you data
will show us the way.
And may we carry data in our hearts,
as we go back into our sessions, always.
Thank you for joining my session.