Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Automated Bidirectional Stepwise Selection On Python

License

NotificationsYou must be signed in to change notification settings

emirhankartal-py/python_bidirectional_stepwise_selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Bidirectional Stepwise Selection

This script is about the automated bidirectional stepwise selection. You can easily apply on Dataframes. This function returns not only the final features but also elimination iterations, so you can track what exactly happened at the iterations.

You can apply it on both Linear and Logistic problems and easily define stay and enter significance limits. Eliminations can be applied with Akaike information criterion (AIC), Bayesian information criterion (BIC), R-squared (Only works with linear), Adjusted R-squared (Only works with linear). Also, you don't have to worry about varchar variables, the code will handle it for you.Enjoy the code!

Plase let me know if there is any logic erros or bugs in the code !

Required Libraries: pandas, numpy, statmodels

See more about stepwise regression :https://en.wikipedia.org/wiki/Stepwise_regression

Thanks to @talhahascelik for base forward selection codes!


[8]ページ先頭

©2009-2025 Movatter.jp