Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
kristjansuligoj f6d8636e6e
Update data dvc
10 minutes ago
449d2a2618
Added dvc
2 weeks ago
784c3cfbee
Updated workflow
1 day ago
f6d8636e6e
Update data dvc
10 minutes ago
7b7a51e4e9
Updated station indexes, so API now works correctly
1 day ago
b3da2f08f2
Update data dvc
17 minutes ago
gx
7397d977c9
Updated suite
1 day ago
8454f6c2ca
Update data dvc
13 minutes ago
src
9d14731138
train_model.py now uses mlflow to track models
22 hours ago
00f1ef6e0e
Added tests for API endpoints, and added a job step to workflow, that runs the tests
2 weeks ago
754222aae4
Update data dvc
22 minutes ago
449d2a2618
Added dvc
2 weeks ago
5477dc78fe
Added new dependencies, created a new poetry.lock, and created a .env file
22 hours ago
7fc172d420
Dockerfile added
1 month ago
30254febc0
Updated README.md and added test-api-data.json, so user can test the API
1 month ago
f6d8636e6e
Update data dvc
10 minutes ago
73156b7f07
Added 'ROOT_DIR' and used it in scripts
1 month ago
5477dc78fe
Added new dependencies, created a new poetry.lock, and created a .env file
22 hours ago
5477dc78fe
Added new dependencies, created a new poetry.lock, and created a .env file
22 hours ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

You have to be logged in to leave a comment. Sign In

IIS - MBajk prediction app

Description

This app uses a RNN model to predict available bike stands at a specific stop, based on data on previous days.

Requirements

  • Poetry
  • Python >= 3.9

Dependencies

This project uses Poetry for dependency management. Poetry takes care of installing all the necessary dependencies for running the application.

Installation

  1. Make sure you have Poetry installed. You can check by running the following command:

    poetry --version
    

    If not installed, follow the Poetry installation guide to install Poetry.

  2. Clone this repository:

    git clone https://github.com/kristjansuligoj/iis-vaja.git
    
  3. Navigate to the project directory:

    cd iis-vaja
    
  4. Install project dependencies:

    poetry install
    

Usage

To run the API, use the following command:

poetry run api

Once the API is running, it exposes an endpoint at http://0.0.0.0:5000/predict/mbajk.

Making Predictions

To get a prediction, send a POST request to the endpoint with previous data points. You can use tools like cURL, Postman, or any HTTP client library.

Testing the API

An example of the raw body that should be sent for testing the API can be found in /data/test/test-api-data.json. You can use this sample data to verify that the API is functioning correctly.

Tip!

Press p or to see the previous file or, n or to see the next file

About

No description

Collaborators 1

Comments

Loading...