Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

Latest commit

 

History

History
93 lines (67 loc) · 3.29 KB

File metadata and controls

93 lines (67 loc) · 3.29 KB

Python application CodeQL Codacy Badge Codacy Badge


Avis Restau : improve the AI product of your start-up

Repository of OpenClassrooms' AI Engineer path, project #6

Goal : use Scikit-Learn and Keras conduct NLP, sentiment analysis and topic modeling on textual reviews, and CV for image classification.

You can see the results here :

Installation

Prerequisites

Virtual environment

# python -m venv env
# > or just :
make venv
source env/bin/activate

Dependencies

# pip install --upgrade jupyterlab ipykernel ipywidgets widgetsnbextension graphviz python-dotenv requests matplotlib seaborn plotly numpy statsmodels pandas sklearn lightgbm nltk spacy gensim pyldavis Pillow scikit-image opencv-python tensorflow
# > or :
# pip install -r requirements.txt
# > or just :
make install

Usage

Run Notebook

jupyter-lab notebooks/main.ipynb

Quality Assurance

# make isort
# make format
# make lint
# make bandit
# make mypy
# make test
# > or just :
make qa

Troubleshooting

  • Fix Plotly issues with JupyterLab

cf. Plotly troubleshooting

jupyter labextension install jupyterlab-plotly
  • If using Jupyter Notebook instead of JupyterLab, uncomment the following lines in the notebook
import plotly.io as pio
pio.renderers.default='notebook'