This repository was archived by the owner on Apr 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
splicemachine/mlflow_support Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1- py4j == 0.10.7.0
1+ py4j
22mlflow == 1.8.0
33pyyaml
4- mleap == 0.15 .0
4+ mleap == 0.16 .0
55graphviz
66requests
77gorilla == 0.3.0
@@ -10,7 +10,7 @@ pyspark-dist-explore==0.1.8
1010numpy
1111pandas
1212scipy
13- pyspark >= 2.4.0 , <= 2.4.5
14- h2o-pysparkling-2.4 == 3.28.1.2 -1
13+ pyspark >= 3.0.1
14+ h2o-pysparkling-3.0 == 3.32.0.4 -1
1515IPython
1616cloudpickle == 1.6.0
Original file line number Diff line number Diff line change 1- py4j
1+ py4j==0.10.7.0
22mlflow==1.8.0
33pyyaml
4- mleap==0.16 .0
4+ mleap==0.15 .0
55graphviz
66requests
77gorilla==0.3.0
@@ -10,7 +10,7 @@ pyspark-dist-explore==0.1.8
1010numpy
1111pandas
1212scipy
13- pyspark>=3.0.1
14- h2o-pysparkling-3.0 ==3.32.0.4 -1
13+ pyspark>=2.4.0,<=2.4.5
14+ h2o-pysparkling-2.4 ==3.28.1.2 -1
1515IPython
1616cloudpickle==1.6.0
Original file line number Diff line number Diff line change 6363import requests
6464import sklearn
6565import yaml
66- # from h2o.model.model_base import ModelBase as H2OModel TODO: For Spark3
67- from h2o .estimators .estimator_base import ModelBase as H2OModel
6866from pandas .core .frame import DataFrame as PandasDF
6967from pyspark .ml .base import Model as SparkModel
7068from pyspark .sql import DataFrame as SparkDF
7876from splicemachine import SpliceMachineException
7977from splicemachine .spark .context import PySpliceContext
8078
79+ try : # PySpark/H2O 3.X
80+ from h2o .model .model_base import ModelBase as H2OModel
81+ except : # PySpark/H2O 2.X
82+ from h2o .estimators .estimator_base import ModelBase as H2OModel
83+
8184# For recording notebook history
8285try :
8386 from IPython import get_ipython
You can’t perform that action at this time.
0 commit comments