read_saveDSC {stream} | R Documentation |
Save and Read DSC Objects
Description
Save and Read DSC objects safely (serializes the underlying data structure). This also works for streamMOA DSC objects.
Usage
saveDSC(object, file, ...)
readDSC(file)
Arguments
object |
a DSC object. |
file |
filename. |
... |
further arguments. |
Author(s)
Michael Hahsler
See Also
Other DSC:
DSC()
,
DSC_Macro()
,
DSC_Micro()
,
DSC_R()
,
DSC_SlidingWindow()
,
DSC_Static()
,
DSC_TwoStage()
,
animate_cluster()
,
evaluate.DSC
,
get_assignment()
,
plot.DSC()
,
predict()
,
prune_clusters()
,
recluster()
Examples
stream <- DSD_Gaussians(k = 3, noise = 0.05)
# create clusterer with r = 0.05
dbstream1 <- DSC_DBSTREAM(r = .05)
update(dbstream1, stream, 1000)
dbstream1
saveDSC(dbstream1, file="dbstream.Rds")
dbstream2 <- readDSC("dbstream.Rds")
dbstream2
## cleanup
unlink("dbstream.Rds")
[Package stream version 2.0-2 Index]