Giter Site home page Giter Site logo

ci-demo's Introduction

MLRun ci-demo

CircleCI

Demo ml function CI/CD with MLRun and CircleCI

in order to add automated CI to ML functions you need to register your repo in CircleCI and add the following YAML file to the .circleci/config.yml path.

You can also add a badge to your project like the one above, check the source of this MD file to see how

version: 2
jobs:
  build:
    docker: 
      - image: python:3.6
    steps:
      - checkout
      - run: pip install mlrun
      - run: mlrun run --handler my_func --param-file params.csv --dump myfunc.py

The YAML instructs CircleCI to run a job every time you commit code to the branch, the Job will do the following:

  1. Load a docker image (specified) and pull the code into it
  2. Install MLRun package
  3. Test the function handler my_func in myfunc.py

Note: it will run multiple tests, each test will use a set of parameters (a line) from the specified parameter file, at the end it will print (--dump) the run results as YAML

ci-demo's People

Contributors

yaronha avatar rayaku avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.