This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lxd1190
committed
Nov 7, 2018
1 parent
e831610
commit 5faf04c
Showing
50 changed files
with
336 additions
and
257 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = ["common", "errorcode"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ | |
READ_FEATURE_FAILED: "读取特征数据失败", | ||
TRAIN_ERR: "训练出错", | ||
LACK_SAMPLE: "缺少正样本或负样本" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__all__ = ["time_series_detector"] | ||
__all__ = ["db_common", "time_series_detector"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = ["database"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__all__ = ["anomaly_op", "sample_op", "train_op"] | ||
__all__ = ["anomaly_op", "sample_op", "train_op"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__all__ = ["time_series_detector"] | ||
__all__ = ["time_series_detector"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__all__ = ["algorithm", "feature", "anomaly_service", "sample_service", "task_service", "detect_service"] | ||
__all__ = ["anomaly_service", "sample_service", "task_service", "detect_service"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
50 changes: 25 additions & 25 deletions
50
app/sql/time_series_detector/train_task.sql → sql/time_series_detector/train_task.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
SET FOREIGN_KEY_CHECKS=0; | ||
-- ---------------------------- | ||
-- Table structure for `train_task` | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `train_task`; | ||
CREATE TABLE `train_task` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`task_id` char(255) DEFAULT NULL, | ||
`sample_num` int(11) DEFAULT NULL, | ||
`postive_sample_num` int(11) DEFAULT NULL, | ||
`negative_sample_num` int(11) DEFAULT NULL, | ||
`window` int(2) DEFAULT NULL, | ||
`model_name` varchar(20) DEFAULT NULL, | ||
`source` varchar(255) DEFAULT NULL, | ||
`start_time` timestamp NULL DEFAULT NULL, | ||
`end_time` timestamp NULL DEFAULT NULL, | ||
`status` varchar(11) DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `id` (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
|
||
-- ---------------------------- | ||
-- Records of train_task | ||
-- ---------------------------- | ||
INSERT INTO `train_task` VALUES ('1', '1535790960079', '90675', '45228', '45447', '180', 'xgb_default_model', 'Metis', '2018-09-01 16:36:00', '2018-09-01 16:45:40', 'complete'); | ||
SET FOREIGN_KEY_CHECKS=0; | ||
-- ---------------------------- | ||
-- Table structure for `train_task` | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `train_task`; | ||
CREATE TABLE `train_task` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`task_id` char(255) DEFAULT NULL, | ||
`sample_num` int(11) DEFAULT NULL, | ||
`postive_sample_num` int(11) DEFAULT NULL, | ||
`negative_sample_num` int(11) DEFAULT NULL, | ||
`window` int(2) DEFAULT NULL, | ||
`model_name` varchar(20) DEFAULT NULL, | ||
`source` varchar(255) DEFAULT NULL, | ||
`start_time` timestamp NULL DEFAULT NULL, | ||
`end_time` timestamp NULL DEFAULT NULL, | ||
`status` varchar(11) DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `id` (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
|
||
-- ---------------------------- | ||
-- Records of train_task | ||
-- ---------------------------- | ||
INSERT INTO `train_task` VALUES ('1', '1535790960079', '90675', '45228', '45447', '180', 'xgb_default_model', 'Metis', '2018-09-01 16:36:00', '2018-09-01 16:45:40', 'complete'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = ["fixtures", "test_feature"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = ["algorithm", "feature", "common", "detect"] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.