How to compare different metrics?

核能气质少年 提交于 2019-12-11 06:59:13

问题


I am using GridSearchCV to tune the hyperparameters. I also would like to compare different metrics with each other:

def create_model(...

    model.add(Dense(,..)
    model.compile(..)
    return model

model = KerasRegressor(build_fn=create_model, verbose=0)

grid_obj  = GridSearchCV (estimator=model 
                , param_grid=hypparas
                , n_jobs=1
                , cv = 3
                , scoring = ['explained_variance', 'neg_mean_squared_error', 'r2']
                , refit = 'neg_mean_squared_error'
                , return_train_score=True
                , verbose = 2
                )

grid_result = grid_obj.fit(X_train1, y_train1)

Afai understood is that the hyperparameters are optimized such that they fit neg_mean_squared_error the best. But how can I see how the other metrics behave e.g. when evaluating? Best would be if I could compare them visually.

来源:https://stackoverflow.com/questions/58536084/how-to-compare-different-metrics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!