November 2019
Intermediate to advanced
346 pages
9h 36m
English
In this recipe, you will use a regression on time series to predict the distribution of malware based on historical data:
month0 = {"Trojan": 24, "CryptoMiner": 11, "Other": 36, "Worm": 29}month1 = {"Trojan": 28, "CryptoMiner": 25, "Other": 22, "Worm": 25}month2 = {"Trojan": 18, "CryptoMiner": 36, "Other": 41, "Worm": 5}month3 = {"CryptoMiner": 18, "Trojan": 33, "Other": 44, "Worm": 5}months = [month0, month1, month2, month3]
trojan_time_series = []crypto_miner_time_series = []worm_time_series = []other_time_series = []for month in months: trojan_time_series.append(month["Trojan"]) ...