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
- Contact the thnkrAI team at contact@thnkrai.com with any questions or concerns
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
- If you have any issues or questions please contact us at contact@thnkrai.com
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thnkrSDK-0.0.6.tar.gz.
File metadata
- Download URL: thnkrSDK-0.0.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
190461166eeed00e591ed5fc4816dfd6dc7dc69c70781449f6a520ac78becff3
|
|
| MD5 |
8b9ec855fc894279ac78dc19267bb1a1
|
|
| BLAKE2b-256 |
f7f939007007034cf3fad756baff5b5354f25e56a6130f57546b83259579e407
|
File details
Details for the file thnkrSDK-0.0.6-py3-none-any.whl.
File metadata
- Download URL: thnkrSDK-0.0.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4a164f94760d231f5ed26b1534394c303176f8bf93827d55156ca8de256ac5e
|
|
| MD5 |
4efcf8a09c43ab29ad40af9dd84c2a70
|
|
| BLAKE2b-256 |
78acc1c127bc45983925657b2b21383cdfb0ba51d623260e4ef1b17b7a2e9054
|