library(daltoolbox)
# Load motif example data
data(examples_motifs)
# Use a simple sequence example
dataset <- examples_motifs$simple
head(dataset)
# Configure SAX-based motif discovery
model <- hmo_sax(26, 3, 3)
# Fit the model
model <- fit(model, dataset$serie)
# Run detection
detection <- detect(model, dataset$serie)
# Show detected motifs
print(detection[(detection$event),])
Run the code above in your browser using DataLab