View source: R/PlatypusML_balance.R
PlatypusML_balance | R Documentation |
This PlatypusML_classification function takes as input encoded features obtained using the PlatypusML_extract_features function. The function runs cross validation on a specified number of folds for different classification models and reports the AUC scores and ROC curves.
PlatypusML_balance(matrix, label.1, label.2, proportion, random.seed)
matrix |
Matrix. Output of the PlatypusML_extract_features function, with the last column storing the label. |
label.1 |
String. The label of the first class. |
label.2 |
String. The label of the second class. |
proportion |
Vector of size 2 (floats between 0 and 1 that need to sum up to 1). Specifies the proportions for the two classes. The smaller proportion will be assigned to the minority class by default. |
random.seed |
Integer. The seed to be set when sampling for balancing the dataset. |
This function returns a matrix containing equal number of samples for the two classes.
## Not run: TODO: example ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.