""" Description here

Author: <NAME>
Date: 20 Oct 2015
"""

import sys
sys.path.append("../")

from Regression import GaussianProcess
from process_data import data_from_file

def run(file_name=None,
        variable=None,
        use_kernels=None,
        use_means=None,
        estimator=None,
        sequential_mode=None,
        params=None):
    
    
    data_dict = data_from_file(file_name, variable=variable)
    
    my_gp = GaussianProcess(data_dict=data_dict,
                            variable=variable,
                            use_kernels=use_kernels,
                            use_means=use_means,
                            estimator=estimator,
                            sequential_mode=sequential_mode,
                            params=None)
    
    my_gp.predict()
    my_gp.compute_score()
    my_gp.show_prediction()
    
    
# MLE Tide
# params = [0.03, 0.1, 5e02, 9.4, 3e2, 2.9, 1, 1.5e2]
# run('sotonmet.txt', 'tide', 'matern_32 * periodic', 'constant+periodic', 'MLE', True, params)

# MAP Tide
# params = [0.025, 0.71, 1.8e3 , 0.71, 3e2, 3]
# run('sotonmet.txt', 'tide', 'matern_12 * periodic', 'constant', 'MAP', False, params)

# MLE temp
params = [0.25, 0.47, 3.8, 2.9, 41, 12]
run('sotonmet.txt', 'temperature', 'exponential_quadratic + exponential_quadratic', 'constant', 'MLE', False, params)

# MAP temp
# params = [0.16, 1.5, 2.2e2, 1.9, 5.9e02, 12]
# run('sotonmet.txt', 'temperature', 'matern_12 * periodic', 'constant', 'MAP', False, params)

""" Description here

Author: <NAME>
Date: 20 Oct 2015
"""

import sys
sys.path.append("../")

from Regression import GaussianProcess
from process_data import data_from_file

def run(file_name=None,
        variable=None,
        use_kernels=None,
        use_means=None,
        estimator=None,
        sequential_mode=None,
        params=None):
    
    
    data_dict = data_from_file(file_name, variable=variable)
    
    my_gp = GaussianProcess(data_dict=data_dict,
                            variable=variable,
                            use_kernels=use_kernels,
                            use_means=use_means,
                            estimator=estimator,
                            sequential_mode=sequential_mode,
                            params=None)
    
    my_gp.predict()
    my_gp.compute_score()
    my_gp.show_prediction()
    
    
# MLE Tide
# params = [0.03, 0.1, 5e02, 9.4, 3e2, 2.9, 1, 1.5e2]
# run('sotonmet.txt', 'tide', 'matern_32 * periodic', 'constant+periodic', 'MLE', True, params)

# MAP Tide
# params = [0.025, 0.71, 1.8e3 , 0.71, 3e2, 3]
# run('sotonmet.txt', 'tide', 'matern_12 * periodic', 'constant', 'MAP', False, params)

# MLE temp
params = [0.25, 0.47, 3.8, 2.9, 41, 12]
run('sotonmet.txt', 'temperature', 'exponential_quadratic + exponential_quadratic', 'constant', 'MLE', False, params)

# MAP temp
# params = [0.16, 1.5, 2.2e2, 1.9, 5.9e02, 12]
# run('sotonmet.txt', 'temperature', 'matern_12 * periodic', 'constant', 'MAP', False, params)

Description here  Author: <NAME> Date: 20 Oct 2015 # MLE Tide # params = [0.03, 0.1, 5e02, 9.4, 3e2, 2.9, 1, 1.5e2] # run('sotonmet.txt', 'tide', 'matern_32 * periodic', 'constant+periodic', 'MLE', True, params) # MAP Tide # params = [0.025, 0.71, 1.8e3 , 0.71, 3e2, 3] # run('sotonmet.txt', 'tide', 'matern_12 * periodic', 'constant', 'MAP', False, params) # MLE temp # MAP temp # params = [0.16, 1.5, 2.2e2, 1.9, 5.9e02, 12] # run('sotonmet.txt', 'temperature', 'matern_12 * periodic', 'constant', 'MAP', False, params)