-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from fonhorst/feature/synapse_v0.11.1
Feature/synapse v0.11.1
- Loading branch information
Showing
142 changed files
with
5,024 additions
and
8,098 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,4 +176,3 @@ spark-warehouse | |
|
||
# sphinx output folder | ||
html-docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
function build() { | ||
poetry build | ||
|
||
docker build -t slama:latest -f docker/spark-lama.dockerfile . | ||
} | ||
|
||
function run() { | ||
docker run -it slama:latest examples/spark/tabular-preset-automl.py | ||
} | ||
|
||
function help() { | ||
echo " | ||
List of commands. | ||
build - builds 'slama:latest' image | ||
run - use 'slama:latest' image to run an example (see possible examples in 'examples/spark' directory of this project) | ||
help - prints this message | ||
" | ||
} | ||
|
||
function main () { | ||
cmd="$1" | ||
|
||
if [ -z "${cmd}" ] | ||
then | ||
echo "No command is provided." | ||
help | ||
exit 1 | ||
fi | ||
|
||
shift 1 | ||
|
||
echo "Executing command: ${cmd}" | ||
|
||
case "${cmd}" in | ||
|
||
"build") | ||
build | ||
;; | ||
|
||
"run") | ||
run | ||
;; | ||
|
||
"help") | ||
help | ||
;; | ||
|
||
*) | ||
echo "Unknown command: ${cmd}" | ||
;; | ||
|
||
esac | ||
} | ||
|
||
main "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
FROM python:3.9.9 | ||
|
||
RUN pip install poetry | ||
WORKDIR /code | ||
#COPY poetry.lock pyproject.toml /code/ | ||
COPY pyproject.toml /code/ | ||
|
||
RUN poetry config virtualenvs.create false --local | ||
RUN poetry install | ||
|
||
RUN wget https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz | ||
RUN tar -xvf openjdk-11+28_linux-x64_bin.tar.gz | ||
RUN mv jdk-11 /usr/local/lib/jdk-11 | ||
RUN ln -s /usr/local/lib/jdk-11/bin/java /usr/local/bin/java | ||
|
||
RUN pip install pyarrow | ||
RUN mkdir -p /src | ||
COPY dist/sparklightautoml_dev-0.3.2-py3-none-any.whl /src | ||
RUN pip install /src/sparklightautoml_dev-0.3.2-py3-none-any.whl | ||
|
||
RUN python3 -c 'from pyspark.sql import SparkSession; SparkSession.builder.config("spark.jars.packages", "com.microsoft.azure:synapseml_2.12:0.11.1-spark3.3").config("spark.jars.repositories", "https://mmlspark.azureedge.net/maven").getOrCreate()' | ||
|
||
RUN mkdir /src/jars | ||
COPY jars/spark-lightautoml_2.12-0.1.1.jar /src/jars/ | ||
|
||
COPY examples /src/examples | ||
COPY examples/data /opt/spark_data | ||
|
||
WORKDIR /src | ||
|
||
COPY .. /code | ||
RUN poetry build | ||
RUN pip install dist/LightAutoML-0.3.0-py3-none-any.whl | ||
#COPY ivy2_cache /root/.ivy2/cache | ||
ENTRYPOINT ["python3"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,4 @@ Utility Functions | |
:nosignatures: | ||
:template: functiontemplate.rst | ||
|
||
build_graph | ||
build_graph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.