from sklearn import linear_model import sys sys.path.append('../template_script') import templateScript lasso = linear_model.MultiTaskLasso(alpha=0.1) templateScript.doScript("linear_reg", lasso)
from sklearn.ensemble import BaggingClassifier import sys sys.path.append('../template_script') import templateScript rf = BaggingClassifier(n_estimators=200, learning_rate=1, max_features='log2', bootstrap='False') templateScript.doScript("rf",rf)
from sklearn.kernel_ridge import KernelRidge import sys sys.path.append('../template_script') import templateScript kr = KernelRidge(alpha=0.1) templateScript.doScript("linear_reg",kr)
from sklearn import linear_model import sys sys.path.append('../template_script') import templateScript log = linear_model.LogisticRegression(C=1e5) templateScript.doScript("linear_reg",log)
from sklearn.neighbors import KNeighborsClassifier import sys sys.path.append('/home/sheryan/Documents/EEclasses/Machine Learning/MachineLearning/kaggle/template_script') import templateScript knn = KNeighborsClassifier() templateScript.doScript("knn",knn)
from sklearn.svm import SVC import sys sys.path.append('/home/sheryan/Documents/EEclasses/Machine Learning/MachineLearning/kaggle/template_script') import templateScript svm = clf=SVC(C=19, kernel='rbf', gamma=0.019) templateScript.doScript("svm",svm)