5 "execution_count": null,
6 "id": "4988786f-6672-46b7-b837-172f57dbf986",
10 "from sklearn.model_selection import ParameterGrid"
15 "execution_count": null,
16 "id": "b6fb2286-77ae-4905-8d4f-b40b305b53ea",
22 "with open(\"params.yaml\") as file:\n",
23 " params = yaml.safe_load(file)[\"rnn\"]\n",
24 "params.update({'scale': 1})\n",
30 "execution_count": null,
31 "id": "ee18a132-de42-4665-88f6-fc6944e7e23a",
36 " 'batch_size': [12, 24, 32, 48],\n",
37 " 'timesteps': [3, 5, 8, 10],\n",
38 " 'rnn_units': [3, 6, 12, 15, 20],\n",
39 " 'activation': [['linear', 'linear'], ['relu', 'relu'], ['sigmoid', 'sigmoid'], ['sigmoid', 'relu']],\n",
40 " 'dropout': [[0.0,0.0], [0.0,0.2], [0.2,0.0], [0.2,0.2], [0.4,0.4]],\n",
41 " 'clipvalue': [[1], [2], [3], [4], [5]],\n",
42 " 'recurrent_dropout': [0.0, 0.1, 0.2, 0.4],\n",
43 " 'epochs': [20, 50, 100, 200, 500],\n",
44 " 'learning_rate': [0.0001, 0.001, 0.01, 0.1]\n",
50 "execution_count": null,
51 "id": "3d2130b4-a085-419c-b8e5-6fe46755e9b6",
55 "print(len(list(ParameterGrid(param_grids))))\n",
56 "list(ParameterGrid(param_grids))[0:5]"
61 "execution_count": null,
62 "id": "cf962e03-8154-4aca-b11e-64b2d8101b27",
70 "display_name": "Python 3 (ipykernel)",
79 "file_extension": ".py",
80 "mimetype": "text/x-python",
82 "nbconvert_exporter": "python",
83 "pygments_lexer": "ipython3",