Class FeaturesClassifier
java.lang.Object
com.astrolabsoftware.FinkBrowser.Januser.FeaturesClassifier
- All Implemented Interfaces:
Classifier
FeaturesClassifier
classifies sources according to
HBase lc_features_* field.- Author:
- J.Hrivnac
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static String
private static ClusterFinder
private static boolean
private static String
private static org.apache.logging.log4j.Logger
Logging . -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
classify
(FinkGremlinRecipies recipies, String oid, boolean enhance, String columns) Classify source and expand them to alerts (if requested).private ClusterFinder
finder()
GiveClusterFinder
to current database.static void
setModelDirectory
(String dirName) Set the directory for model json files scaler_params.json, pca_params.json, cluster_centers.json.static void
setModelResource
(String resourceName) Set the resource directory for model json files scaler_params.json, pca_params.json, cluster_centers.json.
-
Field Details
-
_finder
-
_dirName
-
_resourceName
-
_reset
-
log
Logging .
-
-
Constructor Details
-
FeaturesClassifier
public FeaturesClassifier()
-
-
Method Details
-
classify
public void classify(FinkGremlinRecipies recipies, String oid, boolean enhance, String columns) throws LomikelException Description copied from interface:Classifier
Classify source and expand them to alerts (if requested). It should register classes corresponding to specified objectId usingFinkGremlinRecipies#registerSourcesOfInterest(Classifiers, String, String, double, String, String, boolean, String)
.- Specified by:
classify
in interfaceClassifier
- Parameters:
recipies
- TheFinkGremlinRecipies
caller.oid
- The objectId of source to be added.enhance
- Whether expand tree under all SourcesOfInterest with alerts possibly filled with requested HBase columns.columns
- The HBase columns to be copied into graph alerts. May be null.- Throws:
LomikelException
- If anything fails.
-
finder
GiveClusterFinder
to current database. Singleton.- Returns:
- The corresponding
ClusterFinder
. - Throws:
LomikelExceltion
- IfClusterFinder
cannot be created.LomikelException
-
setModelDirectory
Set the directory for model json files scaler_params.json, pca_params.json, cluster_centers.json. If not set, /tmp will be used.- Parameters:
dirName
- The directory for model json files.
-
setModelResource
Set the resource directory for model json files scaler_params.json, pca_params.json, cluster_centers.json. If not set,setModelDirectory(java.lang.String)
will be used.- Parameters:
resourceName
- The resource directory for model json files.
-