We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d836b31 commit 5345b3eCopy full SHA for 5345b3e
spark/ask_and_tell_spark.py
@@ -9,6 +9,7 @@
9
10
import optuna
11
12
+
13
try:
14
from pyspark.sql import SparkSession
15
except ImportError:
@@ -25,7 +26,6 @@ def evaluate(x):
25
26
else:
27
spark = SparkSession.builder.appName("OptunaSparkExample").getOrCreate()
28
study = optuna.create_study()
- optuna.seed(42)
29
30
for i in range(20):
31
trial = study.ask()
spark/requirements.txt
@@ -0,0 +1,2 @@
1
+optuna
2
+pyspark # used for SparkSession and RDD parallelism
0 commit comments