public class PrefixSpanModel<Item> extends java.lang.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 |
---|---|
protected java.lang.String |
formatVersion()
Current version of model save/load format.
|
RDD<PrefixSpan.FreqSequence<Item>> |
freqSequences() |
static PrefixSpanModel<?> |
load(SparkContext sc,
java.lang.String path) |
void |
save(SparkContext sc,
java.lang.String path)
Save this model to the given path.
|
public PrefixSpanModel(RDD<PrefixSpan.FreqSequence<Item>> freqSequences)
public static PrefixSpanModel<?> load(SparkContext sc, java.lang.String path)
public RDD<PrefixSpan.FreqSequence<Item>> freqSequences()
public void save(SparkContext sc, java.lang.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
.
protected java.lang.String formatVersion()
Saveable
formatVersion
in interface Saveable