Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
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)
Пример #4
0
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)
Пример #5
0
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)
Пример #6
0
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)