Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Python is a programming language commonly used for machine learning. Use this tag for any *on-topic* question that (a) involves `Python` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `Python`.
0
votes
Difference Between GLM predict Output in R vs. GLM predict Output in Python (statsmodels) Lo...
It turns out that the following script in R GLM, family=binomial
predict(logrfit, newdata=dfR, type="response")
has its counterpart in Python statsmodel GLM, family=sm.families.Binomial() as
model.mu … This means that in the question I posted earlier for this R script:
predict(logrfit, newdata=dfR, type="response")
The equivalent Python form is not mod.predict(dfP), but rather,
mod.mu
where mod is …
0
votes
0
answers
95
views
AIC and BIC Manual Calculations Are a Bit Off From Statsmodels Estimates in Python
I ran a multiple regression using statsmodels. I wanted to verify my understanding of calculations for log-likelihood (ll), AIC and BIC. So I attempted to manually calculate the ll, AIC and BIC for th …
1
vote
2
answers
704
views
Difference Between GLM predict Output in R vs. GLM predict Output in Python (statsmodels) Lo...
I am just working on trying to port some R script to Python. I am fairly new to the Python language. I have been going through the R script and converting it. … I just need some help in figuring out how Python is running, to lead to the differences. To make it
easier for reproducibility, I will include both my R and Python scripts. …