Open mkaranasou opened 4 years ago
Shortened output:
File "/home/spark/baskerville/src/baskerville/models/anomaly_model_sklearn.py", line 125, in predict_dict
x = [extract_features_in_order(x, detector.features)]
File "/home/spark/baskerville/src/baskerville/models/anomaly_model_sklearn.py", line 41, in extract_features_in_order
return [feature_dict[feature] for feature in model_features]
File "/home/spark/baskerville/src/baskerville/models/anomaly_model_sklearn.py", line 41, in <listcomp>
return [feature_dict[feature] for feature in model_features]
KeyError: 'payload_size_average'
Conditions:
payload_size_average
in configuration under the extra features (which is not included in the model's features)irawlog
pipeline.Result: Key error for
payload_size_average
when predicting.Note: I haven't tested it with a pyspark model, but it shouldn't be a problem since the part of the code that throws key error is only used in the scikit-learn workflow.