Support Vector Machine (ML_CN_3)
This functionality creates a decision boundary based on the support vectors, and classifies new input data based on which side of the boundary it falls on.
In SVM, the algorithm finds the best possible line (or hyperplane in higher dimensions) that can separate two classes of data. It does this by identifying the data points closest to the dividing line, which are called support vectors, and maximizing the margin between the two classes.
Once the best line is identified, it can be used to predict the class of new data points. SVM is a powerful algorithm because it can work well with both linearly separable and non-linearly separable data by using a technique called kernel trick to transform the data into a higher dimensional space where it can be more easily separated.
Sample Request
Build a SVM model named, "ClassicModel"
Building a Support Vector Machine model
Support Vector Machine
POST
https://autogon.ai/api/v1/engine/start
Request Body
Name | Type | Description |
---|---|---|
project_id* | int | The |
block_id* | int | The |
function_code* | string | The function code for current block |
parent_id* | int | The |
args* | object | Block arguments |
model_name* | String | Name of the model to be used for prediction. |
kernel | String | Specifies the kernel type to be used in the algorithm (defaults to "linear") |
random_state | int | Controls the randomness of the estimator (defaults to 0). |
Sample Request
Make predictions with the pre-built model passing an optional test data.
Predicting with Support Vector Machine
Support Vector Machine Predict
POST
https://autogon.ai/api/v1/engine/start
Request Body
Name | Type | Description |
---|---|---|
model_name* | String | Name of previously trained model to be used for prediction |
test_data | String | Input data for prediction. Defaults to |
project_id* | int | ID of the current project |
block_id* | int | ID of the current block |
parent_id* | int | ID of the previous block |
function_code* | String | Function code for the current block |
Sample Request
Evaluate model metrics
Support Vector Machine Metrics
POST
https://autogon.ai/api/v1/engine/start
Request Body
Name | Type | Description |
---|---|---|
project_id* | int | ID of the current project |
parent_id* | int | ID of the previous block |
block_id* | int | ID of the current block |
function_code* | String | Function code for the current block |
model_name* | String | Name of the pre-trained model to be used for evaluation |
Last updated