in python , write a function name def liner_reg( x, y)
x and y are two array contain numeric values, the function
should return 3 things which are the intercept, model coefficients,
and model object.
finding the model object is most important. please use sklearn.
(liner reggrassion)
values for x and y:
X: [[ 1.7 ] [ 5.25] [ 5.5 ] [ 0.4 [ 4.5 2.64] [ 1.68 [ 0. ] [ 0. [15.6 [ 6.52] [ 0.55 [ 2.1 ] 1.22 [ 3. [ 1. [ 1.5 [ 3.52] [ 1.9 ] [ 2.01]] y: [[0] [2.75] [0. [1.82] [0. [3.06] 10. [0. 10. [0. [2.75] [1.66] [0. [1. [2. [1.76 [2.7 [0. [0. [0. ]]
in python , write a function name def liner_reg( x, y) x and y are two array contain numeric values, the function should
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am