The Machine Learning Mastery Method

5-Steps To Get Started and Get Good at Machine Learning

I teach a 5-step process that you can use to get your start in applied machine learning.

It is unconventional.

The traditional way to teach machine learning is bottom-up.

Start with the theory and math, then algorithm implementations, then send you off to figure out how to start solving real-world problems.

Machine Learning for Programmers - Gap in Bottom Up

The traditional approach to getting started in machine learning has a gap on the path to practitioner.

The Machine Learning Mastery approach flips this and starts with the outcome that is most valuable.

It targets the outcome that business wants to pay for:
how to deliver a result.

A result in the form of a set of predictions or model that can reliably make predictions.

This is a top-down and results-first approach.

Starting with the goal of achieving the result that is most desirable in the marketplace, what is the shortest path to take you, the practitioner, to that result?

We can summarize this path in 5-steps as follows:

  • Step 1: Adjust Mindset (believe!).
  • Step 2: Pick a Process (how to get results).
  • Step 3: Pick a Tool (implementation).
  • Step 4: Practice on Datasets (put in the work).
  • Step 5: Build a Portfolio (show your skills).

That’s it.

This is the philosophy behind all of my Ebook training.

It’s why I created this website. I knew an easier way and just had to share it.

Below is a cartoon to illustrate the process, where step 1 (on mindset) and step 2 (on show your work) are omitted for brevity.


Machine Learning for Programmers - A Better Approach

A better approach to learning machine learning that starts with working machine learning problems end-to-end.

Let’s take a closer look at each step.

Step 0: Landmarks

Before we begin, you must know the landmarks of machine learning.

I often just assume this, but you cannot proceed unless you know some true basics.

For example:

Step 1: Mindset

Machine learning is not just for the professors.

It is not just for the gifted or the academics.

You Must Believe

You can learn the topic and apply it to solve problems.

There’s no reason why not.

  • You do not need to write code.
  • You do not need to know or be good at math.
  • You do not need a higher degree.
  • You do not need big data.
  • You do not need access to a supercomputer.
  • You do not need a lot of time.
Machine Learning for Programmers - Limiting Beliefs2

It is so very easy to come up with excuses to not get started in machine learning.

Really, there is only one thing that can stop you from getting started and getting good at machine learning.

It’s you.

  • Maybe you just can’t find the motivation.
  • Maybe you think you have to implement everything from scratch.
  • Maybe you keep picking advanced problems rather than beginner problems to work on.
  • Maybe you don’t have a systematic process to follow in order to deliver a result.
  • Maybe you’re not making use of good tools and libraries.

Clear the limiting beliefs stopping you from getting started.

This post might help:

There are a lot of speed bumps you can hit.

Identify them, address them, and keep moving.

Why Machine Learning?

Once you know that you can do machine learning, understand why.

  • Maybe you’re interested in learning more about machine learning algorithms.
  • Maybe you’re interested in creating predictions.
  • Maybe you’re interested in solving complex problems.
  • Maybe you’re interested in creating smarter software.
  • Maybe you’re even interested in becoming a data scientist.

Think hard on this topic and try and figure out your “why“.

This post might help:

Once you have your “why“, find your tribe.

Which group of machine learning practitioners do you have the most affinity?

  • Maybe you’re a business person with a general interest.
  • Maybe you’re a manager delivering a project.
  • Maybe you’re a machine learning student.
  • Maybe you’re a machine learning researcher.
  • Maybe you’re a researcher with a sticky problem.
  • Maybe you want to implement algorithms
  • Maybe you need one-off predictions.
  • Maybe you need a model you can deploy.
  • Maybe you’re a data scientist.
  • Maybe you’re a data analyst.

Each tribe has different interests and will approach the field of machine learning from a different direction.

Not all books and materials are right for you, find your tribe, then find the materials that speak to you.

This post might help:

Step 2: Pick a Process

Do you want to reliably get above average results on problem after problem?

You need to follow a systematic process.

  • A process allows you to harness and reuse best practices.
  • It means you don’t have to rely on memory or intuition.
  • It guides you through a project end-to-end.
  • It means that you always know what to do next.
  • It can be tailored to your specific problem types and tools.

A systematic process is the difference between a roller coaster of good and bad results on the one hand and above average and forever improving results on the other.

I would choose above average and forever improving results every time.

A process template that I recommend is as follows:

  • Step 1: Define your problem.
  • Step 2: Prepare your data.
  • Step 3: Spot-check algorithms.
  • Step 4: Improve results.
  • Step 5: Present results.

Below is a nice cartoon to summarize this systematic process:

Machine Learning for Programmers - Select a Systematic Process

Select a systematic and repeatable process that you can use to deliver results consistently.

You can learn more about this process in the post:

You do not have to use this process, but you do need a systematic process for working through predictive modeling problems.

Step 3: Pick a Tool

Pick a best-of-breed tool that you can use to deliver machine learning results.

Map your process onto the tool and learn how to use it most effectively.

There are three tools I recommend the most:

  • Weka Machine Learning Workbench (Perfect for beginners). Weka offers a GUI interface and no code is required. I use it for quick one-off modeling problems.
  • Python Ecosystem (Perfect for intermediate). Specifically pandas and scikit-learn on top of the SciPy platform. You can use the same code and models in development and they are reliable enough to run in operations.
  • R Platform (Perfect for advanced). R was designed for statistical computing, and although the language is arcane and some of the packages are poorly documented, it offers the most methods as well as state of the art techniques.

I also have recommendations for specialty areas:

  • Keras for Deep Learning. It uses Python meaning you can leverage the whole Python ecosystem which saves a lot of time. The interface is very clean, whilst also supporting the power of the Theano and Keras back-ends.
  • XGBoost for Gradient Boosting. It is the fastest implementation of the technique around. It also supports both R and Python allowing you to leverage either platform in your project.

These are just my personal recommendations and I have lots of posts as well as more detailed training on each.

Learn how to use your chosen tool well. Study it. Become an expert in it.

What Programming Language?

The programming language does not matter.

Even the tool you use does not matter.

The skills you learn working through problems will transfer from platform to platform easily.

Nevertheless, here are some survey results on the most popular languages in machine learning:

Step 4: Practice on Datasets

Once you have a process and a tool, you need to practice.

You need to practice a lot.

Practice on standard machine learning datasets.

  • Use real-world datasets, collected from an actual problem domain (rather than contrived).
  • Use small datasets that fit into memory or an excel spreadsheet.
  • Use well-understood datasets so you know what kind of results to expect.

Practice on different types of datasets. Practice on problems that make you uncomfortable as you will have to push your skills to get a solution. Seek out different traits in data problems, such as:

  • Different types of supervised learning such as classification and regression.
  • Different sized datasets from tens, hundreds, thousands and millions of instances.
  • Different numbers of attributes from less than ten, tens, hundreds and thousands of attributes.
  • Different attribute types from real, integer, categorical, ordinal and mixtures.
  • Different domains that force you to quickly understand and characterize a new problem in which you have no previous experience.

Use the UCI Machine Learning Repository

These are the most used and best-understood datasets and the best place to start.

Learn more in the post:

Use machine learning competitions, such as Kaggle

These datasets are often larger and require more preparation to model well.

For a list of the most popular datasets that you could practice on, see the post:

Practice on problems of your own devising

Collect data on machine learning problems that matter to you.

You will find the problems and the solutions you devise so much more rewarding.

For more information, see the post:

Step 5: Build a Portfolio

You will build up a collection of completed projects.

Put them to good use.

As you work through datasets and get better, create semi-formal outputs that summarize your findings.

  • Maybe upload your code and summarize it in a readme.
  • Maybe you write up your results in a blog post.
  • Maybe you make a slide deck.
  • Maybe you create a little video on youtube.

Each one of these completed projects represents one piece of your growing portfolio.

Just like a painter, you can build a portfolio of completed work to demonstrate your growing skills in delivering results with machine learning.

You can learn more about this approach in the post:

You can use this portfolio yourself, leveraging code and knowledge in your prior results in larger and more ambitious projects.

Once your portfolio is mature, you may even choose to leverage it into more responsibility at work or into a new machine learning focused role.

For more on this see the post:

Tips And Tricks

Below are some practical tips and tricks you may consider when using this process.

  • Start with a simple process (like above) and a simple tool (like Weka), then advance once you have confidence.
  • Begin with the simplest and most used datasets (iris flowers and Pima diabetes).
  • Each time you apply the process, look for ways to improve it and your usage of it.
  • If you discover new methods, figure out the best way to integrate them into your process.
  • Study algorithms, but only as much and in ways that help you achieve better results with your process.
  • Study and learn from experts and see what methods you can steal and add to your process.
  • Study your tool like you do predictive modeling problems and get the most out of it.
  • Tackle harder and harder problems, leave the easy ones as you won’t learn much from them.
  • Focus on clearly presenting results, the better you do this, the greater the impact of your portfolio.
  • Engage in the community on forums and Q&A sites, both ask and answer questions.


In this post, you discovered a simple 5-step process that you can use to get started and make progress in applied machine learning.

Although simple to layout, the approach does take hard work, but it does payoff.

Many of my students worked through this process and got work as machine learning engineers and data scientists.

If you are in a deeper treatment of this process and related ideas, see the post:

Do you have any questions?
Ask in the comments below and I will do my best to answer.

42 Responses to The Machine Learning Mastery Method

  1. Avatar
    Mrutyunjaya October 10, 2016 at 3:20 pm #

    Hi Jason, Thanks for sharing. A great content for beginners.

  2. Avatar
    ASIF AMEER October 11, 2016 at 3:21 am #

    Dear Jason Brownlee,

    Really awesome guide to take start of Machine Learning!


  3. Avatar
    neelam singh October 20, 2016 at 3:57 am #

    awesome guide…helped a lot………

  4. Avatar
    Adolfo October 20, 2016 at 4:45 am #

    This is pure gold! Thanks.

  5. Avatar
    Debs October 20, 2016 at 5:30 am #

    Awesome post. Thanks for breaking down the steps so clearly.
    This really give me hope that ML is doable 🙂

  6. Avatar
    Beena M V October 20, 2016 at 10:21 am #

    Big thanks Jason..wonderful for beginners.

  7. Avatar
    Sarah October 20, 2016 at 2:11 pm #

    Great article..

    I am a research student, Im working on ML using MATLAB, any advice on how to learn good programming skills in MATLAB? Im completely new to this field..I am trying to make a hybrid model with an optimization algorithm and ML. I have codes for both but dont know how to go further.
    Thanks in advance.

    • Avatar
      Jason Brownlee October 21, 2016 at 8:32 am #

      Hi Sarah,

      I think matlab is great for developing strong linear algebra skills and multivariate statistics. It might be the best environment to study these things.

      I also think that if you want to learn ML algorithms from these two perspectives that it is the best place to be. But it is not the fastest way to learn about algorithms or the only approach.

      If you take this slower first-principles approach you will need to do a lot of reading on the optimization algorithms and math you are using to learn how to integrate them.

  8. Avatar
    Jonathan Pang October 20, 2016 at 8:12 pm #

    Jason thanks for sharing

    • Avatar
      Jason Brownlee October 21, 2016 at 8:34 am #

      I’m glad you liked it Jonathan.

      Do you think you will follow this approach?

  9. Avatar
    David Fumo October 22, 2016 at 6:41 am #

    wonderful guide, I like this approach and I’ll put it to action right now. I would like hear from you when it’s the right time to start participating in kaggle competitions?

    • Avatar
      Jason Brownlee October 22, 2016 at 7:03 am #

      Great to hear David!

      I recommend getting started with Kaggle after you have confidence with the smaller datasets on the UCI ML Repository.

  10. Avatar
    Lau November 29, 2016 at 4:51 am #

    Great site and great resources. I purchased the machine learning mastery with R and it really does help with the concepts. Especially towards the end when I do the projects from beginning to end, does it really then come together.

    I did want to ask this though: do you have any suggestions about the next logical step, which is translating the data to a business person(I,e, your boss, who is not a machine learner)?

    Suppose I go through the entire process, find a good algorithm that works on my test data, and run it against a ‘truly live’ unknown data, what is the next step? Are their probabilities assigned to my results or to each variables or is it just ‘based on my algorithm, “most likely”, this will happen.

    Not really sure how to frame the newly learned knowledge.

    Maybe this is something you can add in the next book update?

  11. Avatar
    Madhav Bhattarai March 30, 2017 at 8:44 pm #

    Your tutorials are very information. Beginners like me feel lost in the jungle of academic resources while figuring out what to learn especially in the case of machine learning. Thank you for providing proper guidance.

  12. Avatar
    Elissandro Mendes February 14, 2018 at 11:54 pm #

    Oh God, What a great resource!!!

    Thanks Jason!!!

  13. Avatar
    Dina February 18, 2018 at 2:39 am #

    Thanks Jason for the informative post ????

    In your opinion, once you finished a portfolio project that is well commented and structured in a Jupyter notebook, what is the best way to write a readme file to include with the notebook? What should one include in that file?

    • Avatar
      Jason Brownlee February 18, 2018 at 6:47 am #

      Describe what the project is all about, the problem, the solution, your findings, extensions, etc.

  14. Avatar
    Ognyan February 18, 2018 at 8:47 am #

    Thanks Jason! This is an outstanding example of how many years of work and resurch can be summarized into just few pages perfect suitable for begginers. Really well thought out.

  15. Avatar
    Benson Dube February 19, 2018 at 1:42 am #

    Absolute gold standard guide. Many thanks Jason

  16. Avatar
    Mamun January 12, 2019 at 5:57 pm #

    This is pure genius! I have never found any blog or website such helpful. After completing GRE and TOEFL, I am bewildered to find my area of interest. Now it feels like Machine Learning is an area I should try at least.

    Thanks, Jason!
    May God be with you so that you can continue doing such wonderful things.

  17. Avatar
    Subtain Malik August 4, 2020 at 2:43 pm #

    Hi Jason, of course, you have the best content related to the field of machine learning on the internet. However, I am unable to find tips about “how to get hired” in this field. Will you also please elaborate on some information about the corporate of this industry? Like, for a beginner, either we have to apply for small start-ups or big tech giants. Thanks in advance.

  18. Avatar
    awadelrahman May 23, 2021 at 8:00 am #


  19. Avatar
    Suresh Jeevanandam August 30, 2023 at 4:43 pm #

    Thanks and it’s great content for people who want to start their journey in ML world

Leave a Reply