{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Causal Structures - Creation & Training" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this example we want to illustrate how the CausalStructure class is used.\n", "We start with the imports." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "By using this Application, You are agreeing to be bound by the terms and conditions of the Halerium End-User License Agreement that can be downloaded here: https://erium.de/halerium-eula.txt\n" ] } ], "source": [ "import numpy as np\n", "import pandas as pd\n", "import pylab as pl\n", "\n", "from halerium import CausalStructure" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### The artificial data" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We create an artificial data set containing three parameters." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | (a) | \n", "(b|a) | \n", "(c|a,b) | \n", "
---|---|---|---|
0 | \n", "4.825023 | \n", "-20.580472 | \n", "40.432953 | \n", "
1 | \n", "5.034268 | \n", "-27.335642 | \n", "39.101290 | \n", "
2 | \n", "5.115304 | \n", "-32.008941 | \n", "37.765420 | \n", "
3 | \n", "4.974756 | \n", "-24.083157 | \n", "40.149657 | \n", "
4 | \n", "5.098132 | \n", "-28.683511 | \n", "39.198809 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "
95 | \n", "5.000302 | \n", "-24.361388 | \n", "40.234901 | \n", "
96 | \n", "4.992398 | \n", "-24.908699 | \n", "39.977586 | \n", "
97 | \n", "5.000396 | \n", "-23.996587 | \n", "40.410045 | \n", "
98 | \n", "4.981499 | \n", "-24.952434 | \n", "39.641407 | \n", "
99 | \n", "4.751285 | \n", "-14.718803 | \n", "42.547324 | \n", "
100 rows × 3 columns
\n", "