| [ Web Proxy ] |
| Viewing: https://sadit.github.io/TextClassification.jl/dev | [Back] [Original] |
TextClassification.MicroTCStatsAPI.predictTextClassification.accuracy_scoreTextClassification.classification_scoresTextClassification.f1_scoreTextClassification.isqerrorTextClassification.pearsonTextClassification.precision_recallTextClassification.precision_scoreTextClassification.recall_scoreTextClassification.spearmanTextSearch.vectorizeTextClassification.MicroTC MethodMicroTC(
config::MicroTC_Config,
train_corpus::AbstractVector,
train_y;
textconfig=config.textconfig,
verbose=true)
MicroTC(config::MicroTC_Config, textmodel::TextModel, train_X::AbstractVector{S}, train_y; verbose=true) where {S<:SVEC}Creates a MicroTC model on the given dataset and configuration
StatsAPI.predict Methodpredict(tc::MicroTC, text)
predict(tc::MicroTC, vec::SVEC)Predicts the label of the given input
TextClassification.accuracy_score Methodaccuracy_score(gold, predicted)Computes the accuracy score between the gold and the predicted sets
TextClassification.classification_scores Methodclassification_scores(gold, predicted; labelnames=nothing)Computes several scores for the given gold-standard and predictions, namely: precision, recall, and f1 scores, for global and per-class granularity. If labelnames is given, then it is an array of label names.
TextClassification.f1_score Methodf1_score(gold, predicted; weight=:macro)::Float64It computes the F1 score between the gold dataset and the list of predictions predicted
It applies the desired weighting scheme for binary and multiclass problems
:macro performs a uniform weigth to each class:weigthed the weight of each class is proportional to its population in gold:micro returns the global F1, without distinguishing among classesTextClassification.isqerror Methodisqerror(X::AbstractVector{F}, Y::AbstractVector{F}) where {F <: AbstractFloat}Negative squared error (to be used for maximizing algorithms)
TextClassification.pearson Methodpearson(X::AbstractVector{F}, Y::AbstractVector{F}) where {F <: AbstractFloat}Pearson correlation score
TextClassification.precision_recall Methodprecision_recall(gold::AbstractVector, predicted::AbstractVector)Computes the global and per-class precision and recall values between the gold standard and the predicted set
TextClassification.precision_score Methodprecision_score(gold, predicted; weight=:macro)::Float64It computes the precision between the gold dataset and the list of predictions predict
It applies the desired weighting scheme for binary and multiclass problems
:macro performs a uniform weigth to each class:weigthed the weight of each class is proportional to its population in gold:micro returns the global precision, without distinguishing among classesTextClassification.recall_score Methodrecall_score(gold, predicted; weight=:macro)::Float64It computes the recall between the gold dataset and the list of predictions predict
It applies the desired weighting scheme for binary and multiclass problems
:macro performs a uniform weigth to each class:weigthed the weight of each class is proportional to its population in gold:micro returns the global recall, without distinguishing among classesTextClassification.spearman Methodspearman(X::AbstractVector{F}, Y::AbstractVector{F}) where {F <: AbstractFloat}Spearman rank correleation score
TextSearch.vectorize Methodvectorize(tc::MicroTC, text; bow=BOW(), textconfig=tc.textconfig, normalize=true)
vectorize(tc::MicroTC, bow::BOW; normalize=true)Creates a weighted vector using the model. The input text can be a string or an array of strings; it also can be an already computed bag of words.
Settings
Theme
This document was generated with Documenter.jl version 1.17.0 on Monday 4 May 2026. Using Julia version 1.12.6.
| Web Proxy Viewer | New URL | Original Page |