Computer Science

Dipping your Toes – Machine Learning for Geoscientists

My fellow students know this and I hope recruiters will never read this: I was never good at math in university. It was only later when it came to the application in actual geophysical problems that tensors, linear algebra, and differential equations clicked. Personally, I don’t recommend this, as it makes life unnecessarily hard.

Machine Learning is a tool that will become more prevalent in our everyday work within the next decade. We can use it as a tool like I did in the SEG ML challenge. There I started using scikit-learn a Python library for machine learning. This library makes machine learning so easy you can build your first model in three lines of code:

clf = GradientBoostingClassifier()
clf.fit(data_train, data_label)
clf.predict(data_test)

First, you define your classifier. Second, you feed it some labeled data. Third, you predict on unseen data.

Learning Scikit-Learn

The code above will give you “some” result. Good models need some fine tuning. Luckily the Python community is all about using the code. Therefore, at the scientific Python conference SciPy a one-day tutorial was held. You can follow the tutorial as if you were there. The morning session is available here:

The afternoon session is available here:

and all the material to the workshop can be followed along and tweaked on GitHub.

Getting the math right

I love Scikit-Learn and it got me into machine learning with an extremely low barrier. However, deep learning is mostly about neural networks. These are a little more involved and doing research with them may require some math. Wait! Don’t go yet. If you never got Linear Algebra in school or uni, definitely keep reading. If you did, just wait for the next post that will delve deeper into deep learning for geoscientists.

On my journey through all the fascinating free courses, I will show you later, I was pointed toward 3Blue1Brown

He makes amazing math videos that make you understand math on an intuitive level. Their “Essence of Linear Algebra” playlist made me truly understand matrix multiplication for the first time, although I have been using it for almost 10 years.

This will get you set up for future math that will make all the fun in machine learning and deep learning in geoscience accessible to you.

Definitely, subscribe to stay updated with the next posts on all the resources I found on my journey into ML.

The following two tabs change content below.
... is a geophysicist by heart. He works at the intersection of machine learning and geoscience. He is the founder of The Way of the Geophysicist and a deep learning enthusiast. Writing mostly about computational geoscience and interesting bits and pieces relevant to post-grad life.

Latest posts by Jesper Dramsch (see all)

Jesper Dramsch

... is a geophysicist by heart. He works at the intersection of machine learning and geoscience. He is the founder of The Way of the Geophysicist and a deep learning enthusiast. Writing mostly about computational geoscience and interesting bits and pieces relevant to post-grad life.

Recent Posts

Juneteenth 2020

Here at The Way of the Geophysicists, we have written about social justice before. Today… Read More

2020-06-19

All About Dashboards – Friday Faves

This Friday we're looking at a machine learning state-of-the-art Dashboard and also a new way… Read More

2020-05-22

Keeping Busy – Friday Faves

It sure is an interesting time. Apologies I kept you waiting with more Friday Faves,… Read More

2020-04-24

2020 Fast Approaching! – Friday Faves

Aaaand it's gone. It's starting out with one of my new projects and then a… Read More

2020-01-03

Machine Learning for Science – A Youtube Series

I'm starting a new project, where I take concepts from machine learning for science and… Read More

2019-12-30

Something for a Long Trip or Unwind during the Holidays – Friday Faves

It's the holiday season, so let's keep this Friday Fave short, with a fave that… Read More

2019-12-20