{"id":218078,"date":"2025-06-26T10:08:56","date_gmt":"2025-06-26T10:08:56","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/"},"modified":"2025-06-26T10:08:56","modified_gmt":"2025-06-26T10:08:56","slug":"how-to-find-the-custom-loss-value-in-training-history","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/","title":{"rendered":"How to find the custom loss value in training history?"},"content":{"rendered":"<p>Training a machine learning model involves minimizing a loss function to optimize its performance. Custom loss functions can be used to suit specific requirements of a problem. But how can one find the custom loss value in the training history? Let&#8217;s explore the solution to this question.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#Addressing_the_Question\" title=\"Addressing the Question:\">Addressing the Question:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#FAQs\" title=\"FAQs:\">FAQs:<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#1_How_can_I_customize_the_loss_function\" title=\"1. How can I customize the loss function?\">1. How can I customize the loss function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#2_Can_I_use_a_custom_loss_function_in_any_model\" title=\"2. Can I use a custom loss function in any model?\">2. Can I use a custom loss function in any model?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#3_Is_it_necessary_to_track_the_loss_during_training\" title=\"3. Is it necessary to track the loss during training?\">3. Is it necessary to track the loss during training?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#4_How_can_I_visualize_the_training_history\" title=\"4. How can I visualize the training history?\">4. How can I visualize the training history?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#5_Does_the_training_history_contain_other_metrics\" title=\"5. Does the training history contain other metrics?\">5. Does the training history contain other metrics?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#6_Are_loss_values_always_decreasing_during_training\" title=\"6. Are loss values always decreasing during training?\">6. Are loss values always decreasing during training?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#7_What_if_no_custom_loss_value_is_found_in_the_training_history\" title=\"7. What if no custom loss value is found in the training history?\">7. What if no custom loss value is found in the training history?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#8_Can_I_use_multiple_custom_loss_functions\" title=\"8. Can I use multiple custom loss functions?\">8. Can I use multiple custom loss functions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#9_How_can_I_extract_metrics_other_than_loss_from_the_training_history\" title=\"9. How can I extract metrics other than loss from the training history?\">9. How can I extract metrics other than loss from the training history?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#10_Are_there_any_pre-defined_custom_loss_functions_available\" title=\"10. Are there any pre-defined custom loss functions available?\">10. Are there any pre-defined custom loss functions available?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#11_Can_I_modify_the_training_history_during_or_after_training\" title=\"11. Can I modify the training history during or after training?\">11. Can I modify the training history during or after training?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#12_Is_the_loss_value_the_only_measure_of_a_models_performance\" title=\"12. Is the loss value the only measure of a model&#8217;s performance?\">12. Is the loss value the only measure of a model&#8217;s performance?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Addressing_the_Question\"><\/span>Addressing the Question:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When training a machine learning model, developers often analyze the model&#8217;s performance by tracking the loss value over each iteration. This is typically done by leveraging the training history, which stores the loss values obtained during each training step. **To find the custom loss value in the training history, one needs to access and extract the relevant data from the training history.**<\/p>\n<p>In most machine learning libraries and frameworks, including TensorFlow and Keras, the training history is returned as a dictionary object after training is completed. This dictionary contains various metrics, including the loss value, recorded at each epoch or iteration. By inspecting the appropriate key within the training history dictionary, one can obtain the custom loss value.<\/p>\n<p>To understand this better, consider the following example:<\/p>\n<p>&#8220;`python<br \/>\nimport tensorflow as tf<br \/>\nfrom tensorflow import keras<\/p>\n<p># Define the custom loss function<br \/>\ndef custom_loss(y_true, y_pred):<br \/>\n    # Custom loss calculation here<br \/>\n    # &#8230;<\/p>\n<p># Create and compile the model<br \/>\nmodel = keras.models.Sequential()<br \/>\nmodel.add(keras.layers.Dense(32, activation=&#8217;relu&#8217;, input_shape=(10,)))<br \/>\nmodel.add(keras.layers.Dense(1, activation=&#8217;sigmoid&#8217;))<br \/>\nmodel.compile(loss=custom_loss, optimizer=&#8217;adam&#8217;)<\/p>\n<p># Train the model<br \/>\nhistory = model.fit(train_X, train_y, epochs=10)<\/p>\n<p># Obtain and print the custom loss value<br \/>\ncustom_loss_value = history.history[&#8216;loss&#8217;]<br \/>\nprint(custom_loss_value)<br \/>\n&#8220;`<\/p>\n<p>In the above example, a custom loss function is defined and passed to the `compile` method of the model. After training the model, the `history` object captures all the training metrics, including the loss value for each epoch. The custom loss value can be accessed by using the key `&#8217;loss&#8217;`, as demonstrated in the code snippet.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_How_can_I_customize_the_loss_function\"><\/span>1. How can I customize the loss function?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can define your custom loss function by creating a function that takes the true labels and predicted labels as input and returns the loss value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_Can_I_use_a_custom_loss_function_in_any_model\"><\/span>2. Can I use a custom loss function in any model?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, custom loss functions can be used with various types of models, including neural networks, decision trees, and support vector machines.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Is_it_necessary_to_track_the_loss_during_training\"><\/span>3. Is it necessary to track the loss during training?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nTracking the loss during training helps monitor the model&#8217;s progress and evaluate its performance. It also enables visualizations and analysis of the model&#8217;s behavior.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_How_can_I_visualize_the_training_history\"><\/span>4. How can I visualize the training history?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nThe training history can be visualized using plotting libraries, such as Matplotlib or Seaborn, by plotting the loss values against the training iterations or epochs.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Does_the_training_history_contain_other_metrics\"><\/span>5. Does the training history contain other metrics?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, in addition to the loss values, the training history may include other metrics like accuracy, precision, recall, or any other metrics specified during model compilation.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Are_loss_values_always_decreasing_during_training\"><\/span>6. Are loss values always decreasing during training?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nLoss values may not always decrease during training, especially if the learning rate is set too high or the model encounters issues like overfitting or instability.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_What_if_no_custom_loss_value_is_found_in_the_training_history\"><\/span>7. What if no custom loss value is found in the training history?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf no custom loss key is present in the training history, it may indicate that either the loss was not tracked or the custom loss function was not applied correctly.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_Can_I_use_multiple_custom_loss_functions\"><\/span>8. Can I use multiple custom loss functions?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, it is possible to combine multiple loss functions by either defining a single custom loss function that incorporates multiple metrics or using different loss functions for different components of the model.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_How_can_I_extract_metrics_other_than_loss_from_the_training_history\"><\/span>9. How can I extract metrics other than loss from the training history?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nBy accessing the corresponding keys in the training history dictionary, you can extract and analyze other metrics like accuracy, precision, recall, etc.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_Are_there_any_pre-defined_custom_loss_functions_available\"><\/span>10. Are there any pre-defined custom loss functions available?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nSome machine learning libraries and frameworks provide pre-defined custom loss functions for specific tasks, such as weighted loss functions or specialized loss functions for imbalanced datasets.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_Can_I_modify_the_training_history_during_or_after_training\"><\/span>11. Can I modify the training history during or after training?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nThe training history is an immutable record of the model&#8217;s performance and cannot be modified during or after training. However, you can process or analyze the recorded metrics as needed.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_Is_the_loss_value_the_only_measure_of_a_models_performance\"><\/span>12. Is the loss value the only measure of a model&#8217;s performance?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, although the loss value provides valuable information about the quality of the model&#8217;s predictions, it is not the sole indicator of performance. Other metrics, such as accuracy, precision, recall, or specific evaluation measures for the problem domain, should also be considered.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Training a machine learning model involves minimizing a loss function to optimize its performance. Custom loss functions can be used to suit specific requirements of a problem. But how can one find the custom loss value in the training history? Let&#8217;s explore the solution to this question. Addressing the Question: When training a machine learning &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to find the custom loss value in training history?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#more-218078\">Read more<span class=\"screen-reader-text\">How to find the custom loss value in training history?<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-218078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to find the custom loss value in training history?<\/title>\n<meta name=\"description\" content=\"Training a machine learning model involves minimizing a loss function to optimize its performance. Custom loss functions can be used to suit specific\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to find the custom loss value in training history?\" \/>\n<meta property=\"og:description\" content=\"Training a machine learning model involves minimizing a loss function to optimize its performance. Custom loss functions can be used to suit specific\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-26T10:08:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Darla Clarke\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Darla Clarke\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/\"},\"author\":{\"name\":\"Darla Clarke\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/8fb46297981687fe77339d265491391e\"},\"headline\":\"How to find the custom loss value in training history?\",\"datePublished\":\"2025-06-26T10:08:56+00:00\",\"dateModified\":\"2025-06-26T10:08:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/\"},\"wordCount\":765,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/\",\"name\":\"How to find the custom loss value in training history?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2025-06-26T10:08:56+00:00\",\"dateModified\":\"2025-06-26T10:08:56+00:00\",\"description\":\"Training a machine learning model involves minimizing a loss function to optimize its performance. Custom loss functions can be used to suit specific\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to find the custom loss value in training history?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/8fb46297981687fe77339d265491391e\",\"name\":\"Darla Clarke\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Darla Clarke\"},\"description\":\"Guest author Darla Clarke has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to find the custom loss value in training history?","description":"Training a machine learning model involves minimizing a loss function to optimize its performance. Custom loss functions can be used to suit specific","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/","og_locale":"en_US","og_type":"article","og_title":"How to find the custom loss value in training history?","og_description":"Training a machine learning model involves minimizing a loss function to optimize its performance. Custom loss functions can be used to suit specific","og_url":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2025-06-26T10:08:56+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Darla Clarke","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Darla Clarke","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/"},"author":{"name":"Darla Clarke","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/8fb46297981687fe77339d265491391e"},"headline":"How to find the custom loss value in training history?","datePublished":"2025-06-26T10:08:56+00:00","dateModified":"2025-06-26T10:08:56+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/"},"wordCount":765,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/","url":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/","name":"How to find the custom loss value in training history?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2025-06-26T10:08:56+00:00","dateModified":"2025-06-26T10:08:56+00:00","description":"Training a machine learning model involves minimizing a loss function to optimize its performance. Custom loss functions can be used to suit specific","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-the-custom-loss-value-in-training-history\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to find the custom loss value in training history?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/8fb46297981687fe77339d265491391e","name":"Darla Clarke","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Darla Clarke"},"description":"Guest author Darla Clarke has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/218078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=218078"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/218078\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=218078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=218078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=218078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}