{"id":393,"date":"2024-11-10T14:09:12","date_gmt":"2024-11-10T14:09:12","guid":{"rendered":"https:\/\/techkubo.com\/python\/?p=393"},"modified":"2025-06-20T17:58:24","modified_gmt":"2025-06-20T17:58:24","slug":"intro-to-machine-learning","status":"publish","type":"post","link":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/","title":{"rendered":"Intro to Machine Learning"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What is Machine Learning?<\/h2>\n\n\n\n<p>Machine Learning (ML) enables computers to learn from data and make predictions or decisions on their own without the need of explicitly programming. It&#8217;s part of the bigger umbrella of <strong>Artificial Intelligence (AI) <\/strong>which aims to make machines capable of tasks that would normally require human intelligence.<br><br>In simpler terms, Machine Learning helps computers understand data, recognize patterns, and predict future events.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Starting to Learn Machine Learning Where to Begin?<\/h2>\n\n\n\n<p>To get started with Machine Learning, we need to understand first some basic <strong>statistics<\/strong>. This will guide us analyze data and make sense of number in which we will use one of the popular programming languages <strong>Python <\/strong>to carry out these tasks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Data Set?<\/h2>\n\n\n\n<p>A <strong>data set <\/strong>is a collection of information. It can be simply be a list of numbers or complex such as a detailed table various types of data.<br><br><strong>Example of an array (lust of numbers):<\/strong><br>[120, 180, 150, 220, 220, 95, 110, 135, 180, 200, 160]<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Product<\/strong><\/td><td><strong>Category<\/strong><\/td><td><strong>Price<\/strong><\/td><td><strong>Rating<\/strong><\/td><td><strong>In Stock<\/strong><\/td><\/tr><tr><td>Mango Graham<\/td><td>Dessert<\/td><td>200<\/td><td>4.6<\/td><td>Yes<\/td><\/tr><tr><td>Adobo<\/td><td>Food<\/td><td>80<\/td><td>4.7<\/td><td>Yes<\/td><\/tr><tr><td>Leche Flan<\/td><td>Dessert<\/td><td>120<\/td><td>4.8<\/td><td>No<\/td><\/tr><tr><td>Gulaman<\/td><td>Beverage<\/td><td>30<\/td><td>4.2<\/td><td>Yes<\/td><\/tr><tr><td>T-Shirt<\/td><td>Clothing<\/td><td>150<\/td><td>4.5<\/td><td>Yes<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">From the array, we can calculate the average price, and identify the highest and lowest values. From the database, we can see that &#8220;Dessert&#8221; is the most common category and the most expensive item is the Mango Graham at P200 but with Machine Learning we could also predict whether a product will be available based on its category and price.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Types of Data<\/h2>\n\n\n\n<p>When analyzing data, it is important to understand what type of data we have. The three main types are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Numerical data<\/strong>: These are two types:\n<ul class=\"wp-block-list\">\n<li><strong>Discrete<\/strong>: Countable numbers such as the number of items in stock.<\/li>\n\n\n\n<li><strong>Continuous: <\/strong>Measurable numbers, like the price of a product.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Categorical Data: <\/strong>Data that represents categories like the product&#8217;s type or yes\/no answers.<\/li>\n\n\n\n<li><strong>Ordinal Data: <\/strong>Data with a defined order such as ratings (4.8 stars is better than 4.2 stars).<\/li>\n<\/ul>\n\n\n\n<p>Understanding the type of data helps you choose the correct analysis method.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Machine Learning? Machine Learning (ML) enables computers to learn from data and make predictions or decisions on their [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Intro to Machine Learning - Python Tutorial<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Intro to Machine Learning - Python Tutorial\" \/>\n<meta property=\"og:description\" content=\"What is Machine Learning? Machine Learning (ML) enables computers to learn from data and make predictions or decisions on their [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-10T14:09:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-20T17:58:24+00:00\" \/>\n<meta name=\"author\" content=\"Manong\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Manong\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/\"},\"author\":{\"name\":\"Manong\",\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965\"},\"headline\":\"Intro to Machine Learning\",\"datePublished\":\"2024-11-10T14:09:12+00:00\",\"dateModified\":\"2025-06-20T17:58:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/\"},\"wordCount\":333,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/techkubo.com\/python\/#organization\"},\"articleSection\":[\"python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/\",\"url\":\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/\",\"name\":\"Intro to Machine Learning - Python Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/techkubo.com\/python\/#website\"},\"datePublished\":\"2024-11-10T14:09:12+00:00\",\"dateModified\":\"2025-06-20T17:58:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/techkubo.com\/python\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Intro to Machine Learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/techkubo.com\/python\/#website\",\"url\":\"https:\/\/techkubo.com\/python\/\",\"name\":\"Python Tutorial\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/techkubo.com\/python\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/techkubo.com\/python\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/techkubo.com\/python\/#organization\",\"name\":\"Python Tutorial\",\"url\":\"https:\/\/techkubo.com\/python\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2025\/01\/cropped-Techkubo-logo-1.png\",\"contentUrl\":\"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2025\/01\/cropped-Techkubo-logo-1.png\",\"width\":1620,\"height\":1156,\"caption\":\"Python Tutorial\"},\"image\":{\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965\",\"name\":\"Manong\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/python\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g\",\"caption\":\"Manong\"},\"sameAs\":[\"https:\/\/techkubo.com\"],\"url\":\"https:\/\/techkubo.com\/python\/author\/manong\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Intro to Machine Learning - Python Tutorial","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/","og_locale":"en_US","og_type":"article","og_title":"Intro to Machine Learning - Python Tutorial","og_description":"What is Machine Learning? Machine Learning (ML) enables computers to learn from data and make predictions or decisions on their [&hellip;]","og_url":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/","og_site_name":"Python Tutorial","article_published_time":"2024-11-10T14:09:12+00:00","article_modified_time":"2025-06-20T17:58:24+00:00","author":"Manong","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Manong","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/#article","isPartOf":{"@id":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/"},"author":{"name":"Manong","@id":"https:\/\/techkubo.com\/python\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965"},"headline":"Intro to Machine Learning","datePublished":"2024-11-10T14:09:12+00:00","dateModified":"2025-06-20T17:58:24+00:00","mainEntityOfPage":{"@id":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/"},"wordCount":333,"commentCount":0,"publisher":{"@id":"https:\/\/techkubo.com\/python\/#organization"},"articleSection":["python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techkubo.com\/python\/intro-to-machine-learning\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/","url":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/","name":"Intro to Machine Learning - Python Tutorial","isPartOf":{"@id":"https:\/\/techkubo.com\/python\/#website"},"datePublished":"2024-11-10T14:09:12+00:00","dateModified":"2025-06-20T17:58:24+00:00","breadcrumb":{"@id":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techkubo.com\/python\/intro-to-machine-learning\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/techkubo.com\/python\/intro-to-machine-learning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techkubo.com\/python\/"},{"@type":"ListItem","position":2,"name":"Intro to Machine Learning"}]},{"@type":"WebSite","@id":"https:\/\/techkubo.com\/python\/#website","url":"https:\/\/techkubo.com\/python\/","name":"Python Tutorial","description":"","publisher":{"@id":"https:\/\/techkubo.com\/python\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techkubo.com\/python\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techkubo.com\/python\/#organization","name":"Python Tutorial","url":"https:\/\/techkubo.com\/python\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/python\/#\/schema\/logo\/image\/","url":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2025\/01\/cropped-Techkubo-logo-1.png","contentUrl":"https:\/\/techkubo.com\/python\/wp-content\/uploads\/sites\/2\/2025\/01\/cropped-Techkubo-logo-1.png","width":1620,"height":1156,"caption":"Python Tutorial"},"image":{"@id":"https:\/\/techkubo.com\/python\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/techkubo.com\/python\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965","name":"Manong","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/python\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g","caption":"Manong"},"sameAs":["https:\/\/techkubo.com"],"url":"https:\/\/techkubo.com\/python\/author\/manong\/"}]}},"_links":{"self":[{"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/posts\/393"}],"collection":[{"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":2,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":703,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/posts\/393\/revisions\/703"}],"wp:attachment":[{"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techkubo.com\/python\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}