predict-GPC-method: Predict labels from unlabelled data.

Description Usage Arguments Examples

Description

Use a trained GPC classifier to produce label predictions of a new set of unlabelled data.

Usage

1
2
## S4 method for signature 'GPC'
predict(object, Xst)

Arguments

object

A fitted GPC objet

Xst

A matrix of data for which to produce label predictions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Create synthetic dataset
X <- matrix(rnorm(60), ncol=2)
Y <- rowSums(X^2) < 1

# New GPX Object with default squared exponential covariance function.
gpc <- GPC(X, Y)

# Predict labels for new data
Xst <- matrix(rnorm(60), ncol=2)
Yst <- predict(gpc, Xst)

JimSkinner/gpclassifier documentation built on May 7, 2019, 10:52 a.m.