Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/o/r/Orange-2.7.2/Orange/testing/unit/tests/test_svm.py   Orange(Download)
                t_inst = Orange.data.Instance(classifier.domain, inst)                    
                dec_v1 = example_weighted_sum(t_inst, weight) - rho
                self.assertAlmostEqual(dec_v, dec_v1, 4)
 
    @test_on_datasets(datasets=testing.REGRESSION_DATASETS)
            prediction = predictor(inst)
            w_sum = example_weighted_sum(t_inst, weights)
            self.assertAlmostEqual(float(prediction), 
                                   w_sum - predictor.rho[0],
                                   places=4)

src/o/r/orangecontrib.earth-0.1.3/orangecontrib/earth/tests/test_earth.py   orangecontrib.earth(Download)
        basis_matrix_a = basis_matrix_a.filled(0)
        diff = basis_matrix - basis_matrix_a
        self.assertAlmostEqual(numpy.max(diff), 0, places=3)
 
    @test_on_data