# ppline
# 1. About
ppline can trigger your python modules in any specified order, making it look like a pipeline!
### 1.1. Installation
```bash
pip install ppline
```
### 1.2. How it works
Ppline takes configuration of your pipeline from .yml file, so you have to create it in your root directory in the following form:
```text
steps:
[step name]:
exec: [relative path to a file]:[class to execute]
[step name]:
exec: [relative path to a file]:[class to execute]
[step name]:
exec: [relative path to a file]:[class to execute]
```
Here is the example:
```text
steps:
preProcessing:
exec: src/calculation.py:Calculate
kMeans:
exec: src/models.py:Kmeans
hyperTuning:
exec: src/tuning.py:GridSearch
```
Any executable class should have a method ``__call__``. For example:
```python
class Calculate(object):
def sum(self):
a=2
b=4
self.c=a+b
def divide(self):
f=4
self.d = self.c/f
def show_result(self):
print(self.d)
def __call__(self):
self.sum()
self.divide()
self.show_result()
```
### 1.3. How to use
Create a .yml file in your root directory, with pipeline config. Then, use the following command to trigger the pipeline
```bash
python -m ppline.cli --pipeline_config file.yml
```
### 1.4. To do
- dependency map between steps
- independent steps in parallel
- make png export of visualized pipeline w/ names
PyPI 官网下载 | ppline-0.1.3.tar.gz
版权申诉
50 浏览量
2022-01-29
05:11:59
上传
评论
收藏 7KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- 基于Pytorch训练CIRAR10上分类算法.zip
- Pytorch-pytorch深度学习教程之Tensorboard.zip
- 基于C++和Python开发yolov8-face作为人脸检测器dlib作为人脸识别器的人脸考勤系统源码+项目说明.zip
- Pytorch-pytorch深度学习教程之变分自动编码器.zip
- Pytorch-pytorch深度学习教程之神经风格迁移.zip
- Pytorch-pytorch深度学习教程之深度残差网络.zip
- Pytorch-pytorch深度学习教程之循环神经网络.zip
- Pytorch-pytorch深度学习教程之逻辑回归.zip
- Pytorch-pytorch深度学习教程之双向循环网络.zip
- Pytorch-pytorch深度学习教程之卷积神经网络.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈