# Logistic Regression from the Scratch
**Please kindly note that some mathematical expressions might not be properly rendered in the Github online IPython viewer. Please use [nbviewer](http://nbviewer.jupyter.org/github/upul/logistic_regression/blob/master/logistic_regression_1.ipynb)**
### Case Study: Determine whether a person makes over 50K a year
The main objective of this set of notebooks is to implement Logistic Regression from the scratch. We start this by deriving negative log likelihood of the logistic regression. Then, in order to create logistic regression algorithm, negative log likelihood function will be optimized using a simple optimization algorithm called gradient descent. Additionally, we will discuss a lot of related details such as regularization, handing large dataset and much more.
In the later part of each notebook, we show how to use our simple logistic regression implementation to build predictive models for real-world applications using actual datasets. So key features of these notebooks are:
* Derive negative log likelihood of the logistic regression algorithm.
* Build logistic regression model from the scratch using Python/Numpy.
* Basic building blocks (written as Python functions) of the logistic regression model will be tested using unit tests.
* Run the logistic regression algorithm against a simple 2D dataset.
* Explore regularization.
* Handling large datasets using mini-batch gradient descent.
* Apply logistic regression algorithm for practical datasets.
### Install
This project requires python 2.7 and following Python libraries installed.
* [numpy](http://www.numpy.org/)
* [pandas](http://pandas.pydata.org/)
### Run
In a terminal or command window, navigate to the top-level project directory logistic_regression/(that contains this README) and run the following commands:
`ipython notebook logistic_regression_[1|2].ipynb`
This will open the IPython Notebooks file in your browser.
**Please kindly note that some mathematical expressions might not be properly rendered in the Github online IPython viewer.**
没有合适的资源?快使用搜索试试~ 我知道了~
logistic_regression:使用Python和Numpy从头开始进行Logistic回归.zip
共3个文件
md:1个
ipynb:1个
data:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 33 浏览量
2023-09-25
14:23:23
上传
评论
收藏 595KB ZIP 举报
温馨提示
logistic_regression:使用Python和Numpy从头开始进行Logistic回归.zip
资源推荐
资源详情
资源评论
收起资源包目录
logistic_regression:使用Python和Numpy从头开始进行Logistic回归.zip (3个子文件)
T
logistic_regression-master
data
adult.data 3.79MB
logistic_regression_1.ipynb 247KB
README.md 2KB
A
共 3 条
- 1
资源评论
处处清欢
- 粉丝: 150
- 资源: 2471
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功