Home > other >  Help 'RandomizedLogisticRegression object has no attribute' get_support 'how to solve
Help 'RandomizedLogisticRegression object has no attribute' get_support 'how to solve

Time:10-07

Small white one, just began to learn machine learning, not sklearn before. In the import linear_model RamdomizedLogisticRegression
On the Internet to find the answer, the original is because "sklearn 0.21.3 (version) has not randomized_l1 linear_model folders below. Py files, and RandomizedLogisticRegression is inside the file, remove sklearn RandomizedLogisticRegression has been package, moved to scikit - learn - contrib/stability - in the selection, installation method as shown in the link),"
So I according to the https://blog.csdn.net/michaelguangg/article/details/100036650 download stability - selection method mentioned here, and the installation was successful,
The from stability_selection. Randomized_lasso import RandomizedLogisticRegression also normal,
But when I wrote
R1=RLR ()
R1. Fit (x, y)
R1. Get_support ()
Times wrong, 'RandomizedLogisticRegression object has no attribute' get_support '

Excuse me each a great god, and the problem how to solve?
  • Related