我有以下表格:
discount table:
id
name
description
amount
discount_exception
id
from_date
to_date
discount_id (foreign key to discount table)
折扣例外表用于存储折扣对用户不可用的日期范围,因此不应显示折扣。请注意,discount和discount_exception之间存在1:M的关系。换句话说,一个折扣可以有很多例外。
现在,我编写SQL的方法是获取所有折扣,然后在数组中循环它们,并查询discount_exception表,以确定每个折扣是否在特定的日期范围内
我正在尝试在google cloud ai平台上创建一个版本,但它找不到impute模块 No module named 'sklearn.impute._base; 'sklearn.impute' is not a package ? 框架版本是sklearn 0.20.4,最后我检查了一下文档0.20.4中有sklearn.impute应用程序接口。 第1785页https://scikit-learn.org/0.20//_downloads/scikit-learn-docs.pdf 整个sklearn包都包含在ai平台中了吗?有没有变通的办法(我真的不