ipynb 또는 yaml 파일 내 Link 파이프라인을 Run All 방식으로 실행합니다.

mrx-link run --file FILE.format -p <NAME TYPE VALUE>
  • Options

    • --file FILE.format: Link에서 생성된 파이프라인 정보가 있는 IPYNB 또는 YAML 형태의 파일 경로 및 이름을 입력합니다.

    • -p <NAME TYPE VALUE>, --parameter <NAME TYPE VALUE>: (Optional) 파이프라인 파라미터 값을 수정할 수 있습니다.

      📘

      • 파이프라인 파라미터 값을 변경하기 위해서는 Name, Type, Value 정보를 전부 입력해야 합니다.
      • 여러 개의 파이프라인 파라미터 값을 변경하고자 한다면, 다음과 같이 실행할 수 있습니다.
        • mrx-link run --file FILE.format -p a int 3 -p b float 0.3
    • -h, --help: 헬프 메시지를 출력합니다.

      Usage: mrx-link run [OPTIONS]
      
        Run the pipeline in the `ipynb` or `yaml` file with customized parameters.
      
        Example: mrx-link run --file <FILE.format> -p a int 10
      
      Options:
        --file TEXT                     file path to run Link pipeline  [required]
        -p, --parameter <TEXT TEXT TEXT>...
                                        Parameters for the pipeline. For one
                                        parameter, three values must be entered. The
                                        order is the paramater name, type, and
                                        value.
                                        
                                        Examples of parameter types are int, float,
                                        str, and bool.
        -h, --help                      Show this message and exit.
      
  • Troubleshooting

    • User configuration is required. For user configuration, try 'mrx-link login' in the command line interface.
      • 유저 정보가 필요한 경우에 (로그인이 필요한 경우에) 발생합니다.
    • Check your internet connection and try again.
      • 인터넷 요청 에러 또는 타임아웃 상황에서 발생합니다.
    • Invalid email or product key. Please check your email and product key again.
      • 이메일 또는 product key 값이 잘못된 경우 발생합니다.
    • An unknown error occurred. If the problem continues, visit https://makinarocks-link.readme.io/discuss for discussion, or https://link.makinarocks.ai/technical_support/ for technical support.
      • 인터넷 연결 중 원인을 알 수 없는 문제 상황에서 발생합니다.
    • [Errno 2] No such file or directory: 'FILE.format'
      • 입력한 파일이 존재하지 않을 때 발생합니다.
    • Only ipynb and yaml are supported for source file.
      • 입력한 파일이 지원되지 않는 형식이거나, Link에서 생성된 파이프라인 정보가 없을 경우 발생합니다.
    • zsh: no matches found: FILE.format
      • 노트북 파일 이름에 Bash 특수 문자 또는 공백이 포함된 경우 발생합니다.
        • Bash 특수 문자 또는 공백 앞에 \가 포함되면 정상적으로 실행됩니다.
          • ex) mrx-link run --file cli-test\(name\).yaml
        • 또는 따옴표로 문자열을 감싸면 정상적으로 실행됩니다.
          • ex) mrx-link run --file "cli-test(name).yaml"

Example

  1. Sample Source를 다운로드 받습니다.
  2. 필요한 패키지를 설치합니다.
    pip install sklearn torch "pytorch_lightning>=1.6, <1.9" "torchmetrics>=0.7.0, <0.11.1" livelossplot
    
  3. 해당 노트북 파일을 실행합니다.
    mrx-link run --file 'iris_classification.ipynb'