AllenNeuralDynamics / AllenNeuralDynamics/aind-dynamic-foraging-models

logistic_regression.fit_logistic_regression throws a future warning about "penalty" kwarg

未关闭
#60 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
2
派生
1
平均合并
7 小时 46 分钟
30 天内合并 PR
8

描述

When calling this function, a FutureWarning is generated about a change in how the penalty keyword argument is used

> /opt/conda/lib/python3.12/site-packages/sklearn/linear_model/_logistic.py:1135: FutureWarning: 'penalty' was deprecated in version 1.8 and will be removed in 1.10. To avoid this warning, leave 'penalty' set to its default value and use 'l1_ratio' or 'C' instead. Use l1_ratio=0 instead of penalty='l2', l1_ratio=1 instead of penalty='l1', and C=np.inf instead of penalty=None.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。