{"id":3391,"date":"2023-01-09T08:41:33","date_gmt":"2023-01-09T08:41:33","guid":{"rendered":"https:\/\/lucylabs.gatech.edu\/ml4t\/?page_id=3391"},"modified":"2023-01-14T03:50:47","modified_gmt":"2023-01-14T03:50:47","slug":"software-setup","status":"publish","type":"page","link":"https:\/\/lucylabs.gatech.edu\/ml4t\/spring2023\/software-setup\/","title":{"rendered":"Software Setup"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;38bbbaac-015c-4ae7-9d56-e9fa0c415d0a&#8221; header_font=&#8221;|700||on|||||&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h1 id=\"firstHeading\" class=\"firstHeading\" lang=\"en\" style=\"text-align: center;\"><span dir=\"auto\">ML4T Software Setup<\/span><\/h1>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.19.4&#8243; _module_preset=&#8221;38bbbaac-015c-4ae7-9d56-e9fa0c415d0a&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><span id=\"Notice\" class=\"mw-headline\">Notice<\/span><\/h2>\n<p>A zip file containing the grading script and any template code or data will be linked off of each assignment&#8217;s individual wiki page. A zip file containing the <tt>grading<\/tt> and <tt>util<\/tt> modules, as well as the data, is available here: <a class=\"internal\" href=\"https:\/\/www.dropbox.com\/s\/214h0fc4qovf60q\/ML4T_2023Spr.zip?dl=1\" target=\"_blank\" rel=\"noopener noreferrer\">ML4T_2023Spr<\/a>. The instructions on running the test scripts provided are listed below.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.19.4&#8243; _module_preset=&#8221;38bbbaac-015c-4ae7-9d56-e9fa0c415d0a&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><span id=\"Overview\" class=\"mw-headline\">Overview<\/span><\/h2>\n<p>Most of the projects in this class will include a local testing script for student evaluation. We are providing the testing scripts with the template code for these projects to test their code to ensure they are API compatible.<\/p>\n<h3><span id=\"Important_Notes\" class=\"mw-headline\">Important Notes<\/span><\/h3>\n<ul>\n<li>Your code <b>MUST<\/b> run properly on Gradescope. You will need to set up a local development environment with specific libraries and versions, which you can follow the instructions here: <a href=\"https:\/\/lucylabs.gatech.edu\/ml4t\/spring2023\/local-environment\/\" target=\"_blank\" rel=\"noopener noreferrer\">ML4T_Local_Environment<\/a>.<\/li>\n<li>We use a specific, static dataset for this course, provided in the repository detailed below. If you download your own data from Yahoo (or elsewhere), you will get the wrong assignments.<\/li>\n<li>We reserve the right to modify the grading script while maintaining API compatibility with what is described on the project pages. This includes modifying or withholding test cases, changing point values to match the given rubric, and changing timeout limits to accommodate grading deadlines. The scripts are provided as a convenience to help students avoid common pitfalls or mistakes and are intended to be used as a sanity check. <b>Passing all tests does not guarantee full credit on the assignment and should be considered a necessary but insufficient condition for completing an assignment.<\/b><\/li>\n<li>Using github.gatech.edu to back up your work is an excellent idea that we encourage. However, make sure that you <b>do not<\/b> make your solutions to the assignments public. It&#8217;s easy to do this accidentally, so please be careful:\n<ul>\n<li><b>Do not<\/b> put your solutions in a <b>public<\/b> repository. Repositories on github.com are public by default. The Georgia Tech GitHub, github.gatech.edu, provides the same interface and allows for free private repositories for students.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.19.4&#8243; _module_preset=&#8221;38bbbaac-015c-4ae7-9d56-e9fa0c415d0a&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><span id=\"Getting_code_templates\" class=\"mw-headline\">Getting code templates<\/span><\/h2>\n<p>As of Spring 2018, code for each of the individual assignments is provided in zip files linked to the individual project page. The data, grading module, and util.py, common across all assignments, are available here <a class=\"internal\" href=\"https:\/\/www.dropbox.com\/s\/214h0fc4qovf60q\/ML4T_2023Spr.zip?dl=1\" target=\"_blank\" rel=\"noopener noreferrer\">ML4T_2023Spr.zip<\/a>\u00a0(same file as above).<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.19.4&#8243; _module_preset=&#8221;38bbbaac-015c-4ae7-9d56-e9fa0c415d0a&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<h2><span id=\"Running_the_grading_scripts\" class=\"mw-headline\">Running the grading scripts<\/span><\/h2>\n<p>The above zip files contain the grading scripts, data, and util.py for all assignments. Some project pages will also link to a zip file containing a directory with some template code. You should extract the same directory containing the <tt>data<\/tt>\u00a0and <tt>grading\u00a0<\/tt>directories and <tt>util.py<\/tt> (<tt>ML4T_2023Spr\/<\/tt>). To complete the assignments, you&#8217;ll need to modify the templates according to the assignment description.<\/p>\n<p>To test your code, you&#8217;ll need to set up your PYTHONPATH to include the <tt>grading<\/tt> module and the utility module <tt>util.py<\/tt>, which are both one directory up from the project directories. Here&#8217;s an <b>example<\/b> of how to run the grading script for the optional (deprecated) assignment <a href=\"https:\/\/www.dropbox.com\/s\/4i3yv8dxbg4ebx7\/assess_portfolio_2023Spr.zip?dl=1\" target=\"_blank\" rel=\"noopener\">Assess Portfolio<\/a> (note, grade_anlysis.py is included in the template zip file for Assess Portfolio):<\/p>\n<p>[\/et_pb_text][et_pb_code _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<script src=\"https:\/\/gist.github.com\/CS7646-ML4T\/2bc65b183c7a2dea71466e9da4fb6ec5.js\"><\/script>[\/et_pb_code][et_pb_text _builder_version=&#8221;4.19.4&#8243; _module_preset=&#8221;38bbbaac-015c-4ae7-9d56-e9fa0c415d0a&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>This assumes you&#8217;re typing from the folder <b>ML4T_2023Spr\/assess_portfolio\/<\/b>. This will print out a lot of information and produce two text files: <tt>points.txt<\/tt> and <tt>comments.txt<\/tt>. It will probably be helpful to scan through all of the output printed out in order to trace errors to your code, while <tt>comments.txt<\/tt> will contain a succinct summary of which test cases failed and the specific errors (without the backtrace). Here&#8217;s an example of the contents of <tt>comments.txt<\/tt> for the first assignment using the unchanged template:<\/p>\n<p>[\/et_pb_text][et_pb_code _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<script src=\"https:\/\/gist.github.com\/CS7646-ML4T\/1dfa112eaab97a2608254579f0ac5d49.js\"><\/script>[\/et_pb_code][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;38bbbaac-015c-4ae7-9d56-e9fa0c415d0a&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>The <tt>comments.txt<\/tt> file will contain a summary of which tests were passed or failed and any error messages. The <tt>points.txt<\/tt> file reports the score from the autograder, used by the teaching staff to automate grading submitted code in a batch run, and can be safely ignored by students.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ML4T Software SetupNotice A zip file containing the grading script and any template code or data will be linked off of each assignment&#8217;s individual wiki page. A zip file containing the grading and util modules, as well as the data, is available here: ML4T_2023Spr. The instructions on running the test scripts provided are listed below.Overview [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":3386,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-3391","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages\/3391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/comments?post=3391"}],"version-history":[{"count":4,"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages\/3391\/revisions"}],"predecessor-version":[{"id":3570,"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages\/3391\/revisions\/3570"}],"up":[{"embeddable":true,"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages\/3386"}],"wp:attachment":[{"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/media?parent=3391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}