public class PrefixSpanModel<Item> extends Object implements Saveable, scala.Serializable
PrefixSpan
param: freqSequences frequent sequencesModifier and Type | Class and Description |
---|---|
static class |
PrefixSpanModel.SaveLoadV1_0$ |
Constructor and Description |
---|
PrefixSpanModel(RDD<PrefixSpan.FreqSequence<Item>> freqSequences) |
Modifier and Type | Method and Description |
---|---|
RDD<PrefixSpan.FreqSequence<Item>> |
freqSequences() |
static PrefixSpanModel<?> |
load(SparkContext sc,
String path) |
void |
save(SparkContext sc,
String path)
Save this model to the given path.
|
public PrefixSpanModel(RDD<PrefixSpan.FreqSequence<Item>> freqSequences)
public static PrefixSpanModel<?> load(SparkContext sc, String path)
public RDD<PrefixSpan.FreqSequence<Item>> freqSequences()
public void save(SparkContext sc, String path)
This saves: - human-readable (JSON) model metadata to path/metadata/ - Parquet formatted data to path/data/
The model may be loaded using PrefixSpanModel.load
.