... | @@ -5,13 +5,13 @@ An implementation of softmax regression for classification, which is a multiclas |
... | @@ -5,13 +5,13 @@ An implementation of softmax regression for classification, which is a multiclas |
|
# Available Predicates
|
|
# Available Predicates
|
|
|
|
|
|
* [initModelNoTrain/3](/PrologMethods/Classification/softmax_regression#initmodelnotrain3)
|
|
* [initModelNoTrain/3](/PrologMethods/Classification/softmax_regression#initmodelnotrain3)
|
|
* [initModelWithTrain/8](/PrologMethods/Classification/softmax_regression#initmodelwithtrain8)
|
|
* [initModelWithTrain/6](/PrologMethods/Classification/softmax_regression#initmodelwithtrain6)
|
|
* [classifyPoint/3](/PrologMethods/Classification/softmax_regression#classifypoint3)
|
|
* [classifyPoint/2](/PrologMethods/Classification/softmax_regression#classifypoint2)
|
|
* [classifyMatrix/8](/PrologMethods/Classification/softmax_regression#classifymatrix8)
|
|
* [classifyMatrix/5](/PrologMethods/Classification/softmax_regression#classifymatrix5)
|
|
* [computeAccuracy/6](/PrologMethods/Classification/softmax_regression#computeaccuracy6)
|
|
* [computeAccuracy/4](/PrologMethods/Classification/softmax_regression#computeaccuracy4)
|
|
* [featureSize/1](/PrologMethods/Classification/softmax_regression#featuresize1)
|
|
* [featureSize/1](/PrologMethods/Classification/softmax_regression#featuresize1)
|
|
* [parameters/3](/PrologMethods/Classification/softmax_regression#parameters3)
|
|
* [parameters/2](/PrologMethods/Classification/softmax_regression#parameters2)
|
|
* [train/7](/PrologMethods/Classification/softmax_regression#train7)
|
|
* [train/5](/PrologMethods/Classification/softmax_regression#train5)
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
... | @@ -38,7 +38,7 @@ initModelNoTrain( +integer, +integer, |
... | @@ -38,7 +38,7 @@ initModelNoTrain( +integer, +integer, |
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
## **_initModelWithTrain/8_**
|
|
## **_initModelWithTrain/6_**
|
|
|
|
|
|
Initializes the softmax_regression model and trains it.
|
|
Initializes the softmax_regression model and trains it.
|
|
|
|
|
... | @@ -61,7 +61,7 @@ initModelWithTrain( +pointer(float_array), +integer, +integer, |
... | @@ -61,7 +61,7 @@ initModelWithTrain( +pointer(float_array), +integer, +integer, |
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
## **_classifyPoint/3_**
|
|
## **_classifyPoint/2_**
|
|
|
|
|
|
Classify the given point.
|
|
Classify the given point.
|
|
|
|
|
... | @@ -79,7 +79,7 @@ classifyPoint( +pointer(float_array), +integer, |
... | @@ -79,7 +79,7 @@ classifyPoint( +pointer(float_array), +integer, |
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
## **_classifyMatrix/8_**
|
|
## **_classifyMatrix/5_**
|
|
|
|
|
|
Classify the given points, returning class probabilities and predicted class label for each point.
|
|
Classify the given points, returning class probabilities and predicted class label for each point.
|
|
|
|
|
... | @@ -99,7 +99,7 @@ classifyMatrix( +pointer(float_array), +integer, +integer, |
... | @@ -99,7 +99,7 @@ classifyMatrix( +pointer(float_array), +integer, +integer, |
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
## **_computeAccuracy/6_**
|
|
## **_computeAccuracy/4_**
|
|
|
|
|
|
Computes accuracy of the learned model given the feature data and the labels associated with each data point.
|
|
Computes accuracy of the learned model given the feature data and the labels associated with each data point.
|
|
|
|
|
... | @@ -137,7 +137,7 @@ featureSize([-integer]). |
... | @@ -137,7 +137,7 @@ featureSize([-integer]). |
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
## **_parameters/3_**
|
|
## **_parameters/2_**
|
|
|
|
|
|
Get the model parameters.
|
|
Get the model parameters.
|
|
|
|
|
... | @@ -153,7 +153,7 @@ parameters(-pointer(float_array), -integer, -integer). |
... | @@ -153,7 +153,7 @@ parameters(-pointer(float_array), -integer, -integer). |
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
## **_train/7_**
|
|
## **_train/5_**
|
|
|
|
|
|
Trains the softmax regression model with the given training data.
|
|
Trains the softmax regression model with the given training data.
|
|
|
|
|
... | | ... | |