Package org.apache.spark.mllib.fpm
Class PrefixSpanModel<Item>
Object
org.apache.spark.mllib.fpm.PrefixSpanModel<Item>
- Type Parameters:
Item- item type
- All Implemented Interfaces:
Serializable,Saveable
Model fitted by
PrefixSpan
param: freqSequences frequent sequences- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrefixSpanModel<?>load(SparkContext sc, String path) voidsave(SparkContext sc, String path) Save this model to the given path.
-
Constructor Details
-
PrefixSpanModel
-
-
Method Details
-
load
-
freqSequences
-
save
Save this model to the given path. It only works for Item datatypes supported by DataFrames.This saves: - human-readable (JSON) model metadata to path/metadata/ - Parquet formatted data to path/data/
The model may be loaded using
PrefixSpanModel.load.
-