Discover millions of ebooks, audiobooks, and so much more with a free trial

Only €10,99/month after trial. Cancel anytime.

Python ML
Python ML
Python ML
Ebook136 pages1 hour

Python ML

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Are you interested in machine learning? Do you want to know how it all works and what it involves? Then you've chosen the right guide.

 

Machine learning is a subset of computer science and Artificial Intelligence. There's no getting away from the fact that it is here to stay, and it is already changing how many businesses work and target their customers. It's a complex subject, but this guide will give you a concise overview of the steps required in every machine learning project.

 

Here's what you will learn:

 

  • How to install Python on Windows and Mac
  • A short look at the common Python machine learning libraries and packages
  • How to collect data for a machine learning project
  • How to prepare the data
  • How to choose the right machine learning model
  • How to train your model
  • How to evaluate your model
  • What parameter tuning involves
  • How to make predictions using your trained model

Then you'll get a walkthrough on how to implement all those steps, with some code examples.

 

What you won't get is a guide on how to use Python. It is expected that you will have some knowledge of this popular programming language before you start or will want to learn it when you have read the guide.

 

For now, if you want to get inside machine learning with Python, scroll up, click on Buy Now and start a new chapter in your life.

LanguageEnglish
Release dateOct 5, 2024
ISBN9798227685568
Python ML
Author

Alex Campbell

Alex Campbell is an award-winning writer, producer, and director of more than two hundred information films for Fortune Top 25 corporations as well as government agencies, including the National Endowment for the Humanities. He lives in California.

Read more from Alex Campbell

Related to Python ML

Related ebooks

Intelligence (AI) & Semantics For You

View More

Related articles

Reviews for Python ML

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Python ML - Alex Campbell

    Introduction

    Hello and welcome to my guide on machine learning. I plan to walk you through the seven steps in a machine learning project but mostly through theory. There will be some code examples, though, and at the end of the book, I'll walk you through implementing these steps.

    The idea is to take you from someone who knows little about machine learning to someone who has some knowledge in just a few steps without overwhelming you with complicated examples. I'll tell you how to install Python on your Windows or Mac computer and the most common machine learning packages before moving on to the seven steps required for every machine learning project, regardless of size or complexity. Those steps are:

      Collecting your data

      Preparing the data

      Choosing the right machine learning model for the project

      Training your model

      Evaluating it

      Tuning the model's parameters

      Making predictions

    I'm assuming that you don't have much experience with Python, machine learning, or any of the Python scientific libraries. If you do have experience, great. If you don't, it will help to get a basic understanding of the Python programming language before you start this book.

    You could also use this book to give you an idea of whether machine learning is the direction you want to go in.

    However you choose to use this book, I guarantee you will find the information contained in it useful, and it will give you a decent insight into how machine learning really works.

    Part One: Getting Started

    Python is the most popular language for machine learning because it is one of the easiest languages to use. It is a general-purpose language and was quickly adopted as the language of choice by data scientists. I won't be teaching you how to use it, but you can find plenty of tutorials online, free and paid.

    Before you can even begin to understand machine learning and work through some of the examples in this guide, you will need to install Python on your computer, which will be our starting point.

    Installing Python

    Because machine learning involves the use of machine learning and scientific computing packages and libraries, Anaconda is the recommended Python installation. Anaconda is a complete installation, including all the packages you will need for machine learning - matplotlib, scikit-learn, and NumPy, to name a few. It also gives you access to iPython Notebook, a great interactive environment that makes learning simple.

    If you already have Python installed on your computer, move on to the next step. If not, choose Windows or Mac and follow the download instructions.

    Windows Installation

    Before I start, a note on installation issues. If you encounter any issues while trying to install Anaconda, make sure your anti-virus software is disabled, just for the installation. Once the installation has successfully concluded, re-enable it.

    Download the Anaconda installer from https://anaconda.com/download/#windows

    When it is downloaded, double-click on the installer to open it - do NOT do this from your Favorites folder, as it will cause permission errors

    Click on Next and then click I Agree on the licensing terms and conditions

    You need to choose who you are installing Anaconda for on the next page. Unless you need to install it for all users (this will require Administrator Privileges), click on Just Me and click the Next button.

    Next, choose a destination folder and click on Next. Try to install it to a directory path with no Unicode characters or spaces, and unless you need admin privileges, do NOT install as Administrator.

    Now you will be asked if you want Anaconda added to your PATH environment variable. I recommend you do not do this because doing so can cause interference with other installed software on your computer. Instead, the software should be used by launching the Anaconda Prompt in your Start Menu or the Anaconda Navigator.

    Decide if you want Anaconda registered as the default Python language. If you only intend to install and use one version of Python or Anaconda, you should choose to accept the default, ensuring the box remains checked.

    Click the Install button. Now you can leave it to install or, if you want to see the progress, click on Show Details

    Click on Next

    If you choose to install Dataspell, click the link - https://www.anaconda.com/datapell on the screen or click on Next if you don't want it

    Once the installation is successful, a Thanks for installing Anaconda message will appear on your screen

    Now you have another choice - you can click on the relevant boxes to learn more about Anaconda, or you can click the Finish button

    The last step is to verify the installation - you'll find the instruction for that at the end of this chapter.

    macOS

    With macOS, you have two choices: the wizard (the graphical installer) or the manual install option (command-line).

    Enjoying the preview?
    Page 1 of 1