Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
spark3 off release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Epstein committed Mar 6, 2021
1 parent b499e07 commit cc80946
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
py4j==0.10.7.0
py4j
mlflow==1.8.0
pyyaml
mleap==0.15.0
mleap==0.16.0
graphviz
requests
gorilla==0.3.0
Expand All @@ -10,7 +10,7 @@ pyspark-dist-explore==0.1.8
numpy
pandas
scipy
pyspark>=2.4.0,<=2.4.5
h2o-pysparkling-2.4==3.28.1.2-1
pyspark>=3.0.1
h2o-pysparkling-3.0==3.32.0.4-1
IPython
cloudpickle==1.6.0
8 changes: 4 additions & 4 deletions requirements3.txt → requirements2.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
py4j
py4j==0.10.7.0
mlflow==1.8.0
pyyaml
mleap==0.16.0
mleap==0.15.0
graphviz
requests
gorilla==0.3.0
Expand All @@ -10,7 +10,7 @@ pyspark-dist-explore==0.1.8
numpy
pandas
scipy
pyspark>=3.0.1
h2o-pysparkling-3.0==3.32.0.4-1
pyspark>=2.4.0,<=2.4.5
h2o-pysparkling-2.4==3.28.1.2-1
IPython
cloudpickle==1.6.0
7 changes: 5 additions & 2 deletions splicemachine/mlflow_support/mlflow_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
import requests
import sklearn
import yaml
# from h2o.model.model_base import ModelBase as H2OModel TODO: For Spark3
from h2o.estimators.estimator_base import ModelBase as H2OModel
from pandas.core.frame import DataFrame as PandasDF
from pyspark.ml.base import Model as SparkModel
from pyspark.sql import DataFrame as SparkDF
Expand All @@ -78,6 +76,11 @@
from splicemachine import SpliceMachineException
from splicemachine.spark.context import PySpliceContext

try: # PySpark/H2O 3.X
from h2o.model.model_base import ModelBase as H2OModel
except: # PySpark/H2O 2.X
from h2o.estimators.estimator_base import ModelBase as H2OModel

# For recording notebook history
try:
from IPython import get_ipython
Expand Down

0 comments on commit cc80946

Please sign in to comment.