Andreas Kaae
04/02/2024, 12:50 PMfrom mlforecast.distributed import DistributedMLForecast
and from mlforecast.distributed.models.spark.lgb import SparkLGBMForecast
. I have installed the library on the cluster I am using (I am using Databricks) but I get an ImportError
and I cannot figure out if I am using the library wrong or something is wrong with my cluster.
ImportError: cannot import name 'DistributedMLForecast' from 'mlforecast.distributed' (/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/mlforecast/distributed/__init__.py)
José Morales
04/02/2024, 3:32 PMimport mlforecast
print(mlforecast.__version__)
Andreas Kaae
04/03/2024, 6:49 AM0.2.0
but I have changed that to 0.12.0
as per the mlforecast page on pypi. However, now I am getting ModuleNotFoundError
issues when importing. First it says No module named 'fugue'
when I then try to install that I get No module named 'synapse'
when I then install that I get No module named '<http://synapse.ml|synapse.ml>'
and I haven't tried to install further - is this the intended way? Or should I have installed the libraries on the cluster explicitly like with mlforecast
?José Morales
04/03/2024, 4:42 PMmlforecast[spark]
in your install command.
SynapseML is a bit weird though, since you need to install the scala package which somehow enables the python package. I recommend following the installation instructions here