<?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: Train machine learning models: How can I take my ML lifecycle from experimentation to production? in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/train-machine-learning-models-how-can-i-take-my-ml-lifecycle/m-p/32355#M1721</link>
    <description>&lt;P&gt;I got good knowledge by your post . It is very clear . Thank you . Keep sharing like this posts .It will be helpful&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 06:20:07 GMT</pubDate>
    <dc:creator>Priyag1</dc:creator>
    <dc:date>2023-05-04T06:20:07Z</dc:date>
    <item>
      <title>Train machine learning models: How can I take my ML lifecycle from experimentation to production?</title>
      <link>https://community.databricks.com/t5/machine-learning/train-machine-learning-models-how-can-i-take-my-ml-lifecycle/m-p/32354#M1720</link>
      <description>&lt;P&gt;&lt;I&gt;Note: the following guide is primarily for Python users. For other languages, please view the following links: &lt;/I&gt;&lt;/P&gt;&lt;P&gt;    &lt;I&gt; • &lt;/I&gt;&lt;A href="https://docs.databricks.com/delta/delta-batch.html?&amp;amp;_ga=2.234266462.1558612841.1662483415-792368079.1642558937#create-a-table" alt="https://docs.databricks.com/delta/delta-batch.html?&amp;amp;_ga=2.234266462.1558612841.1662483415-792368079.1642558937#create-a-table" target="_blank"&gt;&lt;I&gt;Table batch reads and writes&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;     • &lt;/I&gt;&lt;A href="https://docs.databricks.com/ingestion/add-data/index.html?_ga=2.105381699.1558612841.1662483415-792368079.1642558937" alt="https://docs.databricks.com/ingestion/add-data/index.html?_ga=2.105381699.1558612841.1662483415-792368079.1642558937" target="_blank"&gt;&lt;I&gt;Create a table in SQL&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;     • &lt;/I&gt;&lt;A href="https://community.databricks.com/s/question/0D58Y000093j66MSAQ/create-a-dashboard-how-do-i-visualize-data-with-databricks-sql-or-my-bi-tool" alt="https://community.databricks.com/s/question/0D58Y000093j66MSAQ/create-a-dashboard-how-do-i-visualize-data-with-databricks-sql-or-my-bi-tool" target="_blank"&gt;&lt;I&gt;Visualizing data with DBSQL&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This step-by-step guide will get your data science projects underway by enabling you to:&lt;/P&gt;&lt;P&gt;     • Use display() commands to quickly understand your data&lt;/P&gt;&lt;P&gt;     • Process and save data efficiently&lt;/P&gt;&lt;P&gt;     • Import any machine learning framework&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To start, use the persona switcher to open your Machine Learning homepage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2614i9B51808EC169620E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Part 1: Use display() commands to quickly understand your data&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View your data in an interactive output and quickly create visualizations using the &lt;B&gt;display() &lt;/B&gt;command to view your DataFrame.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a notebook. Give it a name, set the default language as Python, and select a Cluster&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2615i192AC371AAA8949F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Write a command to load your data into a DataFrame, or load the following sample DataFrame&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raw_data = spark.read.format("delta").load("/databricks-datasets/nyctaxi-with-zipcodes/subsampled")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2618i409B025A78ABB235/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use the python display () command to view your Dataframe&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;display(raw_data)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2616i33671E08701D6B86/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Above displayed results, to the right of Table, click + and select "Visualization"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2613i65ECCE4B6DCECCF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.&amp;nbsp;In the Visualization type drop-down, choose a chart type&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Recommendation: Use a scatter plot for this data&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2617iBAB7F0A680CB5196/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6.&lt;I&gt; &lt;/I&gt;Select the data to appear in the visualization&lt;/P&gt;&lt;P&gt;&lt;I&gt;Recommendation: X column = trip_distance; Y column = fare_amount&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2620i0F04DAC8172816A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7. Click Save&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2621i48980DD2D3B34B26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are now ready to discover new insights from your data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2622iDE96E9CC034FCB6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Part 2: Process and save data efficiently&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the results of your analysis by persisting the results to storage:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• SQL DDL commands: You can use standard SQL DDL commands supported in Apache Spark (for example, &lt;A href="https://docs.databricks.com/spark/2.x/spark-sql/language-manual/create-table.html#examples" alt="https://docs.databricks.com/spark/2.x/spark-sql/language-manual/create-table.html#examples" target="_blank"&gt;CREATE TABLE AS SELECT&lt;/A&gt;) to create Delta tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• Table batch writes guide:&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Create table in the metastore using DataFrame's schema and write data to it&lt;/P&gt;&lt;P&gt;&lt;B&gt;df.write.format("delta").saveAsTable("default.people10m")&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Part 3: Import any machine learning framework&amp;nbsp;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Import the necessary libraries. These libraries are preinstalled on Databricks Runtime for Machine Learning (&lt;A href="https://docs.databricks.com/runtime/mlruntime.html" alt="https://docs.databricks.com/runtime/mlruntime.html" target="_blank"&gt;AWS&lt;/A&gt;|&lt;A href="https://docs.microsoft.com/azure/databricks/runtime/mlruntime" alt="https://docs.microsoft.com/azure/databricks/runtime/mlruntime" target="_blank"&gt;Azure&lt;/A&gt;|&lt;A href="https://docs.gcp.databricks.com/runtime/mlruntime.html" alt="https://docs.gcp.databricks.com/runtime/mlruntime.html" target="_blank"&gt;GCP&lt;/A&gt;) clusters and are tuned for compatibility and performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; mlflow&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; numpy &lt;B&gt;as&lt;/B&gt; np&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; pandas &lt;B&gt;as&lt;/B&gt; pd&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; sklearn.datasets&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; sklearn.metrics&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; sklearn.model_selection&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; sklearn.ensemble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;from&lt;/B&gt; hyperopt &lt;B&gt;import&lt;/B&gt; fmin, tpe, hp, SparkTrials, Trials, STATUS_OK&lt;/P&gt;&lt;P&gt;&lt;B&gt;from&lt;/B&gt; hyperopt.pyll &lt;B&gt;import&lt;/B&gt; scope&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2619i56DF6285023E0965/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image" alt="Image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you’ve trained your machine learning models, check out the links below for more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Learn more:&lt;/P&gt;&lt;P&gt;• Databricks introduction to &lt;A href="https://docs.databricks.com/notebooks/index.html" alt="https://docs.databricks.com/notebooks/index.html" target="_blank"&gt;notebooks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;• Documentation on how to &lt;A href="https://docs.databricks.com/data/data.html" alt="https://docs.databricks.com/data/data.html" target="_blank"&gt;import, read and modify data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;• Guide to creating &lt;A href="https://docs.databricks.com/notebooks/visualizations/index.html" alt="https://docs.databricks.com/notebooks/visualizations/index.html" target="_blank"&gt;visualizations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;• Data Science &lt;A href="https://docs.databricks.com/getting-started/quick-start.html" alt="https://docs.databricks.com/getting-started/quick-start.html" target="_blank"&gt;getting started guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;• &lt;A href="https://customer-academy.databricks.com/learn/course/63/apache-spark-programming-with-databricks?generated_by=13390&amp;amp;hash=d778261bf64589e99af2cdd738b7dc053f169cb9" alt="https://customer-academy.databricks.com/learn/course/63/apache-spark-programming-with-databricks?generated_by=13390&amp;amp;hash=d778261bf64589e99af2cdd738b7dc053f169cb9" target="_blank"&gt;Apache Spark Programming with Databricks&lt;/A&gt; course&lt;/P&gt;&lt;P&gt;• Ask a Databricks expert live in &lt;A href="https://www.databricks.com/p/webinar/officehours" alt="https://www.databricks.com/p/webinar/officehours" target="_blank"&gt;Office Hours&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;• Feel free to contact us&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop your questions, feedback and tips below!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 15:52:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/train-machine-learning-models-how-can-i-take-my-ml-lifecycle/m-p/32354#M1720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-07T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Train machine learning models: How can I take my ML lifecycle from experimentation to production?</title>
      <link>https://community.databricks.com/t5/machine-learning/train-machine-learning-models-how-can-i-take-my-ml-lifecycle/m-p/32355#M1721</link>
      <description>&lt;P&gt;I got good knowledge by your post . It is very clear . Thank you . Keep sharing like this posts .It will be helpful&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 06:20:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/train-machine-learning-models-how-can-i-take-my-ml-lifecycle/m-p/32355#M1721</guid>
      <dc:creator>Priyag1</dc:creator>
      <dc:date>2023-05-04T06:20:07Z</dc:date>
    </item>
  </channel>
</rss>

