Python logistic regression (using a perceptron) classifier to recognize cats.
- pip:
pip3 install -r requirements.txt
or
- pipenv:
pipenv install
If you're not using pipenv
python3 src/logistic_regression.py
If you're using pipenv
pipenv run python src/logistic_regression.py
Add your own image in the folder images
, then go to line 243 in src/logistic_regression.py
and replace my_image_1.jpg
by the name and its extension of the new image, finally run the application again.
Test accuracy is 70% which is OK for a simple model like this. It uses a small dataset, and not tuning actions were performed over the hyperparameters.