{ "cells": [ { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "1y9e3ePnUpPg" }, "source": [ "# Example - Vector Recommendations With NBA Players" ] }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "Qv1cp6gtUpPh" }, "source": [ "With the growth of the NBA quickly introducing new way to calculate statistics that are human-calculated, it doesn't make much sense to keep this using traditional human-orientated approaches and judgements based on players. \n", "\n", "Here, we want to be able to identify players that have similar statistics to other players without having to look at each statistic line by line. We want to just know. \n", "\n", "Below, we investigate the different players and their most similar counterparts as well as examine the efficiencies between the different players." ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "colab": {}, "colab_type": "code", "id": "Blwr8CLDUpPi", "nbsphinx": "hidden" }, "outputs": [], "source": [ "%%capture\n", "!pip install xlrd\n", "!pip install drive/My\\ Drive/vecdb-python/.\n", "!pip install appdirs\n", "!pip install transformers" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "nbsphinx": "hidden" }, "outputs": [], "source": [ "import pandas as pd\n", "pd.set_option('display.max_columns', 100)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "nba_per_36 = pd.read_excel('data/nba_per_36.xlsx', skiprows=[0])\n", "nba_per_game = pd.read_excel('data/nba_per_game.xlsx')" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
FULL NAMETEAMPOSAGEGPMPGMIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floorUSG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floorTor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessionsFTAFT%2PA2P%3PA3P%eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGATS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.PPGPointsPoints per game.RPGReboundsRebounds per game.TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.APGAssistsAssists per game.AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the courtSPGStealsSteals per game.BPGBlocksBlocks per game.TOPGTurnoversTurnovers per game.VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.
151Angel DelgadoLacC24.3927.415.416.80.020.50050.20000.0000.2000.2551.52.014.30.00.00.500.000.000.079.298.9
587John WallWasG28.603234.571.928.816.31750.6973820.5081690.3020.4910.52820.73.65.78.739.21.530.913.8110.0104.1111.5
\n", "
" ], "text/plain": [ " FULL NAME TEAM POS AGE GP MPG \\\n", "151 Angel Delgado Lac C 24.39 2 7.4 \n", "587 John Wall Was G 28.60 32 34.5 \n", "\n", " MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor \\\n", "151 15.4 \n", "587 71.9 \n", "\n", " USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor \\\n", "151 16.8 \n", "587 28.8 \n", "\n", " Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions \\\n", "151 0.0 \n", "587 16.3 \n", "\n", " FTA FT% 2PA 2P% 3PA 3P% \\\n", "151 2 0.500 5 0.200 0 0.000 \n", "587 175 0.697 382 0.508 169 0.302 \n", "\n", " eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA \\\n", "151 0.200 \n", "587 0.491 \n", "\n", " TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws. \\\n", "151 0.255 \n", "587 0.528 \n", "\n", " PPGPointsPoints per game. RPGReboundsRebounds per game. \\\n", "151 1.5 2.0 \n", "587 20.7 3.6 \n", "\n", " TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court. \\\n", "151 14.3 \n", "587 5.7 \n", "\n", " APGAssistsAssists per game. \\\n", "151 0.0 \n", "587 8.7 \n", "\n", " AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court \\\n", "151 0.0 \n", "587 39.2 \n", "\n", " SPGStealsSteals per game. BPGBlocksBlocks per game. \\\n", "151 0.50 0.00 \n", "587 1.53 0.91 \n", "\n", " TOPGTurnoversTurnovers per game. \\\n", "151 0.00 \n", "587 3.81 \n", "\n", " VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10 \\\n", "151 0.0 \n", "587 10.0 \n", "\n", " ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions. \\\n", "151 79.2 \n", "587 104.1 \n", "\n", " DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court. \n", "151 98.9 \n", "587 111.5 " ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "nba_per_game.sample(2)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "nbsphinx": "hidden" }, "outputs": [], "source": [ "username = 'username'\n", "api_key = 'api_key'\n", "url = 'url'" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "colab": {}, "colab_type": "code", "id": "OHP7q-A-UpPx" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Logged in. Welcome jacky-wong. To view list of available collections, call list_collections() method.\n" ] } ], "source": [ "from vectorai import ViClient\n", "vi_client = ViClient(username, api_key, url)" ] }, { "cell_type": "code", "execution_count": 16, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 83, "referenced_widgets": [ "f47970c27dd0464dbea2b4e6b134df33", "daebda4154024577af22ffa9351d62f3", "b110424e06b14030a40212dac5e426ac", "c82251c1b5444ba9adb95f8e0993f0f5", "141e1e99b3e14fd7b04322917d6d462f", "6c18a1a7b8d04c2e974bd67228687e99", "9dadb454ed0244028670e6ed973e3c67", "713a249af08a493e8fca22e6d00e24fb" ] }, "colab_type": "code", "id": "nghgh8VbUpP0", "outputId": "fc8ebd82-ff61-4d2f-c53c-f9654b722a62" }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "f8eba613a3334ce8af44505aba6e94eb", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(FloatProgress(value=0.0, max=6.0), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] }, { "data": { "text/plain": [ "{'inserted_successfully': 622, 'failed': 0, 'failed_document_ids': []}" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from sklearn.preprocessing import StandardScaler\n", "\n", "def create_collection(df, collection_name):\n", " df = df.fillna(0)\n", " scaler = StandardScaler()\n", " season_vector = scaler.fit_transform(df.drop(['FULL NAME', 'TEAM', 'POS', 'AGE', 'MPG'], axis=1))\n", " df['season_vector_'] = season_vector.tolist()\n", " if collection_name in vi_client.list_collections():\n", " vi_client.delete_collection(collection_name)\n", " return vi_client.insert_df(collection_name, df, chunksize=100)\n", "\n", "create_collection(nba_per_game, 'nba_season_per_game_stats_demo')" ] }, { "cell_type": "code", "execution_count": 17, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 83, "referenced_widgets": [ "1ae303aa25ab4169895297c43a87ff47", "c8e02289412a4761ae672fefb453d9ed", "efe1ce3310534e69bd99ec3fe428b36d", "e67bab9a48ee470cbe877100c8252c9e", "099111d24b974bb89e3cbdf9f61020ee", "961b98d27bd5438c9adca77583dc0fb8", "f55918e8cc0b4460aecd9f6c45d73334", "d65dba6d34c84f04bd781bf4492358ea" ] }, "colab_type": "code", "id": "bXmf4QLBUpP4", "outputId": "4f6d4ede-3e6c-4db8-eb28-b6b62f8c49e4" }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "8914f65aa80249a4abd468a86a92a8f9", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(FloatProgress(value=0.0, max=2.0), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] }, { "data": { "text/plain": [ "{'inserted_successfully': 212, 'failed': 0, 'failed_document_ids': []}" ] }, "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ "create_collection(nba_per_36, 'nba_season_per_36_stats_demo')" ] }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "5LuizHLqUpQY" }, "source": [ "## Visualising NBA players " ] }, { "cell_type": "code", "execution_count": 19, "metadata": { "colab": {}, "colab_type": "code", "id": "_ESfQQPBUpQZ" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'status': 'Finished'}\n" ] }, { "data": { "text/plain": [ "'Done'" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "job = vi_client.dimensionality_reduction_job('nba_season_per_game_stats_demo', vector_field='season_vector_', n_components=2)\n", "job = vi_client.dimensionality_reduction_job('nba_season_per_36_stats_demo', vector_field='season_vector_', n_components=2)\n", "vi_client.wait_till_jobs_complete('nba_season_per_36_stats_demo', **job)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 591, "referenced_widgets": [ "04c787cae3d54b2db28fdd651d2f209d", "65e428aa5dac45c6aacec061252bf637", "ab39e9ebd2984a1fbf0b37094be1ea92", "4582d34e030041cca51aa3685105f8dd", "a39345b103f04976b8851e69a095c9bd", "cda6a788726543c39546b6b84d315c53", "cbd05f0799c5468c9dd55050580a0348", "b0edc8804b0e4f98962156ddd3088f9d" ] }, "colab_type": "code", "id": "gFe3RNBvUpQe", "outputId": "b0776959-9147-461d-cf58-3bc90ebdfd71" }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "05ef38e637b14439b5e132475bb7c642", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(FloatProgress(value=0.0, max=7.0), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "marker": { "color": 5, "size": 5 }, "mode": "markers", "name": "G-F", "text": [ "Terrence Ross", "Tomas Satoransky", "Wayne Selden", "Wayne Selden", "Ben Simmons", "JR Smith", "DJ Stephens", "Garrett Temple", "Garrett Temple", "Evan Turner", "Andrew Wiggins", "Kenrich Williams", "Nick Young", "DeVaughn Akoon-Purcell", "Justin Anderson", "Dwayne Bacon", "Nicolas Batum", "Marco Belinelli", "Corey Brewer", "Corey Brewer", "Ryan Broekhoff", "Dillon Brooks", "Reggie Bullock", "Jimmy Butler", "Jimmy Butler", "Vince Carter", "Allen Crabbe", "Luka Doncic", "PJ Dozier", "Evan Fournier", "Melvin Frazier Jr.", "Danny Green", "Gerald Green", "Daniel Hamilton", "Joe Harris", "Andre Iguodala", "Furkan Korkmaz", "Kyle Korver", "Kyle Korver", "Timothe Luwawu-Cabarrot", "Timothe Luwawu-Cabarrot", "Wesley Matthews", "Wesley Matthews", "Wesley Matthews", "Rodney McGruder", "Dzanan Musa", "Theo Pinson", "Glenn Robinson III" ], "type": "scatter", "x": [ 2.489110231399536, 2.500331401824951, -1.662100911140442, -0.31253644824028015, 6.629158973693848, -1.2787511348724365, -3.9445319175720215, 0.46944698691368103, -1.2774850130081177, 1.1467605829238892, 3.692917585372925, -0.26672807335853577, -4.366084575653076, -4.145834445953369, -1.6878377199172974, -0.9888750314712524, 2.2686915397644043, 0.9531844854354858, -0.8149436116218567, -1.367617130279541, -1.7090811729431152, -1.50260329246521, -0.7657060027122498, 3.2426273822784424, 4.071280002593994, 0.0560145266354084, -0.32799604535102844, 6.762531280517578, -2.6284852027893066, 3.155196189880371, -4.647373199462891, 1.5973355770111084, 0.14980991184711456, -2.165637969970703, 2.3785159587860107, 0.9146768450737, -0.9415358304977417, -1.0652985572814941, -0.1529248058795929, -3.816683530807495, -1.383072853088379, 0.9795578718185425, -2.066563606262207, 0.1468162089586258, 0.08542661368846893, -3.577552080154419, -1.646132469177246, -2.030302047729492 ], "y": [ 0.006294318474829197, -0.09945494681596756, -0.30438876152038574, 0.20576384663581848, 2.852360248565674, 0.49931201338768005, 0.906879186630249, -0.7520115971565247, -0.7856308817863464, 0.7560849785804749, 1.5285447835922241, -0.4050018787384033, 0.47751709818840027, 4.752243518829346, -0.9607921242713928, -1.5073596239089966, -0.5742186307907104, -0.5225008726119995, 0.3924534022808075, -1.4354088306427002, -2.372943162918091, -0.009205352514982224, -1.4097862243652344, 0.20504608750343323, 0.8181836009025574, -1.1184834241867065, -0.26303941011428833, 3.189893960952759, -0.33618226647377014, 1.0173909664154053, 1.1323333978652954, -1.6477069854736328, -1.1825897693634033, 0.28041210770606995, -1.0367045402526855, -1.4457381963729858, -0.806942343711853, -1.7800538539886475, -0.9507747888565063, 0.2124873399734497, -0.8312172293663025, -0.19486993551254272, 1.7353023290634155, -0.23172540962696075, -0.2684311270713806, 0.7686688899993896, 0.10413534939289093, -1.2020012140274048 ] }, { "marker": { "color": 6, "size": 5 }, "mode": "markers", "name": "F-C", "text": [ "Jason Smith", "Jason Smith", "Jason Smith", "Tristan Thompson", "Karl-Anthony Towns", "Myles Turner", "Alan Williams", "Cody Zeller", "Aron Baynes", "John Collins", "Zach Collins", "Anthony Davis", "Joel Embiid", "Kenneth Faried", "Kenneth Faried", "Derrick Favors", "Cristiano Felicio", "Channing Frye", "Harry Giles III", "Montrezl Harrell", "Isaiah Hartenstein", "Richaun Holmes", "Al Horford", "Serge Ibaka", "Jaren Jackson Jr.", "Frank Kaminsky", "Luke Kornet", "Meyers Leonard", "Kevin Love", "Eric Moreland", "Eric Moreland", "Donatas Motiejunas", "Mike Muscala", "Mike Muscala", "Nerlens Noel", "Mason Plumlee", "Dwight Powell", "Zhou Qi" ], "type": "scatter", "x": [ -1.7886515855789185, -2.8584136962890625, -3.358696460723877, 1.4459455013275146, 7.5543293952941895, 3.4132986068725586, -1.0681982040405273, 1.6980749368667603, -0.2742910385131836, 3.9783084392547607, 0.37079113721847534, 7.289535999298096, 8.23290729522705, -1.6899183988571167, 0.9801708459854126, 2.5753633975982666, -1.3187744617462158, -2.275716543197632, 0.07865844666957855, 4.1828765869140625, -2.2037527561187744, 0.9351485967636108, 3.6348512172698975, 3.0160982608795166, 2.301283597946167, 0.1646132916212082, -0.30191922187805176, 0.10411012917757034, 2.1972317695617676, -7.630314350128174, -2.0771191120147705, -3.295647621154785, -0.043800316751003265, -1.358420968055725, 0.036366403102874756, 2.331357717514038, 2.109302043914795, -4.10659122467041 ], "y": [ -0.7730761170387268, 0.40158969163894653, 0.9592839479446411, -0.0501306988298893, 1.3404161930084229, -0.45362210273742676, -0.8731907606124878, -0.9355876445770264, -1.2701425552368164, -0.3287930488586426, -0.9986752867698669, 1.219120979309082, 2.439992666244507, -2.0663599967956543, -1.5810487270355225, -1.0735299587249756, -1.1477751731872559, -0.8462844491004944, 0.6718320250511169, -0.07379719614982605, -1.3815101385116577, -1.452538013458252, -0.467075377702713, -0.3738122582435608, -0.3065808415412903, -0.9144989252090454, -0.9137538075447083, -2.483049154281616, 0.47567781805992126, 4.595948219299316, 0.41208210587501526, 2.201035499572754, -1.129076361656189, -2.264932870864868, -1.4496647119522095, -0.1452605128288269, -1.956480860710144, -1.0924466848373413 ] }, { "marker": { "color": 7, "size": 5 }, "mode": "markers", "name": "C-F", "text": [ "Ekpe Udoh", "Robert Williams III", "Bam Adebayo", "Deyonta Davis", "Pau Gasol", "Pau Gasol", "Amir Johnson", "Nene" ], "type": "scatter", "x": [ -1.2874829769134521, -1.505040168762207, 2.4600095748901367, -1.4879530668258667, -0.5619468092918396, -4.085760593414307, -0.6749502420425415, -1.8817781209945679 ], "y": [ -2.735006332397461, -3.195456027984619, -0.5212869048118591, -2.9881322383880615, -0.9093219041824341, 2.2916617393493652, -0.7955160737037659, -1.3151628971099854 ] }, { "marker": { "color": 8, "size": 5 }, "mode": "markers", "name": "F-G", "text": [ "Julian Washburn", "Justin Holiday", "Danuel House Jr.", "Wesley Johnson", "Wesley Johnson", "Derrick Jones Jr.", "CJ Miles", "CJ Miles", "Norman Powell" ], "type": "scatter", "x": [ -2.746781587600708, 0.47551313042640686, 0.1699133664369583, -2.2691357135772705, -3.4070327281951904, -0.09114062786102295, -1.788496732711792, -0.9921508431434631, 0.4080081880092621 ], "y": [ -0.11078137904405594, -0.08753973245620728, -2.1767539978027344, -1.2127900123596191, 0.6135044693946838, -1.1466397047042847, -0.3043985962867737, -1.088313102722168, -0.989621102809906 ] }, { "marker": { "color": 9, "size": 5 }, "mode": "markers", "name": "G", "text": [ "Rajon Rondo", "Derrick Rose", "Terry Rozier", "Ricky Rubio", "D'Angelo Russell", "Brandon Sampson", "Dennis Schroder", "Collin Sexton", "Landry Shamet", "Landry Shamet", "Iman Shumpert", "Iman Shumpert", "Jordan Sibert", "Kobi Simmons", "Anfernee Simons", "Marcus Smart", "Dennis Smith Jr.", "Dennis Smith Jr.", "Ish Smith", "Zhaire Smith", "Tony Snell", "Nik Stauskas", "Nik Stauskas", "Lance Stephenson", "Edmond Sumner", "Jeff Teague", "Milos Teodosic", "Jared Terrell", "Isaiah Thomas", "Khyri Thomas", "Klay Thompson", "Sindarius Thornwell", "Gary Trent Jr.", "Allonzo Trier", "Tyler Ulis", "Fred VanVleet", "Dwyane Wade", "Dion Waiters", "Lonnie Walker IV", "Kemba Walker", "Tyrone Wallace", "John Wall", "Brad Wanamaker", "Yuta Watanabe", "Russell Westbrook", "Derrick White", "C.J. Williams", "Lou Williams", "Delon Wright", "Delon Wright", "Trae Young", "Alex Abrines", "Jaylen Adams", "Rawle Alkins", "Grayson Allen", "Kadeem Allen", "Ryan Arcidiacono", "D.J. Augustin", "Ron Baker", "Ron Baker", "Wade Baldwin IV", "Lonzo Ball", "J.J. Barea", "Will Barton", "Jerryd Bayless", "Kent Bazemore", "Bradley Beal", "Malik Beasley", "Dairis Bertans", "Patrick Beverley", "Antonio Blakeney", "Eric Bledsoe", "Bogdan Bogdanovic", "Isaac Bonga", "Devin Booker", "Avery Bradley", "Avery Bradley", "Isaiah Briscoe", "Malcolm Brogdon", "MarShon Brooks", "Bruce Brown", "Lorenzo Brown", "Sterling Brown", "Jalen Brunson", "Trey Burke", "Trey Burke", "Alec Burks", "Alec Burks", "Alec Burks", "Deonte Burton", "Jose Calderon", "Kentavious Caldwell-Pope", "Isaiah Canaan", "Isaiah Canaan", "Isaiah Canaan", "Jevon Carter", "Michael Carter-Williams", "Michael Carter-Williams", "Alex Caruso", "Troy Caupain", "Joe Chealey", "Chris Chiozza", "Ian Clark", "Jordan Clarkson", "Darren Collison", "Mike Conley", "Pat Connaughton", "Quinn Cook", "Jamal Crawford", "Seth Curry", "Stephen Curry", "Troy Daniels", "Matthew Dellavedova", "Matthew Dellavedova", "DeMar DeRozan", "Hamidou Diallo", "Spencer Dinwiddie", "Donte DiVincenzo", "Tyler Dorsey", "Tyler Dorsey", "Damyean Dotson", "Goran Dragic", "Kris Dunn", "Trevon Duval", "Wayne Ellington", "Wayne Ellington", "Jacob Evans", "Jawun Evans", "Jawun Evans", "Tyreke Evans", "Dante Exum", "Raymond Felton", "Terrance Ferguson", "Yogi Ferrell", "Bryn Forbes", "De'Aaron Fox", "Tim Frazier", "Tim Frazier", "Jimmer Fredette", "Markelle Fultz", "Langston Galloway", "Billy Garrett", "Shai Gilgeous-Alexander", "Brandon Goodwin", "Eric Gordon", "Devonte' Graham", "Jerian Grant", "Dusty Hannahs", "Tim Hardaway Jr.", "Tim Hardaway Jr.", "James Harden", "Devin Harris", "Gary Harris", "Andrew Harrison", "Andrew Harrison", "Andrew Harrison", "Shaquille Harrison", "Josh Hart", "Buddy Hield", "George Hill", "George Hill", "Aaron Holiday", "Jrue Holiday", "Justin Holiday", "John Holland", "Rodney Hood", "Rodney Hood", "Kevin Huerter", "RJ Hunter", "Andre Ingram", "Kyrie Irving", "Demetrius Jackson", "Frank Jackson", "Reggie Jackson", "John Jenkins", "John Jenkins", "Tyler Johnson", "Tyler Johnson", "Tyus Jones", "Cory Joseph", "Luke Kennard", "Brandon Knight", "Brandon Knight", "Jeremy Lamb", "Zach LaVine", "Courtney Lee", "Courtney Lee", "Damion Lee", "Walter Lemon Jr.", "Caris LeVert", "Damian Lillard", "Jeremy Lin", "Jeremy Lin", "Shaun Livingston", "Zach Lofton", "Kyle Lowry", "Jordan Loyd", "Kalin Lucas", "Scott Machado", "Shelvin Mack", "Shelvin Mack", "Daryl Macon", "J.P. Macura", "Frank Mason", "Tahjere McCall", "Patrick McCaw", "Patrick McCaw", "CJ McCollum", "T.J. McConnell", "Ben McLemore", "Jordan McRae", "Jodie Meeks", "De'Anthony Melton", "Patty Mills", "Shake Milton", "Donovan Mitchell", "Naz Mitrou-Long", "Malik Monk", "E'Twaun Moore", "Jaylen Morris", "Monte Morris", "Emmanuel Mudiay", "Jamal Murray", "Svi Mykhailiuk", "Shabazz Napier", "Raul Neto", "Frank Ntilikina", "David Nwaba", "Elie Okobo", "Josh Okogie", "Victor Oladipo", "Tony Parker", "Chris Paul", "Cameron Payne", "Cameron Payne", "Gary Payton II", "Elfrid Payton", "Chasson Randle", "JJ Redick", "Davon Reed", "Cameron Reynolds", "Malachi Richardson", "Austin Rivers", "Austin Rivers", "Jerome Robinson" ], "type": "scatter", "x": [ 2.831805944442749, 2.8395214080810547, 1.3202850818634033, 3.7837071418762207, 6.310730934143066, -1.8500818014144897, 3.462737560272217, 3.3331024646759033, -0.5077351331710815, -0.29042956233024597, 0.28797003626823425, -2.0892276763916016, -1.0859365463256836, -8.736031532287598, -2.2332708835601807, 2.469278573989868, 2.2488551139831543, 2.1479690074920654, 0.6671207547187805, -1.3593920469284058, -0.6498218178749084, -0.7859064340591431, -1.7808680534362793, 0.4665846526622772, -2.9288833141326904, 3.046304702758789, -1.381602168083191, -3.347266674041748, -1.2347187995910645, -3.4400553703308105, 4.070305824279785, -3.023071527481079, -3.75347900390625, 1.3643525838851929, -8.768233299255371, 1.9876972436904907, 3.6353790760040283, 0.7265819907188416, -2.8349547386169434, 7.105861186981201, -2.018589496612549, 5.313052177429199, -1.0936170816421509, -3.4268791675567627, 9.400341033935547, 2.136367082595825, -3.0110671520233154, 5.175740718841553, 0.09774118661880493, 2.3548285961151123, 6.486460208892822, -1.8404605388641357, -1.5805548429489136, -2.3377721309661865, -1.8193303346633911, 0.8384755849838257, 0.9750065207481384, 2.8833560943603516, -3.5145423412323, -6.433042526245117, -2.8642706871032715, 2.224240303039551, 1.8260470628738403, 1.0690202713012695, -0.824016273021698, 2.2310118675231934, 7.263100624084473, 1.039541482925415, -4.412174224853516, 1.7660690546035767, -1.0377689599990845, 4.70104455947876, 2.8155927658081055, -4.052611827850342, 7.053300380706787, -0.21256065368652344, 1.597907304763794, -1.6889839172363281, 2.817244052886963, -1.4337542057037354, -0.9944971203804016, -2.3617076873779297, -0.4045943021774292, 1.1367371082305908, 0.3696037232875824, -0.047701988369226456, -1.128753900527954, 1.2153422832489014, -2.622546911239624, -3.0013749599456787, -1.573670506477356, 1.4089363813400269, -0.31564071774482727, -1.4597405195236206, -3.9536852836608887, -1.3971160650253296, -1.8516842126846313, -0.05870426818728447, 0.7031975388526917, -3.342360019683838, -5.1484222412109375, -4.46011209487915, -0.5334770083427429, 3.19187068939209, 3.2617409229278564, 5.4969024658203125, 0.3169989585876465, -0.14708726108074188, 0.9167773723602295, -0.12300878018140793, 6.740984916687012, -1.2948871850967407, -1.9375815391540527, 0.40372148156166077, 6.025926113128662, -2.1461474895477295, 3.6802732944488525, -1.3941328525543213, -2.6201484203338623, -0.5399875044822693, 1.0754995346069336, 1.9482498168945312, 2.7173333168029785, -2.343205451965332, -0.9062711596488953, 0.21009670197963715, -3.8152267932891846, -4.102398872375488, -7.202555179595947, 1.450594425201416, -0.27061569690704346, -1.578752040863037, -0.3749442994594574, -0.2587514817714691, 1.4662460088729858, 5.925869941711426, 0.3954159915447235, -0.5001896023750305, -2.4154818058013916, -0.20366550981998444, -0.0875566378235817, -1.9706368446350098, 2.5217976570129395, -4.482801914215088, 2.0921108722686768, -1.0123707056045532, -0.5249150395393372, -2.5541434288024902, 2.5927534103393555, 0.2797915041446686, 11.812043190002441, -0.17853452265262604, 1.4088183641433716, -4.509922027587891, -1.9104273319244385, -3.416364908218384, 0.40111806988716125, 0.44102048873901367, 4.25507116317749, 0.40008169412612915, -0.2411518692970276, -0.6903695464134216, 6.486628532409668, 1.4631187915802002, -8.771300315856934, 0.6668189764022827, -0.659335196018219, 1.4868074655532837, 0.2002054899930954, -7.7627034187316895, 6.501457691192627, -1.6518305540084839, -0.49787887930870056, 3.3701424598693848, -3.3443784713745117, -2.0567100048065186, 0.9408242106437683, 0.7249786257743835, 0.9545714855194092, 1.005458950996399, 0.4726690649986267, -3.3610942363739014, -0.517483115196228, 3.158168315887451, 5.684988498687744, -1.618586540222168, -2.319634437561035, -1.7711056470870972, 1.7102808952331543, 1.9900503158569336, 7.376175403594971, 1.8228349685668945, -0.9095976948738098, -0.8973989486694336, -6.851603984832764, 5.061697959899902, -2.2244033813476562, -3.122426986694336, -1.824319839477539, 0.38653066754341125, -4.465015888214111, -2.7146148681640625, -3.713264226913452, -0.7898569703102112, -3.864781618118286, -4.266326427459717, -1.7409167289733887, 3.764882802963257, 0.9671319127082825, -2.807938814163208, -1.2372727394104004, -1.3563541173934937, 0.3640897572040558, 1.46444833278656, -2.1859805583953857, 5.9959259033203125, -3.071094274520874, 0.6288425922393799, 0.7351038455963135, -2.7049667835235596, 1.6719807386398315, 2.904210329055786, 4.330986499786377, -3.5768847465515137, 0.9055384397506714, -0.378709614276886, -0.5918874144554138, -0.4480806589126587, -0.32984673976898193, 0.44862401485443115, 3.760180950164795, 0.9339589476585388, 5.236069679260254, -0.5792050957679749, -0.05500291287899017, -0.6537221670150757, 3.073697566986084, -0.8032087683677673, 2.971085786819458, -3.9602293968200684, -1.9647600650787354, -4.147966384887695, -0.7659151554107666, -0.3097953498363495, -2.4543440341949463 ], "y": [ 2.3614776134490967, 0.7673556208610535, 0.37377819418907166, 2.3347036838531494, 3.1931378841400146, -1.3395994901657104, 1.7399368286132812, 1.3338162899017334, -1.9006233215332031, -1.141749382019043, -0.2695877254009247, -0.3563813269138336, -10.736567497253418, 5.5403008460998535, -0.710022509098053, 0.18204377591609955, 1.61260986328125, 2.316122531890869, 0.6845012903213501, -0.6618559956550598, -2.0579960346221924, -0.9017044901847839, -1.1046918630599976, 0.2116783857345581, 0.11154717206954956, 1.8012653589248657, 0.15648253262043, 1.1413452625274658, 1.5346441268920898, -0.051155827939510345, 0.41156068444252014, -0.21807587146759033, 0.5308760404586792, 0.18231835961341858, 5.537135124206543, 0.44941025972366333, 1.9868831634521484, 0.3981201648712158, -0.07737456262111664, 2.766101598739624, 0.3119972348213196, 3.0440471172332764, -1.2930527925491333, 0.8255512118339539, 5.2852864265441895, 0.15999945998191833, -1.1304925680160522, 2.5584053993225098, -0.4220181703567505, 1.0525354146957397, 3.4288525581359863, -1.350077748298645, 0.03127998113632202, 0.6474565863609314, -0.11601968854665756, 0.031786806881427765, -1.0389299392700195, 0.001734570018015802, 0.418893426656723, 4.892914295196533, 1.5751264095306396, 1.5805611610412598, 2.093552350997925, 0.42036348581314087, 0.9721612930297852, 1.0006300210952759, 2.246483325958252, -1.3986151218414307, 0.8537771105766296, -0.27322715520858765, -0.13239583373069763, 1.31000554561615, 0.9400388598442078, 2.569934129714966, 3.1356146335601807, 0.08544141799211502, 0.3336184620857239, 0.4114968478679657, -0.44588372111320496, -0.40092232823371887, -0.3732152283191681, 0.7951377034187317, -1.0954957008361816, 0.07304655760526657, 0.5493834614753723, -0.5706137418746948, -0.48592647910118103, 0.24196384847164154, -1.0506577491760254, -0.6718980073928833, 0.015390832908451557, -0.7681193351745605, 0.05362485349178314, -0.8473570346832275, 0.6016396880149841, 0.8900378942489624, 0.5379239320755005, 1.1173052787780762, 0.034864749759435654, 2.3589956760406494, 1.3304423093795776, 1.1430556774139404, -0.25849732756614685, 0.759486973285675, 0.8015347719192505, 2.0866775512695312, -1.6030492782592773, -0.9660661816596985, 0.6410191655158997, -1.5214282274246216, 1.4646316766738892, -1.3879948854446411, 0.8363807201385498, 0.3404991328716278, 2.8037562370300293, -0.5587613582611084, 1.249254822731018, -1.028618335723877, -0.18050867319107056, -0.4941275715827942, -0.20663610100746155, 1.3097037076950073, 1.8726588487625122, 0.8618112206459045, -1.009655237197876, -1.2521570920944214, 1.0009692907333374, 3.4166641235351562, 8.275201797485352, 1.4936479330062866, 0.4726065695285797, -0.8184886574745178, -1.6153186559677124, -1.0069284439086914, -0.8659101128578186, 2.698467969894409, -0.21898716688156128, 0.2488754838705063, 1.4911500215530396, 1.0705537796020508, -1.0404596328735352, -0.14494410157203674, 0.39694347977638245, 3.8728880882263184, -0.004750942345708609, 0.36913806200027466, -0.25498253107070923, 1.9636924266815186, 1.0495011806488037, 0.08970604091882706, 4.911927700042725, -0.09336239844560623, 0.12406601011753082, -1.518131971359253, 0.5530152916908264, 0.8638049960136414, 0.23253518342971802, -0.6424995064735413, 0.4002703130245209, -0.9935203790664673, -0.7583008408546448, -0.056213054805994034, 2.482707977294922, -0.21149809658527374, 5.5368332862854, -0.46650272607803345, -1.1416540145874023, -0.021148953586816788, -1.3791924715042114, 6.725723743438721, 2.1082801818847656, -2.6962881088256836, -0.5463468432426453, 1.2191869020462036, -4.4809746742248535, -1.2145723104476929, 0.023826969787478447, 0.21617023646831512, 0.29726991057395935, 0.524750828742981, -0.7815399765968323, 1.0186599493026733, -0.380784809589386, 0.2885008454322815, 2.1824848651885986, -0.924216091632843, -0.5203118920326233, -1.8027517795562744, 1.7728897333145142, 1.215799331665039, 2.5245447158813477, 0.3835905194282532, 0.5965452194213867, -0.9467964768409729, 7.74845552444458, 1.946091890335083, -1.9568670988082886, 1.466698169708252, -5.0243730545043945, 0.5586904287338257, 3.200049877166748, -0.03439680486917496, 1.1851073503494263, 0.34463492035865784, -2.3965201377868652, 2.30521559715271, -1.4751933813095093, 0.6677194833755493, -0.21913640201091766, -1.1302573680877686, -0.9570646286010742, -2.9165258407592773, 0.8859919905662537, -0.3243171274662018, -0.8774252533912659, 2.7358224391937256, 0.7636761665344238, 0.22256937623023987, -0.821317732334137, -0.019359109923243523, -0.6907835602760315, 1.3944672346115112, 1.5058197975158691, 1.8288525342941284, 0.472251296043396, -0.30926933884620667, 1.1379200220108032, -1.244958519935608, 0.33471497893333435, 0.022068189457058907, 2.039734363555908, 1.0507276058197021, 2.2077741622924805, 0.18533898890018463, -0.9226962327957153, -1.171363353729248, 1.855871319770813, -0.5412006974220276, -0.18731889128684998, -0.9394807815551758, -2.0270802974700928, -0.25201112031936646, 0.029569236561655998, -0.5664145946502686, -0.7268938422203064 ] }, { "marker": { "color": 10, "size": 5 }, "mode": "markers", "name": "F", "text": [ "Domantas Sabonis", "JaKarr Sampson", "Dario Saric", "Dario Saric", "Mike Scott", "Mike Scott", "Thabo Sefolosha", "Pascal Siakam", "Jonathon Simmons", "Jonathon Simmons", "Ray Spalding", "Ray Spalding", "Omari Spellman", "Caleb Swanigan", "Caleb Swanigan", "Jayson Tatum", "Emanuel Terry", "Emanuel Terry", "Daniel Theis", "Lance Thomas", "Anthony Tolliver", "PJ Tucker", "Jarred Vanderbilt", "Noah Vonleh", "T.J. Warren", "Okaro White", "Johnathan Williams", "Marvin Williams", "Troy Williams", "D.J. Wilson", "Justise Winslow", "Christian Wood", "Christian Wood", "Guerschon Yabusele", "Thaddeus Young", "Quincy Acy", "Deng Adel", "LaMarcus Aldridge", "Al-Farouq Aminu", "Kyle Anderson", "Ryan Anderson", "Ryan Anderson", "Giannis Antetokounmpo", "Kostas Antetokounmpo", "Carmelo Anthony", "OG Anunoby", "Trevor Ariza", "Trevor Ariza", "Marvin Bagley III", "Harrison Barnes", "Harrison Barnes", "Keita Bates-Diop", "Michael Beasley", "Jordan Bell", "DeAndre' Bembry", "Dragan Bender", "Davis Bertans", "Nemanja Bjelica", "Jaron Blossomgame", "Bojan Bogdanovic", "Jonah Bolden", "Chris Boucher", "Miles Bridges", "Mikal Bridges", "Troy Brown Jr.", "Jaylen Brown", "Reggie Bullock", "Bruno Caboclo", "DeMarre Carroll", "Wendell Carter Jr.", "Omri Casspi", "Tyler Cavanaugh", "Wilson Chandler", "Wilson Chandler", "Marquese Chriss", "Marquese Chriss", "Gary Clark", "Bonzie Colson", "Robert Covington", "Robert Covington", "Torrey Craig", "Mitchell Creek", "Mitchell Creek", "Jae Crowder", "Dante Cunningham", "Sam Dekker", "Sam Dekker", "Luol Deng", "Marcus Derrickson", "Cheick Diallo", "Jared Dudley", "Kevin Durant", "Vincent Edwards", "Henry Ellenson", "Henry Ellenson", "James Ennis III", "James Ennis III", "Drew Eubanks", "Dorian Finney-Smith", "Danilo Gallinari", "Rudy Gay", "Paul George", "Taj Gibson", "Aaron Gordon", "Treveon Graham", "Donte Grantham", "Jerami Grant", "Draymond Green", "JaMychal Green", "JaMychal Green", "Jeff Green", "Blake Griffin", "Maurice Harkless", "Tobias Harris", "Tobias Harris", "Udonis Haslem", "Gordon Hayward", "John Henson", "Juancho Hernangomez", "Mario Hezonja", "Isaiah Hicks", "Haywood Highsmith", "Solomon Hill", "Rondae Hollis-Jefferson", "Chandler Hutchison", "Ersan Ilyasova", "Joe Ingles", "Brandon Ingram", "Jonathan Isaac", "Wes Iwundu", "Josh Jackson", "Justin Jackson", "Justin Jackson", "LeBron James", "Amile Jefferson", "Jonas Jerebko", "Alize Johnson", "BJ Johnson", "BJ Johnson", "James Johnson", "Stanley Johnson", "Stanley Johnson", "Jalen Jones", "Jemerrio Jones", "Terrence Jones", "Michael Kidd-Gilchrist", "George King", "Maxi Kleber", "Kevin Knox", "Rodions Kurucs", "Kyle Kuzma", "Skal Labissiere", "Skal Labissiere", "Jake Layman", "TJ Leaf", "Kawhi Leonard", "Jon Leuer", "Kevon Looney", "Tyler Lydon", "Trey Lyles", "Thon Maker", "Thon Maker", "Lauri Markkanen", "Jarell Martin", "Yante Maten", "Luc Mbah a Moute", "Doug McDermott", "Alfonzo McKinnie", "Chimezie Metu", "Khris Middleton", "Darius Miller", "Malcolm Miller", "Paul Millsap", "Nikola Mirotic", "Nikola Mirotic", "Marcus Morris", "Markieff Morris", "Markieff Morris", "Johnathan Motley", "Svi Mykhailiuk", "Abdel Nader", "Larry Nance Jr.", "Georges Niang", "Dirk Nowitzki", "James Nunnally", "James Nunnally", "Semi Ojeleye", "Kelly Olynyk", "Royce O'Neale", "Cedi Osman", "Kelly Oubre Jr.", "Kelly Oubre Jr.", "Jabari Parker", "Jabari Parker", "Chandler Parsons", "Patrick Patterson", "Quincy Pondexter", "Otto Porter Jr.", "Otto Porter Jr.", "Bobby Portis", "Bobby Portis", "Alex Poythress", "Taurean Prince", "Ivan Rabb", "Julius Randle", "Josh Richardson", "Devin Robinson", "Duncan Robinson" ], "type": "scatter", "x": [ 4.058359622955322, 1.3913772106170654, 0.18446296453475952, 1.2898508310317993, -1.404333233833313, -1.3284913301467896, -1.3271013498306274, 4.384117126464844, -0.49339181184768677, -1.0435051918029785, -8.765166282653809, -1.9721636772155762, -0.6053483486175537, -2.9451818466186523, -2.4340522289276123, 3.431117534637451, -1.1216239929199219, -5.356485843658447, -0.08586551994085312, -1.85740065574646, -1.040560007095337, 1.1909058094024658, -2.94061279296875, 1.6418497562408447, 2.1288046836853027, -8.240591049194336, -1.3610310554504395, 1.3173733949661255, -1.8584880828857422, -0.8608586192131042, 2.907500982284546, -2.3969779014587402, 1.5267014503479004, -2.1863343715667725, 3.0105137825012207, -3.1384119987487793, -3.4395618438720703, 5.307328701019287, 1.7271983623504639, 1.349972128868103, -2.3204898834228516, -4.598879814147949, 9.409835815429688, -5.471045017242432, -0.6045557260513306, -0.37774792313575745, 1.2169268131256104, 2.3687262535095215, 2.5001230239868164, 1.8075001239776611, 0.8491463661193848, -1.7243661880493164, -0.7922755479812622, -1.1370993852615356, 1.8287818431854248, -0.7194386720657349, 0.559694766998291, 1.736372470855713, -1.892151951789856, 3.454603910446167, -0.5773109793663025, -1.8894410133361816, 0.5470708608627319, 1.5345301628112793, -1.0409209728240967, 1.9536749124526978, 0.8230381608009338, 0.2524607181549072, 1.167879581451416, 1.443634271621704, -0.7405667304992676, -5.319380283355713, -0.053576529026031494, -2.4845211505889893, -2.8699769973754883, -1.3483703136444092, -1.735872507095337, -2.14591121673584, 1.3003692626953125, 1.9222674369812012, -0.2501387894153595, -1.8847651481628418, -1.8799986839294434, 1.9440479278564453, -1.2867352962493896, -1.062849521636963, -1.1034278869628906, -0.8132668137550354, -2.2888660430908203, 0.0005114848609082401, -0.7009748220443726, 7.460543155670166, -5.556126117706299, -2.062497138977051, -1.4783540964126587, -0.2838197350502014, -1.7279516458511353, -2.2227635383605957, 0.7484639286994934, 4.102773666381836, 2.907475233078003, 7.920426368713379, 1.7156556844711304, 4.143080234527588, -1.719542384147644, -7.9634881019592285, 2.3818743228912354, 3.5964605808258057, 0.8615862727165222, -0.24109101295471191, 2.1574203968048096, 7.052245140075684, 0.5696477890014648, 3.983438491821289, 2.17439866065979, -3.5324440002441406, 2.461331367492676, -0.7041940093040466, -0.351907879114151, 0.7045817375183105, -1.9498772621154785, -4.046219348907471, -1.3196555376052856, 0.6789801716804504, -1.3062787055969238, -0.1967320740222931, 3.684948205947876, 3.22338604927063, 1.52131986618042, -0.793199360370636, 2.522113561630249, -0.6606522798538208, -1.134455919265747, 7.912960052490234, -2.0956363677978516, 0.108607716858387, -4.467033863067627, -2.773123264312744, -4.5171098709106445, 0.5441793203353882, -0.07126200944185257, -1.0486667156219482, -2.0174314975738525, -0.647958517074585, -5.724423885345459, -0.0649268701672554, -7.6787214279174805, 0.5422135591506958, 1.6169044971466064, 0.35119718313217163, 3.49178409576416, -2.7017903327941895, -0.9280221462249756, -0.005343353375792503, -1.5570034980773926, 6.034013748168945, -1.7416605949401855, 0.6953519582748413, -4.492618560791016, 0.472161203622818, -1.71738862991333, -0.9667138457298279, 3.133047580718994, -2.2904274463653564, -5.572673797607422, -2.796933174133301, -0.34627899527549744, -1.145043134689331, -3.0092997550964355, 4.603557586669922, 0.270211398601532, -3.1435818672180176, 2.8488171100616455, 1.833351731300354, 0.18643225729465485, 2.2502553462982178, 0.8535786867141724, -1.712677001953125, -1.5475295782089233, -2.5854947566986084, -1.81820547580719, 2.8311283588409424, -1.2675964832305908, -1.1208575963974, -2.663386344909668, -4.7712507247924805, -2.133251905441284, 1.9652502536773682, 0.09569095075130463, 2.37593674659729, 0.43373388051986694, 2.5779902935028076, 1.8905103206634521, 2.4987990856170654, -0.5665720701217651, -1.9576382637023926, -1.8491319417953491, 1.605454444885254, 2.048736095428467, 0.7831790447235107, 1.5073572397232056, -1.3859343528747559, 1.911581039428711, -0.44132083654403687, 5.6771111488342285, 3.581908702850342, -1.14548659324646, -2.6967320442199707 ], "y": [ 0.15074272453784943, -1.5670084953308105, 0.24422883987426758, -0.8697173595428467, -0.8658142685890198, -1.0640405416488647, -1.6765025854110718, -0.0024590413086116314, 0.9504474997520447, -0.5199695229530334, 5.537436485290527, -0.30896246433258057, -0.9236018657684326, 1.2480010986328125, 1.0004489421844482, 0.4811539351940155, -0.8708183765411377, 6.530052185058594, -2.021901845932007, -0.7728078961372375, -1.4952185153961182, -0.9712897539138794, 0.11957442760467529, -0.5161343812942505, -0.5070545673370361, 6.152899265289307, -1.3763278722763062, -1.0225913524627686, -1.3399261236190796, -0.6829680800437927, 1.446020483970642, -1.6735743284225464, -0.8554174900054932, -1.197150707244873, 0.04344930499792099, -0.045868802815675735, -0.7707986235618591, 0.8567637801170349, -0.9618325233459473, -0.4599189758300781, -0.0731542631983757, 1.0102593898773193, 2.693962335586548, 4.182028293609619, -0.7294477820396423, -0.9814132452011108, 0.09378683567047119, 0.32087263464927673, -0.02242327108979225, 0.27771249413490295, -0.9942365884780884, -0.9175795912742615, 0.2671414315700531, -0.6658923029899597, 0.714949369430542, -1.0233556032180786, -2.054110050201416, -0.9659669399261475, -1.5355709791183472, -0.006302904337644577, -1.7408450841903687, -1.5806843042373657, -1.1504833698272705, -0.8319902420043945, -0.313501238822937, 0.1727544665336609, -0.6543591022491455, -1.08607816696167, -0.15015262365341187, -0.09218858927488327, -1.5928016901016235, 2.154132843017578, -1.1346484422683716, -0.435036838054657, 0.8805283308029175, 0.11680732667446136, -2.127638339996338, -0.32245370745658875, -0.8570128679275513, -0.7699139714241028, -1.4402672052383423, -1.4548596143722534, 0.7137722373008728, 0.01930113323032856, -2.2701544761657715, -1.2023931741714478, -0.839775025844574, -1.761159062385559, -2.453569173812866, -1.9742536544799805, -1.2955050468444824, 1.7041443586349487, 0.44918081164360046, -1.614688754081726, -0.7672545313835144, -2.325042247772217, -0.903076708316803, -1.7493877410888672, -0.7199746370315552, 0.028275873512029648, 0.001636676606722176, 2.5302364826202393, -1.2188960313796997, 1.109837293624878, -0.530850350856781, 6.901899337768555, -1.216221809387207, 1.2492402791976929, -0.5780778527259827, -1.5631773471832275, -0.9405237436294556, 2.66544771194458, -1.0503418445587158, 0.12283144146203995, -0.16908034682273865, 0.7255471348762512, 0.050815220922231674, -0.9084959626197815, -1.8294570446014404, 0.6567608714103699, -1.4044218063354492, -0.25853317975997925, -0.8170922994613647, 1.0327022075653076, -0.9450960755348206, -1.0302023887634277, 0.8930005431175232, 0.9584046602249146, -0.6522897481918335, -0.8297906517982483, 1.4939515590667725, -1.49871826171875, -1.945080041885376, 3.1335606575012207, -2.985586404800415, -1.554076910018921, 0.3603115379810333, -2.6530025005340576, -1.9549083709716797, 0.1260025054216385, 0.23891828954219818, 0.37804296612739563, -1.2450312376022339, 0.5021463632583618, 5.479493141174316, -1.040549635887146, 4.045344352722168, -1.6781049966812134, 0.9962751865386963, -0.549318790435791, 0.7703718543052673, -0.7159291505813599, -3.41650390625, -1.8405473232269287, -1.8591570854187012, 1.3647774457931519, -1.6319215297698975, -1.8305617570877075, 0.797408938407898, 0.27174755930900574, -1.4924156665802002, -0.8213580250740051, 0.29678240418434143, -1.3247026205062866, 1.5422285795211792, -0.841255247592926, -1.970342755317688, -1.7879533767700195, 1.4687700271606445, 1.5543819665908813, -0.8673481941223145, -2.109743118286133, -0.01803611032664776, -0.966900646686554, -1.0103775262832642, -0.27419397234916687, -0.2919370234012604, -0.46130824089050293, -0.04567313194274902, -0.0985325500369072, -1.217759609222412, -0.25809943675994873, -1.9782394170761108, -0.15296874940395355, -2.486112356185913, 1.5733561515808105, -1.5016580820083618, -0.7444152235984802, -1.4299051761627197, 0.2726762294769287, -0.6507030725479126, 0.2667109966278076, 0.5624059438705444, 0.282763808965683, 0.35806095600128174, -1.1196136474609375, -2.2739310264587402, -0.4669179916381836, -0.6958262920379639, 0.01023179292678833, 0.07211942970752716, -1.6177505254745483, -0.1542251706123352, -1.1037441492080688, 1.3889703750610352, 0.9774909615516663, -1.8178355693817139, -1.7707035541534424 ] }, { "marker": { "color": 11, "size": 5 }, "mode": "markers", "name": "C", "text": [ "Mitchell Robinson", "Jonas Valanciunas", "Jonas Valanciunas", "Nikola Vucevic", "Moritz Wagner", "Thomas Welsh", "Hassan Whiteside", "Tyler Zeller", "Tyler Zeller", "Ante Zizic", "Ivica Zubac", "Ivica Zubac", "Steven Adams", "Jarrett Allen", "Ike Anigbogu", "Deandre Ayton", "Mo Bamba", "Khem Birch", "Bismack Biyombo", "Andrew Bogut", "Tony Bradley", "Thomas Bryant", "Clint Capela", "Willie Cauley-Stein", "Tyson Chandler", "Tyson Chandler", "DeMarcus Cousins", "Ed Davis", "Tyler Davis", "Dewayne Dedmon", "Angel Delgado", "Gorgui Dieng", "Andre Drummond", "Marc Gasol", "Marc Gasol", "Rudy Gobert", "Marcin Gortat", "Willy Hernangomez", "Dwight Howard", "Isaac Humphries", "Nikola Jokic", "Damian Jones", "DeAndre Jordan", "DeAndre Jordan", "Enes Kanter", "Enes Kanter", "Kosta Koufos", "Alex Len", "Brook Lopez", "Robin Lopez", "Ian Mahinmi", "Boban Marjanovic", "Boban Marjanovic", "JaVale McGee", "Salah Mejri", "Greg Monroe", "Greg Monroe", "Greg Monroe", "Joakim Noah", "Jusuf Nurkic", "Jahlil Okafor", "Kyle O'Quinn", "Zaza Pachulia", "Justin Patton", "Miles Plumlee", "Jakob Poeltl" ], "type": "scatter", "x": [ 1.3663456439971924, 1.311721920967102, 3.326303720474243, 6.141830921173096, -1.3127702474594116, -3.8450448513031006, 2.79365873336792, -6.713191986083984, -0.5727076530456543, 0.12556710839271545, -0.07402516901493073, 0.6082665920257568, 3.56619930267334, 2.72586989402771, -7.030450344085693, 3.624495506286621, -0.21817052364349365, -0.6940388083457947, -0.894936740398407, -1.3575644493103027, -1.6253124475479126, 1.8654545545578003, 3.891369581222534, 3.039393424987793, -1.230764627456665, -0.9982648491859436, 3.7313883304595947, 0.6033740043640137, -7.333327293395996, 2.273709774017334, -5.198706150054932, 0.4251551628112793, 5.7518157958984375, 4.306176662445068, 1.5692440271377563, 5.339298725128174, -0.4782315194606781, 0.523149847984314, 0.47753575444221497, -4.8393120765686035, 7.57900857925415, -0.42051902413368225, 3.0977065563201904, 2.442798614501953, 2.4367692470550537, 1.4143985509872437, -1.710006594657898, 1.8168346881866455, 2.6486988067626953, 1.0713104009628296, -1.3319125175476074, -0.03087174892425537, 0.5042208433151245, 2.408996343612671, -0.9541111588478088, -1.6430015563964844, -1.7203699350357056, 1.0654646158218384, 0.6279237270355225, 4.879096508026123, 0.16424322128295898, -0.8672139048576355, -0.6084932684898376, -3.4583218097686768, -1.295469880104065, 0.36608102917671204 ], "y": [ -2.8277089595794678, -1.056275486946106, 0.4776083827018738, 1.239984154701233, -0.4741976261138916, 0.6790175437927246, -0.04244033247232437, 4.105358123779297, -1.2804827690124512, -0.7954477667808533, -1.2656463384628296, -0.2753528952598572, 0.095183826982975, -1.097346305847168, 7.6773810386657715, 0.0014697699807584286, -0.8459012508392334, -2.0066940784454346, -1.5033595561981201, -0.6295593976974487, 0.16673310101032257, -2.219688892364502, -1.0715446472167969, -0.2972744405269623, -1.353656530380249, -1.8403716087341309, 1.1671693325042725, -1.4468364715576172, 7.592411041259766, -1.0456496477127075, 1.7349703311920166, -0.9309868216514587, 1.1974633932113647, 1.3234326839447021, -0.15575461089611053, -0.7195930480957031, -0.5524485111236572, -0.7778019905090332, -0.9787641167640686, 0.4522567391395569, 2.542991876602173, -2.8418846130371094, -0.8012981414794922, -0.7908823490142822, -0.21197932958602905, -0.6859028935432434, 0.12888628244400024, -0.517417311668396, -1.4490675926208496, -1.1387630701065063, -0.7555267810821533, -1.0908523797988892, -1.7814898490905762, -1.070721983909607, -1.1940367221832275, 0.38830628991127014, 4.821537971496582, -3.2673661708831787, 0.2454097419977188, 1.3750157356262207, -1.2976666688919067, -0.10729116946458817, 0.12354063242673874, 1.4613393545150757, -1.8836665153503418, -1.948673129081726 ] } ], "layout": { "showlegend": true, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "font": { "color": "Black" }, "text": "NBA Players Stats Per Gmae" } } }, "text/html": [ "
\n", " \n", " \n", "
\n", " \n", "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# rename cluster_field to vector_field\n", "fig = vi_client.plot_dimensionality_reduced_vectors(\n", " collection='nba_season_per_game_stats_demo', point_label='FULL NAME', cluster_field='season_vector_', cluster_label='POS',\n", " dim_reduction_field='_dr_.default.2.season_vector_')\n", "fig.update_layout(\n", " title=\"NBA Players Stats Per Gmae\",\n", " title_font_color=\"Black\"\n", ");\n", "fig.show()" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 591, "referenced_widgets": [ "aa76bdfbf4ab466d805760c17ac1c174", "9da1c12832dd48b0a751bbebedb9f778", "d90ad5c8afa64f76b8edb4705ca3763a", "dd1ea6fbb1f347548e51225a4274d618", "3fda14430cf2459998eaff219a8531c6", "9b0349450b604b8984ff3173a3f77c80", "862138f7943c43bebc6fe233f4a04e9f", "af209631f8a2441db350018cea17ad28" ] }, "colab_type": "code", "id": "vJiQ_yVds2e5", "outputId": "6a86f37f-7ca3-4caf-990b-70b3918d88f0" }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "1965364b849c48a6aa44ea32f9aadbd3", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(FloatProgress(value=0.0, max=7.0), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "marker": { "color": 5, "size": 5 }, "mode": "markers", "name": "G-F", "text": [ "Danny Green", "Evan Turner", "Andre Iguodala", "Jimmy Butler", "Ben Simmons", "Gerald Green", "Marco Belinelli", "Garrett Temple", "Joe Harris", "Evan Fournier", "Terrence Ross", "Wesley Matthews", "Kyle Korver", "Furkan Korkmaz", "Glenn Robinson III", "Theo Pinson", "Melvin Frazier Jr.", "Dzanan Musa" ], "type": "scatter", "x": [ 1.426208257675171, 0.0008608968928456306, 2.7973248958587646, 4.309453964233398, 3.7891106605529785, -1.7702831029891968, -1.1006752252578735, -2.1590819358825684, -0.1881197690963745, 0.8414691686630249, 1.017752766609192, -0.19436949491500854, -2.6843886375427246, -1.1817020177841187, -1.626338005065918, -1.8000974655151367, -3.2133023738861084, -2.20473575592041 ], "y": [ 0.32928067445755005, -0.0769679844379425, -0.2595667839050293, 1.0622673034667969, 0.13664878904819489, -0.15094606578350067, -0.7153638005256653, -0.381451815366745, -0.20130161941051483, 1.1830034255981445, 0.23779167234897614, 0.8233145475387573, -1.4187262058258057, -0.21989990770816803, 0.1847955882549286, -0.07997579872608185, -0.5748559236526489, -1.7902348041534424 ] }, { "marker": { "color": 6, "size": 5 }, "mode": "markers", "name": "F-C", "text": [ "Serge Ibaka", "Zach Collins", "Mason Plumlee", "Joel Embiid", "Meyers Leonard", "Aron Baynes", "Al Horford", "Eric Moreland", "Montrezl Harrell", "Kenneth Faried", "Nerlens Noel", "Derrick Favors", "Donatas Motiejunas", "Myles Turner", "Isaiah Hartenstein" ], "type": "scatter", "x": [ 1.9472873210906982, 0.9007594585418701, 0.06229868158698082, 5.268124580383301, -0.11010150611400604, -1.2536838054656982, 2.828119993209839, -4.019815921783447, 2.047881603240967, -0.2870446741580963, -1.7961320877075195, 1.3845422267913818, -2.507307767868042, 0.26642143726348877, -3.2132129669189453 ], "y": [ -0.3977758586406708, -1.2340505123138428, -1.0628715753555298, 0.9696378111839294, -1.850836157798767, -2.5668177604675293, 0.31076982617378235, -0.28046914935112, -2.0467031002044678, -4.038987159729004, -1.537441611289978, -2.138371229171753, -0.7747164368629456, -0.668506920337677, -3.6728851795196533 ] }, { "marker": { "color": 7, "size": 5 }, "mode": "markers", "name": "F-G", "text": [ "Norman Powell", "Danuel House Jr." ], "type": "scatter", "x": [ 0.4386351704597473, -1.5714280605316162 ], "y": [ -0.7944631576538086, -0.31581729650497437 ] }, { "marker": { "color": 8, "size": 5 }, "mode": "markers", "name": "C-F", "text": [ "Nene", "Amir Johnson", "Robert Williams III", "Ekpe Udoh" ], "type": "scatter", "x": [ 0.18667086958885193, -0.7704301476478577, -2.471141815185547, -6.294762134552002 ], "y": [ -5.325223922729492, -5.2164106369018555, -2.8451642990112305, 3.9506120681762695 ] }, { "marker": { "color": 9, "size": 5 }, "mode": "markers", "name": "G", "text": [ "Kyle Lowry", "Fred VanVleet", "Stephen Curry", "Shaun Livingston", "Klay Thompson", "Seth Curry", "Rodney Hood", "Damian Lillard", "CJ McCollum", "Eric Bledsoe", "Pat Connaughton", "George Hill", "Will Barton", "Malik Beasley", "Gary Harris", "Monte Morris", "Jamal Murray", "Jodie Meeks", "JJ Redick", "Quinn Cook", "Eric Gordon", "James Harden", "Chris Paul", "Tim Frazier", "Sterling Brown", "Austin Rivers", "T.J. McConnell", "Kyrie Irving", "Terry Rozier", "Tony Snell", "Iman Shumpert", "Patrick McCaw", "DeMar DeRozan", "Bryn Forbes", "Patty Mills", "Derrick White", "Jeremy Lin", "Malcolm Brogdon", "Patrick Beverley", "Shai Gilgeous-Alexander", "Landry Shamet", "Lou Williams", "Lonnie Walker IV", "Spencer Dinwiddie", "Caris LeVert", "D'Angelo Russell", "D.J. Augustin", "Michael Carter-Williams", "Raymond Felton", "Terrance Ferguson", "Dennis Schroder", "Russell Westbrook", "Donovan Mitchell", "Ricky Rubio", "Jerome Robinson", "Anfernee Simons", "Jacob Evans", "Darren Collison", "Tyreke Evans", "Cory Joseph", "Bruce Brown", "Wayne Ellington", "Langston Galloway", "Reggie Jackson", "Luke Kennard", "Ish Smith", "Sindarius Thornwell", "Brad Wanamaker", "Aaron Holiday", "Raul Neto", "Deonte Burton", "Jose Calderon", "Khyri Thomas", "Shabazz Napier", "Jerian Grant", "Grayson Allen", "Tyrone Wallace", "Zhaire Smith", "Marcus Smart", "Edmond Sumner" ], "type": "scatter", "x": [ 5.214914321899414, 1.489304542541504, 7.832468032836914, -0.36506858468055725, 4.520790100097656, -0.3503732681274414, 0.7258653044700623, 6.928196430206299, 4.77359676361084, 3.053959369659424, 0.595460832118988, 1.8677080869674683, 0.8546096682548523, 0.09038406610488892, 2.171952962875366, -0.44544538855552673, 4.112903594970703, -2.425607442855835, 1.0647071599960327, -0.8350950479507446, 2.4074277877807617, 7.624848365783691, 4.66666316986084, -1.1375987529754639, -0.3525276482105255, -0.37308260798454285, -2.107470989227295, 4.424720764160156, 0.034858107566833496, -4.69071102142334, -1.9763308763504028, -2.6391968727111816, 3.206021308898926, -0.03940068557858467, -0.33009618520736694, 1.9557217359542847, -2.8121790885925293, 1.409111499786377, 2.1554956436157227, 1.475248098373413, -0.03593051806092262, 3.7376177310943604, -4.136571884155273, 0.43898189067840576, 2.547224998474121, 2.375316619873047, 1.1798105239868164, 0.11444878578186035, -2.2684428691864014, -1.5791199207305908, 1.0451785326004028, 5.474056243896484, 3.0364999771118164, 3.7015914916992188, -0.9847936630249023, -4.928272247314453, -3.9751100540161133, 1.158995509147644, 0.5240471959114075, -0.5121163129806519, -1.7409114837646484, -0.6041665077209473, -1.0684553384780884, 2.4155797958374023, 0.8319616317749023, -0.479572057723999, -4.555951118469238, -0.8863326907157898, -3.3933541774749756, -4.248906135559082, -4.94788932800293, -5.143283843994141, -1.825722098350525, 1.979071855545044, -1.5733582973480225, -2.892313003540039, -2.1247754096984863, -6.191283702850342, -1.398726463317871, -6.241111755371094 ], "y": [ 1.5750644207000732, 0.28250256180763245, 2.5550167560577393, -0.530921995639801, 1.000889539718628, -0.34024062752723694, -1.145565390586853, 2.9532785415649414, 1.5924674272537231, 1.3464787006378174, -1.6965625286102295, -1.237266182899475, 0.45234304666519165, -0.47118863463401794, -0.2325313240289688, 0.5625050067901611, 1.488799810409546, 0.09079670906066895, -0.5107747316360474, -0.8533309698104858, -0.19002993404865265, 3.0758185386657715, 1.3640735149383545, -1.5528132915496826, -0.6791858673095703, -0.8518150448799133, -0.17656461894512177, 2.411175012588501, 0.2803797423839569, 0.8986421227455139, -1.203822135925293, 0.2929665744304657, 0.8732779622077942, -1.5843535661697388, 0.6460843086242676, -0.4434199035167694, 1.8385372161865234, -0.1315118372440338, -0.3631100058555603, -0.5091919302940369, -0.28769755363464355, 1.887502908706665, 1.324458122253418, -0.17150501906871796, -0.13490845263004303, 1.7691357135772705, -0.8692264556884766, 0.2602018713951111, 0.16992205381393433, -0.04927574098110199, -0.12397965788841248, 2.9414565563201904, 2.574885368347168, 2.118478298187256, -0.7740646004676819, 3.5639867782592773, 0.5317728519439697, 0.5853090882301331, -0.2822616696357727, -1.6108310222625732, -0.41764095425605774, 0.12312760949134827, 0.1703091412782669, 0.9942069053649902, -1.0005162954330444, 1.8037807941436768, 0.7353478074073792, -0.7988241314888, -0.4517236053943634, 1.790562391281128, 2.2445197105407715, 5.05781364440918, -1.567460298538208, -2.8844451904296875, 0.8200904130935669, -0.2363319844007492, 1.2063170671463013, 4.000192642211914, 2.9795169830322266, 2.4610962867736816 ] }, { "marker": { "color": 10, "size": 5 }, "mode": "markers", "name": "F", "text": [ "Kawhi Leonard", "Pascal Siakam", "Draymond Green", "Kevon Looney", "Alfonzo McKinnie", "Al-Farouq Aminu", "Maurice Harkless", "Giannis Antetokounmpo", "Ersan Ilyasova", "Khris Middleton", "Torrey Craig", "Paul Millsap", "Nikola Mirotic", "Jonas Jerebko", "Tobias Harris", "Jordan Bell", "Kevin Durant", "PJ Tucker", "James Ennis III", "Jonah Bolden", "Mike Scott", "Jaylen Brown", "Gordon Hayward", "Marcus Morris", "Jayson Tatum", "Malcolm Miller", "D.J. Wilson", "LaMarcus Aldridge", "Rudy Gay", "Daniel Theis", "Jonathon Simmons", "Danilo Gallinari", "JaMychal Green", "Semi Ojeleye", "Jake Layman", "DeMarre Carroll", "Treveon Graham", "Davis Bertans", "Aaron Gordon", "Jonathan Isaac", "Wes Iwundu", "Paul George", "Jerami Grant", "Markieff Morris", "Jae Crowder", "Joe Ingles", "Georges Niang", "Royce O'Neale", "Dante Cunningham", "Quincy Pondexter", "Juancho Hernangomez", "Wilson Chandler", "Bojan Bogdanovic", "Domantas Sabonis", "Thaddeus Young", "Thon Maker", "Rodions Kurucs", "Jared Dudley", "Rondae Hollis-Jefferson", "Thabo Sefolosha", "Guerschon Yabusele", "Doug McDermott", "Abdel Nader", "Jarell Martin", "Jarred Vanderbilt", "Trey Lyles", "Skal Labissiere", "Gary Clark", "Blake Griffin", "Chris Boucher", "TJ Leaf", "Jon Leuer" ], "type": "scatter", "x": [ 9.195356369018555, 5.076922416687012, 6.436336517333984, 1.0309128761291504, -1.2142901420593262, 0.9855952858924866, 1.4663732051849365, 7.570455551147461, 0.6323754191398621, 3.4995298385620117, 0.2497672587633133, 2.417067289352417, 0.7529725432395935, -1.3742793798446655, 3.3017144203186035, -0.9236321449279785, 6.368280410766602, 2.259824752807617, 0.16700589656829834, -2.258596897125244, -0.4889121949672699, 1.5171304941177368, 1.0748331546783447, 1.5429848432540894, 2.3419172763824463, -3.6765477657318115, -1.0611413717269897, 2.796494960784912, 1.1324970722198486, -2.821502208709717, -1.737972617149353, 2.4466514587402344, 0.8026425838470459, -1.7789217233657837, -4.652373313903809, -1.1261632442474365, -2.517357349395752, -1.92323637008667, 2.3424503803253174, -0.5632466673851013, -1.1393592357635498, 4.451937198638916, 1.128924012184143, -1.2471716403961182, 0.12179869413375854, 0.8723078966140747, -1.4386615753173828, 0.5817710757255554, -3.5813870429992676, -5.777259826660156, -4.65833854675293, -1.6925474405288696, 2.0834152698516846, 1.0469412803649902, 2.0282979011535645, -1.345825433731079, -0.7776473164558411, -0.9512040615081787, 1.2015644311904907, -3.668285846710205, -3.008817195892334, -2.294504404067993, -4.735659599304199, -1.9376962184906006, -6.260470867156982, -5.681517601013184, -5.266566276550293, -6.382383823394775, 3.609510898590088, -3.727602481842041, -3.697026252746582, -3.8265109062194824 ], "y": [ 2.7978811264038086, 1.2204673290252686, 1.5201994180679321, -2.3678412437438965, -1.5490845441818237, 0.06475520133972168, -0.4410827159881592, 1.840749979019165, -1.0324267148971558, 0.8724003434181213, -1.5761094093322754, -0.1601555049419403, -0.28706589341163635, -0.20674672722816467, 0.5007436871528625, -1.6776621341705322, 1.32020902633667, -0.9437132477760315, -1.4254311323165894, 0.2682185173034668, -1.942969799041748, -1.0224419832229614, -0.12985862791538239, -1.867199182510376, 0.353127121925354, 0.6192916035652161, -1.4633071422576904, 0.15186429023742676, -0.19943605363368988, -0.5032750368118286, 0.17521458864212036, 1.2343299388885498, -1.7724944353103638, -1.8294832706451416, 1.491058349609375, 0.7250056862831116, 0.4097600281238556, -0.8246034383773804, 0.439592182636261, 0.2750016152858734, -0.5288597941398621, 1.1157268285751343, -1.8273322582244873, -0.4199039340019226, -0.6259242296218872, 1.2702959775924683, -0.9193368554115295, -0.8256285786628723, -2.4316158294677734, 4.242682456970215, 0.9037041664123535, -0.4467049539089203, 0.8027610182762146, 0.28926533460617065, 0.8584312200546265, 0.3081721365451813, -1.0254371166229248, 0.05249059945344925, -1.187876582145691, 1.8225312232971191, -0.24097734689712524, 0.3780292868614197, 0.2731894850730896, -2.202393054962158, 3.5841729640960693, 4.377170085906982, 1.7915011644363403, 3.5343775749206543, 0.884220540523529, 0.5950834155082703, 1.682431697845459, -0.4221951961517334 ] }, { "marker": { "color": 11, "size": 5 }, "mode": "markers", "name": "C", "text": [ "Marc Gasol", "Enes Kanter", "Brook Lopez", "Nikola Jokic", "Andrew Bogut", "Clint Capela", "Boban Marjanovic", "Greg Monroe", "Jakob Poeltl", "Jarrett Allen", "Khem Birch", "Nikola Vucevic", "Steven Adams", "Rudy Gobert", "Andre Drummond", "Ivica Zubac", "Ed Davis", "Damian Jones", "DeMarcus Cousins", "Zaza Pachulia", "Kyle O'Quinn" ], "type": "scatter", "x": [ 2.9648213386535645, 2.2759323120117188, 1.9358443021774292, 7.159867286682129, -0.014845657162368298, 1.4860002994537354, 0.4881845712661743, -0.936797022819519, 0.4201290011405945, 1.4088621139526367, -0.10701528191566467, 1.608490228652954, 1.2422422170639038, 2.19442081451416, 2.5080857276916504, -0.7121208906173706, -0.43786782026290894, -3.2237679958343506, 1.1175473928451538, -3.1233303546905518, -5.270059585571289 ], "y": [ -0.09487120807170868, -0.51726233959198, -1.1648300886154175, 1.442946434020996, -2.5768003463745117, -0.9765560030937195, -1.7291131019592285, -0.6278917789459229, -2.263984203338623, -1.4718090295791626, -1.799910068511963, 0.80185866355896, -1.5154303312301636, -1.769460678100586, 0.8110731244087219, -1.3353238105773926, -3.6222143173217773, -3.293635368347168, 0.4941065013408661, 0.06025536358356476, 4.5478081703186035 ] } ], "layout": { "showlegend": true, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "font": { "color": "Black" }, "text": "NBA Players for 36 minutes" } } }, "text/html": [ "
\n", " \n", " \n", "
\n", " \n", "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "fig = vi_client.plot_dimensionality_reduced_vectors(\n", " collection='nba_season_per_36_stats_demo', point_label='FULL NAME', cluster_field='season_vector_', cluster_label='POS',\n", " dim_reduction_field='_dr_.default.2.season_vector_')\n", "fig.update_layout(\n", " title=\"NBA Players for 36 minutes\",\n", " title_font_color=\"Black\"\n", ");\n", "fig.show()" ] }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "lePT8VJu5B_z" }, "source": [ "Interesting how much of an outlier Kawhi Leonard is when the stats are per 36 minutes (an important normalisation method to ensure consistent comparison across players). " ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 187 }, "colab_type": "code", "id": "87wkpu0FUpQB", "outputId": "eb96e5f3-6aee-4659-8c78-3ebf901497cb" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Russell Westbrook : 1.0\n", "LeBron James : 0.22\n", "Nikola Jokic : 0.2\n", "Luka Doncic : 0.17\n", "Ben Simmons : 0.16\n", "Jrue Holiday : 0.16\n", "Trae Young : 0.16\n", "Kyrie Irving : 0.15\n", "Devin Booker : 0.15\n", "De'Aaron Fox : 0.15\n" ] } ], "source": [ "import numpy as np\n", "def get_similar_players(collection_name, player_name, position=None, num_results=10):\n", " player_filter = [{\n", " 'field': \"FULL NAME\",\n", " \"filter_type\": \"text\",\n", " \"condition_value\": player_name,\n", " \"condition\": \"==\"\n", " }]\n", " player_id = vi_client.filters(collection_name, filters=player_filter)[0]['_id']\n", " if position is None:\n", " results = vi_client.search_by_id(collection_name=collection_name, \n", " document_id=player_id, \n", " field='season_vector_',\n", " page_size=num_results,\n", " metric='l2'\n", " )\n", " for result in results['results']:\n", " print(f\"{result['FULL NAME']} : {round(result['_search_score'], 2)}\")\n", " return\n", " position_filter = [{\n", " 'field': \"POS\",\n", " \"filter_type\": \"text\",\n", " \"condition_value\": position,\n", " \"condition\": \"==\"\n", " }]\n", " results = vi_client.advanced_search_by_id(collection_name, player_id, filters=position_filter, fields={'season_vector_': 1})\n", " for result in results['results']:\n", " print(f\"{result['FULL NAME']} : {round(result['_search_score'], 2)}\")\n", "get_similar_players(\"nba_season_per_game_stats_demo\", \"Russell Westbrook\")" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 187 }, "colab_type": "code", "id": "vKRJ9-t0UpQE", "outputId": "f885c802-d261-4276-bedc-1ab8279670f3" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "LeBron James : 1.0\n", "Nikola Jokic : 0.26\n", "Luka Doncic : 0.26\n", "Jrue Holiday : 0.23\n", "Kyrie Irving : 0.23\n", "Devin Booker : 0.23\n", "Blake Griffin : 0.22\n", "Russell Westbrook : 0.22\n", "Kevin Durant : 0.21\n", "Trae Young : 0.2\n" ] } ], "source": [ "get_similar_players(\"nba_season_per_game_stats_demo\", \"LeBron James\")" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 187 }, "colab_type": "code", "id": "Ot8P8wW0UpQG", "outputId": "d9fbd5b0-9657-44f5-c2a1-bc6764892d27" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Stephen Curry : 1.0\n", "Kemba Walker : 0.26\n", "Damian Lillard : 0.24\n", "Bradley Beal : 0.24\n", "Kyrie Irving : 0.23\n", "Khris Middleton : 0.22\n", "Donovan Mitchell : 0.22\n", "D'Angelo Russell : 0.22\n", "Buddy Hield : 0.21\n", "Paul George : 0.21\n" ] } ], "source": [ "get_similar_players(\"nba_season_per_game_stats_demo\", \"Stephen Curry\")" ] }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "opLXvgsEBHMi" }, "source": [ "I had no idea Kemba Walker was so similar to Stephen Curry. A simple comparison of the baseline stats shows this to be the case. (No disrespect - I simply don't follow him!)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 187 }, "colab_type": "code", "id": "0HHse2RtUpQJ", "outputId": "8743adcb-a3a8-4591-e078-c70c6abd18c4" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Rajon Rondo : 1.0\n", "Elfrid Payton : 0.44\n", "Kris Dunn : 0.29\n", "Jeff Teague : 0.28\n", "Lonzo Ball : 0.27\n", "Ricky Rubio : 0.24\n", "Dennis Smith Jr. : 0.23\n", "Kyle Lowry : 0.23\n", "Draymond Green : 0.23\n", "Dennis Smith Jr. : 0.23\n" ] } ], "source": [ "get_similar_players(\"nba_season_per_game_stats_demo\", \"Rajon Rondo\")" ] }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "lGo7lP4BUpQM" }, "source": [ "Interesting! Let us look at recommended players but only within the Guard position." ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 187 }, "colab_type": "code", "id": "ObFTw5OdUpQP", "outputId": "2894cda0-b4a1-4a87-a6a2-73070b88a8d9" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Russell Westbrook : 1.0\n", "Luka Doncic : 0.94\n", "Jrue Holiday : 0.93\n", "De'Aaron Fox : 0.91\n", "Kyrie Irving : 0.91\n", "Ben Simmons : 0.9\n", "Eric Bledsoe : 0.9\n", "Trae Young : 0.9\n", "Ricky Rubio : 0.89\n", "Dwyane Wade : 0.89\n" ] } ], "source": [ "get_similar_players(\"nba_season_per_game_stats_demo\", \"Russell Westbrook\", \"G\")" ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 187 }, "colab_type": "code", "id": "wCi0nklZUpQR", "outputId": "fd54e0d0-6eb5-4030-98f7-90b2c851b7f6" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "LeBron James : 1.0\n", "Luka Doncic : 0.95\n", "Blake Griffin : 0.92\n", "Kevin Durant : 0.91\n", "Giannis Antetokounmpo : 0.9\n", "Ben Simmons : 0.88\n", "Justise Winslow : 0.87\n", "Khris Middleton : 0.86\n", "Julius Randle : 0.85\n", "Kawhi Leonard : 0.84\n" ] } ], "source": [ "get_similar_players(\"nba_season_per_game_stats_demo\", \"LeBron James\", \"F\")" ] }, { "cell_type": "code", "execution_count": 14, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 187 }, "colab_type": "code", "id": "pRqeC3s_UpQU", "outputId": "c8f1896d-bab9-4803-c094-69c0de88047f" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Dwayne Bacon : 1.0\n", "Cameron Reynolds : 0.88\n", "Damion Lee : 0.86\n", "Ryan Broekhoff : 0.84\n", "Landry Shamet : 0.83\n", "John Jenkins : 0.82\n", "Jodie Meeks : 0.82\n", "Troy Daniels : 0.81\n", "Tony Snell : 0.81\n", "Scott Machado : 0.8\n" ] } ], "source": [ "get_similar_players(\"nba_season_per_game_stats_demo\", \"Dwayne Wade\", \"G\")" ] }, { "cell_type": "code", "execution_count": 15, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 187 }, "colab_type": "code", "id": "I7ceD1xu_D5L", "outputId": "9016ed40-7277-4a80-d1a1-7c31888eebe7" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Dwayne Bacon : 1.0\n", "Cameron Reynolds : 0.88\n", "Damion Lee : 0.86\n", "Ryan Broekhoff : 0.84\n", "Landry Shamet : 0.83\n", "John Jenkins : 0.82\n", "Jodie Meeks : 0.82\n", "Troy Daniels : 0.81\n", "Tony Snell : 0.81\n", "Scott Machado : 0.8\n" ] } ], "source": [ "get_similar_players(\"nba_season_per_game_stats_demo\", \"Dwayne Wade\", \"G\")" ] }, { "cell_type": "code", "execution_count": 24, "metadata": { "colab": {}, "colab_type": "code", "id": "-Rq98Kn-bI8l" }, "outputs": [], "source": [ "def sum_players(collection_name, positive_players=[], negative_players=[]):\n", " \"\"\"Complex search to sum up the NBA players to get the closest when you sum up various players.\n", " \"\"\"\n", " pos_player_ids = {}\n", " neg_player_ids = {}\n", "\n", " for player in positive_players:\n", " player_filter = [{\n", " 'field': \"FULL NAME\",\n", " \"filter_type\": \"text\",\n", " \"condition_value\": player,\n", " \"condition\": \"==\"\n", " }]\n", " player_id = vi_client.filters(collection_name, filters=player_filter)[0]['_id']\n", " pos_player_ids[player_id] = 1\n", " for player in negative_players:\n", " player_id = vi_client.filters(collection_name, filters=player_filter)[0]['_id']\n", " neg_player_ids[player_id] = 1\n", "\n", " results = vi_client.advanced_search_by_ids(collection_name, document_ids=pos_player_ids,\n", " fields={'season_vector_':1})\n", " print(results)\n", " for result in results['results']:\n", " print(result['FULL NAME'])" ] }, { "cell_type": "code", "execution_count": 25, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 232 }, "colab_type": "code", "id": "zuibCL3w6jFK", "outputId": "9722a5f4-74df-467a-96a9-184819143c82" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'results': [{'_id': 'SoMQgXQBv-xqKfY1Sm_P', 'MPG': 36.0, 'RPGReboundsRebounds per game.': 11.1, 'TOPGTurnoversTurnovers per game.': 4.44, '2P%': 0.481, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 15.5, '3P%': 0.29, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.501, 'FT%': 0.658, 'FULL NAME': 'Russell Westbrook', 'APGAssistsAssists per game.': 10.7, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 30.9, 'AGE': 30.41, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 15.9, '2PA': 1062, '3PA': 411, 'SPGStealsSteals per game.': 1.95, 'BPGBlocksBlocks per game.': 0.45, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.468, 'GP': 73, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 97.2, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 105.2, 'FTA': 450, 'POS': 'G', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 75.0, 'TEAM': 'Okc', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 16.2, 'PPGPointsPoints per game.': 22.9, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 46.5, '_dr_': {'default': {'2': {}}}, '_search_score': 0.9824028}, {'_id': 'B4MQgXQBv-xqKfY1Sm_P', 'MPG': 34.2, 'RPGReboundsRebounds per game.': 8.8, 'TOPGTurnoversTurnovers per game.': 3.47, '2P%': 0.566, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 12.2, '3P%': 0.0, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.582, 'FT%': 0.6, 'FULL NAME': 'Ben Simmons', 'APGAssistsAssists per game.': 7.7, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 22.1, 'AGE': 22.72, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 13.7, '2PA': 954, '3PA': 6, 'SPGStealsSteals per game.': 1.42, 'BPGBlocksBlocks per game.': 0.77, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.563, 'GP': 79, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 103.1, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 113.8, 'FTA': 428, 'POS': 'G-F', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 71.2, 'TEAM': 'Phi', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 19.3, 'PPGPointsPoints per game.': 16.9, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 34.2, '_dr_': {'default': {'2': {}}}, '_search_score': 0.9676176000000001}, {'_id': 'UUIQgXQB6ETDC656R8wp', 'MPG': 31.3, 'RPGReboundsRebounds per game.': 10.8, 'TOPGTurnoversTurnovers per game.': 3.1, '2P%': 0.569, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 14.9, '3P%': 0.307, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.589, 'FT%': 0.821, 'FULL NAME': 'Nikola Jokic', 'APGAssistsAssists per game.': 7.3, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 27.4, 'AGE': 24.14, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 18.7, '2PA': 936, '3PA': 270, 'SPGStealsSteals per game.': 1.35, 'BPGBlocksBlocks per game.': 0.69, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.545, 'GP': 80, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 99.0, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 119.2, 'FTA': 352, 'POS': 'C', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 65.2, 'TEAM': 'Den', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 15.4, 'PPGPointsPoints per game.': 20.1, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 37.1, '_dr_': {'default': {'2': {}}}, '_search_score': 0.96315}, {'_id': 'QUIQgXQB6ETDC656Rcw0', 'MPG': 35.2, 'RPGReboundsRebounds per game.': 8.4, 'TOPGTurnoversTurnovers per game.': 3.58, '2P%': 0.582, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 14.1, '3P%': 0.339, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.588, 'FT%': 0.665, 'FULL NAME': 'LeBron James', 'APGAssistsAssists per game.': 8.3, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 31.6, 'AGE': 34.28, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 12.3, '2PA': 768, '3PA': 327, 'SPGStealsSteals per game.': 1.31, 'BPGBlocksBlocks per game.': 0.6, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.56, 'GP': 55, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 106.2, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 114.4, 'FTA': 418, 'POS': 'F', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 73.4, 'TEAM': 'Lal', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 13.3, 'PPGPointsPoints per game.': 27.4, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 39.4, '_dr_': {'default': {'2': {}}}, '_search_score': 0.9505332}, {'_id': 'IkIQgXQB6ETDC656Rcw0', 'MPG': 35.8, 'RPGReboundsRebounds per game.': 5.0, 'TOPGTurnoversTurnovers per game.': 3.16, '2P%': 0.539, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 10.4, '3P%': 0.325, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.555, 'FT%': 0.768, 'FULL NAME': 'Jrue Holiday', 'APGAssistsAssists per game.': 7.7, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 25.5, 'AGE': 28.83, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 7.2, '2PA': 796, '3PA': 363, 'SPGStealsSteals per game.': 1.64, 'BPGBlocksBlocks per game.': 0.81, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.523, 'GP': 67, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 110.1, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 110.9, 'FTA': 271, 'POS': 'G', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 74.7, 'TEAM': 'Nor', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 14.2, 'PPGPointsPoints per game.': 21.2, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 31.8, '_dr_': {'default': {'2': {}}}, '_search_score': 0.9209309000000001}, {'_id': 'hoMQgXQBv-xqKfY1Q26G', 'MPG': 31.4, 'RPGReboundsRebounds per game.': 3.8, 'TOPGTurnoversTurnovers per game.': 2.8, '2P%': 0.482, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 10.0, '3P%': 0.371, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.544, 'FT%': 0.727, 'FULL NAME': \"De'Aaron Fox\", 'APGAssistsAssists per game.': 7.3, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 24.5, 'AGE': 21.31, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 6.2, '2PA': 870, '3PA': 232, 'SPGStealsSteals per game.': 1.64, 'BPGBlocksBlocks per game.': 0.56, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.497, 'GP': 81, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 107.1, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 109.9, 'FTA': 417, 'POS': 'G', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 65.5, 'TEAM': 'Sac', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 15.0, 'PPGPointsPoints per game.': 17.3, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 33.2, '_dr_': {'default': {'2': {}}}, '_search_score': 0.9166042999999999}, {'_id': 'Y4MQgXQBv-xqKfY1Q26G', 'MPG': 32.2, 'RPGReboundsRebounds per game.': 7.8, 'TOPGTurnoversTurnovers per game.': 3.42, '2P%': 0.503, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 12.4, '3P%': 0.326, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.545, 'FT%': 0.713, 'FULL NAME': 'Luka Doncic', 'APGAssistsAssists per game.': 6.0, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 30.5, 'AGE': 20.12, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 13.0, '2PA': 672, '3PA': 515, 'SPGStealsSteals per game.': 1.08, 'BPGBlocksBlocks per game.': 0.35, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.497, 'GP': 72, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 105.1, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 106.9, 'FTA': 485, 'POS': 'G-F', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 67.1, 'TEAM': 'Dal', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 14.9, 'PPGPointsPoints per game.': 21.2, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 31.6, '_dr_': {'default': {'2': {}}}, '_search_score': 0.9088172000000001}, {'_id': 'XIMQgXQBv-xqKfY1Q26G', 'MPG': 34.9, 'RPGReboundsRebounds per game.': 6.0, 'TOPGTurnoversTurnovers per game.': 2.57, '2P%': 0.492, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 10.6, '3P%': 0.156, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.542, 'FT%': 0.831, 'FULL NAME': 'DeMar DeRozan', 'APGAssistsAssists per game.': 6.2, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 27.9, 'AGE': 29.68, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 9.4, '2PA': 1268, '3PA': 45, 'SPGStealsSteals per game.': 1.12, 'BPGBlocksBlocks per game.': 0.47, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.483, 'GP': 77, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 106.4, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 110.0, 'FTA': 439, 'POS': 'G', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 72.7, 'TEAM': 'San', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 11.6, 'PPGPointsPoints per game.': 21.2, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 27.6, '_dr_': {'default': {'2': {}}}, '_search_score': 0.8976381}, {'_id': '04MQgXQBv-xqKfY1QW1E', 'MPG': 32.8, 'RPGReboundsRebounds per game.': 12.5, 'TOPGTurnoversTurnovers per game.': 3.71, '2P%': 0.64, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 15.5, '3P%': 0.256, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.643, 'FT%': 0.729, 'FULL NAME': 'Giannis Antetokounmpo', 'APGAssistsAssists per game.': 5.9, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 32.3, 'AGE': 24.35, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 19.4, '2PA': 1045, '3PA': 203, 'SPGStealsSteals per game.': 1.26, 'BPGBlocksBlocks per game.': 1.53, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.599, 'GP': 72, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 93.9, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 121.6, 'FTA': 686, 'POS': 'F', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 68.2, 'TEAM': 'Mil', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 14.7, 'PPGPointsPoints per game.': 27.7, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 30.3, '_dr_': {'default': {'2': {}}}, '_search_score': 0.8937579}, {'_id': 'WIMQgXQBv-xqKfY1TG9h', 'MPG': 29.7, 'RPGReboundsRebounds per game.': 5.4, 'TOPGTurnoversTurnovers per game.': 2.15, '2P%': 0.462, 'VIVersatility IndexVersatility index is a metric that measures a player’s ability to produce in points, assists, and rebounds. The average player will score around a five on the index, while top players score above 10': 8.9, '3P%': 0.375, 'TS%True Shooting PercentageTrue shooting percentage is a measure of shooting efficiency that takes into account field goals, 3-point field goals, and free throws.': 0.513, 'FT%': 0.628, 'FULL NAME': 'Justise Winslow', 'APGAssistsAssists per game.': 4.3, 'USG%Usage RateUsage rate, a.k.a., usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor': 20.8, 'AGE': 23.04, 'TRB%Total Rebound PercentageTotal rebound percentage is estimated percentage of available rebounds grabbed by the player while the player is on the court.': 9.6, '2PA': 493, '3PA': 256, 'SPGStealsSteals per game.': 1.09, 'BPGBlocksBlocks per game.': 0.29, 'eFG%Effective Shooting PercentageWith eFG%, three-point shots made are worth 50% more than two-point shots made. eFG% Formula=(FGM+ (0.5 x 3PM))/FGA': 0.497, 'GP': 66, 'DRTGDefensive RatingIndividual defensive rating estimates how many points the player allowed per 100 possessions he individually faced while staying on the court.': 101.5, 'ORTGOffensive RatingIndividual offensive rating is the number of points produced by a player per 100 total individual possessions.': 102.6, 'FTA': 137, 'POS': 'F', 'MIN%Minutes PercentagePercentage of team minutes used by a player while he was on the floor': 61.9, 'TEAM': 'Mia', 'Tor%Turnover RateA metric that estimates the number of turnovers a player commits per 100 possessions': 14.9, 'PPGPointsPoints per game.': 12.6, 'AST%Assist PercentageAssist percentage is an estimated percentage of teammate field goals a player assisted while the player is on the court': 21.9, '_dr_': {'default': {'2': {}}}, '_search_score': 0.8891511000000001}], 'count': 622}\n", "Russell Westbrook\n", "Ben Simmons\n", "Nikola Jokic\n", "LeBron James\n", "Jrue Holiday\n", "De'Aaron Fox\n", "Luka Doncic\n", "DeMar DeRozan\n", "Giannis Antetokounmpo\n", "Justise Winslow\n" ] } ], "source": [ "# What is the closest you get when you add Ben Simmons and Kawhi Leonard?\n", "sum_players(\"nba_season_per_game_stats_demo\", ['Ben Simmons', 'Russell Westbrook'])" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [], "source": [ "anchor_doc = documents.pop(6)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 542 }, "colab_type": "code", "id": "3c7aGfxLYBQn", "outputId": "6d8d498e-3aad-4351-8c2a-5cd2dd95682d" }, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "name": "season_vector_", "orientation": "h", "type": "bar", "x": [ -0.581794502789061, -0.47040600144824585, -0.3290209041846257, -0.27927006458657466, -0.1292572202414295, -0.05510650986785426, -0.04280941854949116, -0.030468749633023595, -0.026216052008123603, 0.0757296917213457, 0.10342858931069054, 0.11674795132788574, 0.14444762985780413, 0.1639070505343011, 0.21546949974140028, 0.261951312455156, 0.3115233887625585, 0.32774707084704324, 0.5521431528470908, 1 ], "y": [ "Jordan Bell", "Frank Mason", "Kostas Antetokounmpo", "De'Anthony Melton", "Mitchell Robinson", "Donte DiVincenzo", "Jordan Loyd", "Shake Milton", "Jeremy Lin", "Jaren Jackson Jr.", "Luka Doncic", "Dante Cunningham", "Karl-Anthony Towns", "Thomas Bryant", "Robert Covington", "Josh Hart", "Taj Gibson", "Dion Waiters", "Trevor Ariza", "Harrison Barnes" ] } ], "layout": { "barmode": "group", "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Comparing with Harrison Barnes" } } }, "text/html": [ "
\n", " \n", " \n", "
\n", " \n", "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import random\n", "documents = vi_client.random_documents(\"nba_season_per_game_stats_demo\", seed=random.randint(0, 100))['documents']\n", "vi_client.plot_1d_cosine_similarity(documents, vector_fields='season_vector_', label='FULL NAME')" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 542 }, "colab_type": "code", "id": "71-SKhKforHi", "outputId": "84ba6cea-4d14-4858-a054-f5ea5a244d02" }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "mode": "markers+text", "name": "season_vector_", "text": [ "Harrison Barnes", "Karl-Anthony Towns", "Mitchell Robinson", "Dante Cunningham", "Taj Gibson", "Josh Hart", "Jordan Loyd", "Thomas Bryant", "Jaren Jackson Jr.", "Dion Waiters", "Donte DiVincenzo", "Jordan Bell", "Trevor Ariza", "Kostas Antetokounmpo", "De'Anthony Melton", "Shake Milton", "Robert Covington", "Luka Doncic", "Frank Mason", "Jeremy Lin" ], "type": "scatter", "x": [ 1, 0.144, -0.129, 0.117, 0.312, 0.262, -0.043, 0.164, 0.076, 0.328, -0.055, -0.582, 0.552, -0.329, -0.279, -0.03, 0.215, 0.103, -0.47, -0.026 ], "y": [ 0.144, 1, 0.341, -0.501, 0.629, 0.054, -0.557, 0.571, 0.75, 0.085, -0.675, -0.244, 0.147, -0.543, -0.079, -0.799, 0.255, 0.824, -0.456, 0.322 ] } ], "layout": { "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "2D Cosine Similarity Comparison With Harrison Barnes and Karl-Anthony Towns" }, "xaxis": { "title": { "text": "Comparing with Harrison Barnes" } }, "yaxis": { "title": { "text": "Comparing with Karl-Anthony Towns" } } } }, "text/html": [ "
\n", " \n", " \n", "
\n", " \n", "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "vi_client.plot_2d_cosine_similarity(documents, documents[:2], 'season_vector_', 'FULL NAME')" ] } ], "metadata": { "celltoolbar": "Edit Metadata", "colab": { "collapsed_sections": [], "name": "Industry - NBA Players.ipynb", "provenance": [] }, "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.7.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "04c787cae3d54b2db28fdd651d2f209d": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_ab39e9ebd2984a1fbf0b37094be1ea92", "IPY_MODEL_4582d34e030041cca51aa3685105f8dd" ], "layout": "IPY_MODEL_65e428aa5dac45c6aacec061252bf637" } }, "099111d24b974bb89e3cbdf9f61020ee": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "bar_color": null, "description_width": "initial" } }, "141e1e99b3e14fd7b04322917d6d462f": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "bar_color": null, "description_width": "initial" } }, "1ae303aa25ab4169895297c43a87ff47": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_efe1ce3310534e69bd99ec3fe428b36d", "IPY_MODEL_e67bab9a48ee470cbe877100c8252c9e" ], "layout": "IPY_MODEL_c8e02289412a4761ae672fefb453d9ed" } }, "3fda14430cf2459998eaff219a8531c6": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "bar_color": null, "description_width": "initial" } }, "4582d34e030041cca51aa3685105f8dd": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_b0edc8804b0e4f98962156ddd3088f9d", "placeholder": "​", "style": "IPY_MODEL_cbd05f0799c5468c9dd55050580a0348", "value": " 7/7 [21:34<00:00, 184.89s/it]" } }, "65e428aa5dac45c6aacec061252bf637": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "6c18a1a7b8d04c2e974bd67228687e99": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "713a249af08a493e8fca22e6d00e24fb": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "862138f7943c43bebc6fe233f4a04e9f": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "961b98d27bd5438c9adca77583dc0fb8": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9b0349450b604b8984ff3173a3f77c80": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9da1c12832dd48b0a751bbebedb9f778": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "9dadb454ed0244028670e6ed973e3c67": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "a39345b103f04976b8851e69a095c9bd": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "ProgressStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "bar_color": null, "description_width": "initial" } }, "aa76bdfbf4ab466d805760c17ac1c174": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_d90ad5c8afa64f76b8edb4705ca3763a", "IPY_MODEL_dd1ea6fbb1f347548e51225a4274d618" ], "layout": "IPY_MODEL_9da1c12832dd48b0a751bbebedb9f778" } }, "ab39e9ebd2984a1fbf0b37094be1ea92": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ProgressView", "bar_style": "success", "description": "100%", "description_tooltip": null, "layout": "IPY_MODEL_cda6a788726543c39546b6b84d315c53", "max": 7, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_a39345b103f04976b8851e69a095c9bd", "value": 7 } }, "af209631f8a2441db350018cea17ad28": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "b0edc8804b0e4f98962156ddd3088f9d": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "b110424e06b14030a40212dac5e426ac": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ProgressView", "bar_style": "success", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_6c18a1a7b8d04c2e974bd67228687e99", "max": 6, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_141e1e99b3e14fd7b04322917d6d462f", "value": 6 } }, "c82251c1b5444ba9adb95f8e0993f0f5": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_713a249af08a493e8fca22e6d00e24fb", "placeholder": "​", "style": "IPY_MODEL_9dadb454ed0244028670e6ed973e3c67", "value": " 7/? [00:20<00:00, 2.97s/it]" } }, "c8e02289412a4761ae672fefb453d9ed": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "cbd05f0799c5468c9dd55050580a0348": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "cda6a788726543c39546b6b84d315c53": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "d65dba6d34c84f04bd781bf4492358ea": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "d90ad5c8afa64f76b8edb4705ca3763a": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ProgressView", "bar_style": "success", "description": "100%", "description_tooltip": null, "layout": "IPY_MODEL_9b0349450b604b8984ff3173a3f77c80", "max": 7, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_3fda14430cf2459998eaff219a8531c6", "value": 7 } }, "daebda4154024577af22ffa9351d62f3": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "dd1ea6fbb1f347548e51225a4274d618": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_af209631f8a2441db350018cea17ad28", "placeholder": "​", "style": "IPY_MODEL_862138f7943c43bebc6fe233f4a04e9f", "value": " 7/7 [21:54<00:00, 187.75s/it]" } }, "e67bab9a48ee470cbe877100c8252c9e": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_d65dba6d34c84f04bd781bf4492358ea", "placeholder": "​", "style": "IPY_MODEL_f55918e8cc0b4460aecd9f6c45d73334", "value": " 3/? [01:24<00:00, 28.15s/it]" } }, "efe1ce3310534e69bd99ec3fe428b36d": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "FloatProgressModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "ProgressView", "bar_style": "success", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_961b98d27bd5438c9adca77583dc0fb8", "max": 2, "min": 0, "orientation": "horizontal", "style": "IPY_MODEL_099111d24b974bb89e3cbdf9f61020ee", "value": 2 } }, "f47970c27dd0464dbea2b4e6b134df33": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HBoxModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HBoxView", "box_style": "", "children": [ "IPY_MODEL_b110424e06b14030a40212dac5e426ac", "IPY_MODEL_c82251c1b5444ba9adb95f8e0993f0f5" ], "layout": "IPY_MODEL_daebda4154024577af22ffa9351d62f3" } }, "f55918e8cc0b4460aecd9f6c45d73334": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } } } } }, "nbformat": 4, "nbformat_minor": 1 }