Skip to main content

Software Development Kit for connecting to the thnkrAPI

Project description

Description

Welcome to thnkrAI’s Pricing Model and SDK documentation.

thnkrAI allows you to conduct detailed pricing analysis on any kind of product or product datasets you want in an easy and accessible way. thnkrAI’s pricing model can bring enabling price predictions, discovery, and insights to your data.

Use the thnkrAI SDK to quickly read product information and predict prices using the model’s price prediction endpoint.

Model Overview

thnkrAI’s General Pricing Model

Model Description: Text-to-Price Model takes in product data from everyday consumer products and predicts an estimated price based on that information.

Model Type: Natural Language Processing (NLP); Regression Model

Model Input: String of product data (title/description)

Model Output: Numerical float as the predicted price ($USD)

Key Features: Natural Language Processing, Character vectorization, Regression.

Model Evaluation: Evaluated using Mean Absolute Percentage Error (MAPE), R-Squared (R2), and Mean Squared Error (MSE).

Installation

!pip install thnkrSDK

thnkrSDK Integration

LICENSE: MIT

import thnkrSDK as thnkr

model = 'general_v1'

data = {
    "Title": "EXAMPLE PRODUCT TITLE/DATA",
}

username = "USERNAME"
password = "PASSWORD"

prediction = thnkr.predict(model, data, username, password)

Example Output:

{'Prediction': 59.99}

Contact Information

Model Limitations

  • Model is currently trained on limited text data from products listed online. The products come from one online ecommerce marketplace, meaning products found on other marketplaces may be interpreted differently by the model. We are currently working on collecting more product data from a multitude of various online sources to combat this issue.
  • If the product data input is not descriptive enough or lacks substantial detail, the model may return inaccurate price predictions compared to those with substantial detail. To combat this, we are working on training the model with more diverse lengths of input strings.

Support

Version History

  • Trained November 15, 2023: thnkrAI general_v1

Base URL

  • https://api.thnkrai.com

Parameters

thnkr.predict('model', 'data_input', 'username', 'password')

Errors

This API uses the following error codes:

  • 200 Successful Request: The request was malformed or missing required parameters.
  • 400 Bad Request: The request was malformed or missing required parameters.
  • 401 Unauthorized: The API key provided was invalid or missing.
  • 404 Not Found: The requested resource was not found.
  • 500 Internal Server Error: An unexpected error occurred on the server.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thnkrSDK-0.0.7.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thnkrSDK-0.0.7-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file thnkrSDK-0.0.7.tar.gz.

File metadata

  • Download URL: thnkrSDK-0.0.7.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for thnkrSDK-0.0.7.tar.gz
Algorithm Hash digest
SHA256 236304b356926dcc2439e851f043382f38b3f34a6b1b34b58cfa07f036acd093
MD5 2da5fb28c30ea710863a6668a825af79
BLAKE2b-256 e04af84835550ccbf1003ba3d3f9e890385cec9aa27d7275273fe39cdcaf08ee

See more details on using hashes here.

File details

Details for the file thnkrSDK-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: thnkrSDK-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for thnkrSDK-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5a3d210786ba2dbf25fbf0f43bdcbdbad82491fa9f9fb3c8dc6c76f97dce0ec1
MD5 a43ea9684e0456318890de467281c6e8
BLAKE2b-256 c01bfac9407069ad013d0b887914bbbba6f95f80d865745cc035439c5541d925

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page