<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Model from code approach in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/model-from-code-approach/m-p/106086#M3907</link>
    <description>&lt;P&gt;Thank you for your answer.&amp;nbsp;&lt;BR /&gt;You said:&lt;BR /&gt;&lt;EM&gt;initially in the development environment as part of model development&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;What does this mean?&lt;/P&gt;&lt;P&gt;Usually, I take a model, run a lot of training experiments with different hyperparameters. And when I find the best parameters, I train the model one last time to get the best final model. During these experiments, I use all the data I have for training.&lt;/P&gt;&lt;P&gt;In this case, it means that I will have a final trained model in the development environment, and after staging, I have to train the model again in the prod environment with the same data according to the Deploy Code Approach.&lt;BR /&gt;&lt;BR /&gt;Can you clarify this point? Maybe I don't understand something. Thank you.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 17 Jan 2025 13:04:52 GMT</pubDate>
    <dc:creator>ddpotapov</dc:creator>
    <dc:date>2025-01-17T13:04:52Z</dc:date>
    <item>
      <title>Model from code approach</title>
      <link>https://community.databricks.com/t5/machine-learning/model-from-code-approach/m-p/106059#M3904</link>
      <description>&lt;P&gt;&lt;I&gt;Hi Databricks Team,&lt;BR /&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am trying to understand the "model from code" approach. I am reading your Big Book of MLOps.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is it correct that when using this approach I need to train the model twice - in development and in production?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;I am asking because in this case the process of training the model can be very expensive if we train the model twice (train in development and in production).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thank you.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 10:47:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/model-from-code-approach/m-p/106059#M3904</guid>
      <dc:creator>ddpotapov</dc:creator>
      <dc:date>2025-01-17T10:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Model from code approach</title>
      <link>https://community.databricks.com/t5/machine-learning/model-from-code-approach/m-p/106080#M3906</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/144200"&gt;@ddpotapov&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;It is not necessarily required to train the model twice (in development and in production). There are two common patterns for moving ML artifacts through staging and into production:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL class="ol1"&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Deploy Code Approach&lt;/STRONG&gt;:&lt;/LI&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;In this pattern, the code to train models is developed in the development environment. The same code moves to staging and then production.&lt;/LI&gt;
&lt;LI class="li1"&gt;The model is trained in each environment: initially in the development environment as part of model development, in staging (on a limited subset of data) as part of integration tests, and in the production environment (on the full production data) to produce the final model.&lt;/LI&gt;
&lt;LI class="li1"&gt;This approach allows the model to be trained on production data in the production environment, which can be beneficial if access to production data is restricted.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Deploy Models Approach&lt;/STRONG&gt;:&lt;/LI&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;In this pattern, the model artifact is generated by training code in the development environment. The artifact is then tested in the staging environment before being deployed into production.&lt;/LI&gt;
&lt;LI class="li1"&gt;This approach is suitable when model training is very expensive or hard to reproduce, and it only requires training the model once in the development environment.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P class="p1"&gt;The choice between these patterns depends on factors such as the cost of model training, access to production data, and the complexity of the deployment process.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 12:52:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/model-from-code-approach/m-p/106080#M3906</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-17T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Model from code approach</title>
      <link>https://community.databricks.com/t5/machine-learning/model-from-code-approach/m-p/106086#M3907</link>
      <description>&lt;P&gt;Thank you for your answer.&amp;nbsp;&lt;BR /&gt;You said:&lt;BR /&gt;&lt;EM&gt;initially in the development environment as part of model development&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;What does this mean?&lt;/P&gt;&lt;P&gt;Usually, I take a model, run a lot of training experiments with different hyperparameters. And when I find the best parameters, I train the model one last time to get the best final model. During these experiments, I use all the data I have for training.&lt;/P&gt;&lt;P&gt;In this case, it means that I will have a final trained model in the development environment, and after staging, I have to train the model again in the prod environment with the same data according to the Deploy Code Approach.&lt;BR /&gt;&lt;BR /&gt;Can you clarify this point? Maybe I don't understand something. Thank you.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 17 Jan 2025 13:04:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/model-from-code-approach/m-p/106086#M3907</guid>
      <dc:creator>ddpotapov</dc:creator>
      <dc:date>2025-01-17T13:04:52Z</dc:date>
    </item>
  </channel>
</rss>

