在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):iterative/cml开源软件地址(OpenSource Url):https://github.com/iterative/cml开源编程语言(OpenSource Language):JavaScript 97.4%开源软件介绍(OpenSource Introduction):What is CML? Continuous Machine Learning (CML) is an open-source CLI tool for implementing continuous integration & delivery (CI/CD) with a focus on MLOps. Use it to automate development workflows — including machine provisioning, model training and evaluation, comparing ML experiments across project history, and monitoring changing datasets. CML can help train and evaluate models — and then generate a visual report with results and metrics — automatically on every pull request. An example report for a neural style transfer model. CML principles:
Table of Contents
SetupYou'll need a GitLab, GitHub, or Bitbucket account to begin. Users may wish to familiarize themselves with Github Actions or GitLab CI/CD. Here, will discuss the GitHub use case. GitLabPlease see our docs on CML with GitLab CI/CD and in particular the personal access token requirement. BitbucketPlease see our docs on CML with Bitbucket Cloud. GitHubThe key file in any CML project is name: your-workflow-name
on: [push]
jobs:
run:
runs-on: ubuntu-latest
# optionally use a convenient Ubuntu LTS + DVC + CML image
# container: docker://ghcr.io/iterative/cml:0-dvc2-base1
steps:
- uses: actions/checkout@v2
# may need to setup NodeJS & Python3 on e.g. self-hosted
# - uses: actions/setup-node@v2
# with:
# node-version: '16'
# - uses: actions/setup-python@v2
# with:
# python-version: '3.x'
- uses: iterative/setup-cml@v1
- name: Train model
run: |
# Your ML workflow goes here
pip install -r requirements.txt
python train.py
- name: Write CML report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Post reports as comments in GitHub PRs
cat results.txt >> report.md
cml send-comment report.md UsageWe helpfully provide CML and other useful libraries pre-installed on our
custom Docker images.
In the above example, uncommenting the field
CML FunctionsCML provides a number of functions to help package the outputs of ML workflows (including numeric data and visualizations about model performance) into a CML report. Below is a table of CML functions for writing markdown reports and delivering those reports to your CI system.
CML ReportsThe |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论