Fast and customizable framework for automatic ML model creation (AutoML)
Project description
SLAMA: LightAutoML on Spark
SLAMA is a version of LightAutoML library modified to run in distributed mode with Apache Spark framework.
It requires:
- Python 3.9
- PySpark 3.2+ (installed as a dependency)
- Synapse ML library (It will be downloaded by Spark automatically)
Currently, only tabular Preset is supported. See demo with spark-based tabular automl preset in examples/spark/tabular-preset-automl.py. For further information check docs in the root of the project containing dedicated SLAMA section.
License
This project is licensed under the Apache License, Version 2.0. See LICENSE file for more details.
Installation
# Load SLAMA source code
git clone https://github.com/sb-ai-lab/SLAMA.git
cd SLAMA/
# !!!Choose only one item!!!
# Create virtual environment inside your project directory
poetry config virtualenvs.in-project true
# For more information read poetry docs
# Install SLAMA
poetry install
- Install SLAMA jars
- Download the jar when starting the spark session:
from pyspark.sql import SparkSession
spark = SparkSession \
.builder \
.appName("SLAMA") \
.config("spark.jars.repositories", "https://oss.sonatype.org/content/repositories/releases") \
.config("spark.jars.packages", "io.github.sb-ai-lab:spark-lightautoml_2.12:0.1") \
.getOrCreate()
...
- Or download the lastest jar and add it localy:
from pyspark.sql import SparkSession
spark = SparkSession \
.builder \
.appName("SLAMA") \
.config("spark.jars.packages", "JAR_DIR/spark-lightautoml_2.12-0.1.jar") \
.getOrCreate()
...
Сonfiguring the cluster
You can find information about setting up different types of clusters to use the code in the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for SparkLightAutoML-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcacc25f48d240c5df39f1575d1ecd50ae7be9e41a283bbac7e24517c7e6595c |
|
MD5 | 5abb871ea861287af9e95fbd334b3f43 |
|
BLAKE2b-256 | 5773104ec980734888eb2faa56d6595b4f1d146a3edb99f9c149fd197603726d |