def main(): hsic_lasso = HSICLasso() hsic_lasso.input("../tests/test_data/csv_data_mv.csv", output_list=['output1', 'output2']) hsic_lasso.regression(5) hsic_lasso.dump() hsic_lasso.plot_path()
def main(): #Numpy array input example hsic_lasso = HSICLasso() data = sio.loadmat("../tests/test_data/matlab_data.mat") X = data['X'].transpose() Y = data['Y'][0] featname = ['Feat%d' % x for x in range(1, X.shape[1] + 1)] hsic_lasso.input(X, Y, featname=featname) hsic_lasso.regression(5) hsic_lasso.dump() hsic_lasso.plot_path() #Save parameters hsic_lasso.save_param()
def main(): hsic_lasso = HSICLasso() hsic_lasso.input("../tests/test_data/matlab_data.mat") hsic_lasso.regression(5) hsic_lasso.dump() hsic_lasso.plot_path()