Anomaly score always 0

Did you change the field name in the code to duration? What does the header and a few sample rows of your data file look like? Also, you’ll get better anomalies if you use these canned parameters.