The code imports the necessary libraries and defines the file paths for the data files. It then reads the data from the files into numpy arrays.

Next, it sets the parameters for the MISPOT algorithm, including the number of initial data points, the risk parameter, and the start time.

The code then creates an instance of the MISPOT class and fits the initial data. It initializes the algorithm and runs it on the stream data. The results are stored in the 'results' variable.

Finally, the code calculates the runtime of the algorithm and prints it. It also calls the 'plot' method of the MISPOT instance to generate a plot of the results

import numpy as npimport matplotlibpyplot as pltfrom middle_spot import MISPOTimport pandas as pdimport time#no labelf17 = 14000 - 2csvf18 = 14000csvP17 = pdread_csvf17P18 = pdread_csvf18X17 = P17DEva

原文地址: https://www.cveoy.top/t/topic/hJld 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录