def test_bestParameterSet_1(self):
     assert_equal("C5.NoQVsModel",
                  m._bestParameterSet(self.parameterSets, "C5", []).name)
     assert_equal("C5.NoMergeQVModel",
                  m._bestParameterSet(self.parameterSets, "C5",
                                   m.NoMergeQVModel.requiredFeatures).name)
     assert_equal("C5.AllQVsModel",
                  m._bestParameterSet(self.parameterSets, "C5",
                                   m.AllQVsModel.requiredFeatures).name)
 def test_bestParameterSet_2(self):
     # Try C6, where there is only one trained parameter set
     assert_equal("C6.NoQVsModel",
                  m._bestParameterSet(self.parameterSets, "C6", []).name)
     assert_equal("C6.NoQVsModel",
                  m._bestParameterSet(self.parameterSets, "C6",
                                     m.NoMergeQVModel.requiredFeatures).name)
     assert_equal("C6.NoQVsModel",
                  m._bestParameterSet(self.parameterSets, "C6",
                                     m.AllQVsModel.requiredFeatures).name)
Exemplo n.º 3
0
 def test_bestParameterSet_1(self):
     assert_equal("C5.NoQVsModel",
                  m._bestParameterSet(self.parameterSets, "C5", []).name)
     assert_equal(
         "C5.NoMergeQVModel",
         m._bestParameterSet(self.parameterSets, "C5",
                             m.NoMergeQVModel.requiredFeatures).name)
     assert_equal(
         "C5.AllQVsModel",
         m._bestParameterSet(self.parameterSets, "C5",
                             m.AllQVsModel.requiredFeatures).name)
 def test_bestParameterSet_3(self):
     # Try the "future" chemistry C7, where we don't have access to
     # any trained parameter sets yet
     assert_equal("unknown.NoQVsModel",
                  m._bestParameterSet(self.parameterSets, "C7", []).name)
     assert_equal("unknown.NoMergeQVModel",
                  m._bestParameterSet(self.parameterSets, "C7",
                                     m.NoMergeQVModel.requiredFeatures).name)
     assert_equal("unknown.AllQVsModel",
                  m._bestParameterSet(self.parameterSets, "C7",
                                     m.AllQVsModel.requiredFeatures).name)
Exemplo n.º 5
0
 def test_bestParameterSet_2(self):
     # Try C6, where there is only one trained parameter set
     assert_equal("C6.NoQVsModel",
                  m._bestParameterSet(self.parameterSets, "C6", []).name)
     assert_equal(
         "C6.NoQVsModel",
         m._bestParameterSet(self.parameterSets, "C6",
                             m.NoMergeQVModel.requiredFeatures).name)
     assert_equal(
         "C6.NoQVsModel",
         m._bestParameterSet(self.parameterSets, "C6",
                             m.AllQVsModel.requiredFeatures).name)
Exemplo n.º 6
0
 def test_bestParameterSet_3(self):
     # Try the "future" chemistry C7, where we don't have access to
     # any trained parameter sets yet
     assert_equal("unknown.NoQVsModel",
                  m._bestParameterSet(self.parameterSets, "C7", []).name)
     assert_equal(
         "unknown.NoMergeQVModel",
         m._bestParameterSet(self.parameterSets, "C7",
                             m.NoMergeQVModel.requiredFeatures).name)
     assert_equal(
         "unknown.AllQVsModel",
         m._bestParameterSet(self.parameterSets, "C7",
                             m.AllQVsModel.requiredFeatures).name)