Back to Scikit Learn

32644.Efficiency

doc/whats_new/upcoming_changes/sklearn.linear_model/32644.efficiency.rst

1.8.0507 B
Original Source
  • :class:linear_model.LogisticRegression with solver="lbfgs" now estimates the gradient of the loss at float32 precision when fitted with float32 data (X) to improve training speed and memory efficiency. Previously, the input data would be implicitly cast to float64. If you relied on the previous behavior for numerical reasons, you can explicitly cast your data to float64 before fitting to reproduce it. By :user:Omar Salman <OmarManzoor> and :user:Olivier Grisel <ogrisel>.