{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Using describe to evaluate the integrity of your visualization\n\nThe downside to using dimensionality reduction to visualize your data is that\nsome variance will likely be removed. To help get a sense for the integrity of your low\ndimensional visualizations, we built the `describe` function, which computes\nthe covariance (samples by samples) of both the raw and reduced datasets, and\nplots their correlation.\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "# Code source: Andrew Heusser\n# License: MIT\n\n# import\nimport hypertools as hyp\nimport numpy as np\n\n# load example data\ngeo = hyp.load('weights_sample')\ndata = geo.get_data()\n\n# plot\nhyp.describe(data)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.4" } }, "nbformat": 4, "nbformat_minor": 0 }