{"id":105,"date":"2021-04-11T09:15:58","date_gmt":"2021-04-11T09:15:58","guid":{"rendered":"https:\/\/school.moongames.eu\/?p=105"},"modified":"2022-07-14T13:52:32","modified_gmt":"2022-07-14T13:52:32","slug":"objective-parameters-of-models","status":"publish","type":"post","link":"https:\/\/school.moongames.eu\/index.php\/2021\/04\/11\/objective-parameters-of-models\/","title":{"rendered":"Objective parameters of models"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">the Diploma thesis learning \u2013 <time datetime=\"2021-04-11T09:15:58+00:00\">April 11, 2021<\/time><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are multiple objectives of models in machine learning. One is percentage of explained variance in model, the next is speed of convergence of models (both in time as well as iteration) and the next is Accuracy of model. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is viewed as a trade-off between the convergence efficiency and speed of convergence. Either the model is close to perfect but it is very slow to get there, or it is relatively fast yet relatively imperfect. The difference in trade-off is even bigger when parallelism is introduced.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Percentage of variance<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The quality of a model is often written as finding the percentage of variance explained by model. It ts based on basic mean model. Mean model is model where our prediction is based only on mean value.<\/p>\n\n\n\n<pre id=\"block-ad247e6e-1728-4771-ad66-6104c14852c0\" class=\"wp-block-code\"><code>  <p class=\"ql-center-displayed-equation\" style=\"line-height: 50px;\"><span class=\"ql-right-eqno\"> (1) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/school.moongames.eu\/wp-content\/ql-cache\/quicklatex.com-85709459f1835c93d3bbd99e3fc5d57b_l3.png\" height=\"50\" width=\"343\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#32;&#32;&#32;&#32;&#98;&#97;&#115;&#101;&#92;&#95;&#109;&#111;&#100;&#101;&#108;&#32;&#38;&#61;&#32;&#92;&#98;&#97;&#114;&#123;&#121;&#125;&#44;&#32;&#38;&#32;&#92;&#98;&#97;&#114;&#123;&#121;&#125;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#109;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#109;&#125;&#123;&#121;&#95;&#123;&#105;&#125;&#125;&#32;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/school.moongames.eu\/wp-content\/ql-cache\/quicklatex.com-3300c1f40e1dcdc79baadc068577395c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#82;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"21\" style=\"vertical-align: 0px;\"\/> comparison is coefficient of determination and has equation:<\/p>\n\n\n\n<pre id=\"block-d73a307b-96a5-4093-b557-4ea2c122d4bd\" class=\"wp-block-code\"><code>  <p class=\"ql-center-displayed-equation\" style=\"line-height: 152px;\"><span class=\"ql-right-eqno\"> (2) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/school.moongames.eu\/wp-content\/ql-cache\/quicklatex.com-219f81bf93a324759b408775d3c0eba5_l3.png\" height=\"152\" width=\"263\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#32;&#32;&#32;&#32;&#82;&#94;&#50;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#77;&#83;&#69;&#95;&#123;&#98;&#97;&#115;&#101;&#92;&#95;&#109;&#111;&#100;&#101;&#108;&#125;&#32;&#45;&#32;&#77;&#83;&#69;&#95;&#123;&#109;&#111;&#100;&#101;&#108;&#125;&#125;&#123;&#77;&#83;&#69;&#95;&#123;&#98;&#97;&#115;&#101;&#92;&#95;&#109;&#111;&#100;&#101;&#108;&#125;&#125;&#92;&#92; &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#98;&#97;&#114;&#123;&#121;&#125;&#32;&#45;&#32;&#121;&#41;&#94;&#50;&#125;&#123;&#109;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#32;&#45;&#32;&#121;&#41;&#94;&#50;&#125;&#123;&#109;&#125;&#125;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#98;&#97;&#114;&#123;&#121;&#125;&#32;&#45;&#32;&#121;&#41;&#94;&#50;&#125;&#123;&#109;&#125;&#125;&#92;&#92; &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#109;&#125;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#98;&#97;&#114;&#123;&#121;&#125;&#32;&#45;&#32;&#121;&#41;&#94;&#50;&#32;&#45;&#32;&#40;&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#32;&#45;&#32;&#121;&#41;&#94;&#50;&#125;&#123;&#40;&#92;&#98;&#97;&#114;&#123;&#121;&#125;&#32;&#45;&#32;&#121;&#41;&#94;&#50;&#125; &#32;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To get percentage of the variance of feature variable we need to multiply <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/school.moongames.eu\/wp-content\/ql-cache\/quicklatex.com-3300c1f40e1dcdc79baadc068577395c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#82;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"21\" style=\"vertical-align: 0px;\"\/> by 100.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Speed of convergence<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When the convergence is good enough the main problem is speed of convergence of model. The speed of convergence is dependent on many factors with one, the optimization function in update of parameters, being one of the biggest factors. Choosing too big steps and the iteration is jumping back and forth with little improvements. Choosing too small steps and the number of iterations needed to converge to correct result is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/school.moongames.eu\/wp-content\/ql-cache\/quicklatex.com-59eb463718737b61556380f300fb1d00_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#108;&#105;&#109;&#95;&#123;&#92;&#105;&#110;&#102;&#116;&#121;&#125;&#32;&#61;&#32;&#92;&#105;&#110;&#102;&#116;&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"83\" style=\"vertical-align: -3px;\"\/>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Accuracy of prediction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The model is function made to predict the outcome of dependent variable based on some independent variables. It can be useful to know how fast is the model improving in iterations on training as well as testing data set. There exist many metrics to judge the quality of model but one method stands out. The accuracy of prediction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is defined as summary of all classified predictions equal <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/school.moongames.eu\/wp-content\/ql-cache\/quicklatex.com-031596839fafd4629a5617e85bfa5569_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#123;&#121;&#95;&#105;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"14\" style=\"vertical-align: -4px;\"\/> to expected result <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/school.moongames.eu\/wp-content\/ql-cache\/quicklatex.com-bb3c186e5c65fcd066bb23dec8f4e48a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;&#95;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: -4px;\"\/> for single value.<\/p>\n\n\n\n<pre id=\"block-ecbf5493-6468-4296-b1e3-f760d068ac05\" class=\"wp-block-code\"><code>  <p class=\"ql-center-displayed-equation\" style=\"line-height: 105px;\"><span class=\"ql-right-eqno\"> (3) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/school.moongames.eu\/wp-content\/ql-cache\/quicklatex.com-ff0f623087e177a4490e160d4911662f_l3.png\" height=\"105\" width=\"235\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#32;&#32;&#32;&#32;&#32;&#65;&#99;&#99;&#117;&#114;&#97;&#99;&#121;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#110;&#125;&#123;&#122;&#95;&#105;&#125;&#32;&#92;&#92; &#32;&#32;&#32;&#32;&#32;&#122;&#95;&#105;&#32;&#38;&#61;&#32;&#105;&#102;&#102;&#40;&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#95;&#123;&#105;&#125;&#32;&#61;&#61;&#32;&#121;&#95;&#123;&#105;&#125;&#41;&#32;&#61;&#32;&#49;&#32;&#92;&#92;&#32; &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#38;&#61;&#32;&#105;&#102;&#102;&#40;&#92;&#104;&#97;&#116;&#123;&#121;&#125;&#95;&#123;&#105;&#125;&#32;&#92;&#110;&#101;&#113;&#32;&#121;&#95;&#123;&#105;&#125;&#41;&#32;&#61;&#32;&#48; &#32;&#32;&#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>the Diploma thesis learning \u2013 April 11, 2021 There are multiple objectives of models in machine learning. One is percentage<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[13],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-basics","category-implementation","tag-ml","comments-off"],"_links":{"self":[{"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":11,"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/posts\/105\/revisions\/167"}],"wp:attachment":[{"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/school.moongames.eu\/index.php\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}