Backport PR 1841 on branch 0.11.x ((fix): allow init without X and correct shape inferred)
Backport PR 1841 on branch 0.11.x ((fix): allow init without X and correct shape inferred): a task in life-science-SWE1.0 (Harbor dataset). Title: Backport PR 1841 on branch 0.11.x ((fix): allow init without X and correct shape inferred)
The task
**Title:** Backport PR #1841 on branch 0.11.x ((fix): allow init without `X` and correct shape inferred)
Part of scalingX/life-science-SWE1.0.