Closed lmossina closed 9 months ago
Maybe we could think of a way to make this import easier? (e.g. directly via deel.puncc.regression
)
For instance:
from deel.puncc.api.prediction import BasePredictor
To:
from deel.puncc.regression import SplitCP, BasePredictor
Put this import in __init__.py
to make it visible when importing SplitCP
? something of this kind
Module
Regression
Contact Details
No response
Feature Request
Would it be possible to avoid hand-wrapping my own pre-trained sklearn model with
BasePredictor
?That is, pass directly my
model
toSplitCP
, for instance?See below for minimal example, which will raise an error for
cp.fit(...)
:AttributeError: 'LinearRegression' object has no attribute 'is_trained'
A minimal example
Version
v0.9
Environment