<?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: Hyperopt Ray integration in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/hyperopt-ray-integration/m-p/39806#M2037</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/63081"&gt;@Kumaran&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you so much for the response, I actually wasn't aware that Ray Tune is offering these capabilities as well.&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2023 07:02:18 GMT</pubDate>
    <dc:creator>EmirHodzic</dc:creator>
    <dc:date>2023-08-14T07:02:18Z</dc:date>
    <item>
      <title>Hyperopt Ray integration</title>
      <link>https://community.databricks.com/t5/machine-learning/hyperopt-ray-integration/m-p/39525#M2028</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to integrate Hyperopt with Ray parallelisation? I have a simulation framework which I want to optimise, and each simulation run is set up to be a Ray process, however I am calling one simulation run in the objective function. This means that each trial in Hyperopt is done sequentially and not utilising the Ray framework.&lt;BR /&gt;Is there a way to asynchronously get results for the objective function, or to push a batch of trials to the objective function?&lt;BR /&gt;Otherwise I would appreciate if you have any comments or advice.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 14:53:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/hyperopt-ray-integration/m-p/39525#M2028</guid>
      <dc:creator>EmirHodzic</dc:creator>
      <dc:date>2023-08-10T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperopt Ray integration</title>
      <link>https://community.databricks.com/t5/machine-learning/hyperopt-ray-integration/m-p/39795#M2034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/86250"&gt;@EmirHodzic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in the Databricks community.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;You can use Ray Tune, a tuning library that integrates with Ray, to parallelize your Hyperopt trials across multiple nodes.&lt;/P&gt;&lt;P&gt;Here's a link to the documentation for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://hyperopt.github.io/hyperopt/" target="_blank" rel="noopener"&gt;HyperOpt&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.ray.io/en/latest/tune/index.html" target="_blank" rel="noopener"&gt;Ray Tune&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Here's a sample code found on ray tune documentation that leverages Ray Tune and HyperOpt to optimize a simple function:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import numpy as np
from hyperopt import hp
from ray import tune

def objective(config):
# This function is run remotely in a different Python process.
return config['a'] ** 2 + config['b'] ** 2

config = {
"a": hp.uniform("a", 0, 1),
"b": hp.uniform("b", -1, 1)
}

analysis = tune.run(
objective,
config=config,
num_samples=100,
algorithm="hyperopt")
print("Best hyperparameters found were: ", analysis.best_config)&lt;/LI-CODE&gt;&lt;P&gt;Sample tutorial:&lt;/P&gt;&lt;P&gt;&lt;A href="https://colab.research.google.com/github/ray-project/tutorial/blob/master/tune_exercises/exercise_2_optimize.ipynb" target="_blank" rel="noopener"&gt;https://colab.research.google.com/github/ray-project/tutorial/blob/master/tune_exercises/exercise_2_optimize.ipynb&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 06:50:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/hyperopt-ray-integration/m-p/39795#M2034</guid>
      <dc:creator>Kumaran</dc:creator>
      <dc:date>2023-08-14T06:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperopt Ray integration</title>
      <link>https://community.databricks.com/t5/machine-learning/hyperopt-ray-integration/m-p/39806#M2037</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/63081"&gt;@Kumaran&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you so much for the response, I actually wasn't aware that Ray Tune is offering these capabilities as well.&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 07:02:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/hyperopt-ray-integration/m-p/39806#M2037</guid>
      <dc:creator>EmirHodzic</dc:creator>
      <dc:date>2023-08-14T07:02:18Z</dc:date>
    </item>
  </channel>
</rss>

