Browse Source
- 添加 AnnTestParam 类用于 ANN 测试参数封装 - 添加 AnnTrainParam 类用于 ANN 训练参数封装 - 支持模型、时间区间、点位集合等配置参数定义 - 兼容算法类型、迭代次数、隐层结构等 ANN 特有参数 - 保留旧字段拼写兼容性并支持新字段别名映射pull/49/head
2 changed files with 86 additions and 0 deletions
@ -0,0 +1,40 @@ |
|||
package cn.iocoder.yudao.module.alert.param; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
/** |
|||
* ANN 测试入参 |
|||
*/ |
|||
@Data |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
public class AnnTestParam { |
|||
|
|||
/** |
|||
* 时间区间,格式与原 PCA 测试保持一致 |
|||
*/ |
|||
private String time; |
|||
|
|||
/** |
|||
* 点位集合 |
|||
*/ |
|||
private String points; |
|||
|
|||
/** |
|||
* 采样间隔(秒),下游需转毫秒 |
|||
*/ |
|||
private Integer interval; |
|||
|
|||
/** |
|||
* 模型内容(字符串) |
|||
*/ |
|||
private String model; |
|||
|
|||
/** |
|||
* 算法类型,建议传 ANN |
|||
*/ |
|||
private String type; |
|||
} |
|||
@ -0,0 +1,46 @@ |
|||
package cn.iocoder.yudao.module.alert.param; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonAlias; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
/** |
|||
* ANN 训练入参 |
|||
*/ |
|||
@Data |
|||
@AllArgsConstructor |
|||
@NoArgsConstructor |
|||
public class AnnTrainParam { |
|||
|
|||
@JsonAlias("Train_Data") |
|||
@JsonProperty("Train_Data") |
|||
private TrainParam.TrainData trainData; |
|||
|
|||
/** |
|||
* 算法类型,建议传 ANN |
|||
*/ |
|||
private String type; |
|||
|
|||
/** |
|||
* ANN 迭代次数 |
|||
*/ |
|||
private String iter; |
|||
|
|||
/** |
|||
* ANN 隐层结构(使用“-”分隔) |
|||
*/ |
|||
private String hide; |
|||
|
|||
/** |
|||
* 条件(保留原拼写以兼容旧入参) |
|||
*/ |
|||
private String conditon; |
|||
|
|||
/** |
|||
* 正确拼写的条件字段,兼容新入参 |
|||
*/ |
|||
@JsonAlias("condition") |
|||
private String condition; |
|||
} |
|||
Loading…
Reference in new issue