Giter VIP home page Giter VIP logo

ari_tech_meeting's Introduction

.env使用

  1. 安裝python-dotenv。
  2. 在專案根目錄放.env,並寫入需使用之資訊。
  3. 參考demo_env的寫法將.env之資訊讀入程式。

此範例專案為了展示方便,將.env加入版控。正常情況應該要gitignore。

Pool

參考demo_pool

ML專案架構

python -m

建議使用python -m比較方便,例如執行:

python -m pipe.proc

這樣在pipe/proc.py可以成功引用另一子資料夾src內的foo.py的函數foo。直接使用以下:

python pipe/proc.py

會無法成功import。要成功import需要多做

export PYTHONPATH="${PYTHONPATH}:<your-project-path>" 

srs, pipe & config

可參考本專案src(pipeline的單一步驟)和pipe(連串步驟的pipeline)等資料夾內的寫法,在srcpipe下個放一個config.py,分別給「跑單一步驟」和「跑pipeline」時使用,這樣就可以同時給這兩種情境套用不同的參數。執行單一步驟用python -m src.foo,執行pipeline用python -m pipe.proc

ari_tech_meeting's People

Watchers

James Cloos avatar Bali Sun 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.