Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- sklearn
|
| 5 |
+
- tabular-regression
|
| 6 |
+
- distillation
|
| 7 |
+
- chemical-engineering
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Pyrolysis Distillation Predictor
|
| 11 |
+
|
| 12 |
+
Predicts NAPTHA and DIESEL purity from distillation column operating conditions.
|
| 13 |
+
|
| 14 |
+
## Inputs
|
| 15 |
+
| Feature | Description |
|
| 16 |
+
|---|---|
|
| 17 |
+
| Distillate_To_Feed_Ratio | Ratio of distillate to feed flow |
|
| 18 |
+
| Feed_Stage | Feed stage number |
|
| 19 |
+
| top_stage_pressure_(bar) | Top stage pressure |
|
| 20 |
+
| Temp_of_Field_(C) | Field temperature |
|
| 21 |
+
| Feed_Flow_Rate_(Kg/hr) | Feed flow rate |
|
| 22 |
+
|
| 23 |
+
## Outputs
|
| 24 |
+
- `NAPTHA`: predicted purity (0–1)
|
| 25 |
+
- `DIESEL`: predicted purity (0–1)
|
| 26 |
+
|
| 27 |
+
## Feasible Operating Zone
|
| 28 |
+
Both outputs ≥ 80% when Distillate_To_Feed_Ratio is between 0.20 and 0.44.
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
```python
|
| 32 |
+
import joblib
|
| 33 |
+
from huggingface_hub import hf_hub_download
|
| 34 |
+
|
| 35 |
+
path = hf_hub_download("your-username/pyrolysis-distillation-predictor",
|
| 36 |
+
"pyrolysis_model.joblib")
|
| 37 |
+
model = joblib.load(path)
|
| 38 |
+
|
| 39 |
+
prediction = model.predict([[0.35, 10, 2.5, 150, 1000]])
|
| 40 |
+
print(f"NAPTHA: {prediction[0][0]:.3f}, DIESEL: {prediction[0][1]:.3f}")
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
One thing to keep in mind: HuggingFace doesn't natively "understand" sklearn models the way it understands transformers, so there's no automatic inference API. If you want a live demo, you'd pair it with a **Gradio Space** — which is actually very easy and looks great for a senior project presentation. Want me to write that too?
|