[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-160250-en":3,"doc-seo-160250-105":30,"detail-sidebar-cat-0-en-105":90},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},160250,137451207643,"Margaret","https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2",4,"Exam","10-601 Machine Learning Exam 3 Practice Problems - Solutions","Exam 3 practice solutions for a 10-601 machine learning course, updated April 23, 2024. The material answers multiple CNN-focused questions, covering what a convolutional kernel is and how stride and padding affect output shape and information preservation. It derives output-size formulas, suggests follow-up layers that produce a 1×1 binary label, and compares upsampling versus downsampling and their appropriate use cases. It also discusses parameter sharing and counts learnable parameters.","Solutions  \n10-601 Machine Learning Name:  \nSpring 2024 AndrewID:  \nExam 3 Practice Problems  \nUpdated: April 23, 2024  \nTime Limit: N/A  \nInstructions:  \n• Fill in your name and Andrew ID above. Be sure to write neatly, or you may not receive credit for your exam.  \n• Clearly mark your answers in the allocated space on the front of each page. If needed, use the back of a page for scratch space, but you will not get credit for anything written on the back of a page. If you have made a mistake, cross out the invalid parts of your solution, and circle the ones which should be graded.  \n• No electronic devices may be used during the exam.  \n• Please write all answers in pen.  \n• You have N/A to complete the exam. Good luck!  \nInstructions for Specific Problem Types  \nFor “Select One” questions, please fill in the appropriate bubble completely:  \nSelect One: Who taught this course?  \nHenry Chai  \n\\# Marie Curie  \n\\# Noam Chomsky  \nIf you need to change your answer, you may cross out the previous answer and bubble in the new answer:  \nSelect One: Who taught this course?  \nHenry Chai  \n\\# Marie Curie  \n Noam Chomsky  \nFor “Select all that apply” questions, please fill in all appropriate squares completely:  \nSelect all that apply: Which are scientists?  \n■ Stephen Hawking  \n■ Albert Einstein  \n■ Isaac Newton  \n□ I don’t know  \nAgain, if you need to change your answer, you may cross out the previous answer(s) and bubble in the new answer(s):  \nSelect all that apply: Which are scientists?  \n■ Stephen Hawking  \n■ Albert Einstein  \n■ Isaac Newton  I don’t know  \nFor questions where you must fill in a blank, please make sure your final answer is fully included in the given space. You may cross out answers or parts of answers, but the final answer must still be within the given space.  \nFill in the blank: What is the course number?  \n10-601  \n10-601  \n1 CNNs and RNNs  \n1. Let’s begin by considering some of the high-level components of a CNN kernel along with the basic motivation.  \ni. What is a kernel?  \nThe collection of weights/filters that you will pass through an image, along with hyperparameters such as padding, stride, and filter size/quantity.  \nii. Why do we need stride, and what benefits/tradeoffs might different values of stride have on the output?  \nStride is what allows the filter to actually pass through the CNN (defines at what pace the filter will move across the rows/columns) . Larger values of stride can allow you to reduce the output dimensionality which could combat overfitting along with reducing computational power. The downside however is that you lose more and more information with larger values of stride, which could limit the upside of your model’s accuracy.  \niii. What functionality does padding add to the kernel? Why might we want to use it?  \n\n|  |\n| --- |\n|  |\n|  |\n\nPadding essentially makes sure that the output shape is the same as the input shape, and allows every pixel to be included in the convolution: if our filter is about to slide off of the original image padding allows the filter/image to still line up correctly. Furthermore, padding helps filters focus on the corner pixels just as much as middle pixels by making the filter pass through the corners multiple times as opposed to just once.  \n2. Consider the following image, filter, and output shape, which you have seen in prior  \nhomework in this course.  \nThe shape of this particular Y is that of an kernel using no padding and a stride of 1 .  \ni. Suppose we decide that, instead of having our output shape be (4 , 4), we want a slightly smaller, (3 , 3) image as output for the kernel. In order for this to happen, what is the smallest combination of stride and padding that would work?  \ns=2, p=1  \nii. Let’s make this a bit more general. Suppose our original image of shape (a, a), and we want the shape of our final image to be of shape (b, b), where b ≤ a. Furthermore the shape of the filter is (k, k) and the stride length is s. Express b in terms of all ","cbCainr7yCd7prMj","https://ap.wps.com/l/cbCainr7yCd7prMj","pdf",1302863,1,35,"English","en",105,"# Instructions\n## Exam rules and response formatting\n# Select One questions\n# Select all that apply questions\n# Problem 1: CNN kernel components\n## What is a kernel?\n## Why stride matters\n## Role and benefits of padding\n# Problem 2: Output shapes and follow-up classification\n## Smallest stride/padding for a target output\n## Deriving general output size b\n## Producing a 1×1 binary label\n# Problem 3: Upsampling vs downsampling\n## Definitions and scenarios\n# Problem 4: Parameter sharing\n## Parameter count with and without sharing","[{\"question\":\"What is a CNN kernel, and what elements does it include?\",\"answer\":\"A kernel is the collection of weights/filters applied to an image, together with hyperparameters such as padding, stride, and filter size/quantity.\"},{\"question\":\"How does stride affect CNN output and model behavior?\",\"answer\":\"Stride controls how quickly the filter moves across the input. Larger stride can reduce output dimensionality and computation, which may help mitigate overfitting, but it can lose more information and limit accuracy gains.\"},{\"question\":\"When should upsampling or downsampling be used in CNNs?\",\"answer\":\"Downsampling reduces output dimensionality, commonly via pooling, and is useful for larger images to reduce compute and complexity. Upsampling increases output dimensionality and is useful when the output needs to be larger or matched to the input, such as per-pixel labeling.\"}]","10-601 Machine Learning Exam 3 Practice Problems - Solutions | PDF",1788052765,88,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":85,"head_meta":87,"extra_data":89,"updated_unix":28},"10-601-machine-learning-exam-3-practice-problems-solutions","",{"@graph":36,"@context":84},[37,53,67],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/exam/",3,{"item":52,"name":13,"@type":43,"position":11},"https://docshare.wps.com/document/10-601-machine-learning-exam-3-practice-problems-solutions/160250/",{"url":52,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":61,"encodingFormat":60,"isAccessibleForFree":62,"interactionStatistic":63},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":41,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-08-30",true,{"@type":64,"interactionType":65,"userInteractionCount":4},"InteractionCounter",{"@type":66},"ViewAction",{"@type":68,"mainEntity":69},"FAQPage",[70,76,80],{"name":71,"@type":72,"acceptedAnswer":73},"What is a CNN kernel, and what elements does it include?","Question",{"text":74,"@type":75},"A kernel is the collection of weights/filters applied to an image, together with hyperparameters such as padding, stride, and filter size/quantity.","Answer",{"name":77,"@type":72,"acceptedAnswer":78},"How does stride affect CNN output and model behavior?",{"text":79,"@type":75},"Stride controls how quickly the filter moves across the input. Larger stride can reduce output dimensionality and computation, which may help mitigate overfitting, but it can lose more information and limit accuracy gains.",{"name":81,"@type":72,"acceptedAnswer":82},"When should upsampling or downsampling be used in CNNs?",{"text":83,"@type":75},"Downsampling reduces output dimensionality, commonly via pooling, and is useful for larger images to reduce compute and complexity. Upsampling increases output dimensionality and is useful when the output needs to be larger or matched to the input, such as per-pixel labeling.","https://schema.org",{"og:url":52,"og:type":86,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":88,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":91},[92,96,100,103,108,113,118,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":93,"show_sort_weight":94,"slug":95},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":97,"show_sort_weight":98,"slug":99},"Literature",80,"literature",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":101,"slug":102},70,"exam",{"id":104,"doc_module":4,"doc_module_name":46,"category_name":105,"show_sort_weight":106,"slug":107},5,"Comic",60,"comic",{"id":109,"doc_module":4,"doc_module_name":46,"category_name":110,"show_sort_weight":111,"slug":112},6,"Technology",50,"technology",{"id":114,"doc_module":4,"doc_module_name":46,"category_name":115,"show_sort_weight":116,"slug":117},7,"Healthcare",40,"healthcare",{"id":119,"doc_module":4,"doc_module_name":46,"category_name":120,"show_sort_weight":121,"slug":122},8,"Research & Report",30,"research-report",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":46,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":46,"category_name":137,"show_sort_weight":104,"slug":138},19,"General","general"]