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

username = "YOUR_USERNAME"
password = "YOUR_PASSWORD"

model = "general_v1"
product_title = "EXAMPLE_TEXT"

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

Example Output:

55.49

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.4.tar.gz (3.9 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.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thnkrSDK-0.0.4.tar.gz
  • Upload date:
  • Size: 3.9 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.4.tar.gz
Algorithm Hash digest
SHA256 f9d2c3bb3391368e105c0b3b9f205fd8409f04ff735bae08206ca9fd44996c32
MD5 c40f644a069deba24b24344104438199
BLAKE2b-256 1c41f7b5b506f33c42e9c911323f1b05329665bcd478e90b71bb4b9a959ef138

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thnkrSDK-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5c9075805f3a1134299b09e13e825c07d73cbc52de323b9476c4db6618a71441
MD5 af510fa99681529adea05b88a46df330
BLAKE2b-256 0ee1256b3d936360fd7e3b10b206d2d9a7c4f70e14584bdadfac3ad68a8a3435

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