logai.algorithms package
Subpackages
- logai.algorithms.anomaly_detection_algo package
- Submodules
- logai.algorithms.anomaly_detection_algo.anomaly_detector_het module
- logai.algorithms.anomaly_detection_algo.dbl module
- logai.algorithms.anomaly_detection_algo.distribution_divergence module
- logai.algorithms.anomaly_detection_algo.ets module
- logai.algorithms.anomaly_detection_algo.forecast_nn module
- logai.algorithms.anomaly_detection_algo.isolation_forest module
- logai.algorithms.anomaly_detection_algo.local_outlier_factor module
- logai.algorithms.anomaly_detection_algo.logbert module
- logai.algorithms.anomaly_detection_algo.one_class_svm module
- Module contents
- logai.algorithms.categorical_encoding_algo package
- logai.algorithms.clustering_algo package
- logai.algorithms.nn_model package
- Subpackages
- logai.algorithms.nn_model.forecast_nn package
- logai.algorithms.nn_model.logbert package
- Submodules
- logai.algorithms.nn_model.logbert.configs module
- logai.algorithms.nn_model.logbert.eval_metric_utils module
- logai.algorithms.nn_model.logbert.predict module
- logai.algorithms.nn_model.logbert.predict_utils module
- logai.algorithms.nn_model.logbert.tokenizer_utils module
- logai.algorithms.nn_model.logbert.train module
- Module contents
- Submodules
- logai.algorithms.nn_model.transformers module
- Module contents
- Subpackages
- logai.algorithms.parsing_algo package
- logai.algorithms.vectorization_algo package
- Submodules
- logai.algorithms.vectorization_algo.fasttext module
- logai.algorithms.vectorization_algo.forecast_nn module
ForecastNNForecastNNVectorizedDatasetForecastNNVectorizerParamsForecastNNVectorizerParams.embedding_dimForecastNNVectorizerParams.feature_typeForecastNNVectorizerParams.label_typeForecastNNVectorizerParams.max_token_lenForecastNNVectorizerParams.min_token_countForecastNNVectorizerParams.output_dirForecastNNVectorizerParams.semanticvec_configForecastNNVectorizerParams.sep_tokenForecastNNVectorizerParams.sequentialvec_configForecastNNVectorizerParams.vectorizer_metadata_filepathForecastNNVectorizerParams.vectorizer_model_dirpath
- logai.algorithms.vectorization_algo.logbert module
LogBERTLogBERTVectorizerParamsLogBERTVectorizerParams.custom_tokensLogBERTVectorizerParams.max_token_lenLogBERTVectorizerParams.max_vocab_sizeLogBERTVectorizerParams.model_nameLogBERTVectorizerParams.num_procLogBERTVectorizerParams.output_dirLogBERTVectorizerParams.tokenizer_dirpathLogBERTVectorizerParams.train_batch_sizeLogBERTVectorizerParams.truncationLogBERTVectorizerParams.use_fast
- logai.algorithms.vectorization_algo.semantic module
- logai.algorithms.vectorization_algo.sequential module
- logai.algorithms.vectorization_algo.tfidf module
TfIdfTfIdfParamsTfIdfParams.analyzerTfIdfParams.binaryTfIdfParams.decode_errorTfIdfParams.dtypeTfIdfParams.encodingTfIdfParams.inputTfIdfParams.lowercaseTfIdfParams.max_dfTfIdfParams.max_featuresTfIdfParams.min_dfTfIdfParams.ngram_rangeTfIdfParams.normTfIdfParams.preprocessorTfIdfParams.smooth_idfTfIdfParams.stop_wordsTfIdfParams.strip_accentsTfIdfParams.sublinear_tfTfIdfParams.token_patternTfIdfParams.tokenizerTfIdfParams.use_idfTfIdfParams.vocabulary
- logai.algorithms.vectorization_algo.word2vec module
- Module contents
Submodules
logai.algorithms.algo_interfaces module
- class logai.algorithms.algo_interfaces.AnomalyDetectionAlgo
Bases:
ABCInterface for clustering algorithms
- abstract fit(log_features: DataFrame)
- abstract predict(log_features: DataFrame) Series
- class logai.algorithms.algo_interfaces.CategoricalEncodingAlgo
Bases:
ABCInterface for categorical encoders
- abstract fit_transform(log_attributes: DataFrame) DataFrame
- class logai.algorithms.algo_interfaces.ClusteringAlgo
Bases:
ABCInterface for clustering algorithms
- abstract fit(log_features: DataFrame)
- abstract predict(log_features: DataFrame)
- class logai.algorithms.algo_interfaces.FeatureExtractionAlgo
Bases:
ABCInterface for feature extraction algorithms
- abstract extract()
- class logai.algorithms.algo_interfaces.NNAnomalyDetectionAlgo
Bases:
ABC- abstract fit(train_data, dev_data: LogRecordObject)
- abstract predict(test_data: LogRecordObject)
- class logai.algorithms.algo_interfaces.ParsingAlgo
Bases:
ABCInterface for parsing algorithms.
- abstract fit(loglines: Series)
fit parsing algorithm with input
- Parameters:
loglines – pd.Series of loglines as input
- Returns:
pd.Dataframe
- abstract parse(loglines: Series) DataFrame
parse loglines :param loglines: pd.Series of loglines to parse :return: pd.Dataframe of parsed results [“loglines”, “parsed_loglines”, “parameter_list”].
- class logai.algorithms.algo_interfaces.VectorizationAlgo
Bases:
ABCInterface for logline vectorization algorithms
- abstract fit(loglines: Series)
fit vectorizor with input. :param loglines: :return:
- abstract transform(loglines: Series) DataFrame
transform given loglines into vectors. :param loglines: :return:
logai.algorithms.factory module
- class logai.algorithms.factory.AlgorithmFactory
Bases:
objectThe singleton factory class for all the supported algorithms.
- get_algorithm(task, name, config)
Gets a algorithm instance given an algorithm name and a config instance.
- Parameters:
task – The task name.
name – The algorithm name.
config – The config instance.
- get_algorithm_class(task, name)
Gets the corresponding algorithm class given an algorithm name.
- Parameters:
task – The task name.
name – The algorithm name.
- get_config(task, name, config_dict)
Gets a configuration instance given an algorithm name and a config dict.
- Parameters:
task – The task name.
name – The algorithm name.
config_dict – The config dictionary.
- get_config_class(task, name)
Gets the corresponding configuration class given an algorithm name.
- Parameters:
task – The task name.
name – The algorithm name.
- instance = <logai.algorithms.factory.AlgorithmFactory object>
- classmethod register(task, name, config_class)
Registers the algorithm name and the configuration class for an algorithm class.
- Parameters:
task – The task name, e.g., detection, clustering
name – The algorithm name(s).
config_class – The configuration class.
- classmethod unregister(task, name)
Unregisters a registered algorithm.
- Parameters:
task – The task name.
name – The algorithm name.