netmanaiops / logclass Goto Github PK
View Code? Open in Web Editor NEWIEEE-TNSM 2021: Anomalous Log Identification and Classification with Partial Labels
License: MIT License
IEEE-TNSM 2021: Anomalous Log Identification and Classification with Partial Labels
License: MIT License
from .utils import (
ImportError: attempted relative import with no known parent package
I can‘t find’output‘
Experiment ID: 2310136305
F:\Users\Desktop\LogClass\LogClass\output\logclass_bgl_2310136305
Traceback (most recent call last):
File "D:\ANACONDA\envs\study\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\ANACONDA\envs\study\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "F:\Users\Desktop\LogClass\LogClass\logclass.py", line 201, in
main()
File "F:\Users\Desktop\LogClass\LogClass\logclass.py", line 185, in main
load_params(params)
File "F:\Users\Desktop\LogClass\LogClass\utils.py", line 28, in load_params
with open(params_file, "r") as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'F:\Users\Desktop\LogClass\LogClass\output\logclass_bgl_2310136305\best_params.json'
I have had several best_pararms.json of different outputs,but every time I run this code above,it can give me best_pararms.json of different id which can't found.
Is there anything wrong with the code?
This file is in the data/open_source_logs/bgl
folder.
And when I try to run the code ,it comes to an error:
(venv) E:\LogClass\LogClass-master>python -m logclass --train --kfold 3 --logs_type "bgl" --raw_logs "data/open_source_logs" --report macro
Experiment ID: 3077882225
-------------------------------------params-------------------------------------
Beginning experiment using the following configuration:
report: ['macro']
train: True
force: False
base_dir: E:\LogClass\LogClass-master\output
logs_type: bgl
healthy_label: unlabeled
features: ['tfilf']
binary_classifier: pu_learning
multi_classifier: svm
swap: False
raw_logs: data\open_source_logs
kfold: 3
logs: E:\LogClass\LogClass-master\output\preprocessed_logs\bgl.txt
id: 3077882225
id_dir: E:\LogClass\LogClass-master\output\logclass_bgl_3077882225
models_dir: E:\LogClass\LogClass-master\output\logclass_bgl_3077882225\models
features_dir: E:\LogClass\LogClass-master\output\logclass_bgl_3077882225\features
results_dir: E:\LogClass\LogClass-master\output\logclass_bgl_3077882225\results
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "E:\LogClass\LogClass-master\logclass.py", line 199, in
main()
File "E:\LogClass\LogClass-master\logclass.py", line 188, in main
preprocess = preprocess_registry.get_preprocessor(params['logs_type'])
File "E:\LogClass\LogClass-master\preprocess\registry.py", line 20, in get_preprocessor
return _PREPROCESSORS[data_src]
KeyError: 'bgl'
Is there anything missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.