Context
HallucinationDetector(BaseEstimator, ClassifierMixin) and EntropyFeatureExtractor(BaseEstimator, TransformerMixin) are introduced in #239. Once these classes exist, every import artefactual requires sklearn. Currently sklearn is optional under [calibration].
This issue must be merged before #239 — otherwise the first commit importing BaseEstimator will break installs without the [calibration] extra.
Changes
- Move
scikit-learn>=1.6.0 from [project.optional-dependencies.calibration] to [project.dependencies] in pyproject.toml
- Remove sklearn from
[calibration] optional deps (it is now always present)
- Verify
check_estimator is runnable without installing the [calibration] extra
Acceptance criteria
pip install artefactual (no extras) installs sklearn
from artefactual import EPR works with no extras installed
- CI matrix runs
check_estimator in the base install
Context
HallucinationDetector(BaseEstimator, ClassifierMixin)andEntropyFeatureExtractor(BaseEstimator, TransformerMixin)are introduced in #239. Once these classes exist, everyimport artefactualrequires sklearn. Currently sklearn is optional under[calibration].This issue must be merged before #239 — otherwise the first commit importing
BaseEstimatorwill break installs without the[calibration]extra.Changes
scikit-learn>=1.6.0from[project.optional-dependencies.calibration]to[project.dependencies]inpyproject.toml[calibration]optional deps (it is now always present)check_estimatoris runnable without installing the[calibration]extraAcceptance criteria
pip install artefactual(no extras) installs sklearnfrom artefactual import EPRworks with no extras installedcheck_estimatorin the base install