plexe

plexe-aiApache-2.0更新放缓

用一句自然语言提示就能自动构建机器学习模型,多智能体协作完成数据理解、特征工程和训练调参,省去手工搭流程的麻烦。

✨ Build a machine learning model from a prompt

v1.4.4发布于 2026-03-06 11:41 UTC2,648star265fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
pip install plexe
export OPENAI_API_KEY=<your-key>
硬件要求按 README 说明

README 未说明显存或 GPU 型号要求;提供含 PySpark、Java 的 Docker 镜像,可用 --spark-mode local 本地运行。

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用一句自然语言描述加一份表格数据,自动构建可部署的机器学习模型

用一句自然语言提示就能自动构建机器学习模型,多智能体协作完成数据理解、特征工程和训练调参,省去手工搭流程的麻烦。

核心能力

  • 14 个专用 AI Agent 走 6 阶段流程完成建模
  • 支持 XGBoost、CatBoost、LightGBM、Keras、PyTorch
  • 产出不依赖 plexe 的自包含模型包,可直接部署
  • 通过 LiteLLM 接入多家 LLM,可按 Agent 分别路由
  • 内置 Streamlit 实验看板,可视化搜索树与评估报告

容易踩的坑

需自行设置 OPENAI_API_KEY 或 ANTHROPIC_API_KEY,否则无法调用 LLM;CatBoost、LightGBM、PyTorch、PySpark 需通过 extras 单独安装;Python 版本须 >=3.10 且 <3.13;官方仅重点测试 openai/* 与 anthropic/* 模型,其他 LiteLLM 提供商可能有问题

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.4.4
  1. v1.4.4最新正式版2026-03-06 · 2026-03-06 11:41 UTC

    What's Changed

    Full Changelog: https://github.com/plexe-ai/plexe/compare/v1.4.3...v1.4.4

  2. v1.4.32026-03-03 · 2026-03-03 05:27 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/plexe-ai/plexe/compare/v1.4.2...v1.4.3

  3. v1.4.22026-03-03 · 2026-03-03 01:13 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/plexe-ai/plexe/compare/v1.4.1...v1.4.2

  4. v1.4.12026-03-03 · 2026-03-03 00:29 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/plexe-ai/plexe/compare/v1.4.0...v1.4.1

  5. v1.4.02026-03-02 · 2026-03-02 22:20 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/plexe-ai/plexe/compare/v1.3.6...v1.4.0

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    plexe ✨

    PyPI version Discord

    Build machine learning models using natural language.

    Quickstart | Features | Installation | Documentation

    plexe lets you create machine learning models by describing them in plain language. Simply explain what you want, provide a dataset, and the AI-powered system builds a fully functional model through an automated agentic approach. Also available as a managed cloud service.

    Watch the demo on YouTube: Building an ML model with Plexe

    1. Quickstart

    Installation

    pip install plexe
    export OPENAI_API_KEY=<your-key>
    export ANTHROPIC_API_KEY=<your-key>
    

    Using plexe

    Provide a tabular dataset (Parquet, CSV, ORC, or Avro) and a natural language intent:

    python -m plexe.main \
        --train-dataset-uri data.parquet \
        --intent "predict whether a passenger was transported" \
        --max-iterations 5
    
    from plexe.main import main
    from pathlib import Path
    
    best_solution, metrics, report = main(
        intent="predict whether a passenger was transported",
        data_refs=["train.parquet"],
        max_iterations=5,
        work_dir=Path("./workdir"),
    )
    print(f"Performance: {best_solution.performance:.4f}")
    

    2. Features

    2.1. 🤖 Multi-Agent Architecture

    The system uses 14 specialized AI agents across a 6-phase workflow to:

    • Analyze your data and identify the ML task
    • Select the right evaluation metric
    • Search for the best model through hypothesis-driven iteration
    • Evaluate model performance and robustness
    • Package the model for deployment

    2.2. 🎯 Automated Model Building

    Build complete models with a single call. Plexe supports XGBoost, CatBoost, LightGBM, Keras, and PyTorch for tabular data:

    best_solution, metrics, report = main(
        intent="predict house prices based on property features",
        data_refs=["housing.parquet"],
        max_iterations=10,                    # Search iterations
        allowed_model_types=["xgboost"],      # Or let plexe choose
        enable_final_evaluation=True,         # Evaluate on held-out test set
    )
    

    Run python -m plexe.main --help for all CLI options.

    The output is a self-contained model package at work_dir/model/ (also archived as model.tar.gz). The package has no dependency on plexe — build the model with plexe, deploy it anywhere:

    model/
    ├── artifacts/          # Trained model + feature pipeline (pickle)
    ├── src/                # Inference predictor, pipeline code, training template
    ├── schemas/            # Input/output JSON schemas
    ├── config/             # Hyperparameters
    ├── evaluation/         # Metrics and detailed analysis reports
    ├── model.yaml          # Model metadata
    └── README.md           # Usage instructions with example code
    

    2.3. 🐳 Batteries-Included Docker Images

    Run plexe with everything pre-configured — PySpark, Java, and all dependencies included. A Makefile is provided for common workflows:

    make build          # Build the Docker image
    make test-quick     # Fast sanity check (~1 iteration)
    make run-titanic    # Run on Spaceship Titanic dataset
    

    Or run directly:

    docker run --rm \
        -e OPENAI_API_KEY=$OPENAI_API_KEY \
        -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
        -v $(pwd)/data:/data -v $(pwd)/workdir:/workdir \
        plexe:py3.12 python -m plexe.main \
            --train-dataset-uri /data/dataset.parquet \
            --intent "predict customer churn" \
            --work-dir /workdir \
            --spark-mode local
    

    A config.yaml in the project root is automatically mounted. A Databricks Connect image is also available: docker build --target databricks .

    2.4. ⚙️ YAML Configuration

    Customize LLM routing, search parameters, Spark settings, and more via a config file:

    # config.yaml
    max_search_iterations: 5
    allowed_model_types: [xgboost, catboost]
    spark_driver_memory: "4g"
    hypothesiser_llm: "openai/gpt-5-mini"
    feature_processor_llm: "anthropic/claude-sonnet-4-5-20250929"
    
    CONFIG_FILE=config.yaml python -m plexe.main ...
    

    See config.yaml.template for all available options.

    2.5. 🌐 Multi-Provider LLM Support

    Plexe uses LLMs via LiteLLM, so you can use any supported provider:

    # Route different agents to different providers
    hypothesiser_llm: "openai/gpt-5-mini"
    feature_processor_llm: "anthropic/claude-sonnet-4-5-20250929"
    model_definer_llm: "ollama/llama3"
    

    [!NOTE] Plexe should work with most LiteLLM providers, but we actively test only with openai/* and anthropic/* models. If you encounter issues with other providers, please let us know.

    2.6. 📊 Experiment Dashboard

    Visualize experiment results, search trees, and evaluation reports with the built-in Streamlit dashboard:

    python -m plexe.viz --work-dir ./workdir
    

    2.7. 🔌 Extensibility

    Connect plexe to custom storage, tracking, and deployment infrastructure via the WorkflowIntegration interface:

    main(intent="...", data_refs=[...], integration=MyCustomIntegration())
    

    See plexe/integrations/base.py for the full interface.

    3. Installation

    3.1. Installation Options

    pip install plexe                    # Core (XGBoost, Keras, scikit-learn)
    

    You can add optional dependencies either by framework or by task grouping:

    • Framework extras: catboost, lightgbm, pytorch
    • Task extras: tabular (CatBoost + LightGBM), vision (PyTorch)
    • Platform extras: pyspark, aws

    Examples:

    pip install "plexe[tabular,pyspark]"   # tabular stack + local PySpark
    pip install "plexe[pytorch,aws]"       # explicit framework + S3 support
    

    Requires Python >= 3.10, < 3.13.

    3.2. API Keys

    export OPENAI_API_KEY=<your-key>
    export ANTHROPIC_API_KEY=<your-key>
    

    See LiteLLM providers for all supported providers.

    4. Documentation

    For full documentation, visit docs.plexe.ai.

    5. Contributing

    See CONTRIBUTING.md for guidelines. Join our Discord to connect with the team.

    6. License

    Apache-2.0 License

    7. Citation

    If you use Plexe in your research, please cite it as follows:

    @software{plexe2025,
      author = {De Bernardi, Marcello AND Dubey, Vaibhav},
      title = {Plexe: Build machine learning models using natural language.},
      year = {2025},
      publisher = {GitHub},
      howpublished = {\url{https://github.com/plexe-ai/plexe}},
    }