{"id":3771,"date":"2026-11-11T12:07:01","date_gmt":"2026-11-11T09:07:01","guid":{"rendered":"https:\/\/niteducation.com\/resources\/?p=3771"},"modified":"2026-11-11T16:48:23","modified_gmt":"2026-11-11T13:48:23","slug":"ai-projects-for-beginners","status":"publish","type":"post","link":"https:\/\/niteducation.com\/resources\/ai-projects-for-beginners\/","title":{"rendered":"10 AI Projects for Beginners: No-Code &amp; Python Guides"},"content":{"rendered":"\n<article aria-labelledby=\"nit-article-title\" class=\"nit-article nit-article--software nit-article--pathway-guide nit-article--c-plus-degree\" itemscope=\"\" itemtype=\"https:\/\/schema.org\/Article\">\n  <meta content=\"en-KE\" itemprop=\"inLanguage\">\n  <meta content=\"Newton Institute of Technology Editorial Team\" itemprop=\"author\">\n  <div aria-labelledby=\"nit-article-title\" class=\"nit-pg-hero\">\n    <div>\n      <p class=\"nit-pg-kicker\">Artificial Intelligence \u00b7 Beginner Projects<\/p>\n      <p class=\"nit-hero__title\" id=\"nit-article-title\" itemprop=\"headline\">AI Projects for Beginners:<br>10 Builds to Learn Practical Skills<\/p>\n      <p class=\"nit-pg-hero__line\">choose <i>\u2192<\/i> build <i>\u2192<\/i> test <i>\u2192<\/i> improve<\/p>\n      <p class=\"nit-pg-hero__summary\" itemprop=\"description\">Build your first AI project without coding, then learn how to train and evaluate Python models. Ten realistic projects, two detailed build-alongs and practical beginner tests.<\/p>\n      <div class=\"nit-pg-hero__actions\">\n        <a class=\"nit-pg-button nit-pg-button--gold\" href=\"#project-chooser\">Choose a project<\/a>\n        <a class=\"nit-pg-button nit-pg-button--outline\" href=\"#project-4\">Build with Python<\/a>\n      <\/div>\n    <\/div>\n    <div aria-label=\"AI project learning pathway illustration\" class=\"nit-deg-hero__art\">\n      <p>Real projects. Real tests.<\/p>\n      <div aria-hidden=\"true\" class=\"nit-deg-orbit\">\n        <strong>AI<\/strong>\n        <span class=\"nit-deg-orbit__chip nit-deg-orbit__chip--tech\">NO CODE<\/span>\n        <span class=\"nit-deg-orbit__chip nit-deg-orbit__chip--health\">PYTHON<\/span>\n        <span class=\"nit-deg-orbit__chip nit-deg-orbit__chip--business\">DATA<\/span>\n        <span class=\"nit-deg-orbit__chip nit-deg-orbit__chip--stem\">TEST<\/span>\n      <\/div>\n      <div class=\"nit-deg-hero__note\">\n        <span>Project method<\/span>\n        <strong>Try \u2192 measure \u2192 improve<\/strong>\n        <small>From classroom objects to useful predictions and assistants.<\/small>\n      <\/div>\n    <\/div>\n    <div aria-label=\"Article summary\" class=\"nit-pg-hero__meta\">\n      <p><span>Projects<\/span>10 beginner builds<\/p>\n      <p><span>Routes<\/span>No-code + Python<\/p>\n      <p><span>Audience<\/span>Students + first-timers<\/p>\n      <p><span>Reviewed<\/span>11 November 2026<\/p>\n    <\/div>\n  <\/div>\n  <div class=\"nit-article__body\">\n    <section aria-labelledby=\"quick-answer-title\" class=\"nit-quick-answer\" id=\"quick-answer\">\n      <div class=\"nit-quick-answer__head\">\n        <span aria-hidden=\"true\" class=\"nit-quick-answer__mark\">AI<\/span>\n        <div>\n          <p class=\"nit-quick-answer__label\">Quick answer<\/p>\n          <p class=\"nit-quick-answer__kicker\" id=\"quick-answer-title\">Which AI project should you start with?<\/p>\n        <\/div>\n      <\/div>\n      <div class=\"nit-quick-answer__body\">\n        <p class=\"nit-quick-answer__text\"><strong>Start with a no-code classroom object recogniser if you have never programmed.<\/strong> If you already know some Python, build the SMS spam detector and evaluate it against a simple baseline. Each exercise below has a clear task, a practical method and a test you can complete.<\/p>\n        <ul class=\"nit-quick-answer__signals\">\n          <li>10 project choices<\/li>\n          <li>No-code options<\/li>\n          <li>Step-by-step Python<\/li>\n          <li>Real test criteria<\/li>\n          <li>School and business examples<\/li>\n        <\/ul>\n      <\/div>\n    <\/section>\n    <p class=\"nit-hero__lede\"><strong>The best AI projects for beginners are small enough to finish and clear enough to test.<\/strong> Start with a classroom object recogniser, a sound classifier or an AI-assisted revision tool. Then progress into Python: classify SMS messages, recognise handwritten numbers, predict shop sales and investigate unusual records.<\/p>\n    <p>Each project explains the tools you need, what to build and how to check the result. You do not need advanced mathematics to begin\u2014but you do need curiosity, patience and a habit of testing rather than guessing.<\/p>\n    <nav aria-label=\"Article contents\" class=\"nit-toc\">\n      <h2>In this guide<\/h2>\n      <ol>\n        <li><a href=\"#project-chooser\">Project chooser<\/a><\/li>\n        <li><a href=\"#what-counts\">What counts as AI<\/a><\/li>\n        <li><a href=\"#tools\">Beginner tools<\/a><\/li>\n        <li><a href=\"#project-1\">Project 1<\/a><\/li>\n        <li><a href=\"#project-2\">Project 2<\/a><\/li>\n        <li><a href=\"#project-3\">Project 3<\/a><\/li>\n        <li><a href=\"#project-4\">Project 4<\/a><\/li>\n        <li><a href=\"#project-5\">Project 5<\/a><\/li>\n        <li><a href=\"#project-6\">Project 6<\/a><\/li>\n        <li><a href=\"#project-7\">Project 7<\/a><\/li>\n        <li><a href=\"#project-8\">Project 8<\/a><\/li>\n        <li><a href=\"#project-9\">Project 9<\/a><\/li>\n        <li><a href=\"#project-10\">Project 10<\/a><\/li>\n        <li><a href=\"#project-proof\">Testing method<\/a><\/li>\n        <li><a href=\"#troubleshooting\">Troubleshooting<\/a><\/li>\n        <li><a href=\"#learning-plan\">Four-week plan<\/a><\/li>\n        <li><a href=\"#faq\">FAQs<\/a><\/li>\n        <li><a href=\"#register\">Register at NIT<\/a><\/li>\n      <\/ol>\n    <\/nav>\n    <section aria-labelledby=\"chooser-title\" class=\"nit-section-panel\" id=\"project-chooser\">\n      <h2 id=\"chooser-title\">10 AI projects for beginners at a glance<\/h2>\n      <p>Select the task that matches your current experience. Project 1 is the easiest starting point; Project 4 is the main Python tutorial.<\/p>\n      <div class=\"nit-curriculum-grid\">\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 01 \u00b7 No code<\/span>\n          <h3><a href=\"#project-1\">Object recogniser<\/a><\/h3>\n          <p>Train on classroom items; test new photos. <strong>Skill:<\/strong> Image classification.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 02 \u00b7 No code<\/span>\n          <h3><a href=\"#project-2\">Sound recogniser<\/a><\/h3>\n          <p>Teach a model to distinguish claps and bells. <strong>Skill:<\/strong> Audio classification.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 03 \u00b7 No code<\/span>\n          <h3><a href=\"#project-3\">Revision assistant<\/a><\/h3>\n          <p>Generate questions from verified notes. <strong>Skill:<\/strong> Prompt evaluation.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 04 \u00b7 Python<\/span>\n          <h3><a href=\"#project-4\">SMS spam detector<\/a><\/h3>\n          <p>Train, compare baseline and inspect errors. <strong>Skill:<\/strong> Text classification.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 05 \u00b7 Python<\/span>\n          <h3><a href=\"#project-5\">Digit recogniser<\/a><\/h3>\n          <p>Classify small handwritten digits. <strong>Skill:<\/strong> Image features.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 06 \u00b7 Python<\/span>\n          <h3><a href=\"#project-6\">Water-shop forecasting<\/a><\/h3>\n          <p>Compare sales predictions with a baseline. <strong>Skill:<\/strong> Regression.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 07 \u00b7 Optional code<\/span>\n          <h3><a href=\"#project-7\">School enquiry assistant<\/a><\/h3>\n          <p>Respond using only approved school information. <strong>Skill:<\/strong> Grounded answers.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 08 \u00b7 Optional code<\/span>\n          <h3><a href=\"#project-8\">Crop-leaf classifier<\/a><\/h3>\n          <p>Test maize and bean leaf photographs. <strong>Skill:<\/strong> Computer vision.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 09 \u00b7 Python<\/span>\n          <h3><a href=\"#project-9\">Book recommender<\/a><\/h3>\n          <p>Rank books by description similarity. <strong>Skill:<\/strong> Similarity.<\/p>\n        <\/article>\n        <article class=\"nit-curriculum-card\">\n          <span class=\"nit-curriculum-card__period\">Project 10 \u00b7 Python<\/span>\n          <h3><a href=\"#project-10\">Inventory anomaly detector<\/a><\/h3>\n          <p>Flag unusual production records for review. <strong>Skill:<\/strong> Anomaly detection.<\/p>\n        <\/article>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"what-counts-title\" class=\"nit-section-panel\" id=\"what-counts\">\n      <h2 id=\"what-counts-title\">What makes a beginner AI project useful?<\/h2>\n      <p>An AI project has a specific input, a clear task and an output you can test. Some projects train a new machine learning model; others build an application or repeatable workflow around an existing AI model. Those are different skills, and both are useful.<\/p>\n      <p><strong>Example 1 \u2014 An image classifier.<\/strong> You provide labelled pictures of pens, books and calculators. A model learns visual patterns and predicts the category of a new picture.<\/p>\n      <p><strong>Example 2 \u2014 A study assistant.<\/strong> You provide an existing language model with verified revision notes, specify the type of questions needed and check whether its answers are supported. You are <em>applying<\/em> AI, not training a language model.<\/p>\n      <p>A strong project normally moves through five stages:<\/p>\n      <div aria-label=\"Numbered practical workflow\" class=\"nit-pg-reasons\">\n        <div>\n          <span>01<\/span>\n          <h3>Choose the problem<\/h3>\n          <p>Decide what the computer should do and how to recognise a useful outcome.<\/p>\n        <\/div>\n        <div>\n          <span>02<\/span>\n          <h3>Gather examples<\/h3>\n          <p>Use authorised images, sounds, labelled data or reliable reference notes.<\/p>\n        <\/div>\n        <div>\n          <span>03<\/span>\n          <h3>Build the system<\/h3>\n          <p>Train a small model or configure an existing AI tool.<\/p>\n        <\/div>\n        <div>\n          <span>04<\/span>\n          <h3>Test unfamiliar cases<\/h3>\n          <p>Compare expected results with actual outputs and a simple baseline.<\/p>\n        <\/div>\n        <div>\n          <span>05<\/span>\n          <h3>Improve and explain<\/h3>\n          <p>Investigate mistakes, change one thing and document the limits.<\/p>\n        <\/div>\n      <\/div>\n      <p><strong>Your first rule:<\/strong> do not call a project finished just because the software produces an answer. Test unfamiliar examples, record mistakes, and explain one limitation.<\/p>\n    <\/section>\n    <section aria-labelledby=\"tools-title\" id=\"tools\">\n      <h2 id=\"tools-title\">What tools and equipment do you need?<\/h2>\n      <p>An ordinary laptop or desktop computer and internet access are enough for many of these experiments. Google Teachable Machine lets learners train small image, sound and pose classifiers without code <a href=\"#source-1\">[1]<\/a>. Google Colab runs Python notebooks in a browser, although free computing resources and session availability have limits <a href=\"#source-2\">[2]<\/a>.<\/p>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th>Tool<\/th>\n              <th>What it does<\/th>\n              <th>Coding needed<\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>Google Teachable Machine<\/td>\n              <td>Train basic image and sound classifiers<\/td>\n              <td>No<\/td>\n            <\/tr>\n            <tr>\n              <td>AI chatbot<\/td>\n              <td>Test a revision or question-answering workflow<\/td>\n              <td>No<\/td>\n            <\/tr>\n            <tr>\n              <td>Google Colab<\/td>\n              <td>Run code without installing Python locally<\/td>\n              <td>Yes<\/td>\n            <\/tr>\n            <tr>\n              <td>pandas<\/td>\n              <td>Organise tables and datasets<\/td>\n              <td>Yes<\/td>\n            <\/tr>\n            <tr>\n              <td>scikit-learn<\/td>\n              <td>Train and evaluate machine learning models<\/td>\n              <td>Yes<\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">On a narrow screen, swipe horizontally to view all columns.<\/p>\n      <p>A smartphone may support some no-code activities, but a computer is much easier for programming, managing files and troubleshooting. Check any service&#8217;s pricing, limits and account requirements before using it.<\/p>\n    <\/section>\n    <section aria-labelledby=\"project-1-title\" class=\"nit-section-panel\" id=\"project-1\">\n      <h2 id=\"project-1-title\">Project 1: Train an AI to recognise classroom objects<\/h2>\n      <p><strong>Difficulty:<\/strong> First-time beginner \u00b7 <strong>Coding:<\/strong> None \u00b7 <strong>Time:<\/strong> About 45\u201390 minutes \u00b7 <strong>Deliverable:<\/strong> Trained classifier and real test record.<\/p>\n      <p>Imagine an ICT club teaching a computer to distinguish <strong>pens, exercise books and calculators<\/strong>. You can build this with Google&#8217;s <a href=\"https:\/\/teachablemachine.withgoogle.com\/\" target=\"_blank\" rel=\"noopener\">Teachable Machine<\/a> without writing Python <a href=\"#source-1\">[1]<\/a>.<\/p>\n      <h3>Build the model<\/h3>\n      <ol>\n        <li>Open Teachable Machine, select <strong>Get Started<\/strong>, then <strong>Image Project<\/strong> and the standard model option.<\/li>\n        <li>Rename the categories <em>Pen<\/em>, <em>Exercise Book<\/em> and <em>Calculator<\/em>.<\/li>\n        <li>Capture roughly 30\u201350 <strong>varied<\/strong> pictures for each category as a starting experiment. Use different objects, camera angles, distances, backgrounds and lighting.<\/li>\n        <li>Select <strong>Train Model<\/strong>, then use the preview to test your classifier.<\/li>\n        <li>Find at least five <strong>new<\/strong> examples for each category. Do not reuse only the exact objects and camera views from training.<\/li>\n        <li>Record each prediction and whether it matches the correct category.<\/li>\n      <\/ol>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th>New test object<\/th>\n              <th>Correct category<\/th>\n              <th>Example prediction<\/th>\n              <th>Outcome<\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>Different blue pen<\/td>\n              <td>Pen<\/td>\n              <td>Pen<\/td>\n              <td>Correct<\/td>\n            <\/tr>\n            <tr>\n              <td>Calculator on a chair<\/td>\n              <td>Calculator<\/td>\n              <td>Exercise Book<\/td>\n              <td>Incorrect<\/td>\n            <\/tr>\n            <tr>\n              <td>New exercise book<\/td>\n              <td>Exercise Book<\/td>\n              <td>Exercise Book<\/td>\n              <td>Correct<\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">On a narrow screen, swipe horizontally to view all columns.<\/p>\n      <p><em>The entries above illustrate how to document a test; they are not measured results from your model.<\/em><\/p>\n      <h3>Calculate your accuracy<\/h3>\n      <p>If you classify 12 of 15 new objects correctly, <strong>accuracy = 12 \u00f7 15 \u00d7 100 = 80%<\/strong>. This is accuracy for those fifteen tests only; it is not proof of dependable performance under every condition.<\/p>\n      <h3>Find and fix a mistake<\/h3>\n      <p>If all pens were photographed on a white table but all calculators on a dark desk, the model might learn backgrounds rather than the objects. Collect more varied examples, retrain and use <strong>fresh<\/strong> photographs to evaluate again. Try unknown objects as an additional challenge; do not assume the classifier can identify all unfamiliar items.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 1:<\/strong> Show the classifier, its new-image test table, and one error you investigated.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-2-title\" id=\"project-2\">\n      <h2 id=\"project-2-title\">Project 2: Train a sound recogniser<\/h2>\n      <p><strong>Difficulty:<\/strong> Easy \u00b7 <strong>Coding:<\/strong> None \u00b7 <strong>Time:<\/strong> About 1\u20132 hours \u00b7 <strong>Deliverable:<\/strong> Model distinguishing two sounds and a noise test.<\/p>\n      <p>A school ICT club wants to distinguish a <strong>hand clap<\/strong> from a <strong>bell<\/strong>. This introduces audio classification, another capability offered by Teachable Machine <a href=\"#source-1\">[1]<\/a>.<\/p>\n      <ol>\n        <li>Open a Teachable Machine audio project.<\/li>\n        <li>Configure classes for <strong>Clapping<\/strong>, <strong>Bell<\/strong> and suitable <strong>Background Noise<\/strong>.<\/li>\n        <li>Record several clean examples of each sound following the tool&#8217;s audio workflow.<\/li>\n        <li>Train the model and test it with unfamiliar recordings.<\/li>\n        <li>Repeat the test from different microphone distances and with different background sounds.<\/li>\n        <li>Record the expected sound, predicted sound and whether the model was right.<\/li>\n      <\/ol>\n      <p>If the bell is consistently confused with clapping, examine recording quality and variety before retraining. Do not record identifiable conversations without permission.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 2:<\/strong> Demonstrate both sounds and explain how recording conditions changed performance.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-3-title\" class=\"nit-section-panel\" id=\"project-3\">\n      <h2 id=\"project-3-title\">Project 3: Create an AI revision-question generator<\/h2>\n      <p><strong>Difficulty:<\/strong> Easy \u00b7 <strong>Coding:<\/strong> None \u00b7 <strong>Time:<\/strong> About 30\u201360 minutes \u00b7 <strong>Deliverable:<\/strong> Reusable prompt and checked questions.<\/p>\n      <p>A Form Two learner wants multiple-choice practice questions based on their science notes. This project uses an existing language model rather than training a new one.<\/p>\n      <h3>Prepare a short passage<\/h3>\n      <blockquote>\n        <p>Photosynthesis is the process by which green plants use light energy to produce glucose from carbon dioxide and water. Chlorophyll absorbs light energy. Oxygen is released during the process.<\/p>\n      <\/blockquote>\n      <h3>Give the AI a precise task<\/h3>\n      <p>Copy this instruction into an AI chatbot and append the passage:<\/p>\n      <blockquote>\n        <p>You are a secondary-school science revision assistant. Use only the supplied notes. Create five multiple-choice questions, each with four answers labelled A, B, C and D. Provide the correct answer and a short explanation. If the notes do not contain enough information, say so. Do not invent facts.<\/p>\n      <\/blockquote>\n      <h3>Evaluate the questions<\/h3>\n      <p>A supported example is: <strong>Which substance absorbs light energy during photosynthesis?<\/strong> A. Oxygen; B. Chlorophyll; C. Glucose; D. Carbon dioxide. The correct answer is <strong>B<\/strong>.<\/p>\n      <p>Check every generated question against the source. Next, remove the sentence about chlorophyll and ask about the same concept. Does the assistant admit that information is missing? If not, refine your instruction and test again. Try fresh geography or ICT notes once the workflow is reliable.<\/p>\n      <p><strong>Privacy:<\/strong> use your own notes or material you are authorised to submit to the service, not private student records.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 3:<\/strong> Produce five source-supported questions and show how an unanswered question is handled.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-4-title\" id=\"project-4\">\n      <h2 id=\"project-4-title\">Project 4: Build an SMS spam detector with Python<\/h2>\n      <p><strong>Difficulty:<\/strong> Beginner\u2013intermediate \u00b7 <strong>Coding:<\/strong> Python \u00b7 <strong>Time:<\/strong> About 2\u20134 hours \u00b7 <strong>Deliverable:<\/strong> Working notebook, evaluation report and error analysis.<\/p>\n      <p>This is the main coding tutorial. On a phone, swipe code windows sideways if a line is longer than your screen. You will train a model to classify text messages into <strong>ham<\/strong> (ordinary) and <strong>spam<\/strong>, using the <a href=\"https:\/\/archive.ics.uci.edu\/dataset\/228\/sms%2Bspam%2Bcollection\" target=\"_blank\" rel=\"noopener\">UCI SMS Spam Collection<\/a>. Its original release includes <strong>5,574 labelled messages<\/strong> <a href=\"#source-3\">[3]<\/a>.<\/p>\n      <h3>Step 1 \u2014 Open a notebook<\/h3>\n      <p>Visit <a href=\"https:\/\/colab.research.google.com\/\" target=\"_blank\" rel=\"noopener\">Google Colab<\/a> and create a notebook named <code>my_first_spam_detector.ipynb<\/code>. Colab provides browser-hosted Python notebooks <a href=\"#source-2\">[2]<\/a>.<\/p>\n      <h3>Step 2 \u2014 Prepare the libraries<\/h3>\n      <div aria-label=\"Python example 1\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 01<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">!pip&nbsp;-q&nbsp;install&nbsp;pandas&nbsp;scikit-learn<\/span>\n        <\/div>\n      <\/div>\n      <h3>Step 3 \u2014 Download and read the dataset<\/h3>\n      <div aria-label=\"Python example 2\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 02<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;csv<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;io<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;urllib.request<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;zipfile<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;pandas&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;pd<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">url&nbsp;=&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;https:\/\/archive.ics.uci.edu\/&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;static\/public\/228\/&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;sms+spam+collection.zip&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">with<\/span>&nbsp;urllib.request.urlopen(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;url,&nbsp;timeout=<span class=\"nit-code-number\">30<\/span><\/span>\n          <span class=\"nit-code-line\">)&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;response:<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;downloaded&nbsp;=&nbsp;response.read()<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">with<\/span>&nbsp;zipfile.ZipFile(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;io.BytesIO(downloaded)<\/span>\n          <span class=\"nit-code-line\">)&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;archive:<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;data&nbsp;=&nbsp;pd.read_csv(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archive.open(<span class=\"nit-code-string\">&#8220;SMSSpamCollection&#8221;<\/span>),<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sep=<span class=\"nit-code-string\">&#8220;\\t&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;header=<span class=\"nit-code-keyword\">None<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;names=[<span class=\"nit-code-string\">&#8220;label&#8221;<\/span>,&nbsp;<span class=\"nit-code-string\">&#8220;message&#8221;<\/span>],<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;encoding=<span class=\"nit-code-string\">&#8220;utf-8&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;quoting=csv.QUOTE_NONE<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(data.head())<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-name\">len<\/span>(data))<\/span>\n        <\/div>\n      <\/div>\n      <p>The archive contains a tab-separated text file with the message category and message text <a href=\"#source-3\">[3]<\/a>. If the download fails, download the ZIP from the UCI page and upload it to Colab with the following code, then rerun the <code>with zipfile.ZipFile(...)<\/code> block:<\/p>\n      <div aria-label=\"Python example 3\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 03<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;google.colab&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;files<\/span>\n          <span class=\"nit-code-line\">uploaded&nbsp;=&nbsp;files.upload()<\/span>\n          <span class=\"nit-code-line\">downloaded&nbsp;=&nbsp;<span class=\"nit-code-name\">next<\/span>(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-name\">iter<\/span>(uploaded.values())<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n        <\/div>\n      <\/div>\n      <h3>Step 4 \u2014 Clean before splitting<\/h3>\n      <div aria-label=\"Python example 4\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 04<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">data&nbsp;=&nbsp;data.dropna(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;subset=[<span class=\"nit-code-string\">&#8220;label&#8221;<\/span>,&nbsp;<span class=\"nit-code-string\">&#8220;message&#8221;<\/span>]<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">assert<\/span>&nbsp;<span class=\"nit-code-name\">set<\/span>(data[<span class=\"nit-code-string\">&#8220;label&#8221;<\/span>])&nbsp;==&nbsp;{<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;ham&#8221;<\/span>,&nbsp;<span class=\"nit-code-string\">&#8220;spam&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">}<\/span>\n          <span class=\"nit-code-line\">data&nbsp;=&nbsp;data.drop_duplicates(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;subset=[<span class=\"nit-code-string\">&#8220;message&#8221;<\/span>]<\/span>\n          <span class=\"nit-code-line\">).reset_index(drop=<span class=\"nit-code-keyword\">True<\/span>)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(data[<span class=\"nit-code-string\">&#8220;label&#8221;<\/span>].value_counts())<\/span>\n        <\/div>\n      <\/div>\n      <p>Identical messages in both training and testing can make evaluation look overly favourable. Remove duplicates before the split. Real projects also need checks for near-duplicates and dataset provenance.<\/p>\n      <h3>Step 5 \u2014 Reserve unseen examples<\/h3>\n      <div aria-label=\"Python example 5\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 05<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.model_selection&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;train_test_split<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">X&nbsp;=&nbsp;data[<span class=\"nit-code-string\">&#8220;message&#8221;<\/span>]<\/span>\n          <span class=\"nit-code-line\">y&nbsp;=&nbsp;data[<span class=\"nit-code-string\">&#8220;label&#8221;<\/span>]<\/span>\n          <span class=\"nit-code-line\">X_train,&nbsp;X_test,&nbsp;y_train,&nbsp;y_test&nbsp;=&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;train_test_split(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;X,&nbsp;y,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test_size=<span class=\"nit-code-number\">0.20<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;random_state=<span class=\"nit-code-number\">42<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stratify=y<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n        <\/div>\n      <\/div>\n      <p>Twenty percent of records are held out for testing; <code>stratify<\/code> helps maintain class proportions. The split function is documented by scikit-learn <a href=\"#source-4\">[4]<\/a>.<\/p>\n      <h3>Step 6 \u2014 Train the classifier<\/h3>\n      <div aria-label=\"Python example 6\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 06<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.feature_extraction.text&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;TfidfVectorizer<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.naive_bayes&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;MultinomialNB<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.pipeline&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;make_pipeline<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">model&nbsp;=&nbsp;make_pipeline(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;TfidfVectorizer(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ngram_range=(<span class=\"nit-code-number\">1<\/span>,&nbsp;<span class=\"nit-code-number\">2<\/span>)<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;),<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;MultinomialNB()<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\">model.fit(X_train,&nbsp;y_train)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-string\">&#8220;Training&nbsp;complete&#8221;<\/span>)<\/span>\n        <\/div>\n      <\/div>\n      <p><strong>TF-IDF<\/strong> converts text into numerical features. <strong>Multinomial Naive Bayes<\/strong> is a classifier that learns statistical relationships between those features and labels <a href=\"#source-5\">[5]<\/a>, <a href=\"#source-6\">[6]<\/a>. Keeping the vectoriser inside a pipeline ensures it learns vocabulary from the training data rather than from the test set.<\/p>\n      <h3>Step 7 \u2014 Evaluate against a baseline<\/h3>\n      <div aria-label=\"Python example 7\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 07<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.metrics&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;accuracy_score,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;classification_report,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;recall_score<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">predictions&nbsp;=&nbsp;model.predict(X_test)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-string\">&#8220;Accuracy:&#8221;<\/span>,&nbsp;accuracy_score(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;y_test,&nbsp;predictions<\/span>\n          <span class=\"nit-code-line\">))<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(classification_report(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;y_test,&nbsp;predictions,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;zero_division=<span class=\"nit-code-number\">0<\/span><\/span>\n          <span class=\"nit-code-line\">))<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">common&nbsp;=&nbsp;y_train.value_counts().idxmax()<\/span>\n          <span class=\"nit-code-line\">baseline&nbsp;=&nbsp;[common]&nbsp;*&nbsp;<span class=\"nit-code-name\">len<\/span>(y_test)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-string\">&#8220;Baseline&nbsp;spam&nbsp;recall:&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;recall_score(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;y_test,&nbsp;baseline,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pos_label=<span class=\"nit-code-string\">&#8220;spam&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;zero_division=<span class=\"nit-code-number\">0<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-string\">&#8220;Model&nbsp;spam&nbsp;recall:&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;recall_score(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;y_test,&nbsp;predictions,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pos_label=<span class=\"nit-code-string\">&#8220;spam&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;zero_division=<span class=\"nit-code-number\">0<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n        <\/div>\n      <\/div>\n      <p><strong>Accuracy<\/strong> counts the proportion correct; <strong>precision<\/strong> asks how often messages predicted as spam really are spam; <strong>recall<\/strong> asks how many actual spam examples are detected. F1-score combines precision and recall <a href=\"#source-7\">[7]<\/a>.<\/p>\n      <p>A classifier that always predicts the more common <em>ham<\/em> category may achieve high accuracy while missing every spam message. The baseline provides a meaningful comparison. Record the actual values printed by your own notebook rather than publishing imaginary model scores.<\/p>\n      <h3>Step 8 \u2014 Inspect the errors<\/h3>\n      <div aria-label=\"Python example 8\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 08<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;pandas&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;pd<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">errors&nbsp;=&nbsp;pd.DataFrame({<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;message&#8221;<\/span>:&nbsp;X_test.to_numpy(),<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;actual&#8221;<\/span>:&nbsp;y_test.to_numpy(),<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;predicted&#8221;<\/span>:&nbsp;predictions<\/span>\n          <span class=\"nit-code-line\">})<\/span>\n          <span class=\"nit-code-line\">errors&nbsp;=&nbsp;errors[<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;errors[<span class=\"nit-code-string\">&#8220;actual&#8221;<\/span>]&nbsp;!=<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;errors[<span class=\"nit-code-string\">&#8220;predicted&#8221;<\/span>]<\/span>\n          <span class=\"nit-code-line\">]<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(errors.head(<span class=\"nit-code-number\">10<\/span>).to_string(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;index=<span class=\"nit-code-keyword\">False<\/span><\/span>\n          <span class=\"nit-code-line\">))<\/span>\n        <\/div>\n      <\/div>\n      <p>A <strong>false positive<\/strong> is an ordinary message incorrectly classified as spam. A <strong>false negative<\/strong> is a spam message missed. Examine the differences: short messages, unusual abbreviations and words related to money may confuse a simple model.<\/p>\n      <p>For extra practice, try predictions on three newly written <strong>harmless<\/strong> examples with <code>model.predict([\"Bring your book tomorrow\", \"Claim a free prize now\", \"See you after class\"])<\/code>. These predictions are exploratory, not a substitute for labelled evaluation.<\/p>\n      <p>The collection is historical and its language mix does not prove effectiveness for current Kenyan mobile-money scams, Kiswahili messages or real financial security decisions. Do not deploy this educational notebook as a fraud-detection service.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 4:<\/strong> Run the complete notebook and record actual accuracy, spam recall, baseline recall and two error observations.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-5-title\" class=\"nit-section-panel\" id=\"project-5\">\n      <h2 id=\"project-5-title\">Project 5: Recognise handwritten digits<\/h2>\n      <p><strong>Difficulty:<\/strong> Beginner\u2013intermediate \u00b7 <strong>Coding:<\/strong> Python \u00b7 <strong>Time:<\/strong> About 1\u20132 hours \u00b7 <strong>Deliverable:<\/strong> Digit classifier and inspected mistakes.<\/p>\n      <p>Scikit-learn includes <strong>1,797<\/strong> small handwritten digit images, each represented by an <strong>8 \u00d7 8<\/strong> pixel grid <a href=\"#source-8\">[8]<\/a>. You can use this built-in dataset without downloading a separate ZIP file.<\/p>\n      <h3>Train and evaluate the recogniser<\/h3>\n      <div aria-label=\"Python example 1\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 01<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.datasets&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;load_digits<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.model_selection&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;train_test_split<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.ensemble&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;RandomForestClassifier<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.metrics&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;accuracy_score<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">digits&nbsp;=&nbsp;load_digits()<\/span>\n          <span class=\"nit-code-line\">X_train,&nbsp;X_test,&nbsp;y_train,&nbsp;y_test&nbsp;=&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;train_test_split(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digits.data,&nbsp;digits.target,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test_size=<span class=\"nit-code-number\">0.20<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;random_state=<span class=\"nit-code-number\">42<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stratify=digits.target<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\">model&nbsp;=&nbsp;RandomForestClassifier(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;n_estimators=<span class=\"nit-code-number\">100<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;random_state=<span class=\"nit-code-number\">42<\/span><\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\">model.fit(X_train,&nbsp;y_train)<\/span>\n          <span class=\"nit-code-line\">predictions&nbsp;=&nbsp;model.predict(X_test)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-string\">&#8220;Test&nbsp;accuracy:&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;accuracy_score(y_test,&nbsp;predictions)<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n        <\/div>\n      <\/div>\n      <h3>See one mistake, not just one score<\/h3>\n      <div aria-label=\"Python example 2\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 02<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;matplotlib.pyplot&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;plt<\/span>\n          <span class=\"nit-code-line\">wrong&nbsp;=&nbsp;[<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;<span class=\"nit-code-keyword\">for<\/span>&nbsp;i&nbsp;in&nbsp;<span class=\"nit-code-name\">range<\/span>(<span class=\"nit-code-name\">len<\/span>(y_test))<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-keyword\">if<\/span>&nbsp;predictions[i]&nbsp;!=&nbsp;y_test[i]<\/span>\n          <span class=\"nit-code-line\">]<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-string\">&#8220;Wrong&nbsp;predictions:&#8221;<\/span>,&nbsp;<span class=\"nit-code-name\">len<\/span>(wrong))<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">for<\/span>&nbsp;i&nbsp;in&nbsp;wrong[:<span class=\"nit-code-number\">3<\/span>]:<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;plt.imshow(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;X_test[i].reshape(<span class=\"nit-code-number\">8<\/span>,&nbsp;<span class=\"nit-code-number\">8<\/span>),<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmap=<span class=\"nit-code-string\">&#8220;gray&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;plt.title(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">f&#8221;Actual&nbsp;{<\/span>y_test[i]<span class=\"nit-code-string\">}&nbsp;\/&nbsp;&#8220;<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">f&#8221;Predicted&nbsp;{<\/span>predictions[i]<span class=\"nit-code-string\">}&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;plt.axis(<span class=\"nit-code-string\">&#8220;off&#8221;<\/span>)<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;plt.show()<\/span>\n        <\/div>\n      <\/div>\n      <p>A handwritten 1 may resemble a 7; your own errors will depend on the test set and model. The small dataset is useful for understanding classification, not evidence that a model can read all real-world handwriting.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 5:<\/strong> Show test accuracy and inspect up to three incorrect digit predictions.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-6-title\" id=\"project-6\">\n      <h2 id=\"project-6-title\">Project 6: Predict bottled-water sales<\/h2>\n      <p><strong>Difficulty:<\/strong> Intermediate \u00b7 <strong>Coding:<\/strong> Python \u00b7 <strong>Time:<\/strong> About 2\u20134 hours \u00b7 <strong>Deliverable:<\/strong> Two forecast methods compared on later dates.<\/p>\n      <p>A shop in Migori Town wants to plan stock using past daily bottled-water sales. To practise without using a real business&#8217;s private records, generate a <strong>synthetic<\/strong> twelve-week dataset.<\/p>\n      <h3>Generate a fictional sales history<\/h3>\n      <div aria-label=\"Python example 1\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 01<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;numpy&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;np<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;pandas&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;pd<\/span>\n          <span class=\"nit-code-line\">rng&nbsp;=&nbsp;np.random.default_rng(<span class=\"nit-code-number\">7<\/span>)<\/span>\n          <span class=\"nit-code-line\">dates&nbsp;=&nbsp;pd.date_range(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;2026-01-01&#8221;<\/span>,&nbsp;periods=<span class=\"nit-code-number\">84<\/span><\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\">index&nbsp;=&nbsp;np.arange(<span class=\"nit-code-number\">84<\/span>)<\/span>\n          <span class=\"nit-code-line\">weekday&nbsp;=&nbsp;dates.dayofweek<\/span>\n          <span class=\"nit-code-line\">sales&nbsp;=&nbsp;np.maximum(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-number\">0<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;np.rint(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-number\">50<\/span>&nbsp;+&nbsp;<span class=\"nit-code-number\">25<\/span>&nbsp;*&nbsp;(weekday&nbsp;&gt;=&nbsp;<span class=\"nit-code-number\">5<\/span>)<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;<span class=\"nit-code-number\">0.12<\/span>&nbsp;*&nbsp;index<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;rng.normal(<span class=\"nit-code-number\">0<\/span>,&nbsp;<span class=\"nit-code-number\">5<\/span>,&nbsp;<span class=\"nit-code-number\">84<\/span>)<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">).astype(<span class=\"nit-code-name\">int<\/span>)<\/span>\n          <span class=\"nit-code-line\">records&nbsp;=&nbsp;pd.DataFrame({<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;date&#8221;<\/span>:&nbsp;dates,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;day_index&#8221;<\/span>:&nbsp;index,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;weekday&#8221;<\/span>:&nbsp;weekday,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;sold&#8221;<\/span>:&nbsp;sales<\/span>\n          <span class=\"nit-code-line\">})<\/span>\n        <\/div>\n      <\/div>\n      <h3>Use the last two weeks for testing<\/h3>\n      <div aria-label=\"Python example 2\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 02<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">train&nbsp;=&nbsp;records.iloc[:-<span class=\"nit-code-number\">14<\/span>]<\/span>\n          <span class=\"nit-code-line\">test&nbsp;=&nbsp;records.iloc[-<span class=\"nit-code-number\">14<\/span>:]<\/span>\n          <span class=\"nit-code-line\">baseline&nbsp;=&nbsp;records[<span class=\"nit-code-string\">&#8220;sold&#8221;<\/span>].shift(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-number\">7<\/span><\/span>\n          <span class=\"nit-code-line\">).iloc[-<span class=\"nit-code-number\">14<\/span>:]<\/span>\n        <\/div>\n      <\/div>\n      <p>The baseline predicts sales using the <strong>same weekday one week earlier<\/strong>. Because sales have a time order, use later dates for testing rather than randomly mixing the future into the training data.<\/p>\n      <h3>Compare with a regression model<\/h3>\n      <div aria-label=\"Python example 3\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 03<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.ensemble&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;RandomForestRegressor<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.metrics&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;mean_absolute_error<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">features&nbsp;=&nbsp;[<span class=\"nit-code-string\">&#8220;weekday&#8221;<\/span>,&nbsp;<span class=\"nit-code-string\">&#8220;day_index&#8221;<\/span>]<\/span>\n          <span class=\"nit-code-line\">model&nbsp;=&nbsp;RandomForestRegressor(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;n_estimators=<span class=\"nit-code-number\">100<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;min_samples_leaf=<span class=\"nit-code-number\">2<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;random_state=<span class=\"nit-code-number\">42<\/span><\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\">model.fit(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;train[features],&nbsp;train[<span class=\"nit-code-string\">&#8220;sold&#8221;<\/span>]<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\">forecast&nbsp;=&nbsp;model.predict(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;test[features]<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-string\">&#8220;Baseline&nbsp;MAE:&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;mean_absolute_error(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test[<span class=\"nit-code-string\">&#8220;sold&#8221;<\/span>],&nbsp;baseline<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(<span class=\"nit-code-string\">&#8220;Model&nbsp;MAE:&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;mean_absolute_error(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test[<span class=\"nit-code-string\">&#8220;sold&#8221;<\/span>],&nbsp;forecast<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;)<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n        <\/div>\n      <\/div>\n      <p><strong>Mean absolute error (MAE)<\/strong> is the average absolute distance between predictions and actual quantities <a href=\"#source-7\">[7]<\/a>. If actual sales were 50, 70 and 60, while predictions were 46, 64 and 65, the errors would be 4, 6 and 5 bottles, giving <strong>MAE = (4 + 6 + 5) \u00f7 3 = 5 bottles<\/strong>.<\/p>\n      <p>If the simple baseline beats your model, that is a useful result. Extra complexity does not guarantee better predictions. The data are deliberately fictional, so these numbers do not establish a genuine business forecast.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 6:<\/strong> Compare baseline and model MAE on later synthetic dates, then explain which did better.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-7-title\" class=\"nit-section-panel\" id=\"project-7\">\n      <h2 id=\"project-7-title\">Project 7: Create a school enquiry assistant<\/h2>\n      <p><strong>Difficulty:<\/strong> Beginner\u2013intermediate \u00b7 <strong>Coding:<\/strong> Optional \u00b7 <strong>Time:<\/strong> About 2\u20134 hours \u00b7 <strong>Deliverable:<\/strong> Verified answers and an unanswered-question test.<\/p>\n      <p>Create a short <strong>fictional<\/strong> school information sheet: library closes at 5 pm, ICT club meets on Friday, admissions enquiries go to the school office, and so on. Use an AI tool that can receive supplied reference text.<\/p>\n      <ol>\n        <li>Prepare ten verified facts and label their sections.<\/li>\n        <li>Instruct the assistant to answer only from the document, identify the supporting section and say when information is absent.<\/li>\n        <li>Test six questions answered by the sheet and four that are not.<\/li>\n        <li>Compare each response with the original text and record unsupported claims.<\/li>\n        <li>Improve the instruction, then run a fresh test.<\/li>\n      <\/ol>\n      <p>Example instruction: <em>Use only the supplied school information. Do not invent fees, schedules, admission rules or job guarantees. When the answer is missing, say so clearly.<\/em><\/p>\n      <p>Ask: <strong>What time does the library close?<\/strong> The answer should match the provided document. Then ask: <strong>What is the examination fee?<\/strong> If the reference omits fees, the assistant should not invent an amount.<\/p>\n      <p>This is an <strong>AI application project<\/strong>, not training a new language model. Use public or fictional material rather than confidential student information.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 7:<\/strong> Answer source-backed questions and handle missing school information without inventing claims.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-8-title\" id=\"project-8\">\n      <h2 id=\"project-8-title\">Project 8: Build a maize-versus-bean leaf classifier<\/h2>\n      <p><strong>Difficulty:<\/strong> Intermediate \u00b7 <strong>Coding:<\/strong> Optional \u00b7 <strong>Time:<\/strong> About 3\u20136 hours \u00b7 <strong>Deliverable:<\/strong> Model and outdoor-versus-indoor evaluation.<\/p>\n      <p>An agricultural learner wants to distinguish photographs of <strong>maize leaves<\/strong> from <strong>bean leaves<\/strong>. Start with this narrow task before exploring more complex plant-health applications.<\/p>\n      <ol>\n        <li>Gather appropriately licensed, correctly labelled photographs.<\/li>\n        <li>Remove wrong labels, duplicates and near-identical shots where possible.<\/li>\n        <li>Keep images from <strong>different plants or capture sessions<\/strong> aside for testing.<\/li>\n        <li>Train an image classifier with a suitable educational tool.<\/li>\n        <li>Test fresh photos in daylight, shade and different backgrounds.<\/li>\n        <li>Report which conditions cause more confusion.<\/li>\n      <\/ol>\n      <p>If many photos of the same leaf appear in both training and testing, the model may appear stronger than it really is. Testing different plants helps expose that weakness.<\/p>\n      <p><strong>Important:<\/strong> A classroom leaf classifier is not a crop-disease diagnosis or treatment service. Agricultural decisions need appropriate expertise and validation.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 8:<\/strong> Evaluate fresh images of different plants and explain a lighting or background limitation.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-9-title\" class=\"nit-section-panel\" id=\"project-9\">\n      <h2 id=\"project-9-title\">Project 9: Build a library book recommender<\/h2>\n      <p><strong>Difficulty:<\/strong> Intermediate \u00b7 <strong>Coding:<\/strong> Python \u00b7 <strong>Time:<\/strong> About 2\u20133 hours \u00b7 <strong>Deliverable:<\/strong> Ranked recommendations and a relevance test.<\/p>\n      <p>A school library wants to suggest books based on their descriptions. This first version compares <strong>text similarity<\/strong>, not students&#8217; personal reading histories.<\/p>\n      <div aria-label=\"Python example 1\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 01<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;pandas&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;pd<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.feature_extraction.text&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;TfidfVectorizer<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.metrics.pairwise&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;cosine_similarity<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">books&nbsp;=&nbsp;pd.DataFrame({<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;title&#8221;<\/span>:&nbsp;[<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;Learning&nbsp;Python&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;Computer&nbsp;Networks&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;Growing&nbsp;Maize&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;Beginner&nbsp;Web&nbsp;Design&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;],<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;description&#8221;<\/span>:&nbsp;[<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;python&nbsp;programming&nbsp;coding&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;networks&nbsp;internet&nbsp;technology&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;maize&nbsp;agriculture&nbsp;farming&#8221;<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;websites&nbsp;html&nbsp;css&nbsp;coding&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;]<\/span>\n          <span class=\"nit-code-line\">})<\/span>\n          <span class=\"nit-code-line\">vectorizer&nbsp;=&nbsp;TfidfVectorizer()<\/span>\n          <span class=\"nit-code-line\">features&nbsp;=&nbsp;vectorizer.fit_transform(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;books[<span class=\"nit-code-string\">&#8220;description&#8221;<\/span>]<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\">query&nbsp;=&nbsp;vectorizer.transform([<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;python&nbsp;programming&#8221;<\/span><\/span>\n          <span class=\"nit-code-line\">])<\/span>\n          <span class=\"nit-code-line\">books[<span class=\"nit-code-string\">&#8220;score&#8221;<\/span>]&nbsp;=&nbsp;cosine_similarity(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;query,&nbsp;features<\/span>\n          <span class=\"nit-code-line\">)[<span class=\"nit-code-number\">0<\/span>]<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(books.sort_values(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;score&#8221;<\/span>,&nbsp;ascending=<span class=\"nit-code-keyword\">False<\/span><\/span>\n          <span class=\"nit-code-line\">)[[<span class=\"nit-code-string\">&#8220;title&#8221;<\/span>,&nbsp;<span class=\"nit-code-string\">&#8220;score&#8221;<\/span>]])<\/span>\n        <\/div>\n      <\/div>\n      <p>Try new queries such as <em>internet networks<\/em>, <em>agriculture<\/em>, and <em>website design<\/em>. Does the top suggestion match your expectations? Test a synonym that never appears in your short descriptions; simple word-matching approaches can struggle with vocabulary differences.<\/p>\n      <p><strong>Finish line:<\/strong> Produce three different ranked lists and describe one poor recommendation. For more advanced work, explore improved representations and explicit relevance evaluation.<\/p>\n    <\/section>\n    <section aria-labelledby=\"project-10-title\" id=\"project-10\">\n      <h2 id=\"project-10-title\">Project 10: Detect unusual production records<\/h2>\n      <p><strong>Difficulty:<\/strong> Intermediate \u00b7 <strong>Coding:<\/strong> Python \u00b7 <strong>Time:<\/strong> About 2\u20133 hours \u00b7 <strong>Deliverable:<\/strong> Flagged values and an explanation of what a flag means.<\/p>\n      <p>A bottled-water workshop records daily output. The manager wants to identify <strong>unusual entries worth checking<\/strong>\u2014not automatically accuse anyone of wrongdoing.<\/p>\n      <div aria-label=\"Python example 1\" class=\"nit-code-window\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__dot\"><\/span>\n          <span class=\"nit-code-window__file\">Colab cell 01<\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">import<\/span>&nbsp;pandas&nbsp;<span class=\"nit-code-keyword\">as<\/span>&nbsp;pd<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-keyword\">from<\/span>&nbsp;sklearn.ensemble&nbsp;<span class=\"nit-code-keyword\">import<\/span>&nbsp;IsolationForest<\/span>\n          <span class=\"nit-code-line\"><\/span>\n          <span class=\"nit-code-line\">records&nbsp;=&nbsp;pd.DataFrame({<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-string\">&#8220;bottles&#8221;<\/span>:&nbsp;[<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-number\">980<\/span>,&nbsp;<span class=\"nit-code-number\">1010<\/span>,&nbsp;<span class=\"nit-code-number\">995<\/span>,&nbsp;<span class=\"nit-code-number\">1040<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-number\">970<\/span>,&nbsp;<span class=\"nit-code-number\">1020<\/span>,&nbsp;<span class=\"nit-code-number\">990<\/span>,&nbsp;<span class=\"nit-code-number\">1005<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"nit-code-number\">1100<\/span>,&nbsp;<span class=\"nit-code-number\">1015<\/span>,&nbsp;<span class=\"nit-code-number\">4800<\/span>,&nbsp;<span class=\"nit-code-number\">40<\/span><\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;]<\/span>\n          <span class=\"nit-code-line\">})<\/span>\n          <span class=\"nit-code-line\">model&nbsp;=&nbsp;IsolationForest(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;contamination=<span class=\"nit-code-number\">0.15<\/span>,<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;random_state=<span class=\"nit-code-number\">42<\/span><\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\">records[<span class=\"nit-code-string\">&#8220;flag&#8221;<\/span>]&nbsp;=&nbsp;model.fit_predict(<\/span>\n          <span class=\"nit-code-line\">&nbsp;&nbsp;&nbsp;&nbsp;records[[<span class=\"nit-code-string\">&#8220;bottles&#8221;<\/span>]]<\/span>\n          <span class=\"nit-code-line\">)<\/span>\n          <span class=\"nit-code-line\"><span class=\"nit-code-name\">print<\/span>(records)<\/span>\n        <\/div>\n      <\/div>\n      <p>The model uses <code>1<\/code> for records considered normal and <code>-1<\/code> for records flagged as unusual <a href=\"#source-9\">[9]<\/a>. This very small synthetic dataset demonstrates the idea; it is not enough to establish a reliable anomaly detector.<\/p>\n      <p>A record of 4,800 bottles could be a data-entry error\u2014or it could reflect an extra production shift. Investigate the context before drawing conclusions. Try adding more normal records and comparing results with a simple rule-based threshold.<\/p>\n      <div class=\"nit-callout nit-callout--success\">\n        <p class=\"nit-callout__title\">Completion test<\/p>\n        <p><strong>Project 10:<\/strong> Explain the flagged quantities and one legitimate reason a record might be unusual.<\/p>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"project-proof-title\" class=\"nit-section-panel\" id=\"project-proof\">\n      <h2 id=\"project-proof-title\">How to check whether your AI project actually works<\/h2>\n      <p>Use this <strong>NIT Beginner AI Project Proof Sheet<\/strong> after every exercise. Record real observations, not the results you hoped to see.<\/p>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th>Question<\/th>\n              <th>What to record<\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>Task<\/td>\n              <td>Exactly what the system should do<\/td>\n            <\/tr>\n            <tr>\n              <td>Input<\/td>\n              <td>Images, sounds, messages, numbers or notes<\/td>\n            <\/tr>\n            <tr>\n              <td>Data source<\/td>\n              <td>Where examples came from and whether they can be used<\/td>\n            <\/tr>\n            <tr>\n              <td>Baseline<\/td>\n              <td>What a simple method would do<\/td>\n            <\/tr>\n            <tr>\n              <td>Test<\/td>\n              <td>How unfamiliar examples were selected<\/td>\n            <\/tr>\n            <tr>\n              <td>Metric<\/td>\n              <td>Accuracy, precision\/recall, MAE or checked answers<\/td>\n            <\/tr>\n            <tr>\n              <td>Errors<\/td>\n              <td>At least one mistake and its likely explanation<\/td>\n            <\/tr>\n            <tr>\n              <td>Revision<\/td>\n              <td>One correction and a fresh test<\/td>\n            <\/tr>\n            <tr>\n              <td>Limit<\/td>\n              <td>What the result does <strong>not<\/strong> prove<\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">On a narrow screen, swipe horizontally to view all columns.<\/p>\n      <p>A model that calls all messages <em>ham<\/em> may have high accuracy on an imbalanced test set but zero spam recall. A sales model may seem impressive but lose to a simple same-weekday baseline. A chatbot may sound confident while giving an answer unsupported by the supplied notes. Different project types need different tests.<\/p>\n      <p><strong>Retest rule:<\/strong> use a separate final evaluation set when possible. Repeatedly changing a model to fit the same test examples can give a misleading performance estimate. Google&#8217;s Machine Learning Crash Course explains training, validation and test distinctions <a href=\"#source-10\">[10]<\/a>.<\/p>\n      <div aria-label=\"Numbered practical workflow\" class=\"nit-pg-reasons\">\n        <div>\n          <span>01<\/span>\n          <h3>Set an objective<\/h3>\n          <p>State the expected behaviour before you begin testing.<\/p>\n        <\/div>\n        <div>\n          <span>02<\/span>\n          <h3>Choose new examples<\/h3>\n          <p>Keep test data distinct from training and development where applicable.<\/p>\n        <\/div>\n        <div>\n          <span>03<\/span>\n          <h3>Measure a result<\/h3>\n          <p>Use the right metric for the task, not just an impressive screenshot.<\/p>\n        <\/div>\n        <div>\n          <span>04<\/span>\n          <h3>Investigate a failure<\/h3>\n          <p>Find a plausible cause without changing everything at once.<\/p>\n        <\/div>\n        <div>\n          <span>05<\/span>\n          <h3>Re-test and explain<\/h3>\n          <p>Keep a corrected test and state what remains unproven.<\/p>\n        <\/div>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"troubleshooting-title\" id=\"troubleshooting\">\n      <h2 id=\"troubleshooting-title\">Troubleshooting: fix the cause, not just the symptom<\/h2>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th>Problem<\/th>\n              <th>Likely explanation<\/th>\n              <th>Useful next step<\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>Object model works only on one desk<\/td>\n              <td>Background bias<\/td>\n              <td>Add different backgrounds and fresh-object tests<\/td>\n            <\/tr>\n            <tr>\n              <td>Sound classifier struggles in a noisy room<\/td>\n              <td>Recording conditions differ<\/td>\n              <td>Collect varied authorised recordings<\/td>\n            <\/tr>\n            <tr>\n              <td>Colab raises an import error<\/td>\n              <td>A package or setup cell is missing<\/td>\n              <td>Install packages and rerun setup<\/td>\n            <\/tr>\n            <tr>\n              <td>ZIP dataset does not open<\/td>\n              <td>Download\/path\/format issue<\/td>\n              <td>Verify the official source and uploaded file<\/td>\n            <\/tr>\n            <tr>\n              <td>Test accuracy looks good but spam is missed<\/td>\n              <td>Class imbalance<\/td>\n              <td>Read precision, recall and baseline scores<\/td>\n            <\/tr>\n            <tr>\n              <td>AI assistant invents school fees<\/td>\n              <td>Unanswered question not handled<\/td>\n              <td>Require source evidence and admit missing facts<\/td>\n            <\/tr>\n            <tr>\n              <td>Sales prediction worse than a simple average<\/td>\n              <td>Insufficient useful signal<\/td>\n              <td>Check chronological split and baseline<\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">On a narrow screen, swipe horizontally to view all columns.<\/p>\n      <p>Never paste live passwords, private student files or real financial messages into public tools just to debug a classroom project. Use authorised, synthetic or appropriately licensed inputs.<\/p>\n    <\/section>\n    <section aria-labelledby=\"learning-plan-title\" class=\"nit-section-panel\" id=\"learning-plan\">\n      <h2 id=\"learning-plan-title\">A four-week beginner practice plan<\/h2>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th>Week<\/th>\n              <th>Build<\/th>\n              <th>Evidence to keep<\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>1<\/td>\n              <td>Classroom object classifier<\/td>\n              <td>Fresh-image test table<\/td>\n            <\/tr>\n            <tr>\n              <td>2<\/td>\n              <td>Revision question generator<\/td>\n              <td>Checked questions and one failure case<\/td>\n            <\/tr>\n            <tr>\n              <td>3<\/td>\n              <td>SMS spam classifier<\/td>\n              <td>Notebook and evaluation report<\/td>\n            <\/tr>\n            <tr>\n              <td>4<\/td>\n              <td>Improve your favourite project<\/td>\n              <td>Before\/after test and limitations<\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">On a narrow screen, swipe horizontally to view all columns.<\/p>\n      <p>Take longer when needed, especially if Python is new to you. A completed project you understand is more valuable than several copied examples. To organise your code and results later, see NIT&#8217;s <a href=\"https:\/\/niteducation.com\/resources\/how-to-build-a-coding-portfolio\/\">coding portfolio guide<\/a>.<\/p>\n    <\/section>\n    <section aria-labelledby=\"next-skills-title\" id=\"next-skills\">\n      <h2 id=\"next-skills-title\">What should you learn next?<\/h2>\n      <p>If you enjoyed pictures and sound, study computer vision and model evaluation. If you liked the SMS example, learn more Python and natural language processing. If you enjoyed shop forecasting or anomaly detection, build your statistics and data-analysis skills. If document assistants interested you, explore application interfaces, APIs, document retrieval and answer evaluation.<\/p>\n      <p>Keep practising the same engineering habits: clearly define the task, work with appropriate data, compare with a baseline, investigate mistakes and communicate limitations. NIST&#8217;s AI Risk Management Framework provides a wider framework for considering the trustworthiness and risks of AI systems <a href=\"#source-11\">[11]<\/a>.<\/p>\n      <p>NIT&#8217;s <a href=\"https:\/\/niteducation.com\/resources\/artificial-intelligence-career\/\">Artificial Intelligence Career Guide<\/a> covers career pathways; this guide concentrates on beginner project execution.<\/p>\n    <\/section>\n    <section aria-labelledby=\"faq-title\" class=\"nit-section-panel\" id=\"faq\">\n      <h2 id=\"faq-title\">Frequently asked questions<\/h2>\n      <div class=\"nit-faq\">\n        <details class=\"nit-faq__item\"><summary>Which AI project is easiest for a complete beginner?<\/summary><div class=\"nit-faq__answer\"><p>The everyday-object image classifier is a strong first choice: you can train it with a webcam and Teachable Machine without writing code.<\/p><\/div><\/details>\n        <details class=\"nit-faq__item\"><summary>Can secondary-school students build AI projects?<\/summary><div class=\"nit-faq__answer\"><p>Yes. School-age learners can start with supervised no-code experiments, small datasets and suitable guidance, then progress to Python when ready.<\/p><\/div><\/details>\n        <details class=\"nit-faq__item\"><summary>Can I build AI without Python?<\/summary><div class=\"nit-faq__answer\"><p>Yes. No-code classifiers and AI-assisted workflows are good starting points. Python becomes valuable when handling data, training models and building custom applications.<\/p><\/div><\/details>\n        <details class=\"nit-faq__item\"><summary>Do I need an expensive computer?<\/summary><div class=\"nit-faq__answer\"><p>Not for these small exercises. An ordinary computer or browser-hosted notebook can be sufficient. More demanding AI tasks can require greater computing resources.<\/p><\/div><\/details>\n        <details class=\"nit-faq__item\"><summary>Are these beginner AI projects free?<\/summary><div class=\"nit-faq__answer\"><p>Many tools are free or have free access options, but computers, internet, electricity and some hosted services may incur costs or usage limits.<\/p><\/div><\/details>\n        <details class=\"nit-faq__item\"><summary>Which project should I try if I already know Python?<\/summary><div class=\"nit-faq__answer\"><p>Try the SMS spam classifier. It introduces data preparation, a training split, a baseline, model evaluation and error analysis.<\/p><\/div><\/details>\n        <details class=\"nit-faq__item\"><summary>Can I turn a class project into a business application?<\/summary><div class=\"nit-faq__answer\"><p>Potentially, but you would need appropriate data, stronger testing, privacy and security protections, operational reliability and maintenance before deploying it to real customers.<\/p><\/div><\/details>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"conclusion-title\" id=\"conclusion\">\n      <h2 id=\"conclusion-title\">Start with one project and make it work<\/h2>\n      <p>You do not have to master artificial intelligence before starting. Train an object classifier with everyday school supplies; then, when you are ready, learn how Python handles real data and model evaluation. After each project, ask <strong>what worked, what failed and what I changed<\/strong>.<\/p>\n      <p><strong>If you are new to coding, begin with Project 1. If you know a little Python, begin with Project 4.<\/strong> Finish one, test it carefully and move on to the next challenge.<\/p>\n    <\/section>\n    <section aria-labelledby=\"register-title\" class=\"nit-pg-enrol\" id=\"register\">\n      <div class=\"nit-pg-enrol__copy\">\n        <p class=\"nit-pg-eyebrow\">From your first project to practical skills<\/p>\n        <h2 id=\"register-title\">Study Artificial Intelligence at Newton Institute of Technology<\/h2>\n        <p>Develop Python, data analysis, machine learning, computer vision and AI application skills through guided practical training at NIT in Migori Town. The published programme includes six months of institutional training followed by compulsory three-month industrial attachment.<\/p>\n      <\/div>\n      <div aria-label=\"AI course details\" class=\"nit-pg-enrol__details\">\n        <p><span>Institutional learning<\/span><strong>6 months <a aria-label=\"Reference 12\" href=\"#source-12\">[12]<\/a><\/strong><\/p>\n        <p><span>Industrial attachment<\/span><strong>3 months \u00b7 compulsory <a aria-label=\"Reference 12\" href=\"#source-12\">[12]<\/a><\/strong><\/p>\n        <p><span>Course fee<\/span><strong>KSh 60,000 <a aria-label=\"Reference 12\" href=\"#source-12\">[12]<\/a><\/strong><\/p>\n        <p><span>Delivery<\/span><strong>Migori \u00b7 physical or online <a aria-label=\"Reference 12\" href=\"#source-12\">[12]<\/a><\/strong><\/p>\n      <\/div>\n      <div class=\"nit-pg-enrol__actions\">\n        <a class=\"nit-pg-button nit-pg-button--gold\" href=\"https:\/\/niteducation.com\/admissions\/\">Register for the AI Course<\/a>\n        <a class=\"nit-pg-button nit-pg-button--outline\" href=\"https:\/\/niteducation.com\/resources\/artificial-intelligence-course-in-kenya\/\">View course details<\/a>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"references-title\" class=\"nit-sources\" id=\"references\">\n      <h2 id=\"references-title\">Sources and references<\/h2>\n      <ol>\n        <li id=\"source-1\"><strong>Google Creative Lab.<\/strong> <cite>Teachable Machine.<\/cite> Browser-based image, audio and pose classification. <a href=\"https:\/\/teachablemachine.withgoogle.com\/\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-2\"><strong>Google.<\/strong> <cite>Colaboratory FAQ.<\/cite> Browser-hosted Python notebooks, usage and resource limits. <a href=\"https:\/\/research.google.com\/colaboratory\/faq.html\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-3\"><strong>Almeida, T. and Hidalgo, J. (UCI Machine Learning Repository).<\/strong> <cite>SMS Spam Collection (DOI: 10.24432\/C5CC84).<\/cite> Original 5,574 labelled SMS messages and dataset information. <a href=\"https:\/\/archive.ics.uci.edu\/dataset\/228\/sms%2Bspam%2Bcollection\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-4\"><strong>scikit-learn Developers.<\/strong> <cite>train_test_split.<\/cite> Training and held-out testing split. <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.model_selection.train_test_split.html\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-5\"><strong>scikit-learn Developers.<\/strong> <cite>TfidfVectorizer.<\/cite> Text feature extraction. <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.feature_extraction.text.TfidfVectorizer.html\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-6\"><strong>scikit-learn Developers.<\/strong> <cite>MultinomialNB.<\/cite> Naive Bayes text classifier. <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.naive_bayes.MultinomialNB.html\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-7\"><strong>scikit-learn Developers.<\/strong> <cite>Model evaluation.<\/cite> Classification metrics and regression MAE. <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/model_evaluation.html\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-8\"><strong>scikit-learn Developers.<\/strong> <cite>load_digits.<\/cite> 1,797 handwritten digit images. <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.datasets.load_digits.html\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-9\"><strong>scikit-learn Developers.<\/strong> <cite>IsolationForest.<\/cite> Anomaly-detection output labels. <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.ensemble.IsolationForest.html\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-10\"><strong>Google for Developers.<\/strong> <cite>Machine Learning Crash Course: Dividing Datasets.<\/cite> Training, validation and final testing. <a href=\"https:\/\/developers.google.com\/machine-learning\/crash-course\/overfitting\/dividing-datasets\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-11\"><strong>National Institute of Standards and Technology.<\/strong> <cite>AI Risk Management Framework.<\/cite> Responsible AI risk management. <a href=\"https:\/\/www.nist.gov\/itl\/ai-risk-management-framework\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n        <li id=\"source-12\"><strong>Newton Institute of Technology.<\/strong> <cite>Artificial Intelligence Course in Kenya.<\/cite> Institutional programme duration, fee and delivery. <a href=\"https:\/\/niteducation.com\/resources\/artificial-intelligence-course-in-kenya\/\" rel=\"noopener\" target=\"_blank\">Open official source<\/a>.<\/li>\n      <\/ol>\n    <\/section>\n    <div class=\"nit-article__footer\">\n      <p><strong>Prepared by:<\/strong> Newton Institute of Technology Editorial Team<\/p>\n      <p><strong>Newton Institute of Technology<\/strong> \u00b7 Migori Town, Migori County, Kenya \u00b7 <a href=\"https:\/\/niteducation.com\/\">niteducation.com<\/a><\/p>\n    <\/div>\n  <\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>Artificial Intelligence \u00b7 Beginner Projects AI Projects for Beginners:10 Builds to Learn Practical Skills choose \u2192 build \u2192 test \u2192 improve Build your first AI project without coding, then learn how to train and evaluate Python models. Ten realistic projects, two detailed build-alongs and practical beginner tests. Choose a project Build with Python Real projects. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","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":"","ast-disable-related-posts":"","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":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"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":""},"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":[30],"tags":[819,58,84,42],"class_list":["post-3771","post","type-post","status-publish","format-standard","hentry","category-ict","tag-ai-projects-for-beginners","tag-cyber-security-training-in-kenya","tag-software-development","tag-software-development-course-fees-in-kenya"],"_links":{"self":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/comments?post=3771"}],"version-history":[{"count":4,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3771\/revisions"}],"predecessor-version":[{"id":3790,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3771\/revisions\/3790"}],"wp:attachment":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/media?parent=3771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/categories?post=3771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/tags?post=3771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}