{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# GMM Visualization\n",
"The following notebook is comprised of 4 primary steps:\n",
"\n",
"1. Initialize required packages, directories and parameters\n",
"2. Load Multivariate data\n",
"3. Create the GMM\n",
"4. Visualizate GMM"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"ExecuteTime": {
"end_time": "2020-11-24T18:10:59.766892Z",
"start_time": "2020-11-24T18:10:53.977199Z"
}
},
"outputs": [],
"source": [
"import sys, os\n",
"import pygeostat as gs\n",
"import pandas as pd\n",
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Loading CCG Executable"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"ExecuteTime": {
"end_time": "2020-11-24T18:17:31.142511Z",
"start_time": "2020-11-24T18:17:31.138511Z"
}
},
"outputs": [],
"source": [
"outdir = 'Output'\n",
"gs.mkdir(outdir)\n",
"#path to GSLIB executables\n",
"exe_dir=\"../pygeostat/executable/\"\n",
"\n",
"gs.PlotStyle['font.size'] = 12\n",
"gs.Parameters['data.tmin'] = -998"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Loading data"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"ExecuteTime": {
"end_time": "2020-11-24T18:17:32.041086Z",
"start_time": "2020-11-24T18:17:31.786643Z"
}
},
"outputs": [
{
"data": {
"text/html": [
"
| \n", " | X | \n", "Y | \n", "Var1 | \n", "Var2 | \n", "Var3 | \n", "
|---|---|---|---|---|---|
| 0 | \n", "28949.708226 | \n", "96548.685172 | \n", "0.78641 | \n", "2.96716 | \n", "-1.47010 | \n", "
| 1 | \n", "24610.158555 | \n", "96251.877101 | \n", "0.54300 | \n", "2.13614 | \n", "0.74573 | \n", "
| 2 | \n", "27719.964681 | \n", "90687.703337 | \n", "-0.39320 | \n", "0.48682 | \n", "0.23470 | \n", "
| 3 | \n", "26910.320345 | \n", "92501.863566 | \n", "0.44938 | \n", "1.27002 | \n", "-0.31840 | \n", "
| 4 | \n", "21725.601294 | \n", "92981.211253 | \n", "1.38558 | \n", "1.77734 | \n", "2.40020 | \n", "