小编Tho*_*mas的帖子

How to perform KerasClassifier model selection with varying input dimensions

I am trying to perform model selection on a KerasClassifier, for several sliding windows of samples. However, each sliding window has a different input dimension (as a result of feature selection).

The function I have written works for regular scikit-learn classifiers. i.e. it returns a dictionary containing optimal RF models (using random grid search):

# return a dictionary with optimal models for each sliding window
rf_optimal_models = model_selection(RandomForestClassifier(), 
param_distributions = random_grid_rf, n_iter = 10)
Run Code Online (Sandbox Code Playgroud)

However, I am unsure how to …

python scikit-learn keras

6
推荐指数
1
解决办法
1180
查看次数

标签 统计

keras ×1

python ×1

scikit-learn ×1