Last answered:

08 Feb 2024

Posted on:

24 Nov 2021

0

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:
image.png

Thanks,
Isaac

7 answers ( 0 marked as helpful)
Instructor
Posted on:

24 Nov 2021

0

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_Xfit_interceptn_jobsnormalize , as well as positive , by calling the get_params() method as follows:

reg.get_params()

Hope this helps!

Kind regards,
365 Hristina

Posted on:

08 Feb 2024

0

@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?

Instructor
Posted on:

08 Feb 2024

0

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

Posted on:

08 Feb 2024

0

Name: scikit-learn
Version: 1.3.0

Posted on:

08 Feb 2024

0

Same result after restarting the kernel.

The line of code reg.get_params() is not outputing the value of all paramaters.

Instructor
Posted on:

08 Feb 2024

0

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

Posted on:

08 Feb 2024

1

Ok so I ran the code immediately after declaring reg. 

Thanks, resolved.

Submit an answer