update: Update a Data Stream Mining Task Model with Points from a...

updateR Documentation

Update a Data Stream Mining Task Model with Points from a Stream

Description

update() for data stream mining tasks DST.

Usage

## S3 method for class 'DST'
update(object, dsd, n = 1L, return = "nothing", ...)

Arguments

object

The DST object.

dsd

A DSD object with the data stream.

n

number of points from dsd to use for the update. Some DSD dsd accept n = -1 to update with all remaining points in the stream.

return

a character string indicating what update returns. The default is "nothing". Other possible values depend on the DST. Examples are "data", "model" and "assignment".

...

Additional arguments are passed on.

Value

NULL or a data.frame n rows containing update information for each data point.

Author(s)

Michael Hahsler

See Also

Other DST: DSAggregate(), DSC(), DSClassifier(), DSOutlier(), DSRegressor(), DST(), DST_SlidingWindow(), DST_WriteStream(), evaluate, predict(), stream_pipeline

Examples

set.seed(1500)
stream <- DSD_Gaussians(k = 3, d = 2, noise = .1)

dbstream <- DSC_DBSTREAM(r = .1)
assignment <- update(dbstream, stream, n = 100, return = "assignment")
plot(dbstream, stream, type = "both")

# DBSTREAM returns cluster assignments (see DSC_DBSTREAM).
head(assignment)

stream documentation built on May 29, 2024, 9:43 a.m.