Resume SynthData0523 main/c15 batch 2
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +195 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/all_results.json +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/samples.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/shapes.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/trends.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/__init__.py +11 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/data.py +780 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/env.py +39 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/metrics.py +157 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/util.py +347 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/real.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/test.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/val.csv +3 -0
- SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/tests/conftest.py +193 -0
.gitattributes
CHANGED
|
@@ -1729,3 +1729,198 @@ SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/re
|
|
| 1729 |
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/40/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1730 |
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/40/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1731 |
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/40/trends.csv filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1729 |
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/40/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1730 |
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/40/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1731 |
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/40/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1732 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1733 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1734 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1735 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1736 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1737 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1738 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1739 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1740 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1741 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1742 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1743 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1744 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1745 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1746 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1747 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1748 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1749 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1750 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1751 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1752 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1753 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1754 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1755 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1756 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1757 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1758 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1759 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1760 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1761 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1762 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1763 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1764 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1765 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1766 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1767 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1768 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1769 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1770 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1771 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1772 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/real.csv filter=lfs diff=lfs merge=lfs -text
|
| 1773 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1774 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1775 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/gen_20260513_074701.log filter=lfs diff=lfs merge=lfs -text
|
| 1776 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1777 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/models_tabbyflow/trained.pt filter=lfs diff=lfs merge=lfs -text
|
| 1778 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1779 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1780 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1781 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/run_config.json filter=lfs diff=lfs merge=lfs -text
|
| 1782 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/runtime_result.json filter=lfs diff=lfs merge=lfs -text
|
| 1783 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
|
| 1784 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1785 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
|
| 1786 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1787 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/staged/tabbyflow/adapter_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1788 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/staged/tabbyflow/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text
|
| 1789 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/staged/tabbyflow/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1790 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabbyflow-c15-480000-20260513_074701.csv filter=lfs diff=lfs merge=lfs -text
|
| 1791 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabbyflow_train_meta.json filter=lfs diff=lfs merge=lfs -text
|
| 1792 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/X_cat_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1793 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1794 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/X_cat_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1795 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/X_num_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1796 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1797 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/X_num_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1798 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/info.json filter=lfs diff=lfs merge=lfs -text
|
| 1799 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/real.csv filter=lfs diff=lfs merge=lfs -text
|
| 1800 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/staged_features.json filter=lfs diff=lfs merge=lfs -text
|
| 1801 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1802 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/train.csv filter=lfs diff=lfs merge=lfs -text
|
| 1803 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1804 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/y_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1805 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/y_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1806 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/tabular_bundle/pipeline_c15/y_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1807 |
+
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/train_20260513_061607.log filter=lfs diff=lfs merge=lfs -text
|
| 1808 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/X_cat_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1809 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1810 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/X_cat_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1811 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/X_num_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1812 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1813 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/X_num_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1814 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/info.json filter=lfs diff=lfs merge=lfs -text
|
| 1815 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/real.csv filter=lfs diff=lfs merge=lfs -text
|
| 1816 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/staged_features.json filter=lfs diff=lfs merge=lfs -text
|
| 1817 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1818 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/train.csv filter=lfs diff=lfs merge=lfs -text
|
| 1819 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1820 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/y_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1821 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/y_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1822 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/data/pipeline_c15/y_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1823 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/images/tabdiff_demo.gif filter=lfs diff=lfs merge=lfs -text
|
| 1824 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/images/tabdiff_demo.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 1825 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/synthetic/pipeline_c15/real.csv filter=lfs diff=lfs merge=lfs -text
|
| 1826 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/synthetic/pipeline_c15/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1827 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/synthetic/pipeline_c15/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1828 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/ckpt/pipeline_c15/adapter_learnable/config.pkl filter=lfs diff=lfs merge=lfs -text
|
| 1829 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/ckpt/pipeline_c15/adapter_learnable/ema_model_200.pt filter=lfs diff=lfs merge=lfs -text
|
| 1830 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/ckpt/pipeline_c15/adapter_learnable/model_200.pt filter=lfs diff=lfs merge=lfs -text
|
| 1831 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/configs/tabdiff_configs.toml filter=lfs diff=lfs merge=lfs -text
|
| 1832 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/result/pipeline_c15/adapter_learnable/200/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1833 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/result/pipeline_c15/adapter_learnable/200/ema/all_results.json filter=lfs diff=lfs merge=lfs -text
|
| 1834 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/result/pipeline_c15/adapter_learnable/200/ema/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1835 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/result/pipeline_c15/adapter_learnable/200/ema/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1836 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/result/pipeline_c15/adapter_learnable/200/ema/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1837 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/result/pipeline_c15/adapter_learnable/200/samples.csv filter=lfs diff=lfs merge=lfs -text
|
| 1838 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/result/pipeline_c15/adapter_learnable/200/shapes.csv filter=lfs diff=lfs merge=lfs -text
|
| 1839 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/_tabdiff_runtime/tabdiff/result/pipeline_c15/adapter_learnable/200/trends.csv filter=lfs diff=lfs merge=lfs -text
|
| 1840 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/gen_20260513_043834.log filter=lfs diff=lfs merge=lfs -text
|
| 1841 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1842 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/models_tabdiff/trained.pt filter=lfs diff=lfs merge=lfs -text
|
| 1843 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1844 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1845 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1846 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/run_config.json filter=lfs diff=lfs merge=lfs -text
|
| 1847 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/runtime_result.json filter=lfs diff=lfs merge=lfs -text
|
| 1848 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
|
| 1849 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1850 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
|
| 1851 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1852 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/staged/tabdiff/adapter_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1853 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/staged/tabdiff/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text
|
| 1854 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/staged/tabdiff/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1855 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabdiff-c15-480000-20260513_043834.csv filter=lfs diff=lfs merge=lfs -text
|
| 1856 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabdiff_train_meta.json filter=lfs diff=lfs merge=lfs -text
|
| 1857 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/X_cat_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1858 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1859 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/X_cat_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1860 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/X_num_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1861 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1862 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/X_num_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1863 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/info.json filter=lfs diff=lfs merge=lfs -text
|
| 1864 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/real.csv filter=lfs diff=lfs merge=lfs -text
|
| 1865 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/staged_features.json filter=lfs diff=lfs merge=lfs -text
|
| 1866 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1867 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/train.csv filter=lfs diff=lfs merge=lfs -text
|
| 1868 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1869 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/y_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1870 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/y_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1871 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/tabular_bundle/pipeline_c15/y_val.npy filter=lfs diff=lfs merge=lfs -text
|
| 1872 |
+
SynthData0523/main/c15/tabdiff/tabdiff-c15-20260513_004629/train_20260513_004644.log filter=lfs diff=lfs merge=lfs -text
|
| 1873 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/gen_20260512_144211.log filter=lfs diff=lfs merge=lfs -text
|
| 1874 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1875 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1876 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1877 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1878 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/run_config.json filter=lfs diff=lfs merge=lfs -text
|
| 1879 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/runtime_result.json filter=lfs diff=lfs merge=lfs -text
|
| 1880 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
|
| 1881 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1882 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
|
| 1883 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1884 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/staged/tabpfgen/adapter_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1885 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/staged/tabpfgen/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text
|
| 1886 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/staged/tabpfgen/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1887 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/tabpfgen-c15-480000-20260512_144211.csv filter=lfs diff=lfs merge=lfs -text
|
| 1888 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/tabpfgen_meta.json filter=lfs diff=lfs merge=lfs -text
|
| 1889 |
+
SynthData0523/main/c15/tabpfgen/tabpfgen-c15-20260512_144203/train_20260512_144211.log filter=lfs diff=lfs merge=lfs -text
|
| 1890 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/X_cat_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1891 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1892 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/X_num_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1893 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1894 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/info.json filter=lfs diff=lfs merge=lfs -text
|
| 1895 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1896 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/train.csv filter=lfs diff=lfs merge=lfs -text
|
| 1897 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/y_test.npy filter=lfs diff=lfs merge=lfs -text
|
| 1898 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/data/tabsyn_c15/y_train.npy filter=lfs diff=lfs merge=lfs -text
|
| 1899 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/gen_20260427_004432.log filter=lfs diff=lfs merge=lfs -text
|
| 1900 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1901 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1902 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1903 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1904 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/runtime_result.json filter=lfs diff=lfs merge=lfs -text
|
| 1905 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
|
| 1906 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1907 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
|
| 1908 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
|
| 1909 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/staged/tabsyn/adapter_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1910 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/staged/tabsyn/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text
|
| 1911 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/staged/tabsyn/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1912 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/synthetic/tabsyn_c15/real.csv filter=lfs diff=lfs merge=lfs -text
|
| 1913 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/synthetic/tabsyn_c15/test.csv filter=lfs diff=lfs merge=lfs -text
|
| 1914 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/tabsyn-c15-480000-20260427_004432.csv filter=lfs diff=lfs merge=lfs -text
|
| 1915 |
+
SynthData0523/main/c15/tabsyn/tabsyn-c15-20260426_203054/train_20260426_203129.log filter=lfs diff=lfs merge=lfs -text
|
| 1916 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/gen_20260419_133821.log filter=lfs diff=lfs merge=lfs -text
|
| 1917 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/gen_20260419_181017.log filter=lfs diff=lfs merge=lfs -text
|
| 1918 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1919 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/models_300epochs/train_20260419_073620.log filter=lfs diff=lfs merge=lfs -text
|
| 1920 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/models_300epochs/tvae_300epochs.pt filter=lfs diff=lfs merge=lfs -text
|
| 1921 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
|
| 1922 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
|
| 1923 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
|
| 1924 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/runtime_result.json filter=lfs diff=lfs merge=lfs -text
|
| 1925 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
|
| 1926 |
+
SynthData0523/main/c15/tvae/tvae-c15-20260419_073541/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:602f1f219309dfbb9b0b991320efaafb14862fcb6b7a529b6d70494753611c22
|
| 3 |
+
size 99
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17ea34e2a5ff11a169f1fb208c8c781518f3826c77b16b564ba6000b6a4c36cd
|
| 3 |
+
size 99
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9369a3d520800648dd6f7ec4449bc38f648f543acf236171d0aaa2b2d8ba6470
|
| 3 |
+
size 42416
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86bf1288fabd723e39490580f2b0845048f87fd31281969ed4649dc248bb775d
|
| 3 |
+
size 997
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/ema/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:992a4495261185b515717e66b5433e227a13c19c0696b6d2def7dc060a9c7304
|
| 3 |
+
size 19864
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:446608cf9541c2d2880ba5fb845b384ae00fe45a9d266d187cbf5f46d9a03fbf
|
| 3 |
+
size 41234
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:616dd41b995e1151cf4a92b76c912df2e3e3466b5af7615619b790a1dd9410d2
|
| 3 |
+
size 999
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/50/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ccda4db2668a15c9680d40097633999f20f8d95295b47c6d493cd1dffc20725
|
| 3 |
+
size 18183
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:603497687911f38b4df2b812f1531a4529a039b5ca0f342b782bd7c206ddbbdd
|
| 3 |
+
size 99
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cbba07b59f5877524e6bcc32a8ca2d2687864f142caedc80ed84af86a8499c8
|
| 3 |
+
size 100
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9c312dbe6c3b458dc86935d3fc57d9781f4ef74b57ebc412154b68ca768fc77
|
| 3 |
+
size 42847
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f463e9d88e2b8f18013ecced876e3e0bea61103428cbfaefcb63abfcf3ac752d
|
| 3 |
+
size 986
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/ema/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9eb0fe2cdd76ac28bbbe742bb27fd0cd0a6f9450c736e87f2ab2575a7e86395
|
| 3 |
+
size 19866
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea872c8d897ad79602b8074cf19cb620a841f12f2b0dd2cd35095e2a4fb64698
|
| 3 |
+
size 41019
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:924277509d893071c8a365986d71117f4ad6e9cebb067cfe8c5877551f1a2f2f
|
| 3 |
+
size 998
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/60/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:520e39863d174991e6ee11f91b2b594ec3925fcf9298904d81367adbc9ebdde7
|
| 3 |
+
size 18200
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc68b66d0d6b01d663192a5ddb22ac346ec5e67ae065df0fdb5597dd64df72fa
|
| 3 |
+
size 99
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ad451eb83ab81417f74c5aac1f3dc88235a152324f587c3a2504a725e5aaaf1
|
| 3 |
+
size 100
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:798bbb2b9a6cb7bad1421ec8d1105b74b8fb808fa3ee9dff4fd1011e9353090e
|
| 3 |
+
size 44557
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0977f206c4254bead4eb55e48f7a99913a77e41836d53f0ef1cb3930c062994
|
| 3 |
+
size 996
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/ema/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6406e06bb476f332354a3823c8d369ab75ba1776920836f0682d8038d38a4571
|
| 3 |
+
size 19825
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3d1264f6dd6b7ec73556c301fe1aeeea0e741b327e5daa94d78a56962c87f60
|
| 3 |
+
size 41245
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f274152b4ca36a7c5b718d258a1b222b87735f0d1a8a5b2b581059890974b153
|
| 3 |
+
size 1000
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/70/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8881f020a118087d8aefad359385c3b6dd96d41ff6999e604702dfa04674150a
|
| 3 |
+
size 18192
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be8e83621086bbfbabb6689f16d25809dee2892372e0405950ddd3d47ff53990
|
| 3 |
+
size 99
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0dd5e60ba3d23724c50c92ebc01dbbdb563047604f9749fe90946c46f685097
|
| 3 |
+
size 100
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0c64e7c9dd0e24bd7beeed59a97565b2778c6190d6a212003a5f29125b31bd1
|
| 3 |
+
size 44496
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a751b4eb182dddc1af881be40d0e24f25b9ade941be0d3854c64c066b8aa6ce
|
| 3 |
+
size 995
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/ema/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed07861c3da69444434042330823dcbab0aa2309978e3f5aec0eec3ed2a22b37
|
| 3 |
+
size 19818
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69eb657004ee52472c3b85c23c0e2e3fc282c89e936d216b0aeac20d478beda3
|
| 3 |
+
size 41615
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:44247a76f2f8c74775c34dd00b09803a71dd12815f7be9c263957bc73fdd718d
|
| 3 |
+
size 1002
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/80/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a271cbb3af25502a174343ade53aa266703ccad848a3820a2181871110b3ef7
|
| 3 |
+
size 18203
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c819a60207b12343b552f457c9888cef43d6253a2e1f4e66e30b5d113b82289b
|
| 3 |
+
size 100
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/all_results.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab84730eb98006b1a0188daf22ca3e6f5613c655fbe65cc013a3de165ab437c2
|
| 3 |
+
size 100
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27ccd8e4848bf5a7b4e78ec7050f404e64a122d44dfd9dc5d4456e7f22a1c9b7
|
| 3 |
+
size 42060
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c10d3e1c9554e9401413acd200abcf2a9ef928f675765c3ec87a3659b220f52d
|
| 3 |
+
size 989
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/ema/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:959bf66b43564b70a1e3fa959d7f7de626d67ff855c9e3d7a2b0f0cc9bb909df
|
| 3 |
+
size 18197
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/samples.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:236be74b02a0b766480854c2e9d8848491dbb56325ec37d615827c2fd120b77c
|
| 3 |
+
size 38726122
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/shapes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cff18cd31cda09b842255cd6e8fc9d6ab723628618e13f3e41c0aaa91e276045
|
| 3 |
+
size 998
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/result/pipeline_c15/adapter_efvfm/90/trends.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:980829ffdf4599bd45e8f615159db7a78f1eea3b0ae072856c68cfc46aa05461
|
| 3 |
+
size 18184
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from icecream import install
|
| 3 |
+
|
| 4 |
+
torch.set_num_threads(1)
|
| 5 |
+
install()
|
| 6 |
+
|
| 7 |
+
from . import env # noqa
|
| 8 |
+
from .data import * # noqa
|
| 9 |
+
from .env import * # noqa
|
| 10 |
+
from .metrics import * # noqa
|
| 11 |
+
from .util import * # noqa
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/data.py
ADDED
|
@@ -0,0 +1,780 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import hashlib
|
| 2 |
+
from collections import Counter
|
| 3 |
+
from copy import deepcopy
|
| 4 |
+
from dataclasses import astuple, dataclass, replace
|
| 5 |
+
from importlib.resources import path
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Any, Literal, Optional, Union, cast, Tuple, Dict, List
|
| 8 |
+
|
| 9 |
+
import numpy as np
|
| 10 |
+
import pandas as pd
|
| 11 |
+
from sklearn.model_selection import train_test_split
|
| 12 |
+
from sklearn.pipeline import make_pipeline
|
| 13 |
+
import sklearn.preprocessing
|
| 14 |
+
import torch
|
| 15 |
+
import os
|
| 16 |
+
from category_encoders import LeaveOneOutEncoder
|
| 17 |
+
from sklearn.impute import SimpleImputer
|
| 18 |
+
from sklearn.preprocessing import StandardScaler
|
| 19 |
+
from scipy.spatial.distance import cdist
|
| 20 |
+
|
| 21 |
+
from . import env, util
|
| 22 |
+
from .metrics import calculate_metrics as calculate_metrics_
|
| 23 |
+
from .util import TaskType, load_json
|
| 24 |
+
|
| 25 |
+
ArrayDict = Dict[str, np.ndarray]
|
| 26 |
+
TensorDict = Dict[str, torch.Tensor]
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
CAT_MISSING_VALUE = 'nan'
|
| 30 |
+
CAT_RARE_VALUE = '__rare__'
|
| 31 |
+
Normalization = Literal['standard', 'quantile', 'minmax']
|
| 32 |
+
NumNanPolicy = Literal['drop-rows', 'mean']
|
| 33 |
+
CatNanPolicy = Literal['most_frequent']
|
| 34 |
+
CatEncoding = Literal['one-hot', 'counter']
|
| 35 |
+
YPolicy = Literal['default']
|
| 36 |
+
DEQUANT_DIST = Literal['uniform', 'beta', 'round', 'none']
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
class StandardScaler1d(StandardScaler):
|
| 40 |
+
def partial_fit(self, X, *args, **kwargs):
|
| 41 |
+
assert X.ndim == 1
|
| 42 |
+
return super().partial_fit(X[:, None], *args, **kwargs)
|
| 43 |
+
|
| 44 |
+
def transform(self, X, *args, **kwargs):
|
| 45 |
+
assert X.ndim == 1
|
| 46 |
+
return super().transform(X[:, None], *args, **kwargs).squeeze(1)
|
| 47 |
+
|
| 48 |
+
def inverse_transform(self, X, *args, **kwargs):
|
| 49 |
+
assert X.ndim == 1
|
| 50 |
+
return super().inverse_transform(X[:, None], *args, **kwargs).squeeze(1)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def get_category_sizes(X: Union[torch.Tensor, np.ndarray]) -> List[int]:
|
| 54 |
+
XT = X.T.cpu().tolist() if isinstance(X, torch.Tensor) else X.T.tolist()
|
| 55 |
+
return [len(set(x)) for x in XT]
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
@dataclass(frozen=False)
|
| 59 |
+
class Dataset:
|
| 60 |
+
X_num: Optional[ArrayDict]
|
| 61 |
+
X_cat: Optional[ArrayDict]
|
| 62 |
+
y: ArrayDict
|
| 63 |
+
int_col_idx_wrt_num: list
|
| 64 |
+
y_info: Dict[str, Any]
|
| 65 |
+
task_type: TaskType
|
| 66 |
+
n_classes: Optional[int]
|
| 67 |
+
|
| 68 |
+
@classmethod
|
| 69 |
+
def from_dir(cls, dir_: Union[Path, str]) -> 'Dataset':
|
| 70 |
+
dir_ = Path(dir_)
|
| 71 |
+
splits = [k for k in ['train', 'test'] if dir_.joinpath(f'y_{k}.npy').exists()]
|
| 72 |
+
|
| 73 |
+
def load(item) -> ArrayDict:
|
| 74 |
+
return {
|
| 75 |
+
x: cast(np.ndarray, np.load(dir_ / f'{item}_{x}.npy', allow_pickle=True)) # type: ignore[code]
|
| 76 |
+
for x in splits
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
if Path(dir_ / 'info.json').exists():
|
| 80 |
+
info = util.load_json(dir_ / 'info.json')
|
| 81 |
+
else:
|
| 82 |
+
info = None
|
| 83 |
+
return Dataset(
|
| 84 |
+
load('X_num') if dir_.joinpath('X_num_train.npy').exists() else None,
|
| 85 |
+
load('X_cat') if dir_.joinpath('X_cat_train.npy').exists() else None,
|
| 86 |
+
load('y'),
|
| 87 |
+
{},
|
| 88 |
+
TaskType(info['task_type']),
|
| 89 |
+
info.get('n_classes'),
|
| 90 |
+
)
|
| 91 |
+
|
| 92 |
+
@property
|
| 93 |
+
def is_binclass(self) -> bool:
|
| 94 |
+
return self.task_type == TaskType.BINCLASS
|
| 95 |
+
|
| 96 |
+
@property
|
| 97 |
+
def is_multiclass(self) -> bool:
|
| 98 |
+
return self.task_type == TaskType.MULTICLASS
|
| 99 |
+
|
| 100 |
+
@property
|
| 101 |
+
def is_regression(self) -> bool:
|
| 102 |
+
return self.task_type == TaskType.REGRESSION
|
| 103 |
+
|
| 104 |
+
@property
|
| 105 |
+
def n_num_features(self) -> int:
|
| 106 |
+
return 0 if self.X_num is None else self.X_num['train'].shape[1]
|
| 107 |
+
|
| 108 |
+
@property
|
| 109 |
+
def n_cat_features(self) -> int:
|
| 110 |
+
return 0 if self.X_cat is None else self.X_cat['train'].shape[1]
|
| 111 |
+
|
| 112 |
+
@property
|
| 113 |
+
def n_features(self) -> int:
|
| 114 |
+
return self.n_num_features + self.n_cat_features
|
| 115 |
+
|
| 116 |
+
def size(self, part: Optional[str]) -> int:
|
| 117 |
+
return sum(map(len, self.y.values())) if part is None else len(self.y[part])
|
| 118 |
+
|
| 119 |
+
@property
|
| 120 |
+
def nn_output_dim(self) -> int:
|
| 121 |
+
if self.is_multiclass:
|
| 122 |
+
assert self.n_classes is not None
|
| 123 |
+
return self.n_classes
|
| 124 |
+
else:
|
| 125 |
+
return 1
|
| 126 |
+
|
| 127 |
+
def get_category_sizes(self, part: str) -> List[int]:
|
| 128 |
+
return [] if self.X_cat is None else get_category_sizes(self.X_cat[part])
|
| 129 |
+
|
| 130 |
+
def calculate_metrics(
|
| 131 |
+
self,
|
| 132 |
+
predictions: Dict[str, np.ndarray],
|
| 133 |
+
prediction_type: Optional[str],
|
| 134 |
+
) -> Dict[str, Any]:
|
| 135 |
+
metrics = {
|
| 136 |
+
x: calculate_metrics_(
|
| 137 |
+
self.y[x], predictions[x], self.task_type, prediction_type, self.y_info
|
| 138 |
+
)
|
| 139 |
+
for x in predictions
|
| 140 |
+
}
|
| 141 |
+
if self.task_type == TaskType.REGRESSION:
|
| 142 |
+
score_key = 'rmse'
|
| 143 |
+
score_sign = -1
|
| 144 |
+
else:
|
| 145 |
+
score_key = 'accuracy'
|
| 146 |
+
score_sign = 1
|
| 147 |
+
for part_metrics in metrics.values():
|
| 148 |
+
part_metrics['score'] = score_sign * part_metrics[score_key]
|
| 149 |
+
return metrics
|
| 150 |
+
|
| 151 |
+
def change_val(dataset: Dataset, val_size: float = 0.2):
|
| 152 |
+
# should be done before transformations
|
| 153 |
+
|
| 154 |
+
y = np.concatenate([dataset.y['train'], dataset.y['val']], axis=0)
|
| 155 |
+
|
| 156 |
+
ixs = np.arange(y.shape[0])
|
| 157 |
+
if dataset.is_regression:
|
| 158 |
+
train_ixs, val_ixs = train_test_split(ixs, test_size=val_size, random_state=777)
|
| 159 |
+
else:
|
| 160 |
+
train_ixs, val_ixs = train_test_split(ixs, test_size=val_size, random_state=777, stratify=y)
|
| 161 |
+
|
| 162 |
+
dataset.y['train'] = y[train_ixs]
|
| 163 |
+
dataset.y['val'] = y[val_ixs]
|
| 164 |
+
|
| 165 |
+
if dataset.X_num is not None:
|
| 166 |
+
X_num = np.concatenate([dataset.X_num['train'], dataset.X_num['val']], axis=0)
|
| 167 |
+
dataset.X_num['train'] = X_num[train_ixs]
|
| 168 |
+
dataset.X_num['val'] = X_num[val_ixs]
|
| 169 |
+
|
| 170 |
+
if dataset.X_cat is not None:
|
| 171 |
+
X_cat = np.concatenate([dataset.X_cat['train'], dataset.X_cat['val']], axis=0)
|
| 172 |
+
dataset.X_cat['train'] = X_cat[train_ixs]
|
| 173 |
+
dataset.X_cat['val'] = X_cat[val_ixs]
|
| 174 |
+
|
| 175 |
+
return dataset
|
| 176 |
+
|
| 177 |
+
def num_process_nans(dataset: Dataset, policy: Optional[NumNanPolicy]) -> Dataset:
|
| 178 |
+
|
| 179 |
+
assert dataset.X_num is not None
|
| 180 |
+
nan_masks = {k: np.isnan(v) for k, v in dataset.X_num.items()}
|
| 181 |
+
if not any(x.any() for x in nan_masks.values()): # type: ignore[code]
|
| 182 |
+
# assert policy is None
|
| 183 |
+
print('No NaNs in numerical features, skipping')
|
| 184 |
+
return dataset
|
| 185 |
+
|
| 186 |
+
assert policy is not None
|
| 187 |
+
if policy == 'drop-rows':
|
| 188 |
+
valid_masks = {k: ~v.any(1) for k, v in nan_masks.items()}
|
| 189 |
+
assert valid_masks[
|
| 190 |
+
'test'
|
| 191 |
+
].all(), 'Cannot drop test rows, since this will affect the final metrics.'
|
| 192 |
+
new_data = {}
|
| 193 |
+
for data_name in ['X_num', 'X_cat', 'y']:
|
| 194 |
+
data_dict = getattr(dataset, data_name)
|
| 195 |
+
if data_dict is not None:
|
| 196 |
+
new_data[data_name] = {
|
| 197 |
+
k: v[valid_masks[k]] for k, v in data_dict.items()
|
| 198 |
+
}
|
| 199 |
+
dataset = replace(dataset, **new_data)
|
| 200 |
+
elif policy == 'mean':
|
| 201 |
+
new_values = np.nanmean(dataset.X_num['train'], axis=0)
|
| 202 |
+
X_num = deepcopy(dataset.X_num)
|
| 203 |
+
for k, v in X_num.items():
|
| 204 |
+
num_nan_indices = np.where(nan_masks[k])
|
| 205 |
+
v[num_nan_indices] = np.take(new_values, num_nan_indices[1])
|
| 206 |
+
dataset = replace(dataset, X_num=X_num)
|
| 207 |
+
else:
|
| 208 |
+
assert util.raise_unknown('policy', policy)
|
| 209 |
+
return dataset
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
# Inspired by: https://github.com/yandex-research/rtdl/blob/a4c93a32b334ef55d2a0559a4407c8306ffeeaee/lib/data.py#L20
|
| 213 |
+
def normalize(
|
| 214 |
+
X: ArrayDict, normalization: Normalization, seed: Optional[int], return_normalizer : bool = False
|
| 215 |
+
) -> ArrayDict:
|
| 216 |
+
X_train = X['train']
|
| 217 |
+
if normalization == 'standard':
|
| 218 |
+
normalizer = sklearn.preprocessing.StandardScaler()
|
| 219 |
+
elif normalization == 'minmax':
|
| 220 |
+
normalizer = sklearn.preprocessing.MinMaxScaler()
|
| 221 |
+
elif normalization == 'quantile':
|
| 222 |
+
normalizer = sklearn.preprocessing.QuantileTransformer(
|
| 223 |
+
output_distribution='normal',
|
| 224 |
+
n_quantiles=max(min(X['train'].shape[0] // 30, 1000), 10),
|
| 225 |
+
subsample=int(1e9),
|
| 226 |
+
random_state=seed,
|
| 227 |
+
)
|
| 228 |
+
# noise = 1e-3
|
| 229 |
+
# if noise > 0:
|
| 230 |
+
# assert seed is not None
|
| 231 |
+
# stds = np.std(X_train, axis=0, keepdims=True)
|
| 232 |
+
# noise_std = noise / np.maximum(stds, noise) # type: ignore[code]
|
| 233 |
+
# X_train = X_train + noise_std * np.random.default_rng(seed).standard_normal(
|
| 234 |
+
# X_train.shape
|
| 235 |
+
# )
|
| 236 |
+
else:
|
| 237 |
+
util.raise_unknown('normalization', normalization)
|
| 238 |
+
|
| 239 |
+
normalizer.fit(X_train)
|
| 240 |
+
if return_normalizer:
|
| 241 |
+
return {k: normalizer.transform(v) for k, v in X.items()}, normalizer
|
| 242 |
+
return {k: normalizer.transform(v) for k, v in X.items()}
|
| 243 |
+
|
| 244 |
+
class dequantizer:
|
| 245 |
+
def __init__(
|
| 246 |
+
self,
|
| 247 |
+
dequant_dist: DEQUANT_DIST,
|
| 248 |
+
int_col_idx_wrt_num: list,
|
| 249 |
+
int_dequant_factor: float,
|
| 250 |
+
# return_dequantizer: bool = False
|
| 251 |
+
):
|
| 252 |
+
self.dequant_dist = dequant_dist
|
| 253 |
+
self.int_col_idx_wrt_num = int_col_idx_wrt_num
|
| 254 |
+
self.int_dequant_factor = int_dequant_factor
|
| 255 |
+
def transform(self, X):
|
| 256 |
+
X_int = X[:, self.int_col_idx_wrt_num]
|
| 257 |
+
if self.dequant_dist == 'uniform':
|
| 258 |
+
X[:, self.int_col_idx_wrt_num] = X_int+ np.random.uniform(size=X_int.shape) * self.int_dequant_factor
|
| 259 |
+
elif self.dequant_dist == 'beta':
|
| 260 |
+
X[:, self.int_col_idx_wrt_num] = X_int + np.random.beta(self.int_dequant_factor, self.int_dequant_factor, size=X_int.shape) - 0.5
|
| 261 |
+
elif self.dequant_dist in ['round', 'none']:
|
| 262 |
+
pass
|
| 263 |
+
return X
|
| 264 |
+
def inverse_transform(self, X):
|
| 265 |
+
X_int = X[:, self.int_col_idx_wrt_num]
|
| 266 |
+
if self.dequant_dist == 'uniform':
|
| 267 |
+
X[:, self.int_col_idx_wrt_num] = np.floor(X_int)
|
| 268 |
+
elif self.dequant_dist == 'beta':
|
| 269 |
+
X[:, self.int_col_idx_wrt_num] = np.rint(X_int)
|
| 270 |
+
elif self.dequant_dist == 'round':
|
| 271 |
+
X[:, self.int_col_idx_wrt_num] = np.rint(X_int)
|
| 272 |
+
elif self.dequant_dist == 'none':
|
| 273 |
+
pass
|
| 274 |
+
return X
|
| 275 |
+
|
| 276 |
+
|
| 277 |
+
# if return_dequantizer:
|
| 278 |
+
# return {k: transform(v) for k, v in X.items()}, inverse_transform
|
| 279 |
+
# return {k: transform(v) for k, v in X.items()}
|
| 280 |
+
|
| 281 |
+
def cat_process_nans(X: ArrayDict, policy: Optional[CatNanPolicy]) -> ArrayDict:
|
| 282 |
+
assert X is not None
|
| 283 |
+
nan_masks = {k: v == CAT_MISSING_VALUE for k, v in X.items()}
|
| 284 |
+
if any(x.any() for x in nan_masks.values()): # type: ignore[code]
|
| 285 |
+
if policy is None:
|
| 286 |
+
X_new = X
|
| 287 |
+
elif policy == 'most_frequent':
|
| 288 |
+
imputer = SimpleImputer(missing_values=CAT_MISSING_VALUE, strategy=policy) # type: ignore[code]
|
| 289 |
+
imputer.fit(X['train'])
|
| 290 |
+
X_new = {k: cast(np.ndarray, imputer.transform(v)) for k, v in X.items()}
|
| 291 |
+
else:
|
| 292 |
+
util.raise_unknown('categorical NaN policy', policy)
|
| 293 |
+
else:
|
| 294 |
+
assert policy is None
|
| 295 |
+
X_new = X
|
| 296 |
+
return X_new
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
def cat_drop_rare(X: ArrayDict, min_frequency: float) -> ArrayDict:
|
| 300 |
+
assert 0.0 < min_frequency < 1.0
|
| 301 |
+
min_count = round(len(X['train']) * min_frequency)
|
| 302 |
+
X_new = {x: [] for x in X}
|
| 303 |
+
for column_idx in range(X['train'].shape[1]):
|
| 304 |
+
counter = Counter(X['train'][:, column_idx].tolist())
|
| 305 |
+
popular_categories = {k for k, v in counter.items() if v >= min_count}
|
| 306 |
+
for part in X_new:
|
| 307 |
+
X_new[part].append(
|
| 308 |
+
[
|
| 309 |
+
(x if x in popular_categories else CAT_RARE_VALUE)
|
| 310 |
+
for x in X[part][:, column_idx].tolist()
|
| 311 |
+
]
|
| 312 |
+
)
|
| 313 |
+
return {k: np.array(v).T for k, v in X_new.items()}
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
def cat_encode(
|
| 317 |
+
X: ArrayDict,
|
| 318 |
+
encoding: Optional[CatEncoding],
|
| 319 |
+
y_train: Optional[np.ndarray],
|
| 320 |
+
seed: Optional[int],
|
| 321 |
+
return_encoder : bool = False
|
| 322 |
+
) -> Tuple[ArrayDict, bool, Optional[Any]]: # (X, is_converted_to_numerical)
|
| 323 |
+
if encoding != 'counter':
|
| 324 |
+
y_train = None
|
| 325 |
+
|
| 326 |
+
# Step 1. Map strings to 0-based ranges
|
| 327 |
+
|
| 328 |
+
if encoding is None:
|
| 329 |
+
unknown_value = np.iinfo('int64').max - 3
|
| 330 |
+
oe = sklearn.preprocessing.OrdinalEncoder(
|
| 331 |
+
handle_unknown='use_encoded_value', # type: ignore[code]
|
| 332 |
+
unknown_value=unknown_value, # type: ignore[code]
|
| 333 |
+
dtype='int64', # type: ignore[code]
|
| 334 |
+
).fit(X['train'])
|
| 335 |
+
encoder = make_pipeline(oe)
|
| 336 |
+
encoder.fit(X['train'])
|
| 337 |
+
X = {k: encoder.transform(v) for k, v in X.items()}
|
| 338 |
+
max_values = X['train'].max(axis=0)
|
| 339 |
+
for part in X.keys():
|
| 340 |
+
if part == 'train': continue
|
| 341 |
+
for column_idx in range(X[part].shape[1]):
|
| 342 |
+
X[part][X[part][:, column_idx] == unknown_value, column_idx] = (
|
| 343 |
+
max_values[column_idx] + 1
|
| 344 |
+
)
|
| 345 |
+
if return_encoder:
|
| 346 |
+
return (X, False, encoder)
|
| 347 |
+
return (X, False)
|
| 348 |
+
|
| 349 |
+
# Step 2. Encode.
|
| 350 |
+
|
| 351 |
+
elif encoding == 'one-hot':
|
| 352 |
+
ohe = sklearn.preprocessing.OneHotEncoder(
|
| 353 |
+
handle_unknown='ignore', sparse_output=False, dtype=np.float32 # type: ignore[code]
|
| 354 |
+
)
|
| 355 |
+
encoder = make_pipeline(ohe)
|
| 356 |
+
|
| 357 |
+
# encoder.steps.append(('ohe', ohe))
|
| 358 |
+
encoder.fit(X['train'])
|
| 359 |
+
X = {k: encoder.transform(v) for k, v in X.items()}
|
| 360 |
+
|
| 361 |
+
elif encoding == 'counter':
|
| 362 |
+
assert y_train is not None
|
| 363 |
+
assert seed is not None
|
| 364 |
+
loe = LeaveOneOutEncoder(sigma=0.1, random_state=seed, return_df=False)
|
| 365 |
+
encoder.steps.append(('loe', loe))
|
| 366 |
+
encoder.fit(X['train'], y_train)
|
| 367 |
+
X = {k: encoder.transform(v).astype('float32') for k, v in X.items()} # type: ignore[code]
|
| 368 |
+
if not isinstance(X['train'], pd.DataFrame):
|
| 369 |
+
X = {k: v.values for k, v in X.items()} # type: ignore[code]
|
| 370 |
+
else:
|
| 371 |
+
util.raise_unknown('encoding', encoding)
|
| 372 |
+
|
| 373 |
+
if return_encoder:
|
| 374 |
+
return X, True, encoder # type: ignore[code]
|
| 375 |
+
return (X, True)
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
def build_target(
|
| 379 |
+
y: ArrayDict, policy: Optional[YPolicy], task_type: TaskType
|
| 380 |
+
) -> Tuple[ArrayDict, Dict[str, Any]]:
|
| 381 |
+
info: Dict[str, Any] = {'policy': policy}
|
| 382 |
+
if policy is None:
|
| 383 |
+
pass
|
| 384 |
+
elif policy == 'default':
|
| 385 |
+
if task_type == TaskType.REGRESSION:
|
| 386 |
+
mean, std = float(y['train'].mean()), float(y['train'].std())
|
| 387 |
+
y = {k: (v - mean) / std for k, v in y.items()}
|
| 388 |
+
info['mean'] = mean
|
| 389 |
+
info['std'] = std
|
| 390 |
+
else:
|
| 391 |
+
util.raise_unknown('policy', policy)
|
| 392 |
+
return y, info
|
| 393 |
+
|
| 394 |
+
|
| 395 |
+
@dataclass(frozen=True)
|
| 396 |
+
class Transformations:
|
| 397 |
+
seed: int = 0
|
| 398 |
+
normalization: Optional[Normalization] = None
|
| 399 |
+
num_nan_policy: Optional[NumNanPolicy] = None
|
| 400 |
+
cat_nan_policy: Optional[CatNanPolicy] = None
|
| 401 |
+
cat_min_frequency: Optional[float] = None
|
| 402 |
+
cat_encoding: Optional[CatEncoding] = None
|
| 403 |
+
y_policy: Optional[YPolicy] = 'default'
|
| 404 |
+
dequant_dist: Optional[DEQUANT_DIST] = None
|
| 405 |
+
int_dequant_factor: Optional[float] = 0.0
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
def transform_dataset(
|
| 409 |
+
dataset: Dataset,
|
| 410 |
+
transformations: Transformations,
|
| 411 |
+
cache_dir: Optional[Path],
|
| 412 |
+
return_transforms: bool = False
|
| 413 |
+
) -> Dataset:
|
| 414 |
+
# WARNING: the order of transformations matters. Moreover, the current
|
| 415 |
+
# implementation is not ideal in that sense.
|
| 416 |
+
if cache_dir is not None:
|
| 417 |
+
transformations_md5 = hashlib.md5(
|
| 418 |
+
str(transformations).encode('utf-8')
|
| 419 |
+
).hexdigest()
|
| 420 |
+
transformations_str = '__'.join(map(str, astuple(transformations)))
|
| 421 |
+
cache_path = (
|
| 422 |
+
cache_dir / f'cache__{transformations_str}__{transformations_md5}.pickle'
|
| 423 |
+
)
|
| 424 |
+
if cache_path.exists():
|
| 425 |
+
cache_transformations, value = util.load_pickle(cache_path)
|
| 426 |
+
if transformations == cache_transformations:
|
| 427 |
+
print(
|
| 428 |
+
f"Using cached features: {cache_dir.name + '/' + cache_path.name}"
|
| 429 |
+
)
|
| 430 |
+
return value
|
| 431 |
+
else:
|
| 432 |
+
raise RuntimeError(f'Hash collision for {cache_path}')
|
| 433 |
+
else:
|
| 434 |
+
cache_path = None
|
| 435 |
+
|
| 436 |
+
if dataset.X_num is not None:
|
| 437 |
+
dataset = num_process_nans(dataset, transformations.num_nan_policy)
|
| 438 |
+
|
| 439 |
+
num_transform = None
|
| 440 |
+
int_transform = None
|
| 441 |
+
cat_transform = None
|
| 442 |
+
X_num = dataset.X_num
|
| 443 |
+
|
| 444 |
+
int_col_idx_wrt_num = dataset.int_col_idx_wrt_num
|
| 445 |
+
if X_num is not None and int_col_idx_wrt_num and transformations.dequant_dist is not None:
|
| 446 |
+
int_transform = dequantizer(
|
| 447 |
+
transformations.dequant_dist,
|
| 448 |
+
int_col_idx_wrt_num,
|
| 449 |
+
transformations.int_dequant_factor,
|
| 450 |
+
)
|
| 451 |
+
X_num = {k: int_transform.transform(v) for k, v in X_num.items()}
|
| 452 |
+
|
| 453 |
+
if X_num is not None and transformations.normalization is not None:
|
| 454 |
+
has_num = all([x.shape[1]>0 for x in dataset.X_num.values()])
|
| 455 |
+
if has_num:
|
| 456 |
+
X_num, num_transform = normalize(
|
| 457 |
+
X_num,
|
| 458 |
+
transformations.normalization,
|
| 459 |
+
transformations.seed,
|
| 460 |
+
return_normalizer=True
|
| 461 |
+
)
|
| 462 |
+
num_transform = num_transform
|
| 463 |
+
|
| 464 |
+
if dataset.X_cat is None:
|
| 465 |
+
assert transformations.cat_nan_policy is None
|
| 466 |
+
assert transformations.cat_min_frequency is None
|
| 467 |
+
# assert transformations.cat_encoding is None
|
| 468 |
+
X_cat = None
|
| 469 |
+
else:
|
| 470 |
+
has_cat = all([x.shape[1]>0 for x in dataset.X_cat.values()])
|
| 471 |
+
if not has_cat:
|
| 472 |
+
assert transformations.cat_nan_policy is None
|
| 473 |
+
assert transformations.cat_min_frequency is None
|
| 474 |
+
X_cat = dataset.X_cat
|
| 475 |
+
for split in X_cat.keys(): # a patch to make sure that the empty array is transformed into int dtype
|
| 476 |
+
X_cat[split] = X_cat[split].astype(np.int64)
|
| 477 |
+
else:
|
| 478 |
+
X_cat = cat_process_nans(dataset.X_cat, transformations.cat_nan_policy)
|
| 479 |
+
|
| 480 |
+
if transformations.cat_min_frequency is not None:
|
| 481 |
+
X_cat = cat_drop_rare(X_cat, transformations.cat_min_frequency)
|
| 482 |
+
X_cat, is_num, cat_transform = cat_encode(
|
| 483 |
+
X_cat,
|
| 484 |
+
transformations.cat_encoding,
|
| 485 |
+
dataset.y['train'],
|
| 486 |
+
transformations.seed,
|
| 487 |
+
return_encoder=True
|
| 488 |
+
)
|
| 489 |
+
|
| 490 |
+
if is_num:
|
| 491 |
+
X_num = (
|
| 492 |
+
X_cat
|
| 493 |
+
if X_num is None
|
| 494 |
+
else {x: np.hstack([X_num[x], X_cat[x]]) for x in X_num}
|
| 495 |
+
)
|
| 496 |
+
X_cat = None
|
| 497 |
+
|
| 498 |
+
|
| 499 |
+
y, y_info = build_target(dataset.y, transformations.y_policy, dataset.task_type)
|
| 500 |
+
|
| 501 |
+
dataset = replace(dataset, X_num=X_num, X_cat=X_cat, y=y, y_info=y_info)
|
| 502 |
+
dataset.num_transform = num_transform
|
| 503 |
+
dataset.int_transform = int_transform
|
| 504 |
+
dataset.cat_transform = cat_transform
|
| 505 |
+
|
| 506 |
+
if cache_path is not None:
|
| 507 |
+
util.dump_pickle((transformations, dataset), cache_path)
|
| 508 |
+
# if return_transforms:
|
| 509 |
+
# return dataset, num_transform, cat_transform
|
| 510 |
+
return dataset
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
def build_dataset(
|
| 514 |
+
path: Union[str, Path],
|
| 515 |
+
transformations: Transformations,
|
| 516 |
+
cache: bool
|
| 517 |
+
) -> Dataset:
|
| 518 |
+
path = Path(path)
|
| 519 |
+
dataset = Dataset.from_dir(path)
|
| 520 |
+
return transform_dataset(dataset, transformations, path if cache else None)
|
| 521 |
+
|
| 522 |
+
|
| 523 |
+
def prepare_tensors(
|
| 524 |
+
dataset: Dataset, device: Union[str, torch.device]
|
| 525 |
+
) -> Tuple[Optional[TensorDict], Optional[TensorDict], TensorDict]:
|
| 526 |
+
X_num, X_cat, Y = (
|
| 527 |
+
None if x is None else {k: torch.as_tensor(v) for k, v in x.items()}
|
| 528 |
+
for x in [dataset.X_num, dataset.X_cat, dataset.y]
|
| 529 |
+
)
|
| 530 |
+
if device.type != 'cpu':
|
| 531 |
+
X_num, X_cat, Y = (
|
| 532 |
+
None if x is None else {k: v.to(device) for k, v in x.items()}
|
| 533 |
+
for x in [X_num, X_cat, Y]
|
| 534 |
+
)
|
| 535 |
+
assert X_num is not None
|
| 536 |
+
assert Y is not None
|
| 537 |
+
if not dataset.is_multiclass:
|
| 538 |
+
Y = {k: v.float() for k, v in Y.items()}
|
| 539 |
+
return X_num, X_cat, Y
|
| 540 |
+
|
| 541 |
+
###############
|
| 542 |
+
## DataLoader##
|
| 543 |
+
###############
|
| 544 |
+
|
| 545 |
+
class TabDataset(torch.utils.data.Dataset):
|
| 546 |
+
def __init__(
|
| 547 |
+
self, dataset : Dataset, split : Literal['train', 'val', 'test']
|
| 548 |
+
):
|
| 549 |
+
super().__init__()
|
| 550 |
+
|
| 551 |
+
self.X_num = torch.from_numpy(dataset.X_num[split]) if dataset.X_num is not None else None
|
| 552 |
+
self.X_cat = torch.from_numpy(dataset.X_cat[split]) if dataset.X_cat is not None else None
|
| 553 |
+
self.y = torch.from_numpy(dataset.y[split])
|
| 554 |
+
|
| 555 |
+
assert self.y is not None
|
| 556 |
+
assert self.X_num is not None or self.X_cat is not None
|
| 557 |
+
|
| 558 |
+
def __len__(self):
|
| 559 |
+
return len(self.y)
|
| 560 |
+
|
| 561 |
+
def __getitem__(self, idx):
|
| 562 |
+
out_dict = {
|
| 563 |
+
'y': self.y[idx].long() if self.y is not None else None,
|
| 564 |
+
}
|
| 565 |
+
|
| 566 |
+
x = np.empty((0,))
|
| 567 |
+
if self.X_num is not None:
|
| 568 |
+
x = self.X_num[idx]
|
| 569 |
+
if self.X_cat is not None:
|
| 570 |
+
x = torch.cat([x, self.X_cat[idx]], dim=0)
|
| 571 |
+
return x.float(), out_dict
|
| 572 |
+
|
| 573 |
+
def prepare_dataloader(
|
| 574 |
+
dataset : Dataset,
|
| 575 |
+
split : str,
|
| 576 |
+
batch_size: int,
|
| 577 |
+
):
|
| 578 |
+
|
| 579 |
+
torch_dataset = TabDataset(dataset, split)
|
| 580 |
+
loader = torch.utils.data.DataLoader(
|
| 581 |
+
torch_dataset,
|
| 582 |
+
batch_size=batch_size,
|
| 583 |
+
shuffle=(split == 'train'),
|
| 584 |
+
num_workers=1,
|
| 585 |
+
)
|
| 586 |
+
while True:
|
| 587 |
+
yield from loader
|
| 588 |
+
|
| 589 |
+
def prepare_torch_dataloader(
|
| 590 |
+
dataset : Dataset,
|
| 591 |
+
split : str,
|
| 592 |
+
shuffle : bool,
|
| 593 |
+
batch_size: int,
|
| 594 |
+
) -> torch.utils.data.DataLoader:
|
| 595 |
+
|
| 596 |
+
torch_dataset = TabDataset(dataset, split)
|
| 597 |
+
loader = torch.utils.data.DataLoader(torch_dataset, batch_size=batch_size, shuffle=shuffle, num_workers=1)
|
| 598 |
+
|
| 599 |
+
return loader
|
| 600 |
+
|
| 601 |
+
def dataset_from_csv(paths : Dict[str, str], cat_features, target, T):
|
| 602 |
+
assert 'train' in paths
|
| 603 |
+
y = {}
|
| 604 |
+
X_num = {}
|
| 605 |
+
X_cat = {} if len(cat_features) else None
|
| 606 |
+
for split in paths.keys():
|
| 607 |
+
df = pd.read_csv(paths[split])
|
| 608 |
+
y[split] = df[target].to_numpy().astype(float)
|
| 609 |
+
if X_cat is not None:
|
| 610 |
+
X_cat[split] = df[cat_features].to_numpy().astype(str)
|
| 611 |
+
X_num[split] = df.drop(cat_features + [target], axis=1).to_numpy().astype(float)
|
| 612 |
+
|
| 613 |
+
dataset = Dataset(X_num, X_cat, y, {}, None, len(np.unique(y['train'])))
|
| 614 |
+
return transform_dataset(dataset, T, None)
|
| 615 |
+
|
| 616 |
+
class FastTensorDataLoader:
|
| 617 |
+
"""
|
| 618 |
+
A DataLoader-like object for a set of tensors that can be much faster than
|
| 619 |
+
TensorDataset + DataLoader because dataloader grabs individual indices of
|
| 620 |
+
the dataset and calls cat (slow).
|
| 621 |
+
Source: https://discuss.pytorch.org/t/dataloader-much-slower-than-manual-batching/27014/6
|
| 622 |
+
"""
|
| 623 |
+
def __init__(self, *tensors, batch_size=32, shuffle=False):
|
| 624 |
+
"""
|
| 625 |
+
Initialize a FastTensorDataLoader.
|
| 626 |
+
:param *tensors: tensors to store. Must have the same length @ dim 0.
|
| 627 |
+
:param batch_size: batch size to load.
|
| 628 |
+
:param shuffle: if True, shuffle the data *in-place* whenever an
|
| 629 |
+
iterator is created out of this object.
|
| 630 |
+
:returns: A FastTensorDataLoader.
|
| 631 |
+
"""
|
| 632 |
+
assert all(t.shape[0] == tensors[0].shape[0] for t in tensors)
|
| 633 |
+
self.tensors = tensors
|
| 634 |
+
|
| 635 |
+
self.dataset_len = self.tensors[0].shape[0]
|
| 636 |
+
self.batch_size = batch_size
|
| 637 |
+
self.shuffle = shuffle
|
| 638 |
+
|
| 639 |
+
# Calculate # batches
|
| 640 |
+
n_batches, remainder = divmod(self.dataset_len, self.batch_size)
|
| 641 |
+
if remainder > 0:
|
| 642 |
+
n_batches += 1
|
| 643 |
+
self.n_batches = n_batches
|
| 644 |
+
def __iter__(self):
|
| 645 |
+
if self.shuffle:
|
| 646 |
+
r = torch.randperm(self.dataset_len)
|
| 647 |
+
self.tensors = [t[r] for t in self.tensors]
|
| 648 |
+
self.i = 0
|
| 649 |
+
return self
|
| 650 |
+
|
| 651 |
+
def __next__(self):
|
| 652 |
+
if self.i >= self.dataset_len:
|
| 653 |
+
raise StopIteration
|
| 654 |
+
batch = tuple(t[self.i:self.i+self.batch_size] for t in self.tensors)
|
| 655 |
+
self.i += self.batch_size
|
| 656 |
+
return batch
|
| 657 |
+
|
| 658 |
+
def __len__(self):
|
| 659 |
+
return self.n_batches
|
| 660 |
+
|
| 661 |
+
def prepare_fast_dataloader(
|
| 662 |
+
D : Dataset,
|
| 663 |
+
split : str,
|
| 664 |
+
batch_size: int
|
| 665 |
+
):
|
| 666 |
+
|
| 667 |
+
X = torch.from_numpy(np.concatenate([D.X_num[split], D.X_cat[split]], axis=1)).float()
|
| 668 |
+
dataloader = FastTensorDataLoader(X, batch_size=batch_size, shuffle=(split=='train'))
|
| 669 |
+
while True:
|
| 670 |
+
yield from dataloader
|
| 671 |
+
|
| 672 |
+
def prepare_fast_torch_dataloader(
|
| 673 |
+
D : Dataset,
|
| 674 |
+
split : str,
|
| 675 |
+
batch_size: int
|
| 676 |
+
):
|
| 677 |
+
if D.X_cat is not None:
|
| 678 |
+
X = torch.from_numpy(np.concatenate([D.X_num[split], D.X_cat[split]], axis=1)).float()
|
| 679 |
+
else:
|
| 680 |
+
X = torch.from_numpy(D.X_num[split]).float()
|
| 681 |
+
y = torch.from_numpy(D.y[split])
|
| 682 |
+
dataloader = FastTensorDataLoader(X, y, batch_size=batch_size, shuffle=(split=='train'))
|
| 683 |
+
return dataloader
|
| 684 |
+
|
| 685 |
+
def round_columns(X_real, X_synth, columns):
|
| 686 |
+
for col in columns:
|
| 687 |
+
uniq = np.unique(X_real[:,col])
|
| 688 |
+
dist = cdist(X_synth[:, col][:, np.newaxis].astype(float), uniq[:, np.newaxis].astype(float))
|
| 689 |
+
X_synth[:, col] = uniq[dist.argmin(axis=1)]
|
| 690 |
+
return X_synth
|
| 691 |
+
|
| 692 |
+
def concat_features(D : Dataset):
|
| 693 |
+
if D.X_num is None:
|
| 694 |
+
assert D.X_cat is not None
|
| 695 |
+
X = {k: pd.DataFrame(v, columns=range(D.n_features)) for k, v in D.X_cat.items()}
|
| 696 |
+
elif D.X_cat is None:
|
| 697 |
+
assert D.X_num is not None
|
| 698 |
+
X = {k: pd.DataFrame(v, columns=range(D.n_features)) for k, v in D.X_num.items()}
|
| 699 |
+
else:
|
| 700 |
+
X = {
|
| 701 |
+
part: pd.concat(
|
| 702 |
+
[
|
| 703 |
+
pd.DataFrame(D.X_num[part], columns=range(D.n_num_features)),
|
| 704 |
+
pd.DataFrame(
|
| 705 |
+
D.X_cat[part],
|
| 706 |
+
columns=range(D.n_num_features, D.n_features),
|
| 707 |
+
),
|
| 708 |
+
],
|
| 709 |
+
axis=1,
|
| 710 |
+
)
|
| 711 |
+
for part in D.y.keys()
|
| 712 |
+
}
|
| 713 |
+
|
| 714 |
+
return X
|
| 715 |
+
|
| 716 |
+
def concat_to_pd(X_num, X_cat, y):
|
| 717 |
+
if X_num is None:
|
| 718 |
+
return pd.concat([
|
| 719 |
+
pd.DataFrame(X_cat, columns=list(range(X_cat.shape[1]))),
|
| 720 |
+
pd.DataFrame(y, columns=['y'])
|
| 721 |
+
], axis=1)
|
| 722 |
+
if X_cat is not None:
|
| 723 |
+
return pd.concat([
|
| 724 |
+
pd.DataFrame(X_num, columns=list(range(X_num.shape[1]))),
|
| 725 |
+
pd.DataFrame(X_cat, columns=list(range(X_num.shape[1], X_num.shape[1] + X_cat.shape[1]))),
|
| 726 |
+
pd.DataFrame(y, columns=['y'])
|
| 727 |
+
], axis=1)
|
| 728 |
+
return pd.concat([
|
| 729 |
+
pd.DataFrame(X_num, columns=list(range(X_num.shape[1]))),
|
| 730 |
+
pd.DataFrame(y, columns=['y'])
|
| 731 |
+
], axis=1)
|
| 732 |
+
|
| 733 |
+
def read_pure_data(path, split='train'):
|
| 734 |
+
y = np.load(os.path.join(path, f'y_{split}.npy'), allow_pickle=True)
|
| 735 |
+
X_num = None
|
| 736 |
+
X_cat = None
|
| 737 |
+
if os.path.exists(os.path.join(path, f'X_num_{split}.npy')):
|
| 738 |
+
X_num = np.load(os.path.join(path, f'X_num_{split}.npy'), allow_pickle=True)
|
| 739 |
+
if os.path.exists(os.path.join(path, f'X_cat_{split}.npy')):
|
| 740 |
+
X_cat = np.load(os.path.join(path, f'X_cat_{split}.npy'), allow_pickle=True)
|
| 741 |
+
|
| 742 |
+
return X_num, X_cat, y
|
| 743 |
+
|
| 744 |
+
def read_changed_val(path, val_size=0.2):
|
| 745 |
+
path = Path(path)
|
| 746 |
+
X_num_train, X_cat_train, y_train = read_pure_data(path, 'train')
|
| 747 |
+
X_num_val, X_cat_val, y_val = read_pure_data(path, 'val')
|
| 748 |
+
is_regression = load_json(path / 'info.json')['task_type'] == 'regression'
|
| 749 |
+
|
| 750 |
+
y = np.concatenate([y_train, y_val], axis=0)
|
| 751 |
+
|
| 752 |
+
ixs = np.arange(y.shape[0])
|
| 753 |
+
if is_regression:
|
| 754 |
+
train_ixs, val_ixs = train_test_split(ixs, test_size=val_size, random_state=777)
|
| 755 |
+
else:
|
| 756 |
+
train_ixs, val_ixs = train_test_split(ixs, test_size=val_size, random_state=777, stratify=y)
|
| 757 |
+
y_train = y[train_ixs]
|
| 758 |
+
y_val = y[val_ixs]
|
| 759 |
+
|
| 760 |
+
if X_num_train is not None:
|
| 761 |
+
X_num = np.concatenate([X_num_train, X_num_val], axis=0)
|
| 762 |
+
X_num_train = X_num[train_ixs]
|
| 763 |
+
X_num_val = X_num[val_ixs]
|
| 764 |
+
|
| 765 |
+
if X_cat_train is not None:
|
| 766 |
+
X_cat = np.concatenate([X_cat_train, X_cat_val], axis=0)
|
| 767 |
+
X_cat_train = X_cat[train_ixs]
|
| 768 |
+
X_cat_val = X_cat[val_ixs]
|
| 769 |
+
|
| 770 |
+
return X_num_train, X_cat_train, y_train, X_num_val, X_cat_val, y_val
|
| 771 |
+
|
| 772 |
+
#############
|
| 773 |
+
|
| 774 |
+
def load_dataset_info(dataset_dir_name: str) -> Dict[str, Any]:
|
| 775 |
+
path = Path("data/" + dataset_dir_name)
|
| 776 |
+
info = util.load_json(path / 'info.json')
|
| 777 |
+
info['size'] = info['train_size'] + info['val_size'] + info['test_size']
|
| 778 |
+
info['n_features'] = info['n_num_features'] + info['n_cat_features']
|
| 779 |
+
info['path'] = path
|
| 780 |
+
return info
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/env.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Have not used in TabDDPM project.
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
import datetime
|
| 6 |
+
import os
|
| 7 |
+
import shutil
|
| 8 |
+
import typing as ty
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
|
| 11 |
+
PROJ = Path('tab-ddpm/').absolute().resolve()
|
| 12 |
+
EXP = PROJ / 'exp'
|
| 13 |
+
DATA = PROJ / 'data'
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def get_path(path: ty.Union[str, Path]) -> Path:
|
| 17 |
+
if isinstance(path, str):
|
| 18 |
+
path = Path(path)
|
| 19 |
+
if not path.is_absolute():
|
| 20 |
+
path = PROJ / path
|
| 21 |
+
return path.resolve()
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def get_relative_path(path: ty.Union[str, Path]) -> Path:
|
| 25 |
+
return get_path(path).relative_to(PROJ)
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def duplicate_path(
|
| 29 |
+
src: ty.Union[str, Path], alternative_project_dir: ty.Union[str, Path]
|
| 30 |
+
) -> None:
|
| 31 |
+
src = get_path(src)
|
| 32 |
+
alternative_project_dir = get_path(alternative_project_dir)
|
| 33 |
+
dst = alternative_project_dir / src.relative_to(PROJ)
|
| 34 |
+
dst.parent.mkdir(parents=True, exist_ok=True)
|
| 35 |
+
if dst.exists():
|
| 36 |
+
dst = dst.with_name(
|
| 37 |
+
dst.name + '_' + datetime.datetime.now().strftime('%Y%m%dT%H%M%S')
|
| 38 |
+
)
|
| 39 |
+
(shutil.copytree if src.is_dir() else shutil.copyfile)(src, dst)
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/metrics.py
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import enum
|
| 2 |
+
from typing import Any, Optional, Tuple, Dict, Union, cast
|
| 3 |
+
from functools import partial
|
| 4 |
+
|
| 5 |
+
import numpy as np
|
| 6 |
+
import scipy.special
|
| 7 |
+
import sklearn.metrics as skm
|
| 8 |
+
|
| 9 |
+
from . import util
|
| 10 |
+
from .util import TaskType
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class PredictionType(enum.Enum):
|
| 14 |
+
LOGITS = 'logits'
|
| 15 |
+
PROBS = 'probs'
|
| 16 |
+
|
| 17 |
+
class MetricsReport:
|
| 18 |
+
def __init__(self, report: dict, task_type: TaskType):
|
| 19 |
+
self._res = {k: {} for k in report.keys()}
|
| 20 |
+
if task_type in (TaskType.BINCLASS, TaskType.MULTICLASS):
|
| 21 |
+
self._metrics_names = ["acc", "f1"]
|
| 22 |
+
for k in report.keys():
|
| 23 |
+
self._res[k]["acc"] = report[k]["accuracy"]
|
| 24 |
+
self._res[k]["f1"] = report[k]["macro avg"]["f1-score"]
|
| 25 |
+
if task_type == TaskType.BINCLASS:
|
| 26 |
+
self._res[k]["roc_auc"] = report[k]["roc_auc"]
|
| 27 |
+
self._metrics_names.append("roc_auc")
|
| 28 |
+
|
| 29 |
+
elif task_type == TaskType.REGRESSION:
|
| 30 |
+
self._metrics_names = ["r2", "rmse"]
|
| 31 |
+
for k in report.keys():
|
| 32 |
+
self._res[k]["r2"] = report[k]["r2"]
|
| 33 |
+
self._res[k]["rmse"] = report[k]["rmse"]
|
| 34 |
+
else:
|
| 35 |
+
raise "Unknown TaskType!"
|
| 36 |
+
|
| 37 |
+
def get_splits_names(self) -> list[str]:
|
| 38 |
+
return self._res.keys()
|
| 39 |
+
|
| 40 |
+
def get_metrics_names(self) -> list[str]:
|
| 41 |
+
return self._metrics_names
|
| 42 |
+
|
| 43 |
+
def get_metric(self, split: str, metric: str) -> float:
|
| 44 |
+
return self._res[split][metric]
|
| 45 |
+
|
| 46 |
+
def get_val_score(self) -> float:
|
| 47 |
+
return self._res["val"]["r2"] if "r2" in self._res["val"] else self._res["val"]["f1"]
|
| 48 |
+
|
| 49 |
+
def get_test_score(self) -> float:
|
| 50 |
+
return self._res["test"]["r2"] if "r2" in self._res["test"] else self._res["test"]["f1"]
|
| 51 |
+
|
| 52 |
+
def print_metrics(self) -> None:
|
| 53 |
+
res = {
|
| 54 |
+
"val": {k: np.around(self._res["val"][k], 4) for k in self._res["val"]},
|
| 55 |
+
"test": {k: np.around(self._res["test"][k], 4) for k in self._res["test"]}
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
print("*"*100)
|
| 59 |
+
print("[val]")
|
| 60 |
+
print(res["val"])
|
| 61 |
+
print("[test]")
|
| 62 |
+
print(res["test"])
|
| 63 |
+
|
| 64 |
+
return res
|
| 65 |
+
|
| 66 |
+
class SeedsMetricsReport:
|
| 67 |
+
def __init__(self):
|
| 68 |
+
self._reports = []
|
| 69 |
+
|
| 70 |
+
def add_report(self, report: MetricsReport) -> None:
|
| 71 |
+
self._reports.append(report)
|
| 72 |
+
|
| 73 |
+
def get_mean_std(self) -> dict:
|
| 74 |
+
res = {k: {} for k in ["train", "val", "test"]}
|
| 75 |
+
for split in self._reports[0].get_splits_names():
|
| 76 |
+
for metric in self._reports[0].get_metrics_names():
|
| 77 |
+
res[split][metric] = [x.get_metric(split, metric) for x in self._reports]
|
| 78 |
+
|
| 79 |
+
agg_res = {k: {} for k in ["train", "val", "test"]}
|
| 80 |
+
for split in self._reports[0].get_splits_names():
|
| 81 |
+
for metric in self._reports[0].get_metrics_names():
|
| 82 |
+
for k, f in [("count", len), ("mean", np.mean), ("std", np.std)]:
|
| 83 |
+
agg_res[split][f"{metric}-{k}"] = f(res[split][metric])
|
| 84 |
+
self._res = res
|
| 85 |
+
self._agg_res = agg_res
|
| 86 |
+
|
| 87 |
+
return agg_res
|
| 88 |
+
|
| 89 |
+
def print_result(self) -> dict:
|
| 90 |
+
res = {split: {k: float(np.around(self._agg_res[split][k], 4)) for k in self._agg_res[split]} for split in ["val", "test"]}
|
| 91 |
+
print("="*100)
|
| 92 |
+
print("EVAL RESULTS:")
|
| 93 |
+
print("[val]")
|
| 94 |
+
print(res["val"])
|
| 95 |
+
print("[test]")
|
| 96 |
+
print(res["test"])
|
| 97 |
+
print("="*100)
|
| 98 |
+
return res
|
| 99 |
+
|
| 100 |
+
def calculate_rmse(
|
| 101 |
+
y_true: np.ndarray, y_pred: np.ndarray, std = None) -> float:
|
| 102 |
+
rmse = skm.mean_squared_error(y_true, y_pred) ** 0.5
|
| 103 |
+
if std is not None:
|
| 104 |
+
rmse *= std
|
| 105 |
+
return rmse
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
def _get_labels_and_probs(
|
| 109 |
+
y_pred: np.ndarray, task_type: TaskType, prediction_type: Optional[PredictionType]
|
| 110 |
+
) -> Tuple[np.ndarray, Optional[np.ndarray]]:
|
| 111 |
+
assert task_type in (TaskType.BINCLASS, TaskType.MULTICLASS)
|
| 112 |
+
|
| 113 |
+
if prediction_type is None:
|
| 114 |
+
return y_pred, None
|
| 115 |
+
|
| 116 |
+
if prediction_type == PredictionType.LOGITS:
|
| 117 |
+
probs = (
|
| 118 |
+
scipy.special.expit(y_pred)
|
| 119 |
+
if task_type == TaskType.BINCLASS
|
| 120 |
+
else scipy.special.softmax(y_pred, axis=1)
|
| 121 |
+
)
|
| 122 |
+
elif prediction_type == PredictionType.PROBS:
|
| 123 |
+
probs = y_pred
|
| 124 |
+
else:
|
| 125 |
+
util.raise_unknown('prediction_type', prediction_type)
|
| 126 |
+
|
| 127 |
+
assert probs is not None
|
| 128 |
+
labels = np.round(probs) if task_type == TaskType.BINCLASS else probs.argmax(axis=1)
|
| 129 |
+
return labels.astype('int64'), probs
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
def calculate_metrics(
|
| 133 |
+
y_true: np.ndarray,
|
| 134 |
+
y_pred: np.ndarray,
|
| 135 |
+
task_type: Union[str, TaskType],
|
| 136 |
+
prediction_type: Optional[Union[str, PredictionType]],
|
| 137 |
+
y_info: Dict[str, Any],
|
| 138 |
+
) -> Dict[str, Any]:
|
| 139 |
+
# Example: calculate_metrics(y_true, y_pred, 'binclass', 'logits', {})
|
| 140 |
+
task_type = TaskType(task_type)
|
| 141 |
+
if prediction_type is not None:
|
| 142 |
+
prediction_type = PredictionType(prediction_type)
|
| 143 |
+
|
| 144 |
+
if task_type == TaskType.REGRESSION:
|
| 145 |
+
assert prediction_type is None
|
| 146 |
+
assert 'std' in y_info
|
| 147 |
+
rmse = calculate_rmse(y_true, y_pred, y_info['std'])
|
| 148 |
+
r2 = skm.r2_score(y_true, y_pred)
|
| 149 |
+
result = {'rmse': rmse, 'r2': r2}
|
| 150 |
+
else:
|
| 151 |
+
labels, probs = _get_labels_and_probs(y_pred, task_type, prediction_type)
|
| 152 |
+
result = cast(
|
| 153 |
+
Dict[str, Any], skm.classification_report(y_true, labels, output_dict=True)
|
| 154 |
+
)
|
| 155 |
+
if task_type == TaskType.BINCLASS:
|
| 156 |
+
result['roc_auc'] = skm.roc_auc_score(y_true, probs)
|
| 157 |
+
return result
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/src/util.py
ADDED
|
@@ -0,0 +1,347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import argparse
|
| 2 |
+
import atexit
|
| 3 |
+
import enum
|
| 4 |
+
import json
|
| 5 |
+
import os
|
| 6 |
+
import pickle
|
| 7 |
+
import shutil
|
| 8 |
+
import sys
|
| 9 |
+
import time
|
| 10 |
+
import uuid
|
| 11 |
+
from copy import deepcopy
|
| 12 |
+
from dataclasses import asdict, fields, is_dataclass
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
from pprint import pprint
|
| 15 |
+
from typing import Any, Callable, List, Dict, Type, Optional, Tuple, TypeVar, Union, cast, get_args, get_origin
|
| 16 |
+
|
| 17 |
+
import __main__
|
| 18 |
+
import numpy as np
|
| 19 |
+
import tomli
|
| 20 |
+
import tomli_w
|
| 21 |
+
import torch
|
| 22 |
+
import typing as ty
|
| 23 |
+
|
| 24 |
+
from . import env
|
| 25 |
+
|
| 26 |
+
RawConfig = Dict[str, Any]
|
| 27 |
+
Report = Dict[str, Any]
|
| 28 |
+
T = TypeVar('T')
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class Part(enum.Enum):
|
| 32 |
+
TRAIN = 'train'
|
| 33 |
+
VAL = 'val'
|
| 34 |
+
TEST = 'test'
|
| 35 |
+
|
| 36 |
+
def __str__(self) -> str:
|
| 37 |
+
return self.value
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
class TaskType(enum.Enum):
|
| 41 |
+
BINCLASS = 'binclass'
|
| 42 |
+
MULTICLASS = 'multiclass'
|
| 43 |
+
REGRESSION = 'regression'
|
| 44 |
+
|
| 45 |
+
def __str__(self) -> str:
|
| 46 |
+
return self.value
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def update_training_log(training_log, data, metrics):
|
| 51 |
+
def _update(log_part, data_part):
|
| 52 |
+
for k, v in data_part.items():
|
| 53 |
+
if isinstance(v, dict):
|
| 54 |
+
_update(log_part.setdefault(k, {}), v)
|
| 55 |
+
elif isinstance(v, list):
|
| 56 |
+
log_part.setdefault(k, []).extend(v)
|
| 57 |
+
else:
|
| 58 |
+
log_part.setdefault(k, []).append(v)
|
| 59 |
+
|
| 60 |
+
_update(training_log, data)
|
| 61 |
+
transposed_metrics = {}
|
| 62 |
+
for part, part_metrics in metrics.items():
|
| 63 |
+
for metric_name, value in part_metrics.items():
|
| 64 |
+
transposed_metrics.setdefault(metric_name, {})[part] = value
|
| 65 |
+
_update(training_log, transposed_metrics)
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def raise_unknown(unknown_what: str, unknown_value: Any):
|
| 69 |
+
raise ValueError(f'Unknown {unknown_what}: {unknown_value}')
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def _replace(data, condition, value):
|
| 73 |
+
def do(x):
|
| 74 |
+
if isinstance(x, dict):
|
| 75 |
+
return {k: do(v) for k, v in x.items()}
|
| 76 |
+
elif isinstance(x, list):
|
| 77 |
+
return [do(y) for y in x]
|
| 78 |
+
else:
|
| 79 |
+
return value if condition(x) else x
|
| 80 |
+
|
| 81 |
+
return do(data)
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
_CONFIG_NONE = '__none__'
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def unpack_config(config: RawConfig) -> RawConfig:
|
| 88 |
+
config = cast(RawConfig, _replace(config, lambda x: x == _CONFIG_NONE, None))
|
| 89 |
+
return config
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
def pack_config(config: RawConfig) -> RawConfig:
|
| 93 |
+
config = cast(RawConfig, _replace(config, lambda x: x is None, _CONFIG_NONE))
|
| 94 |
+
return config
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
def load_config(path: Union[Path, str]) -> Any:
|
| 98 |
+
with open(path, 'rb') as f:
|
| 99 |
+
return unpack_config(tomli.load(f))
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def dump_config(config: Any, path: Union[Path, str]) -> None:
|
| 103 |
+
with open(path, 'wb') as f:
|
| 104 |
+
tomli_w.dump(pack_config(config), f)
|
| 105 |
+
# check that there are no bugs in all these "pack/unpack" things
|
| 106 |
+
assert config == load_config(path)
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
def load_json(path: Union[Path, str], **kwargs) -> Any:
|
| 110 |
+
return json.loads(Path(path).read_text(), **kwargs)
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
def dump_json(x: Any, path: Union[Path, str], **kwargs) -> None:
|
| 114 |
+
kwargs.setdefault('indent', 4)
|
| 115 |
+
Path(path).write_text(json.dumps(x, **kwargs) + '\n')
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
def load_pickle(path: Union[Path, str], **kwargs) -> Any:
|
| 119 |
+
return pickle.loads(Path(path).read_bytes(), **kwargs)
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
def dump_pickle(x: Any, path: Union[Path, str], **kwargs) -> None:
|
| 123 |
+
Path(path).write_bytes(pickle.dumps(x, **kwargs))
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
def load(path: Union[Path, str], **kwargs) -> Any:
|
| 127 |
+
return globals()[f'load_{Path(path).suffix[1:]}'](Path(path), **kwargs)
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
def dump(x: Any, path: Union[Path, str], **kwargs) -> Any:
|
| 131 |
+
return globals()[f'dump_{Path(path).suffix[1:]}'](x, Path(path), **kwargs)
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
def _get_output_item_path(
|
| 135 |
+
path: Union[str, Path], filename: str, must_exist: bool
|
| 136 |
+
) -> Path:
|
| 137 |
+
path = env.get_path(path)
|
| 138 |
+
if path.suffix == '.toml':
|
| 139 |
+
path = path.with_suffix('')
|
| 140 |
+
if path.is_dir():
|
| 141 |
+
path = path / filename
|
| 142 |
+
else:
|
| 143 |
+
assert path.name == filename
|
| 144 |
+
assert path.parent.exists()
|
| 145 |
+
if must_exist:
|
| 146 |
+
assert path.exists()
|
| 147 |
+
return path
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
def load_report(path: Path) -> Report:
|
| 151 |
+
return load_json(_get_output_item_path(path, 'report.json', True))
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
def dump_report(report: dict, path: Path) -> None:
|
| 155 |
+
dump_json(report, _get_output_item_path(path, 'report.json', False))
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
def load_predictions(path: Path) -> Dict[str, np.ndarray]:
|
| 159 |
+
with np.load(_get_output_item_path(path, 'predictions.npz', True)) as predictions:
|
| 160 |
+
return {x: predictions[x] for x in predictions}
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
def dump_predictions(predictions: Dict[str, np.ndarray], path: Path) -> None:
|
| 164 |
+
np.savez(_get_output_item_path(path, 'predictions.npz', False), **predictions)
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
def dump_metrics(metrics: Dict[str, Any], path: Path) -> None:
|
| 168 |
+
dump_json(metrics, _get_output_item_path(path, 'metrics.json', False))
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
def load_checkpoint(path: Path, *args, **kwargs) -> Dict[str, np.ndarray]:
|
| 172 |
+
return torch.load(
|
| 173 |
+
_get_output_item_path(path, 'checkpoint.pt', True), *args, **kwargs
|
| 174 |
+
)
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
def get_device() -> torch.device:
|
| 178 |
+
if torch.cuda.is_available():
|
| 179 |
+
assert os.environ.get('CUDA_VISIBLE_DEVICES') is not None
|
| 180 |
+
return torch.device('cuda:0')
|
| 181 |
+
else:
|
| 182 |
+
return torch.device('cpu')
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
def _print_sep(c, size=100):
|
| 186 |
+
print(c * size)
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
_LAST_SNAPSHOT_TIME = None
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
def backup_output(output_dir: Path) -> None:
|
| 193 |
+
backup_dir = os.environ.get('TMP_OUTPUT_PATH')
|
| 194 |
+
snapshot_dir = os.environ.get('SNAPSHOT_PATH')
|
| 195 |
+
if backup_dir is None:
|
| 196 |
+
assert snapshot_dir is None
|
| 197 |
+
return
|
| 198 |
+
assert snapshot_dir is not None
|
| 199 |
+
|
| 200 |
+
try:
|
| 201 |
+
relative_output_dir = output_dir.relative_to(env.PROJ)
|
| 202 |
+
except ValueError:
|
| 203 |
+
return
|
| 204 |
+
|
| 205 |
+
for dir_ in [backup_dir, snapshot_dir]:
|
| 206 |
+
new_output_dir = dir_ / relative_output_dir
|
| 207 |
+
prev_backup_output_dir = new_output_dir.with_name(new_output_dir.name + '_prev')
|
| 208 |
+
new_output_dir.parent.mkdir(exist_ok=True, parents=True)
|
| 209 |
+
if new_output_dir.exists():
|
| 210 |
+
new_output_dir.rename(prev_backup_output_dir)
|
| 211 |
+
shutil.copytree(output_dir, new_output_dir)
|
| 212 |
+
# the case for evaluate.py which automatically creates configs
|
| 213 |
+
if output_dir.with_suffix('.toml').exists():
|
| 214 |
+
shutil.copyfile(
|
| 215 |
+
output_dir.with_suffix('.toml'), new_output_dir.with_suffix('.toml')
|
| 216 |
+
)
|
| 217 |
+
if prev_backup_output_dir.exists():
|
| 218 |
+
shutil.rmtree(prev_backup_output_dir)
|
| 219 |
+
|
| 220 |
+
global _LAST_SNAPSHOT_TIME
|
| 221 |
+
if _LAST_SNAPSHOT_TIME is None or time.time() - _LAST_SNAPSHOT_TIME > 10 * 60:
|
| 222 |
+
import nirvana_dl.snapshot # type: ignore[code]
|
| 223 |
+
|
| 224 |
+
nirvana_dl.snapshot.dump_snapshot()
|
| 225 |
+
_LAST_SNAPSHOT_TIME = time.time()
|
| 226 |
+
print('The snapshot was saved!')
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
def _get_scores(metrics: Dict[str, Dict[str, Any]]) -> Optional[Dict[str, float]]:
|
| 230 |
+
return (
|
| 231 |
+
{k: v['score'] for k, v in metrics.items()}
|
| 232 |
+
if 'score' in next(iter(metrics.values()))
|
| 233 |
+
else None
|
| 234 |
+
)
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
def format_scores(metrics: Dict[str, Dict[str, Any]]) -> str:
|
| 238 |
+
return ' '.join(
|
| 239 |
+
f"[{x}] {metrics[x]['score']:.3f}"
|
| 240 |
+
for x in ['test', 'val', 'train']
|
| 241 |
+
if x in metrics
|
| 242 |
+
)
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
def finish(output_dir: Path, report: dict) -> None:
|
| 246 |
+
print()
|
| 247 |
+
_print_sep('=')
|
| 248 |
+
|
| 249 |
+
metrics = report.get('metrics')
|
| 250 |
+
if metrics is not None:
|
| 251 |
+
scores = _get_scores(metrics)
|
| 252 |
+
if scores is not None:
|
| 253 |
+
dump_json(scores, output_dir / 'scores.json')
|
| 254 |
+
print(format_scores(metrics))
|
| 255 |
+
_print_sep('-')
|
| 256 |
+
|
| 257 |
+
dump_report(report, output_dir)
|
| 258 |
+
json_output_path = os.environ.get('JSON_OUTPUT_FILE')
|
| 259 |
+
if json_output_path:
|
| 260 |
+
try:
|
| 261 |
+
key = str(output_dir.relative_to(env.PROJ))
|
| 262 |
+
except ValueError:
|
| 263 |
+
pass
|
| 264 |
+
else:
|
| 265 |
+
json_output_path = Path(json_output_path)
|
| 266 |
+
try:
|
| 267 |
+
json_data = json.loads(json_output_path.read_text())
|
| 268 |
+
except (FileNotFoundError, json.decoder.JSONDecodeError):
|
| 269 |
+
json_data = {}
|
| 270 |
+
json_data[key] = load_json(output_dir / 'report.json')
|
| 271 |
+
json_output_path.write_text(json.dumps(json_data, indent=4))
|
| 272 |
+
shutil.copyfile(
|
| 273 |
+
json_output_path,
|
| 274 |
+
os.path.join(os.environ['SNAPSHOT_PATH'], 'json_output.json'),
|
| 275 |
+
)
|
| 276 |
+
|
| 277 |
+
output_dir.joinpath('DONE').touch()
|
| 278 |
+
backup_output(output_dir)
|
| 279 |
+
print(f'Done! | {report.get("time")} | {output_dir}')
|
| 280 |
+
_print_sep('=')
|
| 281 |
+
print()
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
def from_dict(datacls: Type[T], data: dict) -> T:
|
| 285 |
+
assert is_dataclass(datacls)
|
| 286 |
+
data = deepcopy(data)
|
| 287 |
+
for field in fields(datacls):
|
| 288 |
+
if field.name not in data:
|
| 289 |
+
continue
|
| 290 |
+
if is_dataclass(field.type):
|
| 291 |
+
data[field.name] = from_dict(field.type, data[field.name])
|
| 292 |
+
elif (
|
| 293 |
+
get_origin(field.type) is Union
|
| 294 |
+
and len(get_args(field.type)) == 2
|
| 295 |
+
and get_args(field.type)[1] is type(None)
|
| 296 |
+
and is_dataclass(get_args(field.type)[0])
|
| 297 |
+
):
|
| 298 |
+
if data[field.name] is not None:
|
| 299 |
+
data[field.name] = from_dict(get_args(field.type)[0], data[field.name])
|
| 300 |
+
return datacls(**data)
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
def replace_factor_with_value(
|
| 304 |
+
config: RawConfig,
|
| 305 |
+
key: str,
|
| 306 |
+
reference_value: int,
|
| 307 |
+
bounds: Tuple[float, float],
|
| 308 |
+
) -> None:
|
| 309 |
+
factor_key = key + '_factor'
|
| 310 |
+
if factor_key not in config:
|
| 311 |
+
assert key in config
|
| 312 |
+
else:
|
| 313 |
+
assert key not in config
|
| 314 |
+
factor = config.pop(factor_key)
|
| 315 |
+
assert bounds[0] <= factor <= bounds[1]
|
| 316 |
+
config[key] = int(factor * reference_value)
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
def get_temporary_copy(path: Union[str, Path]) -> Path:
|
| 320 |
+
path = env.get_path(path)
|
| 321 |
+
assert not path.is_dir() and not path.is_symlink()
|
| 322 |
+
tmp_path = path.with_name(
|
| 323 |
+
path.stem + '___' + str(uuid.uuid4()).replace('-', '') + path.suffix
|
| 324 |
+
)
|
| 325 |
+
shutil.copyfile(path, tmp_path)
|
| 326 |
+
atexit.register(lambda: tmp_path.unlink())
|
| 327 |
+
return tmp_path
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
def get_python():
|
| 331 |
+
python = Path('python3.9')
|
| 332 |
+
return str(python) if python.exists() else 'python'
|
| 333 |
+
|
| 334 |
+
def get_catboost_config(real_data_path, is_cv=False):
|
| 335 |
+
ds_name = Path(real_data_path).name
|
| 336 |
+
C = load_json(f'tuned_models/catboost/{ds_name}_cv.json')
|
| 337 |
+
return C
|
| 338 |
+
|
| 339 |
+
def get_categories(X_train_cat):
|
| 340 |
+
return (
|
| 341 |
+
None
|
| 342 |
+
if X_train_cat is None
|
| 343 |
+
else [
|
| 344 |
+
len(set(X_train_cat[:, i]))
|
| 345 |
+
for i in range(X_train_cat.shape[1])
|
| 346 |
+
]
|
| 347 |
+
)
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/real.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e60fda0bb5a782d4e6917157f5a204d44e8e15de208c863574afc98855561477
|
| 3 |
+
size 68240502
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/test.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e68fec0fb16fb89b5e58bbb7949b744ebd11f8bf7b1d0c7aad908b17a2afb72
|
| 3 |
+
size 8530452
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/synthetic/pipeline_c15/val.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db13b576ba5284f2712b174f1b4445147bcb12fa295a4e38a1dc269d999d09fa
|
| 3 |
+
size 8528882
|
SynthData0523/main/c15/tabbyflow/tabbyflow-c15-20260513_061551/_efvfm_runtime/tests/conftest.py
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pytest
|
| 2 |
+
import numpy as np
|
| 3 |
+
import torch
|
| 4 |
+
import torch.nn.functional as F
|
| 5 |
+
from unittest.mock import MagicMock
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
# --------------- dimension configs ---------------
|
| 9 |
+
|
| 10 |
+
@pytest.fixture
|
| 11 |
+
def dims():
|
| 12 |
+
"""Standard mixed-data dimensions."""
|
| 13 |
+
return {"d_numerical": 4, "categories": np.array([3, 5, 2]), "batch_size": 8, "d_token": 16}
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
@pytest.fixture
|
| 17 |
+
def dims_numerical_only():
|
| 18 |
+
"""Numerical-only scenario (no categorical features)."""
|
| 19 |
+
return {"d_numerical": 5, "categories": None, "batch_size": 8, "d_token": 16}
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
@pytest.fixture
|
| 23 |
+
def dims_single():
|
| 24 |
+
"""Minimal scenario: 1 numerical, 1 categorical with 2 classes."""
|
| 25 |
+
return {"d_numerical": 1, "categories": np.array([2]), "batch_size": 4, "d_token": 8}
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
# --------------- dummy input factory ---------------
|
| 29 |
+
|
| 30 |
+
@pytest.fixture
|
| 31 |
+
def make_dummy_inputs():
|
| 32 |
+
"""Factory: returns (x_num, x_cat_onehot, x_cat_int, timesteps) from any dims."""
|
| 33 |
+
def _make(d_numerical, categories, batch_size):
|
| 34 |
+
torch.manual_seed(42)
|
| 35 |
+
x_num = torch.randn(batch_size, d_numerical)
|
| 36 |
+
if categories is not None and len(categories) > 0:
|
| 37 |
+
cat_parts = []
|
| 38 |
+
for k in categories:
|
| 39 |
+
indices = torch.randint(0, k, (batch_size,))
|
| 40 |
+
cat_parts.append(F.one_hot(indices, k).float())
|
| 41 |
+
x_cat_onehot = torch.cat(cat_parts, dim=1)
|
| 42 |
+
x_cat_int = torch.stack(
|
| 43 |
+
[torch.randint(0, k, (batch_size,)) for k in categories], dim=1
|
| 44 |
+
)
|
| 45 |
+
else:
|
| 46 |
+
x_cat_onehot = None
|
| 47 |
+
x_cat_int = None
|
| 48 |
+
timesteps = torch.rand(batch_size)
|
| 49 |
+
return x_num, x_cat_onehot, x_cat_int, timesteps
|
| 50 |
+
return _make
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
# --------------- model factories ---------------
|
| 54 |
+
|
| 55 |
+
@pytest.fixture
|
| 56 |
+
def make_tokenizer():
|
| 57 |
+
from ef_vfm.modules.transformer import Tokenizer
|
| 58 |
+
def _make(d_numerical, categories, d_token, bias=True):
|
| 59 |
+
cats = list(categories) if categories is not None else None
|
| 60 |
+
return Tokenizer(d_numerical, cats, d_token, bias)
|
| 61 |
+
return _make
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
@pytest.fixture
|
| 65 |
+
def make_transformer():
|
| 66 |
+
from ef_vfm.modules.transformer import Transformer
|
| 67 |
+
def _make(d_token, n_layers=2, n_heads=1, d_ffn_factor=4, activation='gelu'):
|
| 68 |
+
return Transformer(n_layers, d_token, n_heads, d_token, d_ffn_factor, activation=activation)
|
| 69 |
+
return _make
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
@pytest.fixture
|
| 73 |
+
def make_reconstructor():
|
| 74 |
+
from ef_vfm.modules.transformer import Reconstructor
|
| 75 |
+
def _make(d_numerical, categories, d_token):
|
| 76 |
+
cats = list(categories) if categories is not None else []
|
| 77 |
+
return Reconstructor(d_numerical, cats, d_token)
|
| 78 |
+
return _make
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
@pytest.fixture
|
| 82 |
+
def make_mlp():
|
| 83 |
+
from ef_vfm.modules.main_modules import MLP
|
| 84 |
+
def _make(d_in, dim_t=128, use_mlp=True):
|
| 85 |
+
return MLP(d_in, dim_t=dim_t, use_mlp=use_mlp)
|
| 86 |
+
return _make
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
@pytest.fixture
|
| 90 |
+
def make_unimodmlp():
|
| 91 |
+
from ef_vfm.modules.main_modules import UniModMLP
|
| 92 |
+
def _make(d_numerical, categories, d_token=16, n_layers=1, n_head=1,
|
| 93 |
+
factor=4, dim_t=64, activation='gelu'):
|
| 94 |
+
cats = list(categories) if categories is not None else []
|
| 95 |
+
return UniModMLP(
|
| 96 |
+
d_numerical, cats, n_layers, d_token,
|
| 97 |
+
n_head=n_head, factor=factor, dim_t=dim_t, activation=activation,
|
| 98 |
+
)
|
| 99 |
+
return _make
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
@pytest.fixture
|
| 103 |
+
def make_flow_model():
|
| 104 |
+
from ef_vfm.modules.main_modules import UniModMLP
|
| 105 |
+
from ef_vfm.models.flow_model import ExpVFM
|
| 106 |
+
def _make(d_numerical, categories, d_token=16, n_layers=1, dim_t=64):
|
| 107 |
+
cats_list = list(categories) if categories is not None else []
|
| 108 |
+
cats_np = np.array(cats_list)
|
| 109 |
+
model = UniModMLP(
|
| 110 |
+
d_numerical, cats_list, n_layers, d_token,
|
| 111 |
+
n_head=1, factor=4, dim_t=dim_t, activation='gelu',
|
| 112 |
+
)
|
| 113 |
+
flow = ExpVFM(
|
| 114 |
+
num_classes=cats_np,
|
| 115 |
+
num_numerical_features=d_numerical,
|
| 116 |
+
vf_fn=model,
|
| 117 |
+
device=torch.device('cpu'),
|
| 118 |
+
)
|
| 119 |
+
return flow
|
| 120 |
+
return _make
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
@pytest.fixture
|
| 124 |
+
def make_trainer():
|
| 125 |
+
"""Factory: creates a minimal Trainer with mocked external dependencies."""
|
| 126 |
+
from ef_vfm.modules.main_modules import UniModMLP
|
| 127 |
+
from ef_vfm.models.flow_model import ExpVFM
|
| 128 |
+
from ef_vfm.trainer import Trainer
|
| 129 |
+
|
| 130 |
+
def _make(d_numerical=4, categories=np.array([3, 5, 2]),
|
| 131 |
+
lr=0.001, max_grad_norm=1.0, warmup_epochs=0,
|
| 132 |
+
lr_scheduler='reduce_lr_on_plateau', steps=10, tmp_path=None):
|
| 133 |
+
|
| 134 |
+
cats_list = list(categories) if categories is not None else []
|
| 135 |
+
cats_np = np.array(cats_list)
|
| 136 |
+
|
| 137 |
+
model = UniModMLP(
|
| 138 |
+
d_numerical, cats_list, 1, 16,
|
| 139 |
+
n_head=1, factor=4, dim_t=64, activation='gelu',
|
| 140 |
+
)
|
| 141 |
+
flow = ExpVFM(
|
| 142 |
+
num_classes=cats_np,
|
| 143 |
+
num_numerical_features=d_numerical,
|
| 144 |
+
vf_fn=model,
|
| 145 |
+
device=torch.device('cpu'),
|
| 146 |
+
)
|
| 147 |
+
|
| 148 |
+
# Build a small synthetic dataset: [N, d_num + len(cats)] with int cat indices
|
| 149 |
+
n_samples = 32
|
| 150 |
+
x_num = torch.randn(n_samples, d_numerical)
|
| 151 |
+
if len(cats_list) > 0:
|
| 152 |
+
x_cat = torch.stack(
|
| 153 |
+
[torch.randint(0, k, (n_samples,)) for k in cats_list], dim=1
|
| 154 |
+
).float()
|
| 155 |
+
data = torch.cat([x_num, x_cat], dim=1)
|
| 156 |
+
else:
|
| 157 |
+
data = x_num
|
| 158 |
+
|
| 159 |
+
dataset = torch.utils.data.TensorDataset(data)
|
| 160 |
+
train_iter = torch.utils.data.DataLoader(dataset, batch_size=8, shuffle=False)
|
| 161 |
+
# DataLoader wraps in tuples; Trainer expects raw tensors, so use a wrapper
|
| 162 |
+
class _UnwrapLoader:
|
| 163 |
+
def __init__(self, loader):
|
| 164 |
+
self._loader = loader
|
| 165 |
+
def __iter__(self):
|
| 166 |
+
for (batch,) in self._loader:
|
| 167 |
+
yield batch
|
| 168 |
+
def __len__(self):
|
| 169 |
+
return len(self._loader)
|
| 170 |
+
|
| 171 |
+
save_path = str(tmp_path) if tmp_path else "/tmp"
|
| 172 |
+
trainer = Trainer(
|
| 173 |
+
flow=flow,
|
| 174 |
+
train_iter=_UnwrapLoader(train_iter),
|
| 175 |
+
dataset=MagicMock(),
|
| 176 |
+
test_dataset=MagicMock(),
|
| 177 |
+
metrics=MagicMock(),
|
| 178 |
+
logger=MagicMock(),
|
| 179 |
+
lr=lr,
|
| 180 |
+
weight_decay=0,
|
| 181 |
+
steps=steps,
|
| 182 |
+
batch_size=8,
|
| 183 |
+
check_val_every=steps + 1, # never evaluate during test
|
| 184 |
+
sample_batch_size=8,
|
| 185 |
+
model_save_path=save_path,
|
| 186 |
+
result_save_path=save_path,
|
| 187 |
+
lr_scheduler=lr_scheduler,
|
| 188 |
+
max_grad_norm=max_grad_norm,
|
| 189 |
+
warmup_epochs=warmup_epochs,
|
| 190 |
+
device=torch.device('cpu'),
|
| 191 |
+
)
|
| 192 |
+
return trainer
|
| 193 |
+
return _make
|