Calculating AIC/BIC values of model in python (sklearn)

Hi all , I came across aic and bic values which helps us compare two models , in general .I am aware that stats package in python helps me with the AIC value of the linear regression model , but what if i have to calculate it after using my sklearn package for linear regression . Also does aic and bic value only works for comparison of linear regression models ??

© Copyright 2013-2019 Analytics Vidhya