| tl_semisupervised | R Documentation |
Train a supervised model with limited labels by first clustering the data and propagating labels within clusters.
tl_semisupervised(
data,
formula,
labeled_indices,
cluster_method = "kmeans",
supervised_method = "logistic",
...
)
data |
A data frame |
formula |
Model formula |
labeled_indices |
Indices of labeled observations |
cluster_method |
Clustering method for label propagation |
supervised_method |
Supervised learning method for final model |
... |
Additional arguments |
A tidylearn model trained on pseudo-labeled data
# Use only 10% of labels
labeled_idx <- sample(nrow(iris), size = 15)
model <- tl_semisupervised(iris, Species ~ ., labeled_indices = labeled_idx,
cluster_method = "kmeans", supervised_method = "logistic")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.