The version of scikit-learn used by the instructor
According to conda list, my installed version of scikit learn is
scikit-learn 1.0.1 py38hae1ba45_0
My LinearRegressiopn(x_matrix,y) does not produce same output as the instructor.
My output is simply as following:
Thanks,
Isaac
Hey Isaac,
Thank you for your question!
You are correct, the developers have made some changes to the output. Nevertheless, you can still check the values of copy_X
, fit_intercept
, n_jobs
, normalize
, as well as positive
, by calling the get_params()
method as follows:
reg.get_params()
Hope this helps!
Kind regards,
365 Hristina
@Hristina Hristova.
I ran this reg.get_params() with and without puting any parameter inside it and did not work.
Can you tell how how to use this line of code to get the lectur's display?
Hey Olanike,
Thank you for reaching out!
The line of code reg.get_params()
should output the value of all paramaters. Could you please restart the kernel of your notebook and run the code anew in sequence?
Additionally, could you let me know the version of scikit-learn
you are using? You can check that by running the command:
pip show scikit-learn
Thank you.
Kind regards,
365 Hristina
Name: scikit-learn
Version: 1.3.0
Same result after restarting the kernel.
The line of code reg.get_params() is not outputing the value of all paramaters.
Hey again Olanike,
It's strange that you don't get any output. Are you sure that the type of cell is Code and not any of the other options?
Kind regards,
365 Hristina
Ok so I ran the code immediately after declaring reg.
Thanks, resolved.