コード例 #1
0
 def test_raises_when_alpha_min_above_one(self):
     with self.assertRaises(RuntimeError):
         LinearTemperatureScaler(1.1, 0.8, 300., 500.)
コード例 #2
0
 def setUp(self):
     self.s = LinearTemperatureScaler(0.2, 0.8, 300., 500.)
コード例 #3
0
 def test_raises_when_alpha_min_below_zero(self):
     with self.assertRaises(RuntimeError):
         LinearTemperatureScaler(-0.1, 0.8, 300., 500.)
コード例 #4
0
 def test_raises_when_temp_max_is_below_zero(self):
     with self.assertRaises(RuntimeError):
         LinearTemperatureScaler(0.0, 1.0, 300., -500.)