File size: 1,176 Bytes
607b769
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268218a
607b769
 
268218a
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
license: mit
tags:
  - sklearn
  - tabular-regression
  - distillation
  - chemical-engineering
---

# Pyrolysis Distillation Predictor

Predicts NAPTHA and DIESEL purity from distillation column operating conditions.

## Inputs
| Feature | Description |
|---|---|
| Distillate_To_Feed_Ratio | Ratio of distillate to feed flow |
| Feed_Stage | Feed stage number |
| top_stage_pressure_(bar) | Top stage pressure |
| Temp_of_Field_(C) | Field temperature |
| Feed_Flow_Rate_(Kg/hr) | Feed flow rate |

## Outputs
- `NAPTHA`: predicted purity (0–1)
- `DIESEL`: predicted purity (0–1)

## Feasible Operating Zone
Both outputs ≥ 80% when Distillate_To_Feed_Ratio is between 0.20 and 0.44.

## Usage
```python
import joblib
import numpy as np
from huggingface_hub import hf_hub_download

model_path = hf_hub_download(
    repo_id="lastcode/pyrolysis-distillation-predictor",
    filename="pyrolysis_model.joblib"
)
model = joblib.load(model_path)

# [Distillate_To_Feed_Ratio, Feed_Stage, top_stage_pressure, Temp, Feed_Flow_Rate]
X = np.array([[0.35, 10, 2.5, 150, 1000]])
pred = model.predict(X)
print(f"NAPTHA: {pred[0][0]:.3f}")
print(f"DIESEL: {pred[0][1]:.3f}")
```