Commit b53b382f authored by SOLIMAN Sylvain's avatar SOLIMAN Sylvain
Browse files

More questions

parent 3abe47ef
......@@ -88,7 +88,7 @@
"it will read the file `Model` and generate `#Initial_states` random initial states from which it will run simulations for `Time_horizon`.\n",
"\n",
"You can add options for the simulation, notably: `boolean_simulation: yes` to go from default `ssa` to `sbn` method,\n",
"and `cnf_clause_size: 2` to change the size of the disjuncts considered from the default `3`."
"and `cnf_clause_size: 2` to change the size of the clauses considered from the default `3`."
]
},
{
......@@ -260,6 +260,85 @@
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Question 5\n",
"\n",
"If one hopes for traces that would present all events with equal probability, what would be the approximate total number of samples needed to learn our 12-species model for $h = 0.1$?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For time reasons, we will only use 10000 samples total.\n",
"\n",
"## Question 6\n",
"\n",
"Compare the three following models, and especially the last two ones:\n",
"\n",
"- the model learnt with a single (stochastic) simulation of length 10000\n",
"- the model learnt with 10000 simulations of length 1 (with random initial states)\n",
"- the original model\n",
"\n",
"What do you observe? Can you explain why?\n",
"\n",
"If there are inconsistencies, can you propose a possible solution?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Question 7\n",
"\n",
"Keeping the total number of samples at 10000, can you find a threshold after which models learnt are of better quality?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
......@@ -278,7 +357,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Question\n",
"## Question 8\n",
"\n",
"Could we have used the DNF learning algorithm? Why?"
]
......@@ -290,6 +369,61 @@
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Question 9\n",
"\n",
"In order to reduce the number of samples needed for a given $h$, one solution is to use some prior knowledge.\n",
"\n",
"Say we provide to the PAC learning algorithm the influence graph obtained by `draw_influences`.\n",
"\n",
"How and why would that reduce the number of samples?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment