{"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":"markdown","source":"# HISTORY\n\n* It's been said that teamwork makes the dream work. This couldn't be truer for the breakthrough discovery of gravitational waves (GW), signals from colliding binary black holes in 2015. It required the collaboration of experts in physics, mathematics, information science, and computing. GW signals have led researchers to observe a new population of massive, stellar-origin black holes, to unlock the mysteries of neutron star mergers, and to measure the expansion of the Universe. These signals are unimaginably tiny ripples in the fabric of space-time and even though the global network of GW detectors are some of the most sensitive instruments on the planet, the signals are buried in detector noise. Analysis of GW data and the detection of these signals is a crucial mission for the growing global network of increasingly sensitive GW detectors. These challenges in data analysis and noise characterization could be solved with the help of data science.\n\n* As with the multi-disciplined approach to the discovery of GWs, additional expertise will be needed to further GW research. In particular, social and natural sciences have taken an interest in machine learning, deep learning, classification problems, data mining, and visualization to develop new techniques and algorithms to efficiently handle complex and massive data sets. The increase in computing power and the development of innovative techniques for the rapid analysis of data will be vital to the exciting new field of GW Astronomy. Potential outcomes may include increased sensitivity to GW signals, application to control and feedback systems for next-generation detectors, noise removal, data conditioning tools, and signal characterization.\n\n* G2Net is a network of Gravitational Wave, Geophysics and Machine Learning. Via an Action from COST (European Cooperation in Science and Technology), a funding agency for research and innovation networks, G2Net aims to create a broad network of scientists. From four different areas of expertise, namely GW physics, Geophysics, Computing Science and Robotics, these scientists have agreed on a common goal of tackling challenges in data analysis and noise characterization for GW detectors.\n\n* In this competition, you’ll aim to detect GW signals from the mergers of binary black holes. Specifically, you'll build a model to analyze simulated GW time-series data from a network of Earth-based detectors.","metadata":{}},{"cell_type":"markdown","source":"![](https://cdn.mos.cms.futurecdn.net/U6aSNfCVa2RGSqNJHkzjZN-1200-80.jpg)","metadata":{}},{"cell_type":"markdown","source":"# PACKAGES AND LIBRARIES","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19"}},{"cell_type":"code","source":"#GENERAL\nimport pandas as pd\nimport numpy as np\nimport seaborn as sns\nimport matplotlib.pyplot as plt\nimport matplotlib as mpl\nfrom mpl_toolkits.mplot3d import Axes3D\nimport random\nimport time\n#PATH PROCESS\nimport os\nimport os.path\nfrom pathlib import Path\nimport glob\nfrom scipy.io import loadmat\nimport nibabel as nib\nimport csv\n#IMAGE PROCESS\nfrom PIL import Image\nfrom keras.preprocessing import image\nfrom tensorflow.keras.preprocessing.image import ImageDataGenerator\nimport cv2\nfrom keras.applications.vgg16 import preprocess_input, decode_predictions\nfrom keras.preprocessing import image\nfrom skimage.feature import hessian_matrix, hessian_matrix_eigvals\nfrom scipy.ndimage.filters import convolve\nfrom skimage import data, io, filters\nimport skimage\nfrom skimage.morphology import convex_hull_image, erosion\nfrom IPython import display\nfrom scipy.ndimage import gaussian_filter\nfrom mpl_toolkits.mplot3d.art3d import Poly3DCollection\nimport matplotlib.patches as patches\n#SCALER & TRANSFORMATION\nfrom sklearn.preprocessing import StandardScaler\nfrom sklearn.preprocessing import MinMaxScaler\nfrom keras.utils.np_utils import to_categorical\nfrom sklearn.model_selection import train_test_split\nfrom keras import regularizers\nfrom sklearn.preprocessing import LabelEncoder\n#MUSIC PROCESS\nimport pydub\nfrom scipy.io.wavfile import read, write\nimport librosa\nimport librosa.display\nimport IPython\nfrom IPython.display import Audio\nimport scipy\nfrom scipy import signal\nfrom scipy.fft import fftshift\n#ACCURACY CONTROL\nfrom sklearn.metrics import confusion_matrix, accuracy_score, classification_report, roc_auc_score, roc_curve\nfrom sklearn.model_selection import GridSearchCV, cross_val_score\nfrom sklearn.metrics import mean_squared_error, r2_score\n#OPTIMIZER\nfrom keras.optimizers import RMSprop,Adam,Optimizer,Optimizer, SGD\n#MODEL LAYERS\nfrom tensorflow.keras.models import Sequential\nfrom keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D, BatchNormalization,MaxPooling2D,BatchNormalization,\\\n                        Permute, TimeDistributed, Bidirectional,GRU, SimpleRNN,\\\nLSTM, GlobalAveragePooling2D, SeparableConv2D, ZeroPadding2D, Convolution2D, ZeroPadding2D,Reshape, Conv2DTranspose,\\\nLeakyReLU, GaussianNoise, GlobalMaxPooling2D, ReLU, Input, Concatenate\nfrom keras import models\nfrom keras import layers\nimport tensorflow as tf\nfrom keras.applications import VGG16,VGG19,inception_v3\nfrom keras import backend as K\nfrom keras.utils import plot_model\nfrom keras.datasets import mnist\nimport keras\nfrom keras.models import Model\n#IGNORING WARNINGS\nfrom warnings import filterwarnings\nfilterwarnings(\"ignore\",category=DeprecationWarning)\nfilterwarnings(\"ignore\", category=FutureWarning) \nfilterwarnings(\"ignore\", category=UserWarning)","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:51:02.878994Z","iopub.execute_input":"2021-07-03T00:51:02.879325Z","iopub.status.idle":"2021-07-03T00:51:03.908607Z","shell.execute_reply.started":"2021-07-03T00:51:02.879294Z","shell.execute_reply":"2021-07-03T00:51:03.907468Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# OVERVIEW AND ANALYSIS PROCESS","metadata":{}},{"cell_type":"markdown","source":"#### PATH","metadata":{}},{"cell_type":"code","source":"Train_CSV = pd.read_csv(\"../input/g2net-gravitational-wave-detection/training_labels.csv\")","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.048091Z","iopub.execute_input":"2021-07-03T00:00:52.048698Z","iopub.status.idle":"2021-07-03T00:00:52.387707Z","shell.execute_reply.started":"2021-07-03T00:00:52.048660Z","shell.execute_reply":"2021-07-03T00:00:52.386817Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#### CHECKING","metadata":{}},{"cell_type":"code","source":"print(\"COLUMNS:\\n\")\nprint(Train_CSV.columns)","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.401299Z","iopub.execute_input":"2021-07-03T00:00:52.403941Z","iopub.status.idle":"2021-07-03T00:00:52.411950Z","shell.execute_reply.started":"2021-07-03T00:00:52.403901Z","shell.execute_reply":"2021-07-03T00:00:52.411027Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"SHAPE:\\n\")\nprint(Train_CSV.shape)","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.414572Z","iopub.execute_input":"2021-07-03T00:00:52.418907Z","iopub.status.idle":"2021-07-03T00:00:52.423886Z","shell.execute_reply.started":"2021-07-03T00:00:52.418871Z","shell.execute_reply":"2021-07-03T00:00:52.423074Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"NaN:\\n\")\nprint(Train_CSV.isnull().sum())","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.425330Z","iopub.execute_input":"2021-07-03T00:00:52.426070Z","iopub.status.idle":"2021-07-03T00:00:52.505872Z","shell.execute_reply.started":"2021-07-03T00:00:52.426034Z","shell.execute_reply":"2021-07-03T00:00:52.505144Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"VALUE COUNTS:\\n\")\nprint(Train_CSV[\"target\"].value_counts())","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.509950Z","iopub.execute_input":"2021-07-03T00:00:52.512615Z","iopub.status.idle":"2021-07-03T00:00:52.531022Z","shell.execute_reply.started":"2021-07-03T00:00:52.512579Z","shell.execute_reply":"2021-07-03T00:00:52.530312Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(Train_CSV.head(-1))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.536370Z","iopub.execute_input":"2021-07-03T00:00:52.538966Z","iopub.status.idle":"2021-07-03T00:00:52.554239Z","shell.execute_reply.started":"2021-07-03T00:00:52.538931Z","shell.execute_reply":"2021-07-03T00:00:52.553539Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#### NEW PATHING DESIGN","metadata":{}},{"cell_type":"code","source":"Example_Path = \"../input/g2net-gravitational-wave-detection/train/0/0/0/00000e74ad.npy\"\n# we need to design that path for Train CSV","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.558887Z","iopub.execute_input":"2021-07-03T00:00:52.561504Z","iopub.status.idle":"2021-07-03T00:00:52.570081Z","shell.execute_reply.started":"2021-07-03T00:00:52.561468Z","shell.execute_reply":"2021-07-03T00:00:52.569258Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"All_NPY_Path = Path(\"../input/g2net-gravitational-wave-detection/train/0/0/0\") # that notebook is for educational purpose","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.573372Z","iopub.execute_input":"2021-07-03T00:00:52.574504Z","iopub.status.idle":"2021-07-03T00:00:52.582569Z","shell.execute_reply.started":"2021-07-03T00:00:52.574468Z","shell.execute_reply":"2021-07-03T00:00:52.581809Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"NPY_Path_List = list(All_NPY_Path.glob(r\"*.npy\")) ","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.583911Z","iopub.execute_input":"2021-07-03T00:00:52.584630Z","iopub.status.idle":"2021-07-03T00:00:52.594751Z","shell.execute_reply.started":"2021-07-03T00:00:52.584529Z","shell.execute_reply":"2021-07-03T00:00:52.593813Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"LEN:\\n\")\nprint(len(NPY_Path_List))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.596165Z","iopub.execute_input":"2021-07-03T00:00:52.596822Z","iopub.status.idle":"2021-07-03T00:00:52.605351Z","shell.execute_reply.started":"2021-07-03T00:00:52.596787Z","shell.execute_reply":"2021-07-03T00:00:52.604462Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"Train_CSV = Train_CSV[0:155]","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.607430Z","iopub.execute_input":"2021-07-03T00:00:52.608512Z","iopub.status.idle":"2021-07-03T00:00:52.613379Z","shell.execute_reply.started":"2021-07-03T00:00:52.608466Z","shell.execute_reply":"2021-07-03T00:00:52.612487Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(Train_CSV.head(-1))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.614919Z","iopub.execute_input":"2021-07-03T00:00:52.615630Z","iopub.status.idle":"2021-07-03T00:00:52.627329Z","shell.execute_reply.started":"2021-07-03T00:00:52.615596Z","shell.execute_reply":"2021-07-03T00:00:52.626495Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"Train_CSV[\"NEW_PATH\"] = NPY_Path_List","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.628870Z","iopub.execute_input":"2021-07-03T00:00:52.629437Z","iopub.status.idle":"2021-07-03T00:00:52.634401Z","shell.execute_reply.started":"2021-07-03T00:00:52.629402Z","shell.execute_reply":"2021-07-03T00:00:52.633428Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(Train_CSV.head(-1))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.635918Z","iopub.execute_input":"2021-07-03T00:00:52.636679Z","iopub.status.idle":"2021-07-03T00:00:52.649673Z","shell.execute_reply.started":"2021-07-03T00:00:52.636644Z","shell.execute_reply":"2021-07-03T00:00:52.648853Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"Train_CSV.drop(\"id\",axis=1,inplace=True)","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.650912Z","iopub.execute_input":"2021-07-03T00:00:52.651467Z","iopub.status.idle":"2021-07-03T00:00:52.672521Z","shell.execute_reply.started":"2021-07-03T00:00:52.651431Z","shell.execute_reply":"2021-07-03T00:00:52.671734Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(Train_CSV.head(-1))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.673647Z","iopub.execute_input":"2021-07-03T00:00:52.673977Z","iopub.status.idle":"2021-07-03T00:00:52.682836Z","shell.execute_reply.started":"2021-07-03T00:00:52.673945Z","shell.execute_reply":"2021-07-03T00:00:52.681775Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"TYPE:\\n\")\nprint(type(Train_CSV[\"NEW_PATH\"]))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:00:52.684159Z","iopub.execute_input":"2021-07-03T00:00:52.684726Z","iopub.status.idle":"2021-07-03T00:00:52.690463Z","shell.execute_reply.started":"2021-07-03T00:00:52.684692Z","shell.execute_reply":"2021-07-03T00:00:52.689411Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# WHAT IS NPY?","metadata":{}},{"cell_type":"code","source":"Random_Picking_NPY = Train_CSV[\"NEW_PATH\"][10]\nRandom_Example_Reading = np.load(Random_Picking_NPY)\n# READING","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:09.796948Z","iopub.execute_input":"2021-07-03T00:01:09.797412Z","iopub.status.idle":"2021-07-03T00:01:09.813637Z","shell.execute_reply.started":"2021-07-03T00:01:09.797372Z","shell.execute_reply":"2021-07-03T00:01:09.812573Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#### GENERAL INFO","metadata":{}},{"cell_type":"code","source":"print(\"TYPE:\\n\")\nprint(type(Random_Example_Reading))\nprint(\"--\"*20)\nprint(\"SHAPE:\\n\")\nprint(Random_Example_Reading.shape)\nprint(\"--\"*20)\nprint(\"SIZE:\\n\")\nprint(Random_Example_Reading.size)\nprint(\"--\"*20)\nprint(\"SELF:\\n\")\nprint(Random_Example_Reading)\nprint(\"--\"*20)","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:09.815077Z","iopub.execute_input":"2021-07-03T00:01:09.815558Z","iopub.status.idle":"2021-07-03T00:01:09.826178Z","shell.execute_reply.started":"2021-07-03T00:01:09.815522Z","shell.execute_reply":"2021-07-03T00:01:09.824982Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"##### PICKING ONE INTO NPY","metadata":{}},{"cell_type":"code","source":"print(\"TYPE:\\n\")\nprint(type(Random_Example_Reading[0]))\nprint(\"--\"*20)\nprint(\"SHAPE:\\n\")\nprint(Random_Example_Reading[0].shape)\nprint(\"--\"*20)\nprint(\"SIZE:\\n\")\nprint(Random_Example_Reading[0].size)\nprint(\"--\"*20)\nprint(\"SELF:\\n\")\nprint(Random_Example_Reading[0])\nprint(\"--\"*20)","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:09.828726Z","iopub.execute_input":"2021-07-03T00:01:09.829112Z","iopub.status.idle":"2021-07-03T00:01:09.840604Z","shell.execute_reply.started":"2021-07-03T00:01:09.829076Z","shell.execute_reply":"2021-07-03T00:01:09.839478Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"TYPE:\\n\")\nprint(type(Random_Example_Reading[2]))\nprint(\"--\"*20)\nprint(\"SHAPE:\\n\")\nprint(Random_Example_Reading[2].shape)\nprint(\"--\"*20)\nprint(\"SIZE:\\n\")\nprint(Random_Example_Reading[2].size)\nprint(\"--\"*20)\nprint(\"SELF:\\n\")\nprint(Random_Example_Reading[2])\nprint(\"--\"*20)","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:09.842710Z","iopub.execute_input":"2021-07-03T00:01:09.843523Z","iopub.status.idle":"2021-07-03T00:01:09.853361Z","shell.execute_reply.started":"2021-07-03T00:01:09.843485Z","shell.execute_reply":"2021-07-03T00:01:09.852224Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# VISION","metadata":{}},{"cell_type":"markdown","source":"#### DETAIL","metadata":{}},{"cell_type":"code","source":"plt.style.use(\"dark_background\")","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:09.854940Z","iopub.execute_input":"2021-07-03T00:01:09.855426Z","iopub.status.idle":"2021-07-03T00:01:09.859981Z","shell.execute_reply.started":"2021-07-03T00:01:09.855388Z","shell.execute_reply":"2021-07-03T00:01:09.858929Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure,axis = plt.subplots(1,3,figsize=(18,5),)\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n\naxis[0].set_title(\"WAVE 1\")\naxis[0].set_xlabel(Example_Reading[0].shape)\naxis[0].set_ylabel(Example_Reading[0].size)\naxis[0].plot(Example_Reading[0],c=\"g\")\n\naxis[1].set_title(\"WAVE 2\")\naxis[1].set_xlabel(Example_Reading[1].shape)\naxis[1].set_ylabel(Example_Reading[1].size)\naxis[1].plot(Example_Reading[1],c=\"g\")\n\naxis[2].set_title(\"WAVE 3\")\naxis[2].set_xlabel(Example_Reading[2].shape)\naxis[2].set_ylabel(Example_Reading[2].size)\naxis[2].plot(Example_Reading[2],c=\"g\")","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:34:29.545159Z","iopub.execute_input":"2021-07-03T01:34:29.545517Z","iopub.status.idle":"2021-07-03T01:34:29.906532Z","shell.execute_reply.started":"2021-07-03T01:34:29.545484Z","shell.execute_reply":"2021-07-03T01:34:29.905558Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure,axis = plt.subplots(1,3,figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n\naxis[0].set_title(\"WAVE 1\")\naxis[0].set_xlabel(Example_Reading[0].shape)\naxis[0].set_ylabel(Example_Reading[0].size)\naxis[0].hist(Example_Reading[0])\n\naxis[1].set_title(\"WAVE 2\")\naxis[1].set_xlabel(Example_Reading[1].shape)\naxis[1].set_ylabel(Example_Reading[1].size)\naxis[1].hist(Example_Reading[1])\n\naxis[2].set_title(\"WAVE 3\")\naxis[2].set_xlabel(Example_Reading[2].shape)\naxis[2].set_ylabel(Example_Reading[2].size)\naxis[2].hist(Example_Reading[2])","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:10.240529Z","iopub.execute_input":"2021-07-03T00:01:10.240839Z","iopub.status.idle":"2021-07-03T00:01:10.614094Z","shell.execute_reply.started":"2021-07-03T00:01:10.240800Z","shell.execute_reply":"2021-07-03T00:01:10.613179Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nsns.kdeplot(x=Example_Reading[0],label=\"1\")\nsns.kdeplot(x=Example_Reading[1],label=\"2\")\nsns.kdeplot(x=Example_Reading[2],label=\"3\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:10.615541Z","iopub.execute_input":"2021-07-03T00:01:10.615896Z","iopub.status.idle":"2021-07-03T00:01:10.931278Z","shell.execute_reply.started":"2021-07-03T00:01:10.615859Z","shell.execute_reply":"2021-07-03T00:01:10.930543Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nsns.distplot(x=Example_Reading[0],label=\"1\")\nsns.distplot(x=Example_Reading[1],label=\"2\")\nsns.distplot(x=Example_Reading[2],label=\"3\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:10.934144Z","iopub.execute_input":"2021-07-03T00:01:10.934405Z","iopub.status.idle":"2021-07-03T00:01:11.441034Z","shell.execute_reply.started":"2021-07-03T00:01:10.934381Z","shell.execute_reply":"2021-07-03T00:01:11.440230Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nsns.histplot(x=Example_Reading[0],multiple=\"stack\",edgecolor=\".3\",linewidth=.3,color=\"green\",label=\"1\")\nsns.histplot(x=Example_Reading[1],multiple=\"stack\",edgecolor=\".3\",linewidth=.5,color=\"red\",label=\"2\")\nsns.histplot(x=Example_Reading[2],multiple=\"stack\",edgecolor=\".3\",linewidth=.7,color=\"black\",label=\"3\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:11.442914Z","iopub.execute_input":"2021-07-03T00:01:11.443410Z","iopub.status.idle":"2021-07-03T00:01:11.894349Z","shell.execute_reply.started":"2021-07-03T00:01:11.443370Z","shell.execute_reply":"2021-07-03T00:01:11.893593Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nsns.distplot(Example_Reading[0] > Example_Reading[1].mean(),label=\"0-1 MEAN\")\nsns.distplot(Example_Reading[0] > Example_Reading[2].mean(),label=\"0-2 MEAN\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:11.895560Z","iopub.execute_input":"2021-07-03T00:01:11.895883Z","iopub.status.idle":"2021-07-03T00:01:12.219408Z","shell.execute_reply.started":"2021-07-03T00:01:11.895846Z","shell.execute_reply":"2021-07-03T00:01:12.218646Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nsns.distplot(Example_Reading[0] > Example_Reading[1],label=\"0-1\")\nsns.distplot(Example_Reading[0] > Example_Reading[2],label=\"0-2\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:12.220624Z","iopub.execute_input":"2021-07-03T00:01:12.220946Z","iopub.status.idle":"2021-07-03T00:01:12.538660Z","shell.execute_reply.started":"2021-07-03T00:01:12.220912Z","shell.execute_reply":"2021-07-03T00:01:12.537877Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nsns.distplot(Example_Reading[0] > Example_Reading[0].mean(),label=\"UPPER MEAN\")\nsns.distplot(Example_Reading[0] < Example_Reading[0].mean(),label=\"LOWER MEAN\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:12.539852Z","iopub.execute_input":"2021-07-03T00:01:12.540190Z","iopub.status.idle":"2021-07-03T00:01:12.859282Z","shell.execute_reply.started":"2021-07-03T00:01:12.540155Z","shell.execute_reply":"2021-07-03T00:01:12.858507Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nsns.distplot(Example_Reading[0] > Example_Reading[0].argmax(),label=\"UPPER ARGMAX\")\nsns.distplot(Example_Reading[0] < Example_Reading[0].argmax(),label=\"LOWER ARGMAX\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:12.860546Z","iopub.execute_input":"2021-07-03T00:01:12.860863Z","iopub.status.idle":"2021-07-03T00:01:13.312919Z","shell.execute_reply.started":"2021-07-03T00:01:12.860828Z","shell.execute_reply":"2021-07-03T00:01:13.312049Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nsns.distplot(Example_Reading[0] > Example_Reading[0].argmin(),label=\"UPPER ARGMIN\")\nsns.distplot(Example_Reading[0] < Example_Reading[0].argmin(),label=\"LOWER ARGMIN\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:13.314156Z","iopub.execute_input":"2021-07-03T00:01:13.314497Z","iopub.status.idle":"2021-07-03T00:01:13.945504Z","shell.execute_reply.started":"2021-07-03T00:01:13.314460Z","shell.execute_reply":"2021-07-03T00:01:13.944719Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n    \nplt.plot(Example_Reading[0])\nplt.plot(Example_Reading[1])\nplt.plot(Example_Reading[2])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:13.946736Z","iopub.execute_input":"2021-07-03T00:01:13.947070Z","iopub.status.idle":"2021-07-03T00:01:14.187686Z","shell.execute_reply.started":"2021-07-03T00:01:13.947033Z","shell.execute_reply":"2021-07-03T00:01:14.186921Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Reading[0])\n\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:04:19.723443Z","iopub.execute_input":"2021-07-03T00:04:19.723779Z","iopub.status.idle":"2021-07-03T00:04:20.070023Z","shell.execute_reply.started":"2021-07-03T00:04:19.723751Z","shell.execute_reply":"2021-07-03T00:04:20.067187Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_NPY = Train_CSV[\"NEW_PATH\"][3]\nExample_Reading = np.load(Picking_NPY)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Reading[0])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Reading[1])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Reading[2])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:05:19.197751Z","iopub.execute_input":"2021-07-03T00:05:19.198059Z","iopub.status.idle":"2021-07-03T00:05:20.219700Z","shell.execute_reply.started":"2021-07-03T00:05:19.198030Z","shell.execute_reply":"2021-07-03T00:05:20.218917Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#### COMPARING","metadata":{}},{"cell_type":"code","source":"Negative_Point = Train_CSV[Train_CSV[\"target\"] == 0]\nPositive_Point = Train_CSV[Train_CSV[\"target\"] == 1]\n\nNegative_Point = Negative_Point.reset_index(drop=True)\nPositive_Point = Positive_Point.reset_index(drop=True)","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:14.188898Z","iopub.execute_input":"2021-07-03T00:01:14.189248Z","iopub.status.idle":"2021-07-03T00:01:14.195747Z","shell.execute_reply.started":"2021-07-03T00:01:14.189212Z","shell.execute_reply":"2021-07-03T00:01:14.194750Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"##### BOTH","metadata":{}},{"cell_type":"code","source":"print(Negative_Point.head(-1))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:14.197204Z","iopub.execute_input":"2021-07-03T00:01:14.197621Z","iopub.status.idle":"2021-07-03T00:01:14.208087Z","shell.execute_reply.started":"2021-07-03T00:01:14.197587Z","shell.execute_reply":"2021-07-03T00:01:14.206976Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(Positive_Point.head(-1))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:14.209306Z","iopub.execute_input":"2021-07-03T00:01:14.209815Z","iopub.status.idle":"2021-07-03T00:01:14.219217Z","shell.execute_reply.started":"2021-07-03T00:01:14.209782Z","shell.execute_reply":"2021-07-03T00:01:14.218419Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(Example_Negative[0] > Example_Positive[1],label=\"UPPER NEGATIVE\")\nsns.distplot(Example_Negative[0] < Example_Positive[2],label=\"LOWER NEGATIVE\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:14.220045Z","iopub.execute_input":"2021-07-03T00:01:14.220270Z","iopub.status.idle":"2021-07-03T00:01:14.554632Z","shell.execute_reply.started":"2021-07-03T00:01:14.220249Z","shell.execute_reply":"2021-07-03T00:01:14.553866Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(Example_Negative[0] > Example_Positive[1].mean(),label=\"UPPER NEGATIVE MEAN\")\nsns.distplot(Example_Negative[0] < Example_Positive[2].mean(),label=\"LOWER NEGATIVE MEAN\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:14.555821Z","iopub.execute_input":"2021-07-03T00:01:14.556150Z","iopub.status.idle":"2021-07-03T00:01:14.895114Z","shell.execute_reply.started":"2021-07-03T00:01:14.556114Z","shell.execute_reply":"2021-07-03T00:01:14.894327Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(Example_Positive[0] > Example_Negative[1],label=\"UPPER POSITIVE\")\nsns.distplot(Example_Positive[0] < Example_Negative[2],label=\"LOWER POSITIVE\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:14.896296Z","iopub.execute_input":"2021-07-03T00:01:14.896802Z","iopub.status.idle":"2021-07-03T00:01:15.217284Z","shell.execute_reply.started":"2021-07-03T00:01:14.896763Z","shell.execute_reply":"2021-07-03T00:01:15.216536Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(Example_Positive[0] > Example_Negative[1].mean(),label=\"UPPER POSITIVE MEAN\")\nsns.distplot(Example_Positive[0] < Example_Negative[2].mean(),label=\"LOWER POSITIVE MEAN\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:15.218505Z","iopub.execute_input":"2021-07-03T00:01:15.218850Z","iopub.status.idle":"2021-07-03T00:01:15.543971Z","shell.execute_reply.started":"2021-07-03T00:01:15.218815Z","shell.execute_reply":"2021-07-03T00:01:15.543230Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.histplot(x=Example_Negative[0],multiple=\"stack\",edgecolor=\".3\",linewidth=.3,color=\"green\",label=\"NEGATIVE / LAYER 0\")\nsns.histplot(x=Example_Positive[0],multiple=\"stack\",edgecolor=\".3\",linewidth=.3,color=\"red\",label=\"POSITIVE / LAYER 0\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.histplot(x=Example_Negative[1],multiple=\"stack\",edgecolor=\".3\",linewidth=.3,color=\"green\",label=\"NEGATIVE / LAYER 1\")\nsns.histplot(x=Example_Positive[1],multiple=\"stack\",edgecolor=\".3\",linewidth=.3,color=\"red\",label=\"POSITIVE / LAYER 1\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.histplot(x=Example_Negative[2],multiple=\"stack\",edgecolor=\".3\",linewidth=.3,color=\"green\",label=\"NEGATIVE / LAYER 2\")\nsns.histplot(x=Example_Positive[2],multiple=\"stack\",edgecolor=\".3\",linewidth=.3,color=\"red\",label=\"POSITIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:15.545175Z","iopub.execute_input":"2021-07-03T00:01:15.545524Z","iopub.status.idle":"2021-07-03T00:01:16.863754Z","shell.execute_reply.started":"2021-07-03T00:01:15.545488Z","shell.execute_reply":"2021-07-03T00:01:16.862790Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(x=Example_Negative[0],color=\"green\",label=\"NEGATIVE / LAYER 0\")\nsns.distplot(x=Example_Positive[0],color=\"red\",label=\"POSITIVE / LAYER 0\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(x=Example_Negative[1],color=\"green\",label=\"NEGATIVE / LAYER 1\")\nsns.distplot(x=Example_Positive[1],color=\"red\",label=\"POSITIVE / LAYER 1\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(x=Example_Negative[2],color=\"green\",label=\"NEGATIVE / LAYER 2\")\nsns.distplot(x=Example_Positive[2],color=\"red\",label=\"POSITIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:16.864989Z","iopub.execute_input":"2021-07-03T00:01:16.865327Z","iopub.status.idle":"2021-07-03T00:01:18.185030Z","shell.execute_reply.started":"2021-07-03T00:01:16.865290Z","shell.execute_reply":"2021-07-03T00:01:18.184256Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(Example_Negative[0] > Example_Positive[0].mean(),label=\"UPPER NEGATIVE MEAN POSITIVE / LAYER 0\")\nsns.distplot(Example_Negative[0] < Example_Positive[0].mean(),label=\"LOWER NEGATIVE MEAN POSITIVE / LAYER 0\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(Example_Negative[1] > Example_Positive[1].mean(),label=\"UPPER NEGATIVE MEAN POSITIVE / LAYER 1\")\nsns.distplot(Example_Negative[1] < Example_Positive[1].mean(),label=\"LOWER NEGATIVE MEAN POSITIVE / LAYER 1\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(Example_Negative[2] > Example_Positive[2].mean(),label=\"UPPER NEGATIVE MEAN POSITIVE / LAYER 2\")\nsns.distplot(Example_Negative[2] < Example_Positive[2].mean(),label=\"LOWER NEGATIVE MEAN POSITIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:18.186357Z","iopub.execute_input":"2021-07-03T00:01:18.186706Z","iopub.status.idle":"2021-07-03T00:01:19.191734Z","shell.execute_reply.started":"2021-07-03T00:01:18.186670Z","shell.execute_reply":"2021-07-03T00:01:19.190943Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(Example_Negative[0].mean() > Example_Positive[0].mean(),label=\"UPPER MEAN NEGATIVE MEAN POSITIVE / LAYER 0\")\nsns.distplot(Example_Negative[0].mean() < Example_Positive[0].mean(),label=\"LOWER MEAN NEGATIVE MEAN POSITIVE / LAYER 0\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(Example_Negative[1].mean() > Example_Positive[1].mean(),label=\"UPPER MEAN NEGATIVE MEAN POSITIVE / LAYER 1\")\nsns.distplot(Example_Negative[1].mean() < Example_Positive[1].mean(),label=\"LOWER MEAN NEGATIVE MEAN POSITIVE / LAYER 1\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(Example_Negative[2].mean() > Example_Positive[2].mean(),label=\"UPPER MEAN NEGATIVE MEAN POSITIVE / LAYER 2\")\nsns.distplot(Example_Negative[2].mean() < Example_Positive[2].mean(),label=\"LOWER MEAN NEGATIVE MEAN POSITIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:19.195912Z","iopub.execute_input":"2021-07-03T00:01:19.196160Z","iopub.status.idle":"2021-07-03T00:01:19.924609Z","shell.execute_reply.started":"2021-07-03T00:01:19.196134Z","shell.execute_reply":"2021-07-03T00:01:19.923828Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(Example_Negative[0].argmax() > Example_Positive[0].argmax(),label=\"UPPER ARGMAX NEGATIVE ARGMAX POSITIVE / LAYER 0\")\nsns.distplot(Example_Negative[0].argmax() < Example_Positive[0].argmax(),label=\"LOWER ARGMAX NEGATIVE ARGMAX POSITIVE / LAYER 0\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(Example_Negative[1].argmax() > Example_Positive[1].argmax(),label=\"UPPER ARGMAX NEGATIVE ARGMAX POSITIVE / LAYER 1\")\nsns.distplot(Example_Negative[1].argmax() < Example_Positive[1].argmax(),label=\"LOWER ARGMAX NEGATIVE ARGMAX POSITIVE / LAYER 1\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(Example_Negative[2].argmax() > Example_Positive[2].argmax(),label=\"UPPER ARGMAX NEGATIVE ARGMAX POSITIVE / LAYER 2\")\nsns.distplot(Example_Negative[2].argmax() < Example_Positive[2].argmax(),label=\"LOWER ARGMAX NEGATIVE ARGMAX POSITIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:19.926450Z","iopub.execute_input":"2021-07-03T00:01:19.926783Z","iopub.status.idle":"2021-07-03T00:01:20.666372Z","shell.execute_reply.started":"2021-07-03T00:01:19.926748Z","shell.execute_reply":"2021-07-03T00:01:20.665621Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n    \nsns.distplot(Example_Positive[0] > Example_Negative[0],label=\"UPPER POSITIVE NEGATIVE / LAYER 0\")\nsns.distplot(Example_Positive[0] < Example_Negative[0],label=\"LOWER POSITIVE NEGATIVE / LAYER 0\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(Example_Positive[0] > Example_Negative[0],label=\"UPPER POSITIVE NEGATIVE / LAYER 1\")\nsns.distplot(Example_Positive[0] < Example_Negative[0],label=\"LOWER POSITIVE NEGATIVE / LAYER 1\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nsns.distplot(Example_Positive[0] > Example_Negative[0],label=\"UPPER POSITIVE NEGATIVE / LAYER 2\")\nsns.distplot(Example_Positive[0] < Example_Negative[0],label=\"LOWER POSITIVE NEGATIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:20.667617Z","iopub.execute_input":"2021-07-03T00:01:20.667946Z","iopub.status.idle":"2021-07-03T00:01:21.881882Z","shell.execute_reply.started":"2021-07-03T00:01:20.667911Z","shell.execute_reply":"2021-07-03T00:01:21.881099Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n\nplt.plot(Example_Negative[0])\nplt.plot(Example_Positive[0])\nplt.legend()\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nplt.plot(Example_Negative[1])\nplt.plot(Example_Positive[1])\nplt.legend()\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nplt.plot(Example_Negative[2])\nplt.plot(Example_Positive[2])\nplt.legend()\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:21.883122Z","iopub.execute_input":"2021-07-03T00:01:21.883466Z","iopub.status.idle":"2021-07-03T00:01:22.552878Z","shell.execute_reply.started":"2021-07-03T00:01:21.883430Z","shell.execute_reply":"2021-07-03T00:01:22.552122Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n\ng = sns.JointGrid(x=Example_Negative[0], y=Example_Positive[0], space=0)\ng.plot_joint(sns.kdeplot,cmap=\"rocket\")\nplt.legend()\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\ng = sns.JointGrid(x=Example_Negative[1], y=Example_Positive[1], space=0)\ng.plot_joint(sns.kdeplot,cmap=\"rocket\")\nplt.legend()\n    \nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\ng = sns.JointGrid(x=Example_Negative[2], y=Example_Positive[2], space=0)\ng.plot_joint(sns.kdeplot,cmap=\"rocket\")\nplt.legend()\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:22.554014Z","iopub.execute_input":"2021-07-03T00:01:22.554329Z","iopub.status.idle":"2021-07-03T00:01:33.783960Z","shell.execute_reply.started":"2021-07-03T00:01:22.554302Z","shell.execute_reply":"2021-07-03T00:01:33.783209Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(40,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n\nax = Axes3D(figure)\nax.scatter(Example_Negative[0],\n           Example_Negative[1], Example_Negative[2], c=\"red\", s=50, alpha=0.2)\n\nax.scatter(Example_Positive[0],\n           Example_Positive[1], Example_Positive[2], c=\"green\", s=50, alpha=0.2)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:33.785212Z","iopub.execute_input":"2021-07-03T00:01:33.785578Z","iopub.status.idle":"2021-07-03T00:01:34.198451Z","shell.execute_reply.started":"2021-07-03T00:01:33.785542Z","shell.execute_reply":"2021-07-03T00:01:34.197488Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(40,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][30]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][30]\nExample_Positive = np.load(Picking_Positive)\n\nax = Axes3D(figure)\nax.scatter(Example_Negative[0],\n           Example_Negative[1], Example_Negative[2], c=\"red\", s=50, alpha=0.2)\n\nax.scatter(Example_Positive[0],\n           Example_Positive[1], Example_Positive[2], c=\"green\", s=50, alpha=0.2)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:34.199810Z","iopub.execute_input":"2021-07-03T00:01:34.200328Z","iopub.status.idle":"2021-07-03T00:01:34.663662Z","shell.execute_reply.started":"2021-07-03T00:01:34.200288Z","shell.execute_reply":"2021-07-03T00:01:34.662844Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(40,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][14]\nExample_Negative = np.load(Picking_Negative)\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][14]\nExample_Positive = np.load(Picking_Positive)\n\nax = Axes3D(figure)\nax.scatter(Example_Negative[0],\n           Example_Negative[1], Example_Negative[2], c=\"red\", s=50, alpha=0.2)\n\nax.scatter(Example_Positive[0],\n           Example_Positive[1], Example_Positive[2], c=\"green\", s=50, alpha=0.2)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:34.664912Z","iopub.execute_input":"2021-07-03T00:01:34.665283Z","iopub.status.idle":"2021-07-03T00:01:35.069444Z","shell.execute_reply.started":"2021-07-03T00:01:34.665245Z","shell.execute_reply":"2021-07-03T00:01:35.068651Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"##### NEGATIVE - POSITIVE","metadata":{}},{"cell_type":"markdown","source":"##### EX 1","metadata":{}},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\n    \nsns.distplot(x=Example_Negative[0],color=\"green\",label=\"NEGATIVE / LAYER 0\")\nsns.distplot(x=Example_Negative[1],color=\"red\",label=\"NEGATIVE / LAYER 1\")\nsns.distplot(x=Example_Negative[2],color=\"purple\",label=\"NEGATIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n   \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:35.070583Z","iopub.execute_input":"2021-07-03T00:01:35.070900Z","iopub.status.idle":"2021-07-03T00:01:35.592887Z","shell.execute_reply.started":"2021-07-03T00:01:35.070873Z","shell.execute_reply":"2021-07-03T00:01:35.592109Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n\n    \nsns.distplot(x=Example_Positive[0],color=\"green\",label=\"POSITIVE / LAYER 0\")\nsns.distplot(x=Example_Positive[1],color=\"red\",label=\"POSITIVE / LAYER 1\")\nsns.distplot(x=Example_Positive[2],color=\"purple\",label=\"POSITIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:35.594009Z","iopub.execute_input":"2021-07-03T00:01:35.594329Z","iopub.status.idle":"2021-07-03T00:01:36.128071Z","shell.execute_reply.started":"2021-07-03T00:01:35.594300Z","shell.execute_reply":"2021-07-03T00:01:36.127313Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nplt.plot(Example_Negative[0])\nplt.plot(Example_Negative[1])\nplt.plot(Example_Negative[2])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:36.129267Z","iopub.execute_input":"2021-07-03T00:01:36.129612Z","iopub.status.idle":"2021-07-03T00:01:36.373614Z","shell.execute_reply.started":"2021-07-03T00:01:36.129578Z","shell.execute_reply":"2021-07-03T00:01:36.372840Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n\nplt.plot(Example_Positive[0])\nplt.plot(Example_Positive[1])\nplt.plot(Example_Positive[2])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:36.374838Z","iopub.execute_input":"2021-07-03T00:01:36.375175Z","iopub.status.idle":"2021-07-03T00:01:36.609840Z","shell.execute_reply.started":"2021-07-03T00:01:36.375139Z","shell.execute_reply":"2021-07-03T00:01:36.607288Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\ng = sns.JointGrid(x=Example_Negative[0], space=0)\ng.plot_joint(sns.kdeplot)\nplt.legend()\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:36.611171Z","iopub.execute_input":"2021-07-03T00:01:36.611528Z","iopub.status.idle":"2021-07-03T00:01:37.029821Z","shell.execute_reply.started":"2021-07-03T00:01:36.611491Z","shell.execute_reply":"2021-07-03T00:01:37.029105Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n\ng = sns.JointGrid(x=Example_Positive[0], space=0)\ng.plot_joint(sns.kdeplot)\nplt.legend()\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:37.031019Z","iopub.execute_input":"2021-07-03T00:01:37.031370Z","iopub.status.idle":"2021-07-03T00:01:37.443066Z","shell.execute_reply.started":"2021-07-03T00:01:37.031318Z","shell.execute_reply":"2021-07-03T00:01:37.442377Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\nax = Axes3D(fig)\nax.scatter(Example_Negative[0],\n           Example_Negative[1], Example_Negative[2], c=\"red\", s=50, alpha=0.2)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:37.445137Z","iopub.execute_input":"2021-07-03T00:01:37.445616Z","iopub.status.idle":"2021-07-03T00:01:37.945017Z","shell.execute_reply.started":"2021-07-03T00:01:37.445576Z","shell.execute_reply":"2021-07-03T00:01:37.944023Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n\nax = Axes3D(fig)\nax.scatter(Example_Positive[0],\n           Example_Positive[1], Example_Positive[2], c=\"red\", s=50, alpha=0.2)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:37.946457Z","iopub.execute_input":"2021-07-03T00:01:37.946799Z","iopub.status.idle":"2021-07-03T00:01:38.363403Z","shell.execute_reply.started":"2021-07-03T00:01:37.946764Z","shell.execute_reply":"2021-07-03T00:01:38.362245Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][3]\nExample_Negative = np.load(Picking_Negative)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Negative[0],cmap=\"hot\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:08:14.464587Z","iopub.execute_input":"2021-07-03T00:08:14.464910Z","iopub.status.idle":"2021-07-03T00:08:14.804900Z","shell.execute_reply.started":"2021-07-03T00:08:14.464881Z","shell.execute_reply":"2021-07-03T00:08:14.804130Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][3]\nExample_Positive = np.load(Picking_Positive)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Positive[0],cmap=\"hot\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:08:10.706180Z","iopub.execute_input":"2021-07-03T00:08:10.706544Z","iopub.status.idle":"2021-07-03T00:08:11.055470Z","shell.execute_reply.started":"2021-07-03T00:08:10.706503Z","shell.execute_reply":"2021-07-03T00:08:11.054626Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"##### EX 2","metadata":{}},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][30]\nExample_Negative = np.load(Picking_Negative)\n\n    \nsns.distplot(x=Example_Negative[0],color=\"green\",label=\"NEGATIVE / LAYER 0\")\nsns.distplot(x=Example_Negative[1],color=\"red\",label=\"NEGATIVE / LAYER 1\")\nsns.distplot(x=Example_Negative[2],color=\"purple\",label=\"NEGATIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n   \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:38.364699Z","iopub.execute_input":"2021-07-03T00:01:38.365043Z","iopub.status.idle":"2021-07-03T00:01:39.060128Z","shell.execute_reply.started":"2021-07-03T00:01:38.365004Z","shell.execute_reply":"2021-07-03T00:01:39.059366Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][30]\nExample_Positive = np.load(Picking_Positive)\n\n    \nsns.distplot(x=Example_Positive[0],color=\"green\",label=\"POSITIVE / LAYER 0\")\nsns.distplot(x=Example_Positive[1],color=\"red\",label=\"POSITIVE / LAYER 1\")\nsns.distplot(x=Example_Positive[2],color=\"purple\",label=\"POSITIVE / LAYER 2\")\nplt.legend(prop=dict(size=10))\n\nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:39.061385Z","iopub.execute_input":"2021-07-03T00:01:39.061717Z","iopub.status.idle":"2021-07-03T00:01:39.575311Z","shell.execute_reply.started":"2021-07-03T00:01:39.061682Z","shell.execute_reply":"2021-07-03T00:01:39.574558Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][30]\nExample_Negative = np.load(Picking_Negative)\n\nplt.plot(Example_Negative[0])\nplt.plot(Example_Negative[1])\nplt.plot(Example_Negative[2])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:39.576538Z","iopub.execute_input":"2021-07-03T00:01:39.576856Z","iopub.status.idle":"2021-07-03T00:01:39.805852Z","shell.execute_reply.started":"2021-07-03T00:01:39.576819Z","shell.execute_reply":"2021-07-03T00:01:39.805110Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][30]\nExample_Positive = np.load(Picking_Positive)\n\nplt.plot(Example_Positive[0])\nplt.plot(Example_Positive[1])\nplt.plot(Example_Positive[2])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:39.807025Z","iopub.execute_input":"2021-07-03T00:01:39.807397Z","iopub.status.idle":"2021-07-03T00:01:40.033418Z","shell.execute_reply.started":"2021-07-03T00:01:39.807360Z","shell.execute_reply":"2021-07-03T00:01:40.032660Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][30]\nExample_Negative = np.load(Picking_Negative)\n\ng = sns.JointGrid(x=Example_Negative[0], space=0)\ng.plot_joint(sns.kdeplot)\nplt.legend()\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:40.034659Z","iopub.execute_input":"2021-07-03T00:01:40.034996Z","iopub.status.idle":"2021-07-03T00:01:40.439584Z","shell.execute_reply.started":"2021-07-03T00:01:40.034960Z","shell.execute_reply":"2021-07-03T00:01:40.438836Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][30]\nExample_Positive = np.load(Picking_Positive)\n\ng = sns.JointGrid(x=Example_Positive[0], space=0)\ng.plot_joint(sns.kdeplot)\nplt.legend()\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:40.440795Z","iopub.execute_input":"2021-07-03T00:01:40.441138Z","iopub.status.idle":"2021-07-03T00:01:40.876791Z","shell.execute_reply.started":"2021-07-03T00:01:40.441101Z","shell.execute_reply":"2021-07-03T00:01:40.876046Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][30]\nExample_Negative = np.load(Picking_Negative)\n\nax = Axes3D(fig)\nax.scatter(Example_Negative[0],\n           Example_Negative[1], Example_Negative[2], c=\"red\", s=50, alpha=0.2)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:40.877997Z","iopub.execute_input":"2021-07-03T00:01:40.878325Z","iopub.status.idle":"2021-07-03T00:01:41.232993Z","shell.execute_reply.started":"2021-07-03T00:01:40.878289Z","shell.execute_reply":"2021-07-03T00:01:41.232239Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][30]\nExample_Positive = np.load(Picking_Positive)\n\nax = Axes3D(fig)\nax.scatter(Example_Positive[0],\n           Example_Positive[1], Example_Positive[2], c=\"red\", s=50, alpha=0.2)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:01:41.234230Z","iopub.execute_input":"2021-07-03T00:01:41.234601Z","iopub.status.idle":"2021-07-03T00:01:41.593222Z","shell.execute_reply.started":"2021-07-03T00:01:41.234557Z","shell.execute_reply":"2021-07-03T00:01:41.592263Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][30]\nExample_Negative = np.load(Picking_Negative)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Negative[0],cmap=\"hot\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:07:57.236139Z","iopub.execute_input":"2021-07-03T00:07:57.236513Z","iopub.status.idle":"2021-07-03T00:07:57.578317Z","shell.execute_reply.started":"2021-07-03T00:07:57.236480Z","shell.execute_reply":"2021-07-03T00:07:57.577550Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][30]\nExample_Negative = np.load(Picking_Negative)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Negative[0:],cmap=\"jet\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:35:24.333323Z","iopub.execute_input":"2021-07-03T01:35:24.333676Z","iopub.status.idle":"2021-07-03T01:35:24.648419Z","shell.execute_reply.started":"2021-07-03T01:35:24.333645Z","shell.execute_reply":"2021-07-03T01:35:24.647619Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][30]\nExample_Positive = np.load(Picking_Positive)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Positive[0],cmap=\"hot\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:07:46.994644Z","iopub.execute_input":"2021-07-03T00:07:46.994971Z","iopub.status.idle":"2021-07-03T00:07:47.318952Z","shell.execute_reply.started":"2021-07-03T00:07:46.994943Z","shell.execute_reply":"2021-07-03T00:07:47.318067Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][30]\nExample_Positive = np.load(Picking_Positive)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Positive[0:],cmap=\"jet\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:36:01.736918Z","iopub.execute_input":"2021-07-03T01:36:01.737247Z","iopub.status.idle":"2021-07-03T01:36:02.022193Z","shell.execute_reply.started":"2021-07-03T01:36:01.737217Z","shell.execute_reply":"2021-07-03T01:36:02.021402Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#### DETAIL SPECTRUM","metadata":{}},{"cell_type":"markdown","source":"##### NEGATIVE","metadata":{}},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][22]\nExample_Negative = np.load(Picking_Negative)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Negative[0],cmap=\"hot\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:09:34.709551Z","iopub.execute_input":"2021-07-03T00:09:34.709889Z","iopub.status.idle":"2021-07-03T00:09:35.058307Z","shell.execute_reply.started":"2021-07-03T00:09:34.709861Z","shell.execute_reply":"2021-07-03T00:09:35.057481Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"PS SHAPE:\",powerSpectrum.shape)\nprint(\"PS SIZE:\",powerSpectrum.size)\nprint(\"PS TYPE:\",type(powerSpectrum))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:10:33.730751Z","iopub.execute_input":"2021-07-03T00:10:33.731076Z","iopub.status.idle":"2021-07-03T00:10:33.737010Z","shell.execute_reply.started":"2021-07-03T00:10:33.731046Z","shell.execute_reply":"2021-07-03T00:10:33.736121Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"FF SHAPE:\",freqenciesFound.shape)\nprint(\"FF SIZE:\",freqenciesFound.size)\nprint(\"FF TYPE:\",type(freqenciesFound))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:10:48.942599Z","iopub.execute_input":"2021-07-03T00:10:48.942924Z","iopub.status.idle":"2021-07-03T00:10:48.951791Z","shell.execute_reply.started":"2021-07-03T00:10:48.942894Z","shell.execute_reply":"2021-07-03T00:10:48.950967Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"TIME SHAPE:\",time.shape)\nprint(\"TIME SIZE:\",time.size)\nprint(\"TIME TYPE:\",type(time))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:11:22.076798Z","iopub.execute_input":"2021-07-03T00:11:22.077120Z","iopub.status.idle":"2021-07-03T00:11:22.084759Z","shell.execute_reply.started":"2021-07-03T00:11:22.077090Z","shell.execute_reply":"2021-07-03T00:11:22.081865Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print(\"IA TYPE:\",type(imageAxis))","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:12:09.109010Z","iopub.execute_input":"2021-07-03T00:12:09.109323Z","iopub.status.idle":"2021-07-03T00:12:09.115532Z","shell.execute_reply.started":"2021-07-03T00:12:09.109294Z","shell.execute_reply":"2021-07-03T00:12:09.113764Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"##### RANDOM PLOT","metadata":{}},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(time)\nplt.plot(freqenciesFound)\nplt.plot(powerSpectrum[0])\nplt.legend(prop=dict(size=10))\nplt.title(\"TIME-FREQ-PS\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:14:22.774369Z","iopub.execute_input":"2021-07-03T00:14:22.774710Z","iopub.status.idle":"2021-07-03T00:14:22.997887Z","shell.execute_reply.started":"2021-07-03T00:14:22.774677Z","shell.execute_reply":"2021-07-03T00:14:22.997105Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(time)\nplt.plot(freqenciesFound)\nplt.legend(prop=dict(size=10))\nplt.title(\"TIME-FREQ\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:14:09.194867Z","iopub.execute_input":"2021-07-03T00:14:09.195194Z","iopub.status.idle":"2021-07-03T00:14:09.423290Z","shell.execute_reply.started":"2021-07-03T00:14:09.195158Z","shell.execute_reply":"2021-07-03T00:14:09.422532Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum)\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-ALL\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:15:16.176313Z","iopub.execute_input":"2021-07-03T00:15:16.176689Z","iopub.status.idle":"2021-07-03T00:15:16.451970Z","shell.execute_reply.started":"2021-07-03T00:15:16.176659Z","shell.execute_reply":"2021-07-03T00:15:16.451197Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum[0:20])\n\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-PART\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:16:53.202991Z","iopub.execute_input":"2021-07-03T00:16:53.203307Z","iopub.status.idle":"2021-07-03T00:16:53.484822Z","shell.execute_reply.started":"2021-07-03T00:16:53.203277Z","shell.execute_reply":"2021-07-03T00:16:53.484050Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum[0:10])\n\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-PART\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:17:05.221196Z","iopub.execute_input":"2021-07-03T00:17:05.221539Z","iopub.status.idle":"2021-07-03T00:17:05.504750Z","shell.execute_reply.started":"2021-07-03T00:17:05.221505Z","shell.execute_reply":"2021-07-03T00:17:05.503949Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"##### POSITIVE","metadata":{}},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][55]\nExample_Positive = np.load(Picking_Positive)\n\npowerSpectrum, freqenciesFound, time, imageAxis = plt.specgram(Example_Negative[0],cmap=\"hot\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:17:56.191194Z","iopub.execute_input":"2021-07-03T00:17:56.191543Z","iopub.status.idle":"2021-07-03T00:17:56.514857Z","shell.execute_reply.started":"2021-07-03T00:17:56.191512Z","shell.execute_reply":"2021-07-03T00:17:56.514074Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(time)\nplt.plot(freqenciesFound)\nplt.plot(powerSpectrum[0])\nplt.legend(prop=dict(size=10))\nplt.title(\"TIME-FREQ-PS\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:18:21.654616Z","iopub.execute_input":"2021-07-03T00:18:21.654926Z","iopub.status.idle":"2021-07-03T00:18:21.893019Z","shell.execute_reply.started":"2021-07-03T00:18:21.654899Z","shell.execute_reply":"2021-07-03T00:18:21.892273Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(time)\nplt.plot(freqenciesFound)\nplt.legend(prop=dict(size=10))\nplt.title(\"TIME-FREQ\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:18:36.572141Z","iopub.execute_input":"2021-07-03T00:18:36.572490Z","iopub.status.idle":"2021-07-03T00:18:36.808880Z","shell.execute_reply.started":"2021-07-03T00:18:36.572459Z","shell.execute_reply":"2021-07-03T00:18:36.808080Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum)\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-ALL\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:18:52.580162Z","iopub.execute_input":"2021-07-03T00:18:52.580505Z","iopub.status.idle":"2021-07-03T00:18:52.887612Z","shell.execute_reply.started":"2021-07-03T00:18:52.580474Z","shell.execute_reply":"2021-07-03T00:18:52.886734Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum[0:10])\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-PART\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:19:08.794719Z","iopub.execute_input":"2021-07-03T00:19:08.795029Z","iopub.status.idle":"2021-07-03T00:19:09.077030Z","shell.execute_reply.started":"2021-07-03T00:19:08.795000Z","shell.execute_reply":"2021-07-03T00:19:09.076283Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum[0:20])\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-PART\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:19:17.479872Z","iopub.execute_input":"2021-07-03T00:19:17.480202Z","iopub.status.idle":"2021-07-03T00:19:17.771850Z","shell.execute_reply.started":"2021-07-03T00:19:17.480172Z","shell.execute_reply":"2021-07-03T00:19:17.771056Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"##### COMPARING","metadata":{}},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][55]\nExample_Positive = np.load(Picking_Positive)\n\npowerSpectrum_P, freqenciesFound_P, time_P, imageAxis_P = plt.specgram(Example_Negative[0],cmap=\"hot\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:20:35.733972Z","iopub.execute_input":"2021-07-03T00:20:35.734301Z","iopub.status.idle":"2021-07-03T00:20:36.062877Z","shell.execute_reply.started":"2021-07-03T00:20:35.734270Z","shell.execute_reply":"2021-07-03T00:20:36.062133Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][22]\nExample_Negative = np.load(Picking_Negative)\n\npowerSpectrum_N, freqenciesFoundNN_N, time_N, imageAxi_N = plt.specgram(Example_Negative[0],cmap=\"hot\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:20:39.073593Z","iopub.execute_input":"2021-07-03T00:20:39.073997Z","iopub.status.idle":"2021-07-03T00:20:39.398315Z","shell.execute_reply.started":"2021-07-03T00:20:39.073952Z","shell.execute_reply":"2021-07-03T00:20:39.397570Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(time_P)\nplt.plot(time_N)\nplt.plot(freqenciesFound_P)\nplt.plot(freqenciesFoundNN_N)\nplt.legend(prop=dict(size=10))\nplt.title(\"TIME-FREQ / COMPARE\")\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:21:31.735924Z","iopub.execute_input":"2021-07-03T00:21:31.736249Z","iopub.status.idle":"2021-07-03T00:21:31.965815Z","shell.execute_reply.started":"2021-07-03T00:21:31.736219Z","shell.execute_reply":"2021-07-03T00:21:31.965039Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum_P)\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-ALL / P\")\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum_N)\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-ALL / N\")\nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:23:14.394557Z","iopub.execute_input":"2021-07-03T00:23:14.394881Z","iopub.status.idle":"2021-07-03T00:23:14.876361Z","shell.execute_reply.started":"2021-07-03T00:23:14.394851Z","shell.execute_reply":"2021-07-03T00:23:14.875585Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum_P[0:10])\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-PART / P\")\nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum_N[0:10])\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-PART / N\")\nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:23:58.457288Z","iopub.execute_input":"2021-07-03T00:23:58.457657Z","iopub.status.idle":"2021-07-03T00:23:58.989568Z","shell.execute_reply.started":"2021-07-03T00:23:58.457623Z","shell.execute_reply":"2021-07-03T00:23:58.988791Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum_P[0:30])\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-PART / P\")\nplt.tight_layout()\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nplt.plot(powerSpectrum_N[0:30])\nplt.legend(prop=dict(size=10))\nplt.title(\"PS-PART / N\")\nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:24:12.616637Z","iopub.execute_input":"2021-07-03T00:24:12.616982Z","iopub.status.idle":"2021-07-03T00:24:13.151713Z","shell.execute_reply.started":"2021-07-03T00:24:12.616952Z","shell.execute_reply":"2021-07-03T00:24:13.150945Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"* Note the color changes at the bottom.","metadata":{}},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Negative[0])\nplt.pcolormesh(t, f, Sxx, shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Positive[0])\nplt.pcolormesh(t, f, Sxx, shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:29:37.582637Z","iopub.execute_input":"2021-07-03T00:29:37.582958Z","iopub.status.idle":"2021-07-03T00:29:37.912659Z","shell.execute_reply.started":"2021-07-03T00:29:37.582928Z","shell.execute_reply":"2021-07-03T00:29:37.911715Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Negative[1])\nplt.pcolormesh(t, f, Sxx, shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Positive[1])\nplt.pcolormesh(t, f, Sxx, shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:30:01.131545Z","iopub.execute_input":"2021-07-03T00:30:01.131875Z","iopub.status.idle":"2021-07-03T00:30:01.476115Z","shell.execute_reply.started":"2021-07-03T00:30:01.131846Z","shell.execute_reply":"2021-07-03T00:30:01.475157Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Negative[2])\nplt.pcolormesh(t, f, Sxx, shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Positive[2])\nplt.pcolormesh(t, f, Sxx, shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:30:31.530848Z","iopub.execute_input":"2021-07-03T00:30:31.531168Z","iopub.status.idle":"2021-07-03T00:30:31.852706Z","shell.execute_reply.started":"2021-07-03T00:30:31.531138Z","shell.execute_reply":"2021-07-03T00:30:31.851734Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Negative[0])\nplt.pcolormesh(t, fftshift(f), fftshift(Sxx, axes=0), shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Positive[0])\nplt.pcolormesh(t, fftshift(f), fftshift(Sxx, axes=0), shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:31:14.247262Z","iopub.execute_input":"2021-07-03T00:31:14.247767Z","iopub.status.idle":"2021-07-03T00:31:14.787798Z","shell.execute_reply.started":"2021-07-03T00:31:14.247723Z","shell.execute_reply":"2021-07-03T00:31:14.781643Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Negative[1])\nplt.pcolormesh(t, fftshift(f), fftshift(Sxx, axes=0), shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Positive[1])\nplt.pcolormesh(t, fftshift(f), fftshift(Sxx, axes=0), shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:31:40.443088Z","iopub.execute_input":"2021-07-03T00:31:40.443422Z","iopub.status.idle":"2021-07-03T00:31:40.777662Z","shell.execute_reply.started":"2021-07-03T00:31:40.443393Z","shell.execute_reply":"2021-07-03T00:31:40.776725Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"figure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Negative[2])\nplt.pcolormesh(t, fftshift(f), fftshift(Sxx, axes=0), shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()\n\nfigure = plt.figure(figsize=(18,5))\n\nf, t, Sxx = signal.spectrogram(Example_Positive[2])\nplt.pcolormesh(t, fftshift(f), fftshift(Sxx, axes=0), shading='gouraud')\nplt.ylabel('Frequency [Hz]')\nplt.xlabel('Time [sec]')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:31:55.982746Z","iopub.execute_input":"2021-07-03T00:31:55.983058Z","iopub.status.idle":"2021-07-03T00:31:56.321079Z","shell.execute_reply.started":"2021-07-03T00:31:55.983030Z","shell.execute_reply":"2021-07-03T00:31:56.320303Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.plot(Example_Positive[0])\nplt.plot(Example_Positive[1])\nplt.plot(Example_Positive[2])\nplt.gca().invert_yaxis()\nfig.axes[0].set_xlabel('windows (~86Hz)')\nfig.axes[0].set_ylabel('frequency')","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:38:30.793193Z","iopub.execute_input":"2021-07-03T00:38:30.793561Z","iopub.status.idle":"2021-07-03T00:38:30.999276Z","shell.execute_reply.started":"2021-07-03T00:38:30.793527Z","shell.execute_reply":"2021-07-03T00:38:30.998364Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.plot(Example_Negative[0])\nplt.plot(Example_Negative[1])\nplt.plot(Example_Negative[2])\nplt.gca().invert_yaxis()\nfig.axes[0].set_xlabel('windows (~86Hz)')\nfig.axes[0].set_ylabel('frequency')","metadata":{"execution":{"iopub.status.busy":"2021-07-03T00:38:48.518782Z","iopub.execute_input":"2021-07-03T00:38:48.519192Z","iopub.status.idle":"2021-07-03T00:38:48.699565Z","shell.execute_reply.started":"2021-07-03T00:38:48.519150Z","shell.execute_reply":"2021-07-03T00:38:48.698629Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][22]\nExample_Negative = np.load(Picking_Negative)\n\npowerSpectrum_N, freqenciesFoundNN_N, time_N, imageAxi_N = plt.specgram(Example_Negative,mode=\"angle\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:09:04.548878Z","iopub.execute_input":"2021-07-03T01:09:04.549213Z","iopub.status.idle":"2021-07-03T01:09:04.853100Z","shell.execute_reply.started":"2021-07-03T01:09:04.549182Z","shell.execute_reply":"2021-07-03T01:09:04.852365Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][55]\nExample_Positive = np.load(Picking_Positive)\n\npowerSpectrum_P, freqenciesFoundNN_P, time_P, imageAxi_P = plt.specgram(Example_Positive,mode=\"angle\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:09:57.430316Z","iopub.execute_input":"2021-07-03T01:09:57.430660Z","iopub.status.idle":"2021-07-03T01:09:57.733199Z","shell.execute_reply.started":"2021-07-03T01:09:57.430628Z","shell.execute_reply":"2021-07-03T01:09:57.732290Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][22]\nExample_Negative = np.load(Picking_Negative)\n\npowerSpectrum_N, freqenciesFoundNN_N, time_N, imageAxi_N = plt.specgram(Example_Negative,mode=\"magnitude\",scale=\"linear\",sides=\"twosided\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:12:25.891975Z","iopub.execute_input":"2021-07-03T01:12:25.892322Z","iopub.status.idle":"2021-07-03T01:12:26.294444Z","shell.execute_reply.started":"2021-07-03T01:12:25.892289Z","shell.execute_reply":"2021-07-03T01:12:26.293648Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][55]\nExample_Positive = np.load(Picking_Positive)\n\npowerSpectrum_P, freqenciesFoundNN_P, time_P, imageAxi_P = plt.specgram(Example_Positive,mode=\"magnitude\",scale=\"linear\",sides=\"twosided\")\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:12:16.431891Z","iopub.execute_input":"2021-07-03T01:12:16.432217Z","iopub.status.idle":"2021-07-03T01:12:16.839279Z","shell.execute_reply.started":"2021-07-03T01:12:16.432186Z","shell.execute_reply":"2021-07-03T01:12:16.838379Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][22]\nExample_Negative = np.load(Picking_Negative)\n\npowerSpectrum_N, freqenciesFoundNN_N, time_N, imageAxi_N = plt.specgram(Example_Negative,scale_by_freq=False)\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:15:16.370741Z","iopub.execute_input":"2021-07-03T01:15:16.371056Z","iopub.status.idle":"2021-07-03T01:15:16.682212Z","shell.execute_reply.started":"2021-07-03T01:15:16.371028Z","shell.execute_reply":"2021-07-03T01:15:16.681433Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][55]\nExample_Positive = np.load(Picking_Positive)\n\npowerSpectrum_P, freqenciesFoundNN_P, time_P, imageAxi_P = plt.specgram(Example_Positive,scale_by_freq=False)\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:15:05.907784Z","iopub.execute_input":"2021-07-03T01:15:05.908123Z","iopub.status.idle":"2021-07-03T01:15:06.219989Z","shell.execute_reply.started":"2021-07-03T01:15:05.908089Z","shell.execute_reply":"2021-07-03T01:15:06.219214Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Negative = Negative_Point[\"NEW_PATH\"][22]\nExample_Negative = np.load(Picking_Negative)\n\nplt.phase_spectrum(Example_Negative[0])\nplt.phase_spectrum(Example_Negative[1])\nplt.phase_spectrum(Example_Negative[2])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:17:17.262965Z","iopub.execute_input":"2021-07-03T01:17:17.263298Z","iopub.status.idle":"2021-07-03T01:17:17.542960Z","shell.execute_reply.started":"2021-07-03T01:17:17.263267Z","shell.execute_reply":"2021-07-03T01:17:17.542184Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nPicking_Positive = Positive_Point[\"NEW_PATH\"][55]\nExample_Positive = np.load(Picking_Positive)\n\nplt.phase_spectrum(Example_Positive[0])\nplt.phase_spectrum(Example_Positive[1])\nplt.phase_spectrum(Example_Positive[2])\nplt.legend(prop=dict(size=10))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:18:05.289447Z","iopub.execute_input":"2021-07-03T01:18:05.289857Z","iopub.status.idle":"2021-07-03T01:18:05.677999Z","shell.execute_reply.started":"2021-07-03T01:18:05.289824Z","shell.execute_reply":"2021-07-03T01:18:05.677227Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.phase_spectrum(Example_Negative[0],label=\"N-0\")\nplt.phase_spectrum(Example_Negative[1],label=\"N-1\")\nplt.phase_spectrum(Example_Negative[2],label=\"N-2\")\nplt.phase_spectrum(Example_Positive[0],label=\"P-0\")\nplt.phase_spectrum(Example_Positive[1],label=\"P-1\")\nplt.phase_spectrum(Example_Positive[2],label=\"P-2\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:21:00.482535Z","iopub.execute_input":"2021-07-03T01:21:00.482858Z","iopub.status.idle":"2021-07-03T01:21:00.977401Z","shell.execute_reply.started":"2021-07-03T01:21:00.482828Z","shell.execute_reply":"2021-07-03T01:21:00.976413Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\n\nplt.angle_spectrum(Example_Negative[0],label=\"N-0\")\nplt.angle_spectrum(Example_Negative[1],label=\"N-1\")\nplt.angle_spectrum(Example_Negative[2],label=\"N-2\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:24:52.044101Z","iopub.execute_input":"2021-07-03T01:24:52.044441Z","iopub.status.idle":"2021-07-03T01:24:52.656819Z","shell.execute_reply.started":"2021-07-03T01:24:52.044409Z","shell.execute_reply":"2021-07-03T01:24:52.656024Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.angle_spectrum(Example_Positive[0],label=\"P-0\")\nplt.angle_spectrum(Example_Positive[1],label=\"P-1\")\nplt.angle_spectrum(Example_Positive[2],label=\"P-2\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:25:16.971712Z","iopub.execute_input":"2021-07-03T01:25:16.972105Z","iopub.status.idle":"2021-07-03T01:25:17.602297Z","shell.execute_reply.started":"2021-07-03T01:25:16.972073Z","shell.execute_reply":"2021-07-03T01:25:17.600263Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\n\nplt.angle_spectrum(Example_Negative[0],label=\"N\",solid_capstyle=\"projecting\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:26:55.979704Z","iopub.execute_input":"2021-07-03T01:26:55.980012Z","iopub.status.idle":"2021-07-03T01:26:56.368896Z","shell.execute_reply.started":"2021-07-03T01:26:55.979984Z","shell.execute_reply":"2021-07-03T01:26:56.368115Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\n\nplt.angle_spectrum(Example_Positive[0],label=\"N\",solid_capstyle=\"projecting\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:26:40.000109Z","iopub.execute_input":"2021-07-03T01:26:40.000486Z","iopub.status.idle":"2021-07-03T01:26:40.419935Z","shell.execute_reply.started":"2021-07-03T01:26:40.000452Z","shell.execute_reply":"2021-07-03T01:26:40.418768Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.magnitude_spectrum(Example_Negative[0],label=\"N-0\")\nplt.magnitude_spectrum(Example_Negative[1],label=\"N-1\")\nplt.magnitude_spectrum(Example_Negative[2],label=\"N-2\")\nplt.magnitude_spectrum(Example_Positive[0],label=\"P-0\")\nplt.magnitude_spectrum(Example_Positive[1],label=\"P-1\")\nplt.magnitude_spectrum(Example_Positive[2],label=\"P-2\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:28:09.089448Z","iopub.execute_input":"2021-07-03T01:28:09.089778Z","iopub.status.idle":"2021-07-03T01:28:09.381085Z","shell.execute_reply.started":"2021-07-03T01:28:09.089752Z","shell.execute_reply":"2021-07-03T01:28:09.380306Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.magnitude_spectrum(Example_Negative[0],label=\"N-0\")\nplt.magnitude_spectrum(Example_Negative[1],label=\"N-1\")\nplt.magnitude_spectrum(Example_Negative[2],label=\"N-2\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:28:33.066988Z","iopub.execute_input":"2021-07-03T01:28:33.067326Z","iopub.status.idle":"2021-07-03T01:28:33.340568Z","shell.execute_reply.started":"2021-07-03T01:28:33.067295Z","shell.execute_reply":"2021-07-03T01:28:33.339772Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.magnitude_spectrum(Example_Negative[0],label=\"N-0\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:29:43.723996Z","iopub.execute_input":"2021-07-03T01:29:43.724327Z","iopub.status.idle":"2021-07-03T01:29:43.978617Z","shell.execute_reply.started":"2021-07-03T01:29:43.724296Z","shell.execute_reply":"2021-07-03T01:29:43.977805Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.magnitude_spectrum(Example_Positive[0],label=\"P-0\")\nplt.magnitude_spectrum(Example_Positive[1],label=\"P-1\")\nplt.magnitude_spectrum(Example_Positive[2],label=\"P-2\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:29:05.316631Z","iopub.execute_input":"2021-07-03T01:29:05.316948Z","iopub.status.idle":"2021-07-03T01:29:05.581648Z","shell.execute_reply.started":"2021-07-03T01:29:05.316919Z","shell.execute_reply":"2021-07-03T01:29:05.580853Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"fig = plt.figure(figsize=(20,10))\n\nplt.magnitude_spectrum(Example_Positive[0],label=\"P-0\")\nplt.legend(prop=dict(size=20))\n    \nplt.tight_layout()\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2021-07-03T01:30:07.245004Z","iopub.execute_input":"2021-07-03T01:30:07.245353Z","iopub.status.idle":"2021-07-03T01:30:07.492387Z","shell.execute_reply.started":"2021-07-03T01:30:07.245308Z","shell.execute_reply":"2021-07-03T01:30:07.491599Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#### THANK YOU SO MUCH!\n#### EDUCATIONALLY BUILT TO CONTRIBUTE TO SCIENCE","metadata":{}},{"cell_type":"markdown","source":"#### I WORKED ON THE SAME PROJECT ON VISUALS BEFORE\n\n* CHECK\n\n* https://www.kaggle.com/brsdincer/gravitational-waves-project-ligo-prediction\n* https://www.kaggle.com/brsdincer/gravitational-waves-project-ligo-ai-process","metadata":{}},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}