File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
+ import logging
14
15
15
16
import numpy as np
16
17
import theano .tensor as tt
20
21
from pymc3 .glm .utils import any_to_tensor_and_labels
21
22
from pymc3 .model import Deterministic , Model
22
23
24
+ _log = logging .getLogger ("pymc3" )
23
25
__all__ = ["LinearComponent" , "GLM" ]
24
26
25
27
@@ -216,6 +218,10 @@ def from_formula(
216
218
See `patsy.dmatrix` and `patsy.EvalEnvironment` for details.
217
219
Other arguments are documented in the constructor.
218
220
"""
221
+ _log .warning (
222
+ "The glm module is deprecated and will be removed in version 4.0\n We recommend to"
223
+ + " instead use Bambi https://bambinos.github.io/bambi/"
224
+ )
219
225
import patsy
220
226
221
227
eval_env = patsy .EvalEnvironment .capture (eval_env , reference = 1 )
You can’t perform that action at this time.
0 commit comments