methodSelection.py 416 B

12345678910111213141516171819
  1. #! /usr/bin/python
  2. import sys
  3. import os
  4. import helperFunctions
  5. ###
  6. def selectActiveLearning(method, configFile=None, verbose=True):
  7. sys.path.append(os.path.abspath(os.path.dirname(__file__)) + '/activeLearning')
  8. if method == 'GPemoc':
  9. import activeLearningGPemoc
  10. return activeLearningGPemoc.Regressor(configFile=configFile, verbose=verbose)
  11. else:
  12. raise Exception('Unknown method %s!'%method)