Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

sklearn adjusted r2

from sklearn.metrics import r2_score
R2 = r2_score(actual, predicted)
Adj_r2 = 1-(1-R2)*(n-1)/(n-p-1)

# here
# n = number of observation, p = number of features
Comment

PREVIOUS NEXT
Code Example
Python :: How to convert ton to kg using python 
Python :: Running setup.py bdist_wheel for opencv-python: still running... 
Python :: pt_core_news_sm spacy download 
Python :: add a dot in a long number in python 
Python :: python detect color on screen 
Python :: how to set the size of a gui in python 
Python :: print zip object python 
Python :: check if a value in dataframe is nan 
Python :: open dicom images python 
Python :: check os python 
Python :: set_interval() 
Python :: flip specific bit python 
Python :: dataframe catch data types 
Python :: pandas rename column name 
Python :: pandas row number by group 
Python :: python logging to console exqmple 
Python :: python get weather temperature 
Python :: python pdf merger 
Python :: python difference between unique and nunique 
Python :: python conditional assignment 
Python :: how do you count most frequent item in a list in python 
Python :: flask run on ip and port 
Python :: likeliness python 
Python :: dataclass post init 
Python :: sort list of string datetimes python 
Python :: program to find even numbers in python 
Python :: error warning tkinter 
Python :: convert number to binary python 
Python :: random with probability python 
Python :: save pandas into csv 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =