{"id":2866,"date":"2022-05-16T12:14:07","date_gmt":"2022-05-16T12:14:07","guid":{"rendered":"https:\/\/lucylabs.gatech.edu\/ml4t\/?page_id=2866"},"modified":"2022-05-16T13:07:18","modified_gmt":"2022-05-16T13:07:18","slug":"project-1-documentation","status":"publish","type":"page","link":"https:\/\/lucylabs.gatech.edu\/ml4t\/summer2022\/project-1-documentation\/","title":{"rendered":"Project 1 Documentation"},"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; theme_builder_area=&#8221;post_content&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;cae55fee-10b9-48b2-8199-ddd34524cc12&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<div class=\"document\">\n<div class=\"documentwrapper\">\n<div class=\"bodywrapper\">\n<div class=\"body\" role=\"main\">\n<h1 style=\"text-align: center;\">Project 1: Martingale<\/h1>\n<h1><span style=\"font-size: 16px;\"><\/span><\/h1>\n<p><span style=\"text-decoration: underline; font-size: 26px;\">martingale.py<\/span><\/p>\n<p><span style=\"text-decoration: underline; font-size: 26px;\"><\/span><\/p>\n<dl class=\"function\">\n<dt id=\"martingale.author\"><code class=\"sig-name descname\">author<\/code><span class=\"sig-paren\">(<\/span><span class=\"sig-paren\">)<\/span><\/dt>\n<dd>\n<dl class=\"field-list simple\">\n<dt class=\"field-odd\">Returns<\/dt>\n<dd class=\"field-odd\">\n<p>The GT username of the student<\/p>\n<\/dd>\n<dt class=\"field-even\">Return type<\/dt>\n<dd class=\"field-even\">\n<p>str<\/p>\n<\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<dl class=\"function\">\n<dt id=\"martingale.get_spin_result\"><code class=\"sig-name descname\">get_spin_result<\/code><span class=\"sig-paren\">(<\/span><em class=\"sig-param\">win_prob<\/em><span class=\"sig-paren\">)<\/span><\/dt>\n<dd>\n<p>Given a win probability between 0 and 1, the function returns whether the probability will result in a win.<\/p>\n<dl class=\"field-list simple\">\n<dt class=\"field-odd\">Parameters<\/dt>\n<dd class=\"field-odd\">\n<p><strong>win_prob<\/strong> (<em>float<\/em>) \u2013 The probability of winning<\/p>\n<\/dd>\n<dt class=\"field-even\">Returns<\/dt>\n<dd class=\"field-even\">\n<p>The result of the spin.<\/p>\n<\/dd>\n<dt class=\"field-odd\">Return type<\/dt>\n<dd class=\"field-odd\">\n<p>bool<\/p>\n<\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<dl class=\"function\">\n<dt id=\"martingale.gtid\"><code class=\"sig-name descname\">gtid<\/code><span class=\"sig-paren\">(<\/span><span class=\"sig-paren\">)<\/span><\/dt>\n<dd>\n<dl class=\"field-list simple\">\n<dt class=\"field-odd\">Returns<\/dt>\n<dd class=\"field-odd\">\n<p>The GT ID of the student<\/p>\n<\/dd>\n<dt class=\"field-even\">Return type<\/dt>\n<dd class=\"field-even\">\n<p>int<\/p>\n<\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<dl class=\"function\">\n<dt id=\"martingale.test_code\"><code class=\"sig-name descname\">test_code<\/code><span class=\"sig-paren\">(<\/span><span class=\"sig-paren\">)<\/span><\/dt>\n<dd>\n<p>Method to test your code<\/p>\n<\/dd>\n<\/dl>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><!-- \/divi:html --><\/p>\n<p><!-- divi:html --><\/p>\n<div class=\"clearer\"><\/div>\n<p><!-- \/divi:html --><\/p>\n<p><!-- divi:html --><\/p>\n<div class=\"footer\">\u00a92020, ML4T Staff |\u00a0Powered by <a href=\"http:\/\/sphinx-doc.org\/\">Sphinx 2.2.0<\/a> &amp; <a href=\"https:\/\/github.com\/bitprophet\/alabaster\">Alabaster 0.7.12<\/a><\/div>\n<p><!-- \/divi:html --><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Project 1: Martingale martingale.py author() Returns The GT username of the student Return type str get_spin_result(win_prob) Given a win probability between 0 and 1, the function returns whether the probability will result in a win. Parameters win_prob (float) \u2013 The probability of winning Returns The result of the spin. Return type bool gtid() Returns The [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":2859,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<!-- wp:divi\/placeholder \/-->","_et_gb_content_width":"","footnotes":""},"class_list":["post-2866","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages\/2866","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=2866"}],"version-history":[{"count":3,"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages\/2866\/revisions"}],"predecessor-version":[{"id":2945,"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages\/2866\/revisions\/2945"}],"up":[{"embeddable":true,"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/pages\/2859"}],"wp:attachment":[{"href":"https:\/\/lucylabs.gatech.edu\/ml4t\/wp-json\/wp\/v2\/media?parent=2866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}