Skip to content

Commit 882ef2b

Browse files
authored
add time column in ai result (#719)
1 parent 0d15675 commit 882ef2b

8 files changed

Lines changed: 716 additions & 719 deletions

File tree

src/UserGuide/Master/Tree/AI-capability/AINode_apache.md

Lines changed: 92 additions & 94 deletions
Large diffs are not rendered by default.

src/UserGuide/Master/Tree/AI-capability/AINode_timecho.md

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,15 @@ Built-in model inference does not require a registration process, the inference
234234

235235
The following machine learning models are currently built-in, please refer to the following links for detailed parameter descriptions.
236236

237-
| Model | built_in_model_name | Task type | Parameter description |
238-
| -------------------- | --------------------- | -------- | ------------------------------------------------------------ |
239-
| Arima | _Arima | Forecast | [Arima Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.forecasting.arima.ARIMA.html?highlight=Arima) |
237+
| Model | built_in_model_name | Task type | Parameter description |
238+
| -------------------- | --------------------- | -------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
239+
| Arima | _Arima | Forecast | [Arima Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.forecasting.arima.ARIMA.html?highlight=Arima) |
240240
| STLForecaster | _STLForecaster | Forecast | [STLForecaster Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.forecasting.trend.STLForecaster.html#sktime.forecasting.trend.STLForecaster) |
241-
| NaiveForecaster | _NaiveForecaster | Forecast | [NaiveForecaster Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.forecasting.naive.NaiveForecaster.html#naiveforecaster) |
242-
| ExponentialSmoothing | _ExponentialSmoothing | Forecast | [ExponentialSmoothing 参Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.forecasting.exp_smoothing.ExponentialSmoothing.html) |
243-
| GaussianHMM | _GaussianHMM | Annotation | [GaussianHMMParameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.annotation.hmm_learn.gaussian.GaussianHMM.html) |
244-
| GMMHMM | _GMMHMM | Annotation | [GMMHMM参数说明](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.annotation.hmm_learn.gmm.GMMHMM.html) |
245-
| Stray | _Stray | Anomaly detection | [Stray Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.annotation.stray.STRAY.html) |
241+
| NaiveForecaster | _NaiveForecaster | Forecast | [NaiveForecaster Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.forecasting.naive.NaiveForecaster.html#naiveforecaster) |
242+
| ExponentialSmoothing | _ExponentialSmoothing | Forecast | [ExponentialSmoothing Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.forecasting.exp_smoothing.ExponentialSmoothing.html) |
243+
| GaussianHMM | _GaussianHMM | Annotation | [GaussianHMMParameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.detection.hmm_learn.gaussian.GaussianHMM.html) |
244+
| GMMHMM | _GMMHMM | Annotation | [GMMHMM Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.detection.hmm_learn.gmm.GMMHMM.html) |
245+
| Stray | _Stray | Anomaly detection | [Stray Parameter description](https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.detection.stray.STRAY.html) |
246246

247247

248248
#### Example
@@ -266,22 +266,22 @@ IoTDB> select * from root.eg.airline
266266
+-----------------------------+------------------+
267267
Total line number = 144
268268

269-
IoTDB> call inference(_Stray, "select s0 from root.eg.airline", k=2)
270-
+-------+
271-
|output0|
272-
+-------+
273-
| 0|
274-
| 0|
275-
| 0|
276-
| 0|
269+
IoTDB> call inference(_Stray, "select s0 from root.eg.airline", generateTime=True, k=2)
270+
+-----------------------------+-------+
271+
| Time|output0|
272+
+-----------------------------+-------+
273+
|1960-12-31T00:00:00.000+08:00| 0|
274+
|1961-01-31T08:00:00.000+08:00| 1|
275+
|1961-02-28T08:00:00.000+08:00| 0|
276+
|1961-03-31T08:00:00.000+08:00| 0|
277277
......
278-
| 1|
279-
| 1|
280-
| 0|
281-
| 0|
282-
| 0|
283-
| 0|
284-
+-------+
278+
|1972-06-30T08:00:00.000+08:00| 0|
279+
|1972-07-31T08:00:00.000+08:00| 1|
280+
|1972-08-31T08:00:00.000+08:00| 0|
281+
|1972-09-30T08:00:00.000+08:00| 0|
282+
|1972-10-31T08:00:00.000+08:00| 0|
283+
|1972-11-30T08:00:00.000+08:00| 0|
284+
+-----------------------------+-------+
285285
Total line number = 144
286286
```
287287

@@ -345,18 +345,18 @@ IoTDB> select s1,s2 from root.**
345345
+-----------------------------+-------------------+-------------------+
346346
Total line number = 96
347347

348-
IoTDB> call inference(dlinear_example,"select s0,s1 from root.**")
349-
+--------------------------------------------+-----------------------------+
350-
| _result_0| _result_1|
351-
+--------------------------------------------+-----------------------------+
352-
| 0.726302981376648| 1.6549958229064941|
353-
| 0.7354921698570251| 1.6482787370681763|
354-
| 0.7238251566886902| 1.6278168201446533|
348+
IoTDB> call inference(dlinear_example,"select s0,s1 from root.**", generateTime=True)
349+
+-----------------------------+--------------------------------------------+-----------------------------+
350+
| Time| _result_0| _result_1|
351+
+-----------------------------+--------------------------------------------+-----------------------------+
352+
|1990-04-06T00:00:00.000+08:00| 0.726302981376648| 1.6549958229064941|
353+
|1990-04-08T00:00:00.000+08:00| 0.7354921698570251| 1.6482787370681763|
354+
|1990-04-10T00:00:00.000+08:00| 0.7238251566886902| 1.6278168201446533|
355355
......
356-
| 0.7692174911499023| 1.654654049873352|
357-
| 0.7685555815696716| 1.6625318765640259|
358-
| 0.7856493592262268| 1.6508299350738525|
359-
+--------------------------------------------+-----------------------------+
356+
|1990-07-07T00:00:00.000+08:00| 0.7692174911499023| 1.654654049873352|
357+
|1990-07-09T00:00:00.000+08:00| 0.7685555815696716| 1.6625318765640259|
358+
|1990-07-11T00:00:00.000+08:00| 0.7856493592262268| 1.6508299350738525|
359+
+-----------------------------+--------------------------------------------+-----------------------------+
360360
Total line number = 48
361361
```
362362
@@ -389,18 +389,18 @@ IoTDB> select s1,s2 from root.**
389389
+-----------------------------+-------------------+-------------------+
390390
Total line number = 996
391391
392-
IoTDB> call inference(dlinear_example,"select s0,s1 from root.**",window=tail(96))
393-
+--------------------------------------------+-----------------------------+
394-
| _result_0| _result_1|
395-
+--------------------------------------------+-----------------------------+
396-
| 0.726302981376648| 1.6549958229064941|
397-
| 0.7354921698570251| 1.6482787370681763|
398-
| 0.7238251566886902| 1.6278168201446533|
392+
IoTDB> call inference(dlinear_example,"select s0,s1 from root.**", generateTime=True, window=tail(96))
393+
+-----------------------------+--------------------------------------------+-----------------------------+
394+
| Time| _result_0| _result_1|
395+
+-----------------------------+--------------------------------------------+-----------------------------+
396+
|1990-04-06T00:00:00.000+08:00| 0.726302981376648| 1.6549958229064941|
397+
|1990-04-08T00:00:00.000+08:00| 0.7354921698570251| 1.6482787370681763|
398+
|1990-04-10T00:00:00.000+08:00| 0.7238251566886902| 1.6278168201446533|
399399
......
400-
| 0.7692174911499023| 1.654654049873352|
401-
| 0.7685555815696716| 1.6625318765640259|
402-
| 0.7856493592262268| 1.6508299350738525|
403-
+--------------------------------------------+-----------------------------+
400+
|1990-07-07T00:00:00.000+08:00| 0.7692174911499023| 1.654654049873352|
401+
|1990-07-09T00:00:00.000+08:00| 0.7685555815696716| 1.6625318765640259|
402+
|1990-07-11T00:00:00.000+08:00| 0.7856493592262268| 1.6508299350738525|
403+
+-----------------------------+--------------------------------------------+-----------------------------+
404404
Total line number = 48
405405
```
406406
@@ -431,15 +431,15 @@ IoTDB> select s1,s2 from root.**
431431
+-----------------------------+-------------------+-------------------+
432432
Total line number = 96
433433
434-
IoTDB> call inference(anomaly_example,"select s0,s1 from root.**",window=count(24,24))
435-
+-------------------------+
436-
| _result_0|
437-
+-------------------------+
438-
| 0|
439-
| 1|
440-
| 1|
441-
| 0|
442-
+-------------------------+
434+
IoTDB> call inference(anomaly_example,"select s0,s1 from root.**", generateTime=True, window=count(24,24))
435+
+-----------------------------+-------------------------+
436+
| Time| _result_0|
437+
+-----------------------------+-------------------------+
438+
|1990-04-06T00:00:00.000+08:00| 0|
439+
|1990-04-30T00:00:00.000+08:00| 1|
440+
|1990-05-24T00:00:00.000+08:00| 1|
441+
|1990-06-17T00:00:00.000+08:00| 0|
442+
+-----------------------------+-------------------------+
443443
Total line number = 4
444444
```
445445
@@ -510,18 +510,18 @@ IoTDB> select s0,s1,s2,s3,s4,s5,s6 from root.eg.etth LIMIT 96
510510
+-----------------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
511511
Total line number = 96
512512
513-
IoTDB> call inference(dlinear_example, "select s0,s1,s2,s3,s4,s5,s6 from root.eg.etth", window=head(96))
514-
+-----------+----------+----------+------------+---------+----------+----------+
515-
| output0| output1| output2| output3| output4| output5| output6|
516-
+-----------+----------+----------+------------+---------+----------+----------+
517-
| 10.319546| 3.1450553| 7.877341| 1.5723765|2.7303758| 1.1362307| 8.867775|
518-
| 10.443649| 3.3286757| 7.8593454| 1.7675098| 2.560634| 1.1177158| 8.920919|
519-
| 10.883752| 3.2341104| 8.47036| 1.6116762|2.4874182| 1.1760603| 8.798939|
513+
IoTDB> call inference(dlinear_example, "select s0,s1,s2,s3,s4,s5,s6 from root.eg.etth", generateTime=True, window=head(96))
514+
+-----------------------------+-----------+----------+----------+------------+---------+----------+----------+
515+
| Time| output0| output1| output2| output3| output4| output5| output6|
516+
+-----------------------------+-----------+----------+----------+------------+---------+----------+----------+
517+
|2017-10-23T23:00:00.000+08:00| 10.319546| 3.1450553| 7.877341| 1.5723765|2.7303758| 1.1362307| 8.867775|
518+
|2017-10-24T01:00:00.000+08:00| 10.443649| 3.3286757| 7.8593454| 1.7675098| 2.560634| 1.1177158| 8.920919|
519+
|2017-10-24T03:00:00.000+08:00| 10.883752| 3.2341104| 8.47036| 1.6116762|2.4874182| 1.1760603| 8.798939|
520520
......
521-
| 8.0115595| 1.2995274| 6.9900327|-0.098746896| 3.04923| 1.176214| 9.548782|
522-
| 8.612427| 2.5036244| 5.6790237| 0.66474205|2.8870275| 1.2051733| 9.330128|
523-
| 10.096699| 3.399722| 6.9909| 1.7478468|2.7642853| 1.1119363| 9.541455|
524-
+-----------+----------+----------+------------+---------+----------+----------+
521+
|2017-10-26T19:00:00.000+08:00| 8.0115595| 1.2995274| 6.9900327|-0.098746896| 3.04923| 1.176214| 9.548782|
522+
|2017-10-26T21:00:00.000+08:00| 8.612427| 2.5036244| 5.6790237| 0.66474205|2.8870275| 1.2051733| 9.330128|
523+
|2017-10-26T22:00:00.000+08:00| 10.096699| 3.399722| 6.9909| 1.7478468|2.7642853| 1.1119363| 9.541455|
524+
+-----------------------------+-----------+----------+----------+------------+---------+----------+----------+
525525
Total line number = 48
526526
```
527527
@@ -574,20 +574,20 @@ IoTDB> select * from root.eg.voltage limit 96
574574
+-----------------------------+------------------+------------------+------------------+
575575
Total line number = 96
576576
577-
IoTDB> call inference(_STLForecaster, "select s0,s1,s2 from root.eg.voltage", window=head(96),predict_length=48)
578-
+---------+---------+---------+
579-
| output0| output1| output2|
580-
+---------+---------+---------+
581-
|2026.3601|2018.2953|2029.4257|
582-
|2019.1538|2011.4361|2022.0888|
583-
|2025.5074|2017.4522|2028.5199|
577+
IoTDB> call inference(_STLForecaster, "select s0,s1,s2 from root.eg.voltage", generateTime=True, window=head(96),predict_length=48)
578+
+-----------------------------+---------+---------+---------+
579+
| Time| output0| output1| output2|
580+
+-----------------------------+---------+---------+---------+
581+
|2023-02-14T20:48:03.000+08:00|2026.3601|2018.2953|2029.4257|
582+
|2023-02-14T20:48:09.000+08:00|2019.1538|2011.4361|2022.0888|
583+
|2023-02-14T20:48:15.000+08:00|2025.5074|2017.4522|2028.5199|
584584
......
585585
586-
|2022.2336|2015.0290|2025.1023|
587-
|2015.7241|2008.8975|2018.5085|
588-
|2022.0777|2014.9136|2024.9396|
589-
|2015.5682|2008.7821|2018.3458|
590-
+---------+---------+---------+
586+
|2023-02-14T20:52:15.000+08:00|2022.2336|2015.0290|2025.1023|
587+
|2023-02-14T20:52:21.000+08:00|2015.7241|2008.8975|2018.5085|
588+
|2023-02-14T20:52:27.000+08:00|2022.0777|2014.9136|2024.9396|
589+
|2023-02-14T20:52:33.000+08:00|2015.5682|2008.7821|2018.3458|
590+
+-----------------------------+---------+---------+---------+
591591
Total line number = 48
592592
```
593593
@@ -635,22 +635,22 @@ IoTDB> select * from root.eg.airline
635635
+-----------------------------+------------------+
636636
Total line number = 144
637637
638-
IoTDB> call inference(_Stray, "select s0 from root.eg.airline", k=2)
639-
+-------+
640-
|output0|
641-
+-------+
642-
| 0|
643-
| 0|
644-
| 0|
645-
| 0|
638+
IoTDB> call inference(_Stray, "select s0 from root.eg.airline", generateTime=True, k=2)
639+
+-----------------------------+-------+
640+
| Time|output0|
641+
+-----------------------------+-------+
642+
|1960-12-31T00:00:00.000+08:00| 0|
643+
|1961-01-31T08:00:00.000+08:00| 0|
644+
|1961-02-28T08:00:00.000+08:00| 0|
645+
|1961-03-31T08:00:00.000+08:00| 0|
646646
......
647-
| 1|
648-
| 1|
649-
| 0|
650-
| 0|
651-
| 0|
652-
| 0|
653-
+-------+
647+
|1972-06-30T08:00:00.000+08:00| 1|
648+
|1972-07-31T08:00:00.000+08:00| 1|
649+
|1972-08-31T08:00:00.000+08:00| 0|
650+
|1972-09-30T08:00:00.000+08:00| 0|
651+
|1972-10-31T08:00:00.000+08:00| 0|
652+
|1972-11-30T08:00:00.000+08:00| 0|
653+
+-----------------------------+-------+
654654
Total line number = 144
655655
```
656656

0 commit comments

Comments
 (0)