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
,scala.Serializable
Model fitted by
PrefixSpan
param: freqSequences frequent sequences- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrefixSpanModel<?>
load
(SparkContext sc, String path) void
save
(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
.
-