| | |
| | | import com.iailab.module.model.mcs.pre.service.MmPredictModelService; |
| | | import com.iailab.module.model.mdk.sample.dto.ColumnItem; |
| | | import com.iailab.module.model.mdk.sample.dto.ColumnItemPort; |
| | | import com.iailab.module.model.mdk.sample.dto.SampleInfo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | @Autowired |
| | | private MmPredictItemService mmPredictItemService; |
| | | |
| | | @Override |
| | | public SampleInfo prepareSampleInfo(String modelId, Date predictTime) { |
| | | return super.prepareSampleInfo(modelId, predictTime); |
| | | } |
| | | |
| | | /** |
| | | * 返回样本矩阵的列数 |
| | | * |
| | |
| | | @Override |
| | | protected Integer getSampleColumn(String modelId) { |
| | | return mmPredictModelService.getSampleLength(modelId).intValue(); |
| | | } |
| | | |
| | | /** |
| | | * 返回样本的开始时间 |
| | | * |
| | | * @param columnItem |
| | | * @param predictTime |
| | | * @return |
| | | */ |
| | | @Override |
| | | protected Date getStartTime(ColumnItem columnItem, Date predictTime) { |
| | | return super.getStartTime(columnItem, predictTime); |
| | | } |
| | | |
| | | /** |
| | | * 返回样本的结束时间 |
| | | * |
| | | * @param columnItem |
| | | * @param predictTime |
| | | * @return |
| | | */ |
| | | @Override |
| | | protected Date getEndTime(ColumnItem columnItem, Date predictTime) { |
| | | return super.getEndTime(columnItem, predictTime); |
| | | } |
| | | |
| | | /** |
| | |
| | | List<ColumnItem> columnItemList = new ArrayList<>(); |
| | | ColumnItem columnInfo = new ColumnItem(); |
| | | ColumnItemPort curPort = new ColumnItemPort(); //当前端口 |
| | | List<MmModelParamEntity> modelInputParamEntityList = mmModelParamService.getByModelidFromCatch(modelId); |
| | | List<MmModelParamEntity> modelInputParamEntityList = mmModelParamService.getByModelidFromCache(modelId); |
| | | if (CollectionUtils.isEmpty(modelInputParamEntityList)) { |
| | | return null; |
| | | } |