mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-29 06:46:22 +02:00
Adding testing file for examples
This commit is contained in:
parent
7bdf01da10
commit
417dac0080
1 changed files with 26 additions and 0 deletions
26
GPy/testing/examples_tests.py
Normal file
26
GPy/testing/examples_tests.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Copyright (c) 2012, GPy authors (see AUTHORS.txt).
|
||||
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||
|
||||
import unittest
|
||||
import numpy as np
|
||||
import GPy
|
||||
|
||||
class ExamplesTests(unittest.TestCase):
|
||||
def test_check_model_returned(self):
|
||||
pass
|
||||
|
||||
def test_model_checkgrads(self):
|
||||
pass
|
||||
|
||||
def test_all_examples(self):
|
||||
#Load models
|
||||
|
||||
#Loop through models
|
||||
for model in models:
|
||||
|
||||
self.assertTrue(m.checkgrad())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print "Running unit tests, please be (very) patient..."
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue