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 " 'recurrent_dropout': [0.0, 0.1, 0.2, 0.4],\n",
42 " 'epochs': [20, 50, 100, 200, 500],\n",
43 " 'learning_rate': [0.0001, 0.001, 0.01, 0.1]\n",
49 "execution_count": null,
50 "id": "3d2130b4-a085-419c-b8e5-6fe46755e9b6",
54 "print(len(list(ParameterGrid(param_grids))))\n",
55 "list(ParameterGrid(param_grids))[0:5]"
60 "execution_count": null,
61 "id": "cf962e03-8154-4aca-b11e-64b2d8101b27",
69 "display_name": "Python 3 (ipykernel)",
78 "file_extension": ".py",
79 "mimetype": "text/x-python",
81 "nbconvert_exporter": "python",
82 "pygments_lexer": "ipython3",