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 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14+ import logging
1415
1516import numpy as np
1617import theano .tensor as tt
2021from pymc3 .glm .utils import any_to_tensor_and_labels
2122from pymc3 .model import Deterministic , Model
2223
24+ _log = logging .getLogger ("pymc3" )
2325__all__ = ["LinearComponent" , "GLM" ]
2426
2527
@@ -216,6 +218,10 @@ def from_formula(
216218 See `patsy.dmatrix` and `patsy.EvalEnvironment` for details.
217219 Other arguments are documented in the constructor.
218220 """
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+ )
219225 import patsy
220226
221227 eval_env = patsy .EvalEnvironment .capture (eval_env , reference = 1 )
You can’t perform that action at this time.
0 commit comments