ft_test: Evaluate the Model

View source: R/fasttext.R

ft_testR Documentation

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

## Not run: 
ft_test(model, file)

## End(Not run)

fastTextR documentation built on June 22, 2024, 7:16 p.m.