{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!pip install scikit-learn-intelex -q --progress-bar off","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-09-26T18:03:24.881936Z","iopub.execute_input":"2022-09-26T18:03:24.882778Z","iopub.status.idle":"2022-09-26T18:03:36.456516Z","shell.execute_reply.started":"2022-09-26T18:03:24.882657Z","shell.execute_reply":"2022-09-26T18:03:36.455104Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from sklearnex import patch_sklearn\npatch_sklearn()","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:03:38.302828Z","iopub.execute_input":"2022-09-26T18:03:38.303276Z","iopub.status.idle":"2022-09-26T18:03:40.154186Z","shell.execute_reply.started":"2022-09-26T18:03:38.303230Z","shell.execute_reply":"2022-09-26T18:03:40.153183Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import pandas as pd\nimport numpy as np\nfrom sklearn.manifold import TSNE\nimport matplotlib.pyplot as plt\n%matplotlib inline","metadata":{"_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","execution":{"iopub.status.busy":"2022-09-26T18:03:43.056745Z","iopub.execute_input":"2022-09-26T18:03:43.057200Z","iopub.status.idle":"2022-09-26T18:03:43.065355Z","shell.execute_reply.started":"2022-09-26T18:03:43.057165Z","shell.execute_reply":"2022-09-26T18:03:43.064365Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"target = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_1/target.npy')\ntarget","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:03:48.515131Z","iopub.execute_input":"2022-09-26T18:03:48.515489Z","iopub.status.idle":"2022-09-26T18:03:48.542686Z","shell.execute_reply.started":"2022-09-26T18:03:48.515459Z","shell.execute_reply":"2022-09-26T18:03:48.541501Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_1/train_VGG16.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:03:52.063503Z","iopub.execute_input":"2022-09-26T18:03:52.063936Z","iopub.status.idle":"2022-09-26T18:03:57.779552Z","shell.execute_reply.started":"2022-09-26T18:03:52.063903Z","shell.execute_reply":"2022-09-26T18:03:57.778398Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:04:00.020785Z","iopub.execute_input":"2022-09-26T18:04:00.021149Z","iopub.status.idle":"2022-09-26T18:07:01.286167Z","shell.execute_reply.started":"2022-09-26T18:04:00.021118Z","shell.execute_reply":"2022-09-26T18:07:01.285080Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:07:01.288497Z","iopub.execute_input":"2022-09-26T18:07:01.289257Z","iopub.status.idle":"2022-09-26T18:07:02.088547Z","shell.execute_reply.started":"2022-09-26T18:07:01.289214Z","shell.execute_reply":"2022-09-26T18:07:02.087376Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"So this looks like a couple of fairly, albeit imperfectly, separated classses. Let's see what we can get with VGG19.","metadata":{}},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_1/train_VGG19.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:07:25.363377Z","iopub.execute_input":"2022-09-26T18:07:25.363780Z","iopub.status.idle":"2022-09-26T18:07:29.402278Z","shell.execute_reply.started":"2022-09-26T18:07:25.363747Z","shell.execute_reply":"2022-09-26T18:07:29.401138Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:07:29.405372Z","iopub.execute_input":"2022-09-26T18:07:29.405708Z","iopub.status.idle":"2022-09-26T18:10:28.780417Z","shell.execute_reply.started":"2022-09-26T18:07:29.405680Z","shell.execute_reply":"2022-09-26T18:10:28.779382Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:10:28.782104Z","iopub.execute_input":"2022-09-26T18:10:28.782797Z","iopub.status.idle":"2022-09-26T18:10:29.908577Z","shell.execute_reply.started":"2022-09-26T18:10:28.782756Z","shell.execute_reply":"2022-09-26T18:10:29.907646Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"So the separation here seems more prononced. Let's now look at ResNet50.","metadata":{}},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_1/train_ResNet50.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:10:29.911031Z","iopub.execute_input":"2022-09-26T18:10:29.912089Z","iopub.status.idle":"2022-09-26T18:10:33.768074Z","shell.execute_reply.started":"2022-09-26T18:10:29.912026Z","shell.execute_reply":"2022-09-26T18:10:33.766912Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:10:33.769698Z","iopub.execute_input":"2022-09-26T18:10:33.770111Z","iopub.status.idle":"2022-09-26T18:12:49.909674Z","shell.execute_reply.started":"2022-09-26T18:10:33.770062Z","shell.execute_reply":"2022-09-26T18:12:49.908465Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:12:49.911148Z","iopub.execute_input":"2022-09-26T18:12:49.911863Z","iopub.status.idle":"2022-09-26T18:12:50.660414Z","shell.execute_reply.started":"2022-09-26T18:12:49.911822Z","shell.execute_reply":"2022-09-26T18:12:50.659546Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"And now InceptionV3:","metadata":{}},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_1/train_InceptionV3.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:12:50.662136Z","iopub.execute_input":"2022-09-26T18:12:50.662808Z","iopub.status.idle":"2022-09-26T18:12:54.588446Z","shell.execute_reply.started":"2022-09-26T18:12:50.662767Z","shell.execute_reply":"2022-09-26T18:12:54.587371Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:12:54.589854Z","iopub.execute_input":"2022-09-26T18:12:54.590988Z","iopub.status.idle":"2022-09-26T18:15:09.625633Z","shell.execute_reply.started":"2022-09-26T18:12:54.590956Z","shell.execute_reply":"2022-09-26T18:15:09.624420Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:15:09.627790Z","iopub.execute_input":"2022-09-26T18:15:09.628604Z","iopub.status.idle":"2022-09-26T18:15:10.380464Z","shell.execute_reply.started":"2022-09-26T18:15:09.628542Z","shell.execute_reply":"2022-09-26T18:15:10.379382Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"How about InceptionResNetV2?","metadata":{}},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_1/train_InceptionResNetV2.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:15:10.384950Z","iopub.execute_input":"2022-09-26T18:15:10.386094Z","iopub.status.idle":"2022-09-26T18:15:13.493996Z","shell.execute_reply.started":"2022-09-26T18:15:10.386052Z","shell.execute_reply":"2022-09-26T18:15:13.492787Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:15:13.496750Z","iopub.execute_input":"2022-09-26T18:15:13.497591Z","iopub.status.idle":"2022-09-26T18:17:11.252098Z","shell.execute_reply.started":"2022-09-26T18:15:13.497545Z","shell.execute_reply":"2022-09-26T18:17:11.250189Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:17:11.253667Z","iopub.execute_input":"2022-09-26T18:17:11.254018Z","iopub.status.idle":"2022-09-26T18:17:12.010656Z","shell.execute_reply.started":"2022-09-26T18:17:11.253984Z","shell.execute_reply":"2022-09-26T18:17:12.009552Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"The separation seems fairly clean.","metadata":{}},{"cell_type":"markdown","source":"Now let's look at ResNet152","metadata":{}},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_2/train_ResNet152.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:17:12.012386Z","iopub.execute_input":"2022-09-26T18:17:12.013124Z","iopub.status.idle":"2022-09-26T18:17:15.715579Z","shell.execute_reply.started":"2022-09-26T18:17:12.013070Z","shell.execute_reply":"2022-09-26T18:17:15.714525Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:17:15.717735Z","iopub.execute_input":"2022-09-26T18:17:15.718443Z","iopub.status.idle":"2022-09-26T18:19:33.859152Z","shell.execute_reply.started":"2022-09-26T18:17:15.718404Z","shell.execute_reply":"2022-09-26T18:19:33.856933Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:19:33.860760Z","iopub.execute_input":"2022-09-26T18:19:33.861095Z","iopub.status.idle":"2022-09-26T18:19:34.626646Z","shell.execute_reply.started":"2022-09-26T18:19:33.861066Z","shell.execute_reply":"2022-09-26T18:19:34.625572Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"The separation is again noticable, but there is a small island of yellow in the midst of purple.\n\nNow let's look at NAS Large.","metadata":{}},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_2/train_NAS_large.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:19:34.628128Z","iopub.execute_input":"2022-09-26T18:19:34.628464Z","iopub.status.idle":"2022-09-26T18:19:40.237290Z","shell.execute_reply.started":"2022-09-26T18:19:34.628435Z","shell.execute_reply":"2022-09-26T18:19:40.236134Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:19:40.238714Z","iopub.execute_input":"2022-09-26T18:19:40.240208Z","iopub.status.idle":"2022-09-26T18:22:11.939272Z","shell.execute_reply.started":"2022-09-26T18:19:40.240165Z","shell.execute_reply":"2022-09-26T18:22:11.937681Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:22:11.941120Z","iopub.execute_input":"2022-09-26T18:22:11.941917Z","iopub.status.idle":"2022-09-26T18:22:12.933747Z","shell.execute_reply.started":"2022-09-26T18:22:11.941874Z","shell.execute_reply":"2022-09-26T18:22:12.932535Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_3/cats_and_dogs_3/train_EB5.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:22:12.935372Z","iopub.execute_input":"2022-09-26T18:22:12.936023Z","iopub.status.idle":"2022-09-26T18:22:17.143228Z","shell.execute_reply.started":"2022-09-26T18:22:12.935979Z","shell.execute_reply":"2022-09-26T18:22:17.142074Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:22:17.144674Z","iopub.execute_input":"2022-09-26T18:22:17.145089Z","iopub.status.idle":"2022-09-26T18:24:33.115559Z","shell.execute_reply.started":"2022-09-26T18:22:17.145043Z","shell.execute_reply":"2022-09-26T18:24:33.114367Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:24:33.117530Z","iopub.execute_input":"2022-09-26T18:24:33.118293Z","iopub.status.idle":"2022-09-26T18:24:33.963570Z","shell.execute_reply.started":"2022-09-26T18:24:33.118249Z","shell.execute_reply":"2022-09-26T18:24:33.962547Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_3/cats_and_dogs_3/train_EB6.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:24:33.964892Z","iopub.execute_input":"2022-09-26T18:24:33.965594Z","iopub.status.idle":"2022-09-26T18:24:37.957974Z","shell.execute_reply.started":"2022-09-26T18:24:33.965545Z","shell.execute_reply":"2022-09-26T18:24:37.956831Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:24:37.960710Z","iopub.execute_input":"2022-09-26T18:24:37.961026Z","iopub.status.idle":"2022-09-26T18:26:45.106997Z","shell.execute_reply.started":"2022-09-26T18:24:37.960998Z","shell.execute_reply":"2022-09-26T18:26:45.105801Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:26:45.108370Z","iopub.execute_input":"2022-09-26T18:26:45.109305Z","iopub.status.idle":"2022-09-26T18:26:46.096776Z","shell.execute_reply.started":"2022-09-26T18:26:45.109261Z","shell.execute_reply":"2022-09-26T18:26:46.095571Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_4/cats_and_dogs_4/train_EB4_ns.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:26:46.098468Z","iopub.execute_input":"2022-09-26T18:26:46.098861Z","iopub.status.idle":"2022-09-26T18:26:49.727101Z","shell.execute_reply.started":"2022-09-26T18:26:46.098824Z","shell.execute_reply":"2022-09-26T18:26:49.726072Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:26:49.729486Z","iopub.execute_input":"2022-09-26T18:26:49.730193Z","iopub.status.idle":"2022-09-26T18:28:45.858123Z","shell.execute_reply.started":"2022-09-26T18:26:49.730150Z","shell.execute_reply":"2022-09-26T18:28:45.856841Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:28:45.859562Z","iopub.execute_input":"2022-09-26T18:28:45.860208Z","iopub.status.idle":"2022-09-26T18:28:46.639117Z","shell.execute_reply.started":"2022-09-26T18:28:45.860169Z","shell.execute_reply":"2022-09-26T18:28:46.638094Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_4/cats_and_dogs_4/train_EB7_ns.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:28:46.644743Z","iopub.execute_input":"2022-09-26T18:28:46.645730Z","iopub.status.idle":"2022-09-26T18:28:51.214474Z","shell.execute_reply.started":"2022-09-26T18:28:46.645689Z","shell.execute_reply":"2022-09-26T18:28:51.213303Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:28:51.216313Z","iopub.execute_input":"2022-09-26T18:28:51.216762Z","iopub.status.idle":"2022-09-26T18:31:04.019742Z","shell.execute_reply.started":"2022-09-26T18:28:51.216721Z","shell.execute_reply":"2022-09-26T18:31:04.018579Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:31:04.021730Z","iopub.execute_input":"2022-09-26T18:31:04.022456Z","iopub.status.idle":"2022-09-26T18:31:04.926057Z","shell.execute_reply.started":"2022-09-26T18:31:04.022416Z","shell.execute_reply":"2022-09-26T18:31:04.925029Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_5/cats_and_dogs_5/train_ENV2S.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:31:22.060168Z","iopub.execute_input":"2022-09-26T18:31:22.060551Z","iopub.status.idle":"2022-09-26T18:31:25.102718Z","shell.execute_reply.started":"2022-09-26T18:31:22.060517Z","shell.execute_reply":"2022-09-26T18:31:25.101641Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:31:33.166573Z","iopub.execute_input":"2022-09-26T18:31:33.167122Z","iopub.status.idle":"2022-09-26T18:33:24.078921Z","shell.execute_reply.started":"2022-09-26T18:31:33.167079Z","shell.execute_reply":"2022-09-26T18:33:24.077850Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:33:24.080780Z","iopub.execute_input":"2022-09-26T18:33:24.081776Z","iopub.status.idle":"2022-09-26T18:33:24.871712Z","shell.execute_reply.started":"2022-09-26T18:33:24.081737Z","shell.execute_reply":"2022-09-26T18:33:24.870610Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_5/cats_and_dogs_5/train_ENV2M.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:33:24.873542Z","iopub.execute_input":"2022-09-26T18:33:24.874341Z","iopub.status.idle":"2022-09-26T18:33:27.486565Z","shell.execute_reply.started":"2022-09-26T18:33:24.874296Z","shell.execute_reply":"2022-09-26T18:33:27.485527Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:33:27.490463Z","iopub.execute_input":"2022-09-26T18:33:27.491291Z","iopub.status.idle":"2022-09-26T18:35:17.997176Z","shell.execute_reply.started":"2022-09-26T18:33:27.491258Z","shell.execute_reply":"2022-09-26T18:35:17.995838Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:35:17.998814Z","iopub.execute_input":"2022-09-26T18:35:17.999194Z","iopub.status.idle":"2022-09-26T18:35:18.757631Z","shell.execute_reply.started":"2022-09-26T18:35:17.999162Z","shell.execute_reply":"2022-09-26T18:35:18.756550Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train = np.load('../input/cats-and-dogs-embedded-data/cats_and_dogs_5/cats_and_dogs_5/train_ENV2L.npy')","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:35:18.759209Z","iopub.execute_input":"2022-09-26T18:35:18.762049Z","iopub.status.idle":"2022-09-26T18:35:21.895878Z","shell.execute_reply.started":"2022-09-26T18:35:18.761987Z","shell.execute_reply":"2022-09-26T18:35:21.894769Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\ntsne = TSNE(n_components=2)\ntrain_2D = tsne.fit_transform(train)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:35:21.897664Z","iopub.execute_input":"2022-09-26T18:35:21.898046Z","iopub.status.idle":"2022-09-26T18:37:11.688858Z","shell.execute_reply.started":"2022-09-26T18:35:21.898007Z","shell.execute_reply":"2022-09-26T18:37:11.687795Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.scatter(train_2D[:,0], train_2D[:,1], c = target, s = 0.5)","metadata":{"execution":{"iopub.status.busy":"2022-09-26T18:37:11.690191Z","iopub.execute_input":"2022-09-26T18:37:11.691079Z","iopub.status.idle":"2022-09-26T18:37:12.448449Z","shell.execute_reply.started":"2022-09-26T18:37:11.691039Z","shell.execute_reply":"2022-09-26T18:37:12.447517Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}