|
@@ -0,0 +1,38 @@
|
|
|
+import get_data
|
|
|
+import get_data_by_sql
|
|
|
+import get_data_from_other_algorithm
|
|
|
+import data_process
|
|
|
+import core_algorithm
|
|
|
+
|
|
|
+
|
|
|
+conn = connect(host, ......)
|
|
|
+
|
|
|
+parameter1 = *
|
|
|
+parameter2 = *
|
|
|
+
|
|
|
+
|
|
|
+for (i=1:n){
|
|
|
+
|
|
|
+
|
|
|
+ data1 = get_data(sn[i], start_time, end_time, ....)
|
|
|
+ data2 = get_data_by_sql(sn[i], start_time, end_time, ....)
|
|
|
+ data3 = get_data_from_other_algorithm(data1, parameter1, ....)
|
|
|
+
|
|
|
+
|
|
|
+ data1 = data_process(data1)
|
|
|
+ data2 = data_process(data2)
|
|
|
+
|
|
|
+
|
|
|
+ [res1, res2] = core_algorithm(data1, data2, data3, parameter1, parameter2, ....)
|
|
|
+
|
|
|
+
|
|
|
+ res1 = res1.append(res)
|
|
|
+ res1.to_csv(...)
|
|
|
+ res1.to_sql(...)
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+res.to_csv(...)
|
|
|
+res1.to_sql(...)
|
|
|
+
|
|
|
+
|