Skip to content

Instantly share code, notes, and snippets.

@allwefantasy
Created November 13, 2018 10:36
Show Gist options
  • Save allwefantasy/4bb41fd791390690f08d33b782d7ae03 to your computer and use it in GitHub Desktop.
Save allwefantasy/4bb41fd791390690f08d33b782d7ae03 to your computer and use it in GitHub Desktop.
pythonalg-mlflow
load csv.`/Users/allwefantasy/CSDNWorkSpace/streamingpro-spark-2.3.x/examples/sklearn_elasticnet_wine/wine-quality.csv`
where header="true" and inferSchema="true"
as data;
train data as PythonAlg.`/tmp/abc` where pythonScriptPath="/Users/allwefantasy/CSDNWorkSpace/streamingpro-spark-2.3.x/examples/sklearn_elasticnet_wine"
and keepVersion="true"
and enableDataLocal="true"
and dataLocalFormat="csv"
;
predict data as PythonAlg.`/tmp/abc`;
register PythonAlg.`/tmp/abc` as pj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment