Learn R Programming

fastTextR (version 2.1.0)

ft_test: Evaluate the Model

Description

Evaluate the quality of the predictions. For the model evaluation precision and recall are used.

Usage

ft_test(model, file, k = 1L, threshold = 0)

Arguments

model

an object inheriting from 'fasttext'.

file

a character string giving the location of the validation file.

k

an integer giving the number of labels to be returned.

threshold

a double giving the threshold.

Examples

Run this code
if (FALSE) {
ft_test(model, file)
}

Run the code above in your browser using DataLab