Text Vectorizer (DP_VEC)
Transform textual data into numerical representations that are compatible with machine learning models, enabling efficient processing of text-based tasks.
Text Vectorizers are tools used to convert textual data into numerical representations suitable for machine learning models. They process text inputs and transform them into feature vectors, enabling the API to perform natural language processing and text-based tasks efficiently.
Supported Vectorizers:
TF-IDF Vectorizer: Assigns weights to words based on their importance in a document and rarity across the dataset, capturing their significance for modeling.
Count Vectorizer: Counts the occurrences of each word in a document, representing it as a sparse matrix with word frequencies.
Hashing Vectorizer: Converts words into numerical indices using a hashing trick, providing memory-efficient representations.
These vectorizers are crucial for handling text data in the API, facilitating tasks like text classification, sentiment analysis, and other natural language processing tasks.
Sample Request
The request performs text vectorization using the TF-IDF vectorizer with specified boundaries to scale the data on the specified variables.
Parameter Details
Principal Component Analysis
POST
https://autogon.ai/api/v1/engine/start
Request Body
project_id*
int
current project ID
parent_id*
int
parent block ID
block_id*
int
current block ID
function_code*
String
block's function code
args*
object
block arguments
boundariestoscale
String
boundaries to vectorize
dataset/x/y/xtrain/ytrain/xtest/ytest
bool
variables to apply vectorizer
vectorizer
String
Type of vectorizer to apply:
tfidf
: Converts text data into numerical features based on term frequency-inverse document frequency, capturing word importance in documents and across the corpus.
count
: Transforms text data into numerical features by counting the occurrences of words
hashing
: Uses a hashing trick to map words into fixed-size feature vectors
Last updated