This repository was archived by the owner on Sep 3, 2023. It is now read-only.
This repository was archived by the owner on Sep 3, 2023. It is now read-only.
Add Endpoint to store mislabeled tweets #5
Open
Description
Goal
Create a new public API endpoint where mislabeled tweets can be sent.
Description
Add a new endpoint POST /mislabeled_tweet
to the public API.
It should accept the following parameters:
text
(string): the text of the tweet (html removed?)tweet_id
(string): ID of the tweetprediction_value
(float): the prediction value the model returned for the tweetuser_threshold
(float): the current threshold value the user has setmodel_version
(int): the model version the prediction was made with
The new feedback entries should be stored in a new database table, feedback
.
Tasks
- add new database table
- add new route
- add new endpoint to README