Esempio n. 1
0
def train_svc():
    # Selecting the model
    return mp.ModelProperties(), svm.SVC(decision_function_shape='ovo')
Esempio n. 2
0
def train_xgboost_classifier():
    return mp.ModelProperties(), xgboost.XGBClassifier()
Esempio n. 3
0
def train_random_forest():
    # Selecting the model
    return mp.ModelProperties(), RandomForestClassifier(
        n_estimators=100)  # Default estimators is 10
Esempio n. 4
0
def train_knn():
    # Selecting the model
    return mp.ModelProperties(), neighbors.KNeighborsClassifier(
    )  # default is 5 neighbors
Esempio n. 5
0
def train_sgd_regressor():
    # Picking model
    return mp.ModelProperties(regression=True,
                              online=True), linear_model.SGDRegressor()
Esempio n. 6
0
def train_passive_aggressive_regressor():
    # Picking model
    return mp.ModelProperties(
        regression=True,
        online=True), linear_model.PassiveAggressiveRegressor()
Esempio n. 7
0
def train_bayesian_ridge():
    # Picking model
    return mp.ModelProperties(regression=True), linear_model.BayesianRidge()
Esempio n. 8
0
def train_xgboost_regressor():
    return mp.ModelProperties(regression=True), xgboost.XGBRegressor()
Esempio n. 9
0
def train_support_vector_regression():
    # Picking model
    return mp.ModelProperties(regression=True), svm.SVR()