/connexion-example

Primary LanguageJupyter Notebook

Simple scikit learn classifier example

  • classifier: Directory containing simple Jupyter notebook to train a news classifier and pickled version of the classifier
  • swagger.yaml: REST API Swagger definition
  • app.py: basic rest endpoints
  • requirements.txt: list of required Python libraries
  • test.sh: shell script to execute example HTTP requests against the pet shop API

Running Locally

You can run the Python application directly on your local operating system:

    $ sudo pip3 install -r requirements.txt
    $ ./app.py # start the HTTP server