Quantcast
Channel: Data Science, Analytics and Big Data discussions - Topics tagged data_science
Viewing all articles
Browse latest Browse all 787

Getting p-value, r-squared and adjusted r-squared value in python

$
0
0

@shubhiverma wrote:

How to calculate the p value, r squared and adjusted r squared value in a linear regression model in python??

model:

regr=linear_model.LinearRegression()
regr.fit(x_train,y_train)
regr.predict(y_test)

is there any predefined function for calculating the above mentioned values apart from using OLS??

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 787

Trending Articles