def test_conversion_bad_inputs(self):
# Error on converting an untrained model
with self.assertRaises(Exception):
model = Imputer()
spec = converter.convert(model, 'data', 'out')
# Check the expected class during covnersion.
with self.assertRaises(Exception):
from sklearn.linear_model import LinearRegression
model = LinearRegression()
spec = converter.convert(model, 'data', 'out')
评论列表
文章目录