{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "_cell_guid": "40ae4cf5-df28-4bb4-b362-c87815655739",
    "_uuid": "0bd6e15c-9ab5-49e5-8aff-aa3f3739c093"
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Requirement already satisfied: tornado in /opt/conda/lib/python3.7/site-packages (6.1)\n",
      "\u001b[33mWARNING: You are using pip version 20.2.4; however, version 20.3.1 is available.\n",
      "You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.\u001b[0m\n",
      "Note: you may need to restart the kernel to use updated packages.\n"
     ]
    }
   ],
   "source": [
    "pip install tornado --upgrade --use-feature=2020-resolver"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "_cell_guid": "513e58c6-8145-4db8-9646-076d87798b8c",
    "_uuid": "f80316b4-ea73-4be8-8c74-29f627b5d356"
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "fatal: destination path 'monk_v1' already exists and is not an empty directory.\n",
      "Requirement already satisfied: scipy in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 1)) (1.4.1)\n",
      "Requirement already satisfied: scikit-learn in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 2)) (0.23.2)\n",
      "Requirement already satisfied: scikit-image in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 3)) (0.16.2)\n",
      "Requirement already satisfied: opencv-python in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 4)) (4.4.0.46)\n",
      "Requirement already satisfied: tqdm in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 6)) (4.45.0)\n",
      "Requirement already satisfied: gpustat in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 7)) (0.6.0)\n",
      "Requirement already satisfied: psutil in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 8)) (5.7.0)\n",
      "Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 9)) (1.1.4)\n",
      "Requirement already satisfied: GPUtil in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 10)) (1.4.0)\n",
      "Requirement already satisfied: pylg in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 11)) (1.3.3)\n",
      "Requirement already satisfied: tabulate in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 12)) (0.8.7)\n",
      "Requirement already satisfied: netron in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 13)) (4.6.5)\n",
      "Requirement already satisfied: networkx in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 14)) (2.4)\n",
      "Requirement already satisfied: matplotlib in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 15)) (3.2.1)\n",
      "Requirement already satisfied: numpy>=1.13.3 in /opt/conda/lib/python3.7/site-packages (from scipy->-r requirements_kaggle.txt (line 1)) (1.18.5)\n",
      "Requirement already satisfied: scipy in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 1)) (1.4.1)\n",
      "Requirement already satisfied: threadpoolctl>=2.0.0 in /opt/conda/lib/python3.7/site-packages (from scikit-learn->-r requirements_kaggle.txt (line 2)) (2.1.0)\n",
      "Requirement already satisfied: numpy>=1.13.3 in /opt/conda/lib/python3.7/site-packages (from scipy->-r requirements_kaggle.txt (line 1)) (1.18.5)\n",
      "Requirement already satisfied: joblib>=0.11 in /opt/conda/lib/python3.7/site-packages (from scikit-learn->-r requirements_kaggle.txt (line 2)) (0.14.1)\n",
      "Requirement already satisfied: scipy in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 1)) (1.4.1)\n",
      "Requirement already satisfied: matplotlib in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 15)) (3.2.1)\n",
      "Requirement already satisfied: networkx in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 14)) (2.4)\n",
      "Requirement already satisfied: imageio>=2.3.0 in /opt/conda/lib/python3.7/site-packages (from scikit-image->-r requirements_kaggle.txt (line 3)) (2.8.0)\n",
      "Requirement already satisfied: PyWavelets>=0.4.0 in /opt/conda/lib/python3.7/site-packages (from scikit-image->-r requirements_kaggle.txt (line 3)) (1.1.1)\n",
      "Requirement already satisfied: numpy>=1.13.3 in /opt/conda/lib/python3.7/site-packages (from scipy->-r requirements_kaggle.txt (line 1)) (1.18.5)\n",
      "Collecting pillow==6.0.0\n",
      "  Using cached Pillow-6.0.0-cp37-cp37m-manylinux1_x86_64.whl (2.0 MB)\n",
      "Requirement already satisfied: psutil in /opt/conda/lib/python3.7/site-packages (from -r requirements_kaggle.txt (line 8)) (5.7.0)\n",
      "Requirement already satisfied: nvidia-ml-py3>=7.352.0 in /opt/conda/lib/python3.7/site-packages (from gpustat->-r requirements_kaggle.txt (line 7)) (7.352.0)\n",
      "Requirement already satisfied: six>=1.7 in /opt/conda/lib/python3.7/site-packages (from gpustat->-r requirements_kaggle.txt (line 7)) (1.14.0)\n",
      "Requirement already satisfied: blessings>=1.6 in /opt/conda/lib/python3.7/site-packages (from gpustat->-r requirements_kaggle.txt (line 7)) (1.7)\n",
      "Requirement already satisfied: pytz>=2017.2 in /opt/conda/lib/python3.7/site-packages (from pandas->-r requirements_kaggle.txt (line 9)) (2019.3)\n",
      "Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->-r requirements_kaggle.txt (line 9)) (2.8.1)\n",
      "Requirement already satisfied: numpy>=1.13.3 in /opt/conda/lib/python3.7/site-packages (from scipy->-r requirements_kaggle.txt (line 1)) (1.18.5)\n",
      "Requirement already satisfied: decorator>=4.3.0 in /opt/conda/lib/python3.7/site-packages (from networkx->-r requirements_kaggle.txt (line 14)) (4.4.2)\n",
      "Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /opt/conda/lib/python3.7/site-packages (from matplotlib->-r requirements_kaggle.txt (line 15)) (2.4.7)\n",
      "Requirement already satisfied: numpy>=1.13.3 in /opt/conda/lib/python3.7/site-packages (from scipy->-r requirements_kaggle.txt (line 1)) (1.18.5)\n",
      "Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->-r requirements_kaggle.txt (line 9)) (2.8.1)\n",
      "Requirement already satisfied: cycler>=0.10 in /opt/conda/lib/python3.7/site-packages (from matplotlib->-r requirements_kaggle.txt (line 15)) (0.10.0)\n",
      "Requirement already satisfied: kiwisolver>=1.0.1 in /opt/conda/lib/python3.7/site-packages (from matplotlib->-r requirements_kaggle.txt (line 15)) (1.2.0)\n",
      "Requirement already satisfied: numpy>=1.13.3 in /opt/conda/lib/python3.7/site-packages (from scipy->-r requirements_kaggle.txt (line 1)) (1.18.5)\n",
      "Requirement already satisfied: numpy>=1.13.3 in /opt/conda/lib/python3.7/site-packages (from scipy->-r requirements_kaggle.txt (line 1)) (1.18.5)\n",
      "Requirement already satisfied: six>=1.7 in /opt/conda/lib/python3.7/site-packages (from gpustat->-r requirements_kaggle.txt (line 7)) (1.14.0)\n",
      "Requirement already satisfied: six>=1.7 in /opt/conda/lib/python3.7/site-packages (from gpustat->-r requirements_kaggle.txt (line 7)) (1.14.0)\n",
      "Requirement already satisfied: six>=1.7 in /opt/conda/lib/python3.7/site-packages (from gpustat->-r requirements_kaggle.txt (line 7)) (1.14.0)\n",
      "Installing collected packages: pillow\n",
      "  Attempting uninstall: pillow\n",
      "    Found existing installation: Pillow 7.2.0\n",
      "    Uninstalling Pillow-7.2.0:\n",
      "      Successfully uninstalled Pillow-7.2.0\n",
      "\u001b[31mERROR: monk-kaggle 0.0.1 requires pillow==7.2.0, but you'll have pillow 6.0.0 which is incompatible.\n",
      "datashader 0.11.1 requires numba!=0.49.*,!=0.50.*,>=0.37.0, but you'll have numba 0.49.1 which is incompatible.\n",
      "bokeh 2.2.3 requires pillow>=7.1.0, but you'll have pillow 6.0.0 which is incompatible.\u001b[0m\n",
      "Successfully installed pillow-6.0.0\n",
      "\u001b[33mWARNING: You are using pip version 20.2.4; however, version 20.3.1 is available.\n",
      "You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.\u001b[0m\n"
     ]
    }
   ],
   "source": [
    "!git clone https://github.com/Tessellate-Imaging/monk_v1.git\n",
    "!cd monk_v1/installation/Misc && pip install -r requirements_kaggle.txt --use-feature=2020-resolver"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "_cell_guid": "a20398a2-d9b7-4e47-b2d2-1e65df407ea1",
    "_uuid": "a5759f80-0ad4-4709-9c72-809e44369ef9"
   },
   "outputs": [],
   "source": [
    "pip install bokeh --use-feature=2020-resolver"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "_cell_guid": "77d49a17-ce98-49ab-9b2d-9fc5900156ae",
    "_uuid": "d4cfd1a5-b061-4513-aa93-ce6da5129c73"
   },
   "outputs": [],
   "source": [
    "pip install monk --upgrade --use-feature=2020-resolver"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "_cell_guid": "0ff2281c-92bd-4d2e-b8f2-afe56d11c21b",
    "_uuid": "b0fe7b04-d073-44c5-86b9-96d3d619b2e2"
   },
   "outputs": [],
   "source": [
    "pip install -U monk-kaggle --use-feature=2020-resolver"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "_cell_guid": "9d740045-608e-4a87-a926-b498aa09dd88",
    "_uuid": "f366d78a-983d-4fa0-899a-810dbcc195e2"
   },
   "outputs": [],
   "source": [
    "import numpy as np # linear algebra\n",
    "import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n",
    "import matplotlib.pyplot as plt\n",
    "from PIL import Image, ImageDraw\n",
    "import os\n",
    "import sys"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "_cell_guid": "226691c3-4163-4274-894e-16607184a545",
    "_uuid": "9176c373-b49e-4c7e-bb35-6da2fb6c8184"
   },
   "outputs": [],
   "source": [
    "sys.path.append(\"/kaggle/working/monk_v1/monk/\");\n",
    "from gluon_prototype import prototype"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "_cell_guid": "a0ad3211-8bfa-4fcb-b532-01ed3125564a",
    "_uuid": "e0f124db-3852-4e0c-a39e-746edfd2379d"
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Mxnet Version: 1.7.0\n",
      "\n",
      "Experiment Details\n",
      "    Project: Dance_Form\n",
      "    Experiment: Indian_Classical_Dance_Form_Prediction\n",
      "    Dir: /kaggle/working/workspace/Dance_Form/Indian_Classical_Dance_Form_Prediction/\n",
      "\n"
     ]
    }
   ],
   "source": [
    "gtf = prototype(verbose=1);\n",
    "gtf.Prototype(\"Dance_Form\", \"Indian_Classical_Dance_Form_Prediction\");"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "_cell_guid": "8a2bc3cb-7a25-45e6-87e2-14bd6ce027a3",
    "_uuid": "b09e01b2-f59b-4d74-a72a-0834180c4e02"
   },
   "outputs": [],
   "source": [
    "import csv"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "_cell_guid": "160d7167-e8ec-406b-a694-bc62ebb76fb7",
    "_uuid": "29ee75a3-dbfa-46ce-9d37-f8692e42bbc0"
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[['96.jpg', 'manipuri'], ['163.jpg', 'bharatanatyam'], ['450.jpg', 'odissi'], ['219.jpg', 'kathakali'], ['455.jpg', 'odissi'], ['46.jpg', 'kathak'], ['326.jpg', 'sattriya'], ['408.jpg', 'kuchipudi'], ['365.jpg', 'sattriya'], ['422.jpg', 'kuchipudi'], ['397.jpg', 'kuchipudi'], ['400.jpg', 'kuchipudi'], ['32.jpg', 'kathak'], ['350.jpg', 'sattriya'], ['234.jpg', 'kathakali'], ['492.jpg', 'odissi'], ['333.jpg', 'sattriya'], ['376.jpg', 'kuchipudi'], ['103.jpg', 'manipuri'], ['39.jpg', 'kathak'], ['87.jpg', 'manipuri'], ['155.jpg', 'bharatanatyam'], ['388.jpg', 'kuchipudi'], ['384.jpg', 'kuchipudi'], ['248.jpg', 'mohiniyattam'], ['494.jpg', 'odissi'], ['47.jpg', 'kathak'], ['488.jpg', 'odissi'], ['462.jpg', 'odissi'], ['347.jpg', 'sattriya'], ['242.jpg', 'kathakali'], ['16.jpg', 'kathak'], ['178.jpg', 'kathakali'], ['348.jpg', 'sattriya'], ['164.jpg', 'bharatanatyam'], ['2.jpg', 'kathak'], ['141.jpg', 'bharatanatyam'], ['187.jpg', 'kathakali'], ['464.jpg', 'odissi'], ['472.jpg', 'odissi'], ['489.jpg', 'odissi'], ['387.jpg', 'kuchipudi'], ['109.jpg', 'manipuri'], ['255.jpg', 'mohiniyattam'], ['274.jpg', 'mohiniyattam'], ['509.jpg', 'odissi'], ['19.jpg', 'kathak'], ['102.jpg', 'manipuri'], ['24.jpg', 'kathak'], ['294.jpg', 'mohiniyattam'], ['501.jpg', 'odissi'], ['335.jpg', 'sattriya'], ['321.jpg', 'sattriya'], ['480.jpg', 'odissi'], ['393.jpg', 'kuchipudi'], ['344.jpg', 'sattriya'], ['259.jpg', 'mohiniyattam'], ['76.jpg', 'manipuri'], ['343.jpg', 'sattriya'], ['4.jpg', 'kathak'], ['486.jpg', 'odissi'], ['361.jpg', 'sattriya'], ['90.jpg', 'manipuri'], ['231.jpg', 'kathakali'], ['331.jpg', 'sattriya'], ['243.jpg', 'kathakali'], ['104.jpg', 'manipuri'], ['113.jpg', 'bharatanatyam'], ['21.jpg', 'kathak'], ['15.jpg', 'kathak'], ['370.jpg', 'sattriya'], ['124.jpg', 'bharatanatyam'], ['241.jpg', 'kathakali'], ['56.jpg', 'kathak'], ['296.jpg', 'mohiniyattam'], ['81.jpg', 'manipuri'], ['29.jpg', 'kathak'], ['423.jpg', 'kuchipudi'], ['445.jpg', 'odissi'], ['406.jpg', 'kuchipudi'], ['116.jpg', 'bharatanatyam'], ['407.jpg', 'kuchipudi'], ['118.jpg', 'bharatanatyam'], ['367.jpg', 'sattriya'], ['30.jpg', 'kathak'], ['395.jpg', 'kuchipudi'], ['265.jpg', 'mohiniyattam'], ['73.jpg', 'manipuri'], ['277.jpg', 'mohiniyattam'], ['122.jpg', 'bharatanatyam'], ['516.jpg', 'odissi'], ['377.jpg', 'kuchipudi'], ['513.jpg', 'odissi'], ['405.jpg', 'kuchipudi'], ['172.jpg', 'bharatanatyam'], ['299.jpg', 'mohiniyattam'], ['149.jpg', 'bharatanatyam'], ['165.jpg', 'bharatanatyam'], ['371.jpg', 'sattriya'], ['18.jpg', 'kathak'], ['213.jpg', 'kathakali'], ['303.jpg', 'mohiniyattam'], ['353.jpg', 'sattriya'], ['135.jpg', 'bharatanatyam'], ['481.jpg', 'odissi'], ['3.jpg', 'kathak'], ['329.jpg', 'sattriya'], ['345.jpg', 'sattriya'], ['443.jpg', 'kuchipudi'], ['504.jpg', 'odissi'], ['12.jpg', 'kathak'], ['74.jpg', 'manipuri'], ['185.jpg', 'kathakali'], ['161.jpg', 'bharatanatyam'], ['309.jpg', 'mohiniyattam'], ['205.jpg', 'kathakali'], ['379.jpg', 'kuchipudi'], ['82.jpg', 'manipuri'], ['276.jpg', 'mohiniyattam'], ['154.jpg', 'bharatanatyam'], ['254.jpg', 'mohiniyattam'], ['26.jpg', 'kathak'], ['181.jpg', 'kathakali'], ['425.jpg', 'kuchipudi'], ['131.jpg', 'bharatanatyam'], ['272.jpg', 'mohiniyattam'], ['117.jpg', 'bharatanatyam'], ['252.jpg', 'mohiniyattam'], ['180.jpg', 'kathakali'], ['142.jpg', 'bharatanatyam'], ['261.jpg', 'mohiniyattam'], ['136.jpg', 'bharatanatyam'], ['85.jpg', 'manipuri'], ['88.jpg', 'manipuri'], ['372.jpg', 'sattriya'], ['279.jpg', 'mohiniyattam'], ['313.jpg', 'sattriya'], ['159.jpg', 'bharatanatyam'], ['483.jpg', 'odissi'], ['262.jpg', 'mohiniyattam'], ['519.jpg', 'odissi'], ['308.jpg', 'mohiniyattam'], ['211.jpg', 'kathakali'], ['497.jpg', 'odissi'], ['325.jpg', 'sattriya'], ['169.jpg', 'bharatanatyam'], ['244.jpg', 'mohiniyattam'], ['474.jpg', 'odissi'], ['322.jpg', 'sattriya'], ['94.jpg', 'manipuri'], ['314.jpg', 'sattriya'], ['356.jpg', 'sattriya'], ['22.jpg', 'kathak'], ['512.jpg', 'odissi'], ['182.jpg', 'kathakali'], ['156.jpg', 'bharatanatyam'], ['289.jpg', 'mohiniyattam'], ['25.jpg', 'kathak'], ['436.jpg', 'kuchipudi'], ['93.jpg', 'manipuri'], ['336.jpg', 'sattriya'], ['225.jpg', 'kathakali'], ['298.jpg', 'mohiniyattam'], ['214.jpg', 'kathakali'], ['27.jpg', 'kathak'], ['342.jpg', 'sattriya'], ['273.jpg', 'mohiniyattam'], ['133.jpg', 'bharatanatyam'], ['168.jpg', 'bharatanatyam'], ['409.jpg', 'kuchipudi'], ['459.jpg', 'odissi'], ['31.jpg', 'kathak'], ['468.jpg', 'odissi'], ['434.jpg', 'kuchipudi'], ['312.jpg', 'mohiniyattam'], ['383.jpg', 'kuchipudi'], ['476.jpg', 'odissi'], ['334.jpg', 'sattriya'], ['151.jpg', 'bharatanatyam'], ['166.jpg', 'bharatanatyam'], ['227.jpg', 'kathakali'], ['471.jpg', 'odissi'], ['267.jpg', 'mohiniyattam'], ['100.jpg', 'manipuri'], ['446.jpg', 'odissi'], ['208.jpg', 'kathakali'], ['293.jpg', 'mohiniyattam'], ['297.jpg', 'mohiniyattam'], ['412.jpg', 'kuchipudi'], ['58.jpg', 'kathak'], ['288.jpg', 'mohiniyattam'], ['105.jpg', 'manipuri'], ['477.jpg', 'odissi'], ['502.jpg', 'odissi'], ['418.jpg', 'kuchipudi'], ['233.jpg', 'kathakali'], ['134.jpg', 'bharatanatyam'], ['197.jpg', 'kathakali'], ['245.jpg', 'mohiniyattam'], ['176.jpg', 'bharatanatyam'], ['203.jpg', 'kathakali'], ['247.jpg', 'mohiniyattam'], ['493.jpg', 'odissi'], ['68.jpg', 'manipuri'], ['442.jpg', 'kuchipudi'], ['115.jpg', 'bharatanatyam'], ['357.jpg', 'sattriya'], ['389.jpg', 'kuchipudi'], ['218.jpg', 'kathakali'], ['263.jpg', 'mohiniyattam'], ['184.jpg', 'kathakali'], ['315.jpg', 'sattriya'], ['295.jpg', 'mohiniyattam'], ['42.jpg', 'kathak'], ['427.jpg', 'kuchipudi'], ['287.jpg', 'mohiniyattam'], ['430.jpg', 'kuchipudi'], ['359.jpg', 'sattriya'], ['249.jpg', 'mohiniyattam'], ['54.jpg', 'kathak'], ['305.jpg', 'mohiniyattam'], ['319.jpg', 'sattriya'], ['496.jpg', 'odissi'], ['60.jpg', 'kathak'], ['37.jpg', 'kathak'], ['192.jpg', 'kathakali'], ['304.jpg', 'mohiniyattam'], ['258.jpg', 'mohiniyattam'], ['364.jpg', 'sattriya'], ['49.jpg', 'kathak'], ['144.jpg', 'bharatanatyam'], ['7.jpg', 'kathak'], ['98.jpg', 'manipuri'], ['223.jpg', 'kathakali'], ['320.jpg', 'sattriya'], ['70.jpg', 'manipuri'], ['426.jpg', 'kuchipudi'], ['84.jpg', 'manipuri'], ['44.jpg', 'kathak'], ['177.jpg', 'bharatanatyam'], ['50.jpg', 'kathak'], ['417.jpg', 'kuchipudi'], ['191.jpg', 'kathakali'], ['221.jpg', 'kathakali'], ['500.jpg', 'odissi'], ['428.jpg', 'kuchipudi'], ['137.jpg', 'bharatanatyam'], ['195.jpg', 'kathakali'], ['413.jpg', 'kuchipudi'], ['228.jpg', 'kathakali'], ['478.jpg', 'odissi'], ['123.jpg', 'bharatanatyam'], ['369.jpg', 'sattriya'], ['328.jpg', 'sattriya'], ['1.jpg', 'kathak'], ['126.jpg', 'bharatanatyam'], ['503.jpg', 'odissi'], ['352.jpg', 'sattriya'], ['120.jpg', 'bharatanatyam'], ['452.jpg', 'odissi'], ['339.jpg', 'sattriya'], ['266.jpg', 'mohiniyattam'], ['201.jpg', 'kathakali'], ['229.jpg', 'kathakali'], ['402.jpg', 'kuchipudi'], ['381.jpg', 'kuchipudi'], ['449.jpg', 'odissi'], ['107.jpg', 'manipuri'], ['444.jpg', 'odissi'], ['327.jpg', 'sattriya'], ['8.jpg', 'kathak'], ['451.jpg', 'odissi'], ['77.jpg', 'manipuri'], ['148.jpg', 'bharatanatyam'], ['399.jpg', 'kuchipudi'], ['130.jpg', 'bharatanatyam'], ['362.jpg', 'sattriya'], ['310.jpg', 'mohiniyattam'], ['79.jpg', 'manipuri'], ['127.jpg', 'bharatanatyam'], ['237.jpg', 'kathakali'], ['257.jpg', 'mohiniyattam'], ['160.jpg', 'bharatanatyam'], ['52.jpg', 'kathak'], ['190.jpg', 'kathakali'], ['382.jpg', 'kuchipudi'], ['143.jpg', 'bharatanatyam'], ['199.jpg', 'kathakali'], ['282.jpg', 'mohiniyattam'], ['207.jpg', 'kathakali'], ['403.jpg', 'kuchipudi'], ['337.jpg', 'sattriya'], ['355.jpg', 'sattriya'], ['251.jpg', 'mohiniyattam'], ['188.jpg', 'kathakali'], ['338.jpg', 'sattriya'], ['341.jpg', 'sattriya'], ['433.jpg', 'kuchipudi'], ['69.jpg', 'manipuri'], ['236.jpg', 'kathakali'], ['106.jpg', 'manipuri'], ['99.jpg', 'manipuri'], ['179.jpg', 'kathakali'], ['204.jpg', 'kathakali'], ['300.jpg', 'mohiniyattam'], ['432.jpg', 'kuchipudi'], ['490.jpg', 'odissi'], ['368.jpg', 'sattriya'], ['153.jpg', 'bharatanatyam'], ['174.jpg', 'bharatanatyam'], ['51.jpg', 'kathak'], ['62.jpg', 'kathak'], ['420.jpg', 'kuchipudi'], ['75.jpg', 'manipuri'], ['230.jpg', 'kathakali'], ['307.jpg', 'mohiniyattam'], ['212.jpg', 'kathakali'], ['209.jpg', 'kathakali'], ['415.jpg', 'kuchipudi'], ['491.jpg', 'odissi'], ['453.jpg', 'odissi'], ['351.jpg', 'sattriya'], ['111.jpg', 'manipuri'], ['391.jpg', 'kuchipudi'], ['515.jpg', 'odissi'], ['65.jpg', 'kathak'], ['240.jpg', 'kathakali'], ['91.jpg', 'manipuri'], ['222.jpg', 'kathakali'], ['53.jpg', 'kathak'], ['158.jpg', 'bharatanatyam'], ['475.jpg', 'odissi'], ['121.jpg', 'bharatanatyam'], ['396.jpg', 'kuchipudi'], ['63.jpg', 'kathak'], ['268.jpg', 'mohiniyattam'], ['78.jpg', 'manipuri'], ['167.jpg', 'bharatanatyam'], ['250.jpg', 'mohiniyattam'], ['454.jpg', 'odissi'], ['186.jpg', 'kathakali'], ['499.jpg', 'odissi'], ['101.jpg', 'manipuri'], ['435.jpg', 'kuchipudi'], ['469.jpg', 'odissi'], ['139.jpg', 'bharatanatyam'], ['83.jpg', 'manipuri'], ['43.jpg', 'kathak'], ['281.jpg', 'mohiniyattam'], ['36.jpg', 'kathak'], ['419.jpg', 'kuchipudi'], ['66.jpg', 'kathak'], ['260.jpg', 'mohiniyattam'], ['466.jpg', 'odissi'], ['140.jpg', 'bharatanatyam'], ['5.jpg', 'kathak'], ['10.jpg', 'kathak'], ['235.jpg', 'kathakali'], ['511.jpg', 'odissi'], ['72.jpg', 'manipuri'], ['253.jpg', 'mohiniyattam'], ['404.jpg', 'kuchipudi'], ['89.jpg', 'manipuri'], ['311.jpg', 'mohiniyattam']]\n"
     ]
    }
   ],
   "source": [
    "data = []\n",
    "with open('../input/dform-gold/dataset1/train.csv', 'r',) as file:\n",
    "    reader = csv.reader(file, delimiter = ',')\n",
    "    i = 0\n",
    "    for row in reader:\n",
    "        if i==0:\n",
    "            i = i + 1\n",
    "            continue\n",
    "        data.append(row);\n",
    "print(data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "_cell_guid": "e20c1807-96d9-4e69-b8a2-dd0b1322fa4f",
    "_uuid": "8fcc9163-fcbd-4b3a-8752-f9721e6d94fd"
   },
   "outputs": [],
   "source": [
    "k = 4\n",
    "div = len(data) / k\n",
    "#7 * 13* 2 * 2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "_cell_guid": "704b4f63-617b-4290-8a99-df0162e766b7",
    "_uuid": "73154899-d0bb-433e-b71b-30f5a7f3047a"
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "91.0\n",
      "0 train count 8\n",
      "0 test count 8\n",
      "1 train count 8\n",
      "1 test count 8\n",
      "2 train count 8\n",
      "2 test count 8\n",
      "3 train count 8\n",
      "3 test count 8\n",
      "[['408.jpg', 'kuchipudi'], ['274.jpg', 'mohiniyattam'], ['73.jpg', 'manipuri'], ['315.jpg', 'sattriya'], ['379.jpg', 'kuchipudi'], ['197.jpg', 'kathakali'], ['277.jpg', 'mohiniyattam'], ['149.jpg', 'bharatanatyam'], ['362.jpg', 'sattriya'], ['244.jpg', 'mohiniyattam'], ['32.jpg', 'kathak'], ['361.jpg', 'sattriya'], ['455.jpg', 'odissi'], ['472.jpg', 'odissi'], ['31.jpg', 'kathak'], ['281.jpg', 'mohiniyattam'], ['326.jpg', 'sattriya'], ['488.jpg', 'odissi'], ['307.jpg', 'mohiniyattam'], ['500.jpg', 'odissi'], ['247.jpg', 'mohiniyattam'], ['426.jpg', 'kuchipudi'], ['331.jpg', 'sattriya'], ['120.jpg', 'bharatanatyam'], ['104.jpg', 'manipuri'], ['60.jpg', 'kathak'], ['415.jpg', 'kuchipudi'], ['142.jpg', 'bharatanatyam'], ['296.jpg', 'mohiniyattam'], ['444.jpg', 'odissi'], ['413.jpg', 'kuchipudi'], ['295.jpg', 'mohiniyattam'], ['303.jpg', 'mohiniyattam'], ['126.jpg', 'bharatanatyam'], ['483.jpg', 'odissi'], ['397.jpg', 'kuchipudi'], ['279.jpg', 'mohiniyattam'], ['359.jpg', 'sattriya'], ['370.jpg', 'sattriya'], ['242.jpg', 'kathakali'], ['214.jpg', 'kathakali'], ['113.jpg', 'bharatanatyam'], ['121.jpg', 'bharatanatyam'], ['190.jpg', 'kathakali'], ['261.jpg', 'mohiniyattam'], ['478.jpg', 'odissi'], ['327.jpg', 'sattriya'], ['174.jpg', 'bharatanatyam'], ['384.jpg', 'kuchipudi'], ['154.jpg', 'bharatanatyam'], ['99.jpg', 'manipuri'], ['191.jpg', 'kathakali'], ['69.jpg', 'manipuri'], ['276.jpg', 'mohiniyattam'], ['263.jpg', 'mohiniyattam'], ['481.jpg', 'odissi'], ['15.jpg', 'kathak'], ['89.jpg', 'manipuri'], ['251.jpg', 'mohiniyattam'], ['383.jpg', 'kuchipudi'], ['420.jpg', 'kuchipudi'], ['254.jpg', 'mohiniyattam'], ['258.jpg', 'mohiniyattam'], ['243.jpg', 'kathakali'], ['1.jpg', 'kathak'], ['368.jpg', 'sattriya'], ['387.jpg', 'kuchipudi'], ['76.jpg', 'manipuri'], ['422.jpg', 'kuchipudi'], ['10.jpg', 'kathak'], ['53.jpg', 'kathak'], ['169.jpg', 'bharatanatyam'], ['24.jpg', 'kathak'], ['312.jpg', 'mohiniyattam'], ['304.jpg', 'mohiniyattam'], ['493.jpg', 'odissi'], ['342.jpg', 'sattriya'], ['106.jpg', 'manipuri'], ['77.jpg', 'manipuri'], ['509.jpg', 'odissi'], ['143.jpg', 'bharatanatyam'], ['70.jpg', 'manipuri'], ['234.jpg', 'kathakali'], ['435.jpg', 'kuchipudi'], ['355.jpg', 'sattriya'], ['4.jpg', 'kathak'], ['348.jpg', 'sattriya'], ['167.jpg', 'bharatanatyam'], ['75.jpg', 'manipuri'], ['62.jpg', 'kathak'], ['180.jpg', 'kathakali'], ['199.jpg', 'kathakali'], ['519.jpg', 'odissi'], ['8.jpg', 'kathak'], ['185.jpg', 'kathakali'], ['309.jpg', 'mohiniyattam'], ['305.jpg', 'mohiniyattam'], ['88.jpg', 'manipuri'], ['337.jpg', 'sattriya'], ['433.jpg', 'kuchipudi'], ['82.jpg', 'manipuri'], ['428.jpg', 'kuchipudi'], ['268.jpg', 'mohiniyattam'], ['159.jpg', 'bharatanatyam'], ['51.jpg', 'kathak'], ['395.jpg', 'kuchipudi'], ['166.jpg', 'bharatanatyam'], ['93.jpg', 'manipuri'], ['235.jpg', 'kathakali'], ['227.jpg', 'kathakali'], ['459.jpg', 'odissi'], ['85.jpg', 'manipuri'], ['103.jpg', 'manipuri'], ['43.jpg', 'kathak'], ['131.jpg', 'bharatanatyam'], ['223.jpg', 'kathakali'], ['436.jpg', 'kuchipudi'], ['345.jpg', 'sattriya'], ['389.jpg', 'kuchipudi'], ['322.jpg', 'sattriya'], ['225.jpg', 'kathakali'], ['257.jpg', 'mohiniyattam'], ['427.jpg', 'kuchipudi'], ['107.jpg', 'manipuri'], ['432.jpg', 'kuchipudi'], ['341.jpg', 'sattriya'], ['328.jpg', 'sattriya'], ['90.jpg', 'manipuri'], ['184.jpg', 'kathakali'], ['259.jpg', 'mohiniyattam'], ['445.jpg', 'odissi'], ['491.jpg', 'odissi'], ['94.jpg', 'manipuri'], ['177.jpg', 'bharatanatyam'], ['333.jpg', 'sattriya'], ['137.jpg', 'bharatanatyam'], ['179.jpg', 'kathakali'], ['272.jpg', 'mohiniyattam'], ['406.jpg', 'kuchipudi'], ['54.jpg', 'kathak'], ['49.jpg', 'kathak'], ['78.jpg', 'manipuri'], ['127.jpg', 'bharatanatyam'], ['399.jpg', 'kuchipudi'], ['339.jpg', 'sattriya'], ['2.jpg', 'kathak'], ['140.jpg', 'bharatanatyam'], ['21.jpg', 'kathak'], ['164.jpg', 'bharatanatyam'], ['219.jpg', 'kathakali'], ['442.jpg', 'kuchipudi'], ['105.jpg', 'manipuri'], ['168.jpg', 'bharatanatyam'], ['294.jpg', 'mohiniyattam'], ['391.jpg', 'kuchipudi'], ['135.jpg', 'bharatanatyam'], ['18.jpg', 'kathak'], ['68.jpg', 'manipuri'], ['466.jpg', 'odissi'], ['503.jpg', 'odissi'], ['221.jpg', 'kathakali'], ['490.jpg', 'odissi'], ['230.jpg', 'kathakali'], ['450.jpg', 'odissi'], ['321.jpg', 'sattriya'], ['273.jpg', 'mohiniyattam'], ['233.jpg', 'kathakali'], ['480.jpg', 'odissi'], ['153.jpg', 'bharatanatyam'], ['262.jpg', 'mohiniyattam'], ['400.jpg', 'kuchipudi'], ['393.jpg', 'kuchipudi'], ['462.jpg', 'odissi'], ['5.jpg', 'kathak'], ['353.jpg', 'sattriya'], ['248.jpg', 'mohiniyattam'], ['452.jpg', 'odissi'], ['19.jpg', 'kathak'], ['139.jpg', 'bharatanatyam'], ['253.jpg', 'mohiniyattam'], ['118.jpg', 'bharatanatyam'], ['369.jpg', 'sattriya'], ['201.jpg', 'kathakali'], ['469.jpg', 'odissi'], ['123.jpg', 'bharatanatyam'], ['203.jpg', 'kathakali'], ['42.jpg', 'kathak'], ['161.jpg', 'bharatanatyam'], ['404.jpg', 'kuchipudi'], ['155.jpg', 'bharatanatyam'], ['186.jpg', 'kathakali'], ['335.jpg', 'sattriya'], ['338.jpg', 'sattriya'], ['218.jpg', 'kathakali'], ['27.jpg', 'kathak'], ['46.jpg', 'kathak'], ['515.jpg', 'odissi'], ['265.jpg', 'mohiniyattam'], ['58.jpg', 'kathak'], ['252.jpg', 'mohiniyattam'], ['407.jpg', 'kuchipudi'], ['287.jpg', 'mohiniyattam'], ['464.jpg', 'odissi'], ['351.jpg', 'sattriya'], ['365.jpg', 'sattriya'], ['130.jpg', 'bharatanatyam'], ['329.jpg', 'sattriya'], ['231.jpg', 'kathakali'], ['36.jpg', 'kathak'], ['111.jpg', 'manipuri'], ['96.jpg', 'manipuri'], ['250.jpg', 'mohiniyattam'], ['320.jpg', 'sattriya'], ['502.jpg', 'odissi'], ['50.jpg', 'kathak'], ['405.jpg', 'kuchipudi'], ['402.jpg', 'kuchipudi'], ['63.jpg', 'kathak'], ['512.jpg', 'odissi'], ['47.jpg', 'kathak'], ['7.jpg', 'kathak'], ['229.jpg', 'kathakali'], ['81.jpg', 'manipuri'], ['357.jpg', 'sattriya'], ['300.jpg', 'mohiniyattam'], ['241.jpg', 'kathakali'], ['12.jpg', 'kathak'], ['344.jpg', 'sattriya'], ['352.jpg', 'sattriya'], ['396.jpg', 'kuchipudi'], ['26.jpg', 'kathak'], ['403.jpg', 'kuchipudi'], ['313.jpg', 'sattriya'], ['267.jpg', 'mohiniyattam'], ['117.jpg', 'bharatanatyam'], ['79.jpg', 'manipuri'], ['160.jpg', 'bharatanatyam'], ['377.jpg', 'kuchipudi'], ['434.jpg', 'kuchipudi'], ['299.jpg', 'mohiniyattam'], ['289.jpg', 'mohiniyattam'], ['245.jpg', 'mohiniyattam'], ['72.jpg', 'manipuri'], ['3.jpg', 'kathak'], ['124.jpg', 'bharatanatyam'], ['334.jpg', 'sattriya'], ['205.jpg', 'kathakali'], ['310.jpg', 'mohiniyattam'], ['237.jpg', 'kathakali'], ['314.jpg', 'sattriya'], ['240.jpg', 'kathakali'], ['98.jpg', 'manipuri'], ['266.jpg', 'mohiniyattam'], ['181.jpg', 'kathakali'], ['30.jpg', 'kathak'], ['343.jpg', 'sattriya'], ['298.jpg', 'mohiniyattam'], ['311.jpg', 'mohiniyattam'], ['449.jpg', 'odissi'], ['476.jpg', 'odissi'], ['308.jpg', 'mohiniyattam'], ['501.jpg', 'odissi'], ['148.jpg', 'bharatanatyam'], ['409.jpg', 'kuchipudi'], ['208.jpg', 'kathakali'], ['134.jpg', 'bharatanatyam'], ['423.jpg', 'kuchipudi'], ['66.jpg', 'kathak'], ['109.jpg', 'manipuri'], ['91.jpg', 'manipuri'], ['178.jpg', 'kathakali'], ['319.jpg', 'sattriya'], ['293.jpg', 'mohiniyattam'], ['474.jpg', 'odissi'], ['144.jpg', 'bharatanatyam'], ['430.jpg', 'kuchipudi'], ['417.jpg', 'kuchipudi'], ['25.jpg', 'kathak'], ['156.jpg', 'bharatanatyam'], ['356.jpg', 'sattriya'], ['347.jpg', 'sattriya'], ['497.jpg', 'odissi'], ['513.jpg', 'odissi'], ['39.jpg', 'kathak'], ['504.jpg', 'odissi'], ['22.jpg', 'kathak'], ['297.jpg', 'mohiniyattam'], ['37.jpg', 'kathak'], ['453.jpg', 'odissi'], ['141.jpg', 'bharatanatyam'], ['188.jpg', 'kathakali'], ['222.jpg', 'kathakali'], ['100.jpg', 'manipuri'], ['336.jpg', 'sattriya'], ['499.jpg', 'odissi'], ['255.jpg', 'mohiniyattam'], ['496.jpg', 'odissi'], ['471.jpg', 'odissi'], ['475.jpg', 'odissi'], ['192.jpg', 'kathakali'], ['101.jpg', 'manipuri'], ['288.jpg', 'mohiniyattam'], ['350.jpg', 'sattriya'], ['477.jpg', 'odissi'], ['209.jpg', 'kathakali'], ['176.jpg', 'bharatanatyam'], ['492.jpg', 'odissi'], ['187.jpg', 'kathakali'], ['116.jpg', 'bharatanatyam'], ['87.jpg', 'manipuri'], ['29.jpg', 'kathak'], ['182.jpg', 'kathakali'], ['371.jpg', 'sattriya'], ['83.jpg', 'manipuri'], ['412.jpg', 'kuchipudi'], ['84.jpg', 'manipuri'], ['372.jpg', 'sattriya'], ['486.jpg', 'odissi'], ['115.jpg', 'bharatanatyam'], ['213.jpg', 'kathakali'], ['489.jpg', 'odissi'], ['260.jpg', 'mohiniyattam'], ['151.jpg', 'bharatanatyam'], ['207.jpg', 'kathakali'], ['425.jpg', 'kuchipudi'], ['122.jpg', 'bharatanatyam'], ['65.jpg', 'kathak'], ['133.jpg', 'bharatanatyam'], ['228.jpg', 'kathakali'], ['158.jpg', 'bharatanatyam'], ['516.jpg', 'odissi'], ['136.jpg', 'bharatanatyam'], ['367.jpg', 'sattriya'], ['16.jpg', 'kathak'], ['44.jpg', 'kathak'], ['249.jpg', 'mohiniyattam'], ['443.jpg', 'kuchipudi'], ['364.jpg', 'sattriya'], ['381.jpg', 'kuchipudi'], ['204.jpg', 'kathakali'], ['325.jpg', 'sattriya'], ['165.jpg', 'bharatanatyam'], ['419.jpg', 'kuchipudi'], ['468.jpg', 'odissi'], ['52.jpg', 'kathak'], ['451.jpg', 'odissi'], ['195.jpg', 'kathakali'], ['74.jpg', 'manipuri'], ['211.jpg', 'kathakali'], ['511.jpg', 'odissi'], ['454.jpg', 'odissi'], ['172.jpg', 'bharatanatyam'], ['388.jpg', 'kuchipudi'], ['376.jpg', 'kuchipudi'], ['446.jpg', 'odissi'], ['102.jpg', 'manipuri'], ['282.jpg', 'mohiniyattam'], ['494.jpg', 'odissi'], ['382.jpg', 'kuchipudi'], ['56.jpg', 'kathak'], ['418.jpg', 'kuchipudi'], ['236.jpg', 'kathakali'], ['212.jpg', 'kathakali'], ['163.jpg', 'bharatanatyam']]\n"
     ]
    }
   ],
   "source": [
    "print(div)\n",
    "\n",
    "#shuffling data\n",
    "\n",
    "import pandas as pd\n",
    "\n",
    "flag = False\n",
    "\n",
    "while (not flag):\n",
    "    \n",
    "    flag = True\n",
    "    \n",
    "    pdata = pd.DataFrame(data)\n",
    "\n",
    "    pdata = pdata.sample(frac = 1) \n",
    "    \n",
    "    data = pdata.values.tolist()\n",
    "\n",
    "\n",
    "    for i in range(k):\n",
    "\n",
    "        train = (data[0:(i * int(div))]) \n",
    "        test = data[ i * int(div) : (i + 1) * int(div) ]\n",
    "        for x in data[(i+1) * int(div) : ]:\n",
    "            train.append(x)\n",
    "        print(i, \"train count\",len(pd.DataFrame(train).groupby(1).count()[0]))\n",
    "        print(i, \"test count\",len(pd.DataFrame(train).groupby(1).count()[0]))\n",
    "        if(len(pd.DataFrame(train).groupby(1).count()[0]) < 8 or len(pd.DataFrame(test).groupby(1).count()[0]) < 8):\n",
    "            flag = False\n",
    "            break\n",
    "\n",
    "\n",
    "print(data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "_cell_guid": "cf9729c7-fa9a-42f7-b822-a64cfbff68bf",
    "_uuid": "2e8ddd83-7c2d-418a-bdd5-417b177c0bef"
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[['408.jpg', 'kuchipudi'], ['274.jpg', 'mohiniyattam'], ['73.jpg', 'manipuri'], ['315.jpg', 'sattriya'], ['379.jpg', 'kuchipudi'], ['197.jpg', 'kathakali'], ['277.jpg', 'mohiniyattam'], ['149.jpg', 'bharatanatyam'], ['362.jpg', 'sattriya'], ['244.jpg', 'mohiniyattam'], ['32.jpg', 'kathak'], ['361.jpg', 'sattriya'], ['455.jpg', 'odissi'], ['472.jpg', 'odissi'], ['31.jpg', 'kathak'], ['281.jpg', 'mohiniyattam'], ['326.jpg', 'sattriya'], ['488.jpg', 'odissi'], ['307.jpg', 'mohiniyattam'], ['500.jpg', 'odissi'], ['247.jpg', 'mohiniyattam'], ['426.jpg', 'kuchipudi'], ['331.jpg', 'sattriya'], ['120.jpg', 'bharatanatyam'], ['104.jpg', 'manipuri'], ['60.jpg', 'kathak'], ['415.jpg', 'kuchipudi'], ['142.jpg', 'bharatanatyam'], ['296.jpg', 'mohiniyattam'], ['444.jpg', 'odissi'], ['413.jpg', 'kuchipudi'], ['295.jpg', 'mohiniyattam'], ['303.jpg', 'mohiniyattam'], ['126.jpg', 'bharatanatyam'], ['483.jpg', 'odissi'], ['397.jpg', 'kuchipudi'], ['279.jpg', 'mohiniyattam'], ['359.jpg', 'sattriya'], ['370.jpg', 'sattriya'], ['242.jpg', 'kathakali'], ['214.jpg', 'kathakali'], ['113.jpg', 'bharatanatyam'], ['121.jpg', 'bharatanatyam'], ['190.jpg', 'kathakali'], ['261.jpg', 'mohiniyattam'], ['478.jpg', 'odissi'], ['327.jpg', 'sattriya'], ['174.jpg', 'bharatanatyam'], ['384.jpg', 'kuchipudi'], ['154.jpg', 'bharatanatyam'], ['99.jpg', 'manipuri'], ['191.jpg', 'kathakali'], ['69.jpg', 'manipuri'], ['276.jpg', 'mohiniyattam'], ['263.jpg', 'mohiniyattam'], ['481.jpg', 'odissi'], ['15.jpg', 'kathak'], ['89.jpg', 'manipuri'], ['251.jpg', 'mohiniyattam'], ['383.jpg', 'kuchipudi'], ['420.jpg', 'kuchipudi'], ['254.jpg', 'mohiniyattam'], ['258.jpg', 'mohiniyattam'], ['243.jpg', 'kathakali'], ['1.jpg', 'kathak'], ['368.jpg', 'sattriya'], ['387.jpg', 'kuchipudi'], ['76.jpg', 'manipuri'], ['422.jpg', 'kuchipudi'], ['10.jpg', 'kathak'], ['53.jpg', 'kathak'], ['169.jpg', 'bharatanatyam'], ['24.jpg', 'kathak'], ['312.jpg', 'mohiniyattam'], ['304.jpg', 'mohiniyattam'], ['493.jpg', 'odissi'], ['342.jpg', 'sattriya'], ['106.jpg', 'manipuri'], ['77.jpg', 'manipuri'], ['509.jpg', 'odissi'], ['143.jpg', 'bharatanatyam'], ['70.jpg', 'manipuri'], ['234.jpg', 'kathakali'], ['435.jpg', 'kuchipudi'], ['355.jpg', 'sattriya'], ['4.jpg', 'kathak'], ['348.jpg', 'sattriya'], ['167.jpg', 'bharatanatyam'], ['75.jpg', 'manipuri'], ['62.jpg', 'kathak'], ['180.jpg', 'kathakali'], ['199.jpg', 'kathakali'], ['519.jpg', 'odissi'], ['8.jpg', 'kathak'], ['185.jpg', 'kathakali'], ['309.jpg', 'mohiniyattam'], ['305.jpg', 'mohiniyattam'], ['88.jpg', 'manipuri'], ['337.jpg', 'sattriya'], ['433.jpg', 'kuchipudi'], ['82.jpg', 'manipuri'], ['428.jpg', 'kuchipudi'], ['268.jpg', 'mohiniyattam'], ['159.jpg', 'bharatanatyam'], ['51.jpg', 'kathak'], ['395.jpg', 'kuchipudi'], ['166.jpg', 'bharatanatyam'], ['93.jpg', 'manipuri'], ['235.jpg', 'kathakali'], ['227.jpg', 'kathakali'], ['459.jpg', 'odissi'], ['85.jpg', 'manipuri'], ['103.jpg', 'manipuri'], ['43.jpg', 'kathak'], ['131.jpg', 'bharatanatyam'], ['223.jpg', 'kathakali'], ['436.jpg', 'kuchipudi'], ['345.jpg', 'sattriya'], ['389.jpg', 'kuchipudi'], ['322.jpg', 'sattriya'], ['225.jpg', 'kathakali'], ['257.jpg', 'mohiniyattam'], ['427.jpg', 'kuchipudi'], ['107.jpg', 'manipuri'], ['432.jpg', 'kuchipudi'], ['341.jpg', 'sattriya'], ['328.jpg', 'sattriya'], ['90.jpg', 'manipuri'], ['184.jpg', 'kathakali'], ['259.jpg', 'mohiniyattam'], ['445.jpg', 'odissi'], ['491.jpg', 'odissi'], ['94.jpg', 'manipuri'], ['177.jpg', 'bharatanatyam'], ['333.jpg', 'sattriya'], ['137.jpg', 'bharatanatyam'], ['179.jpg', 'kathakali'], ['272.jpg', 'mohiniyattam'], ['406.jpg', 'kuchipudi'], ['54.jpg', 'kathak'], ['49.jpg', 'kathak'], ['78.jpg', 'manipuri'], ['127.jpg', 'bharatanatyam'], ['399.jpg', 'kuchipudi'], ['339.jpg', 'sattriya'], ['2.jpg', 'kathak'], ['140.jpg', 'bharatanatyam'], ['21.jpg', 'kathak'], ['164.jpg', 'bharatanatyam'], ['219.jpg', 'kathakali'], ['442.jpg', 'kuchipudi'], ['105.jpg', 'manipuri'], ['168.jpg', 'bharatanatyam'], ['294.jpg', 'mohiniyattam'], ['391.jpg', 'kuchipudi'], ['135.jpg', 'bharatanatyam'], ['18.jpg', 'kathak'], ['68.jpg', 'manipuri'], ['466.jpg', 'odissi'], ['503.jpg', 'odissi'], ['221.jpg', 'kathakali'], ['490.jpg', 'odissi'], ['230.jpg', 'kathakali'], ['450.jpg', 'odissi'], ['321.jpg', 'sattriya'], ['273.jpg', 'mohiniyattam'], ['233.jpg', 'kathakali'], ['480.jpg', 'odissi'], ['153.jpg', 'bharatanatyam'], ['262.jpg', 'mohiniyattam'], ['400.jpg', 'kuchipudi'], ['393.jpg', 'kuchipudi'], ['462.jpg', 'odissi'], ['5.jpg', 'kathak'], ['353.jpg', 'sattriya'], ['248.jpg', 'mohiniyattam'], ['452.jpg', 'odissi'], ['19.jpg', 'kathak'], ['139.jpg', 'bharatanatyam'], ['253.jpg', 'mohiniyattam'], ['118.jpg', 'bharatanatyam'], ['369.jpg', 'sattriya'], ['201.jpg', 'kathakali'], ['469.jpg', 'odissi'], ['123.jpg', 'bharatanatyam'], ['203.jpg', 'kathakali'], ['42.jpg', 'kathak'], ['161.jpg', 'bharatanatyam'], ['404.jpg', 'kuchipudi'], ['155.jpg', 'bharatanatyam'], ['186.jpg', 'kathakali'], ['335.jpg', 'sattriya'], ['338.jpg', 'sattriya'], ['218.jpg', 'kathakali'], ['27.jpg', 'kathak'], ['46.jpg', 'kathak'], ['515.jpg', 'odissi'], ['265.jpg', 'mohiniyattam'], ['58.jpg', 'kathak'], ['252.jpg', 'mohiniyattam'], ['407.jpg', 'kuchipudi'], ['287.jpg', 'mohiniyattam'], ['464.jpg', 'odissi'], ['351.jpg', 'sattriya'], ['365.jpg', 'sattriya'], ['130.jpg', 'bharatanatyam'], ['329.jpg', 'sattriya'], ['231.jpg', 'kathakali'], ['36.jpg', 'kathak'], ['111.jpg', 'manipuri'], ['96.jpg', 'manipuri'], ['250.jpg', 'mohiniyattam'], ['320.jpg', 'sattriya'], ['502.jpg', 'odissi'], ['50.jpg', 'kathak'], ['405.jpg', 'kuchipudi'], ['402.jpg', 'kuchipudi'], ['63.jpg', 'kathak'], ['512.jpg', 'odissi'], ['47.jpg', 'kathak'], ['7.jpg', 'kathak'], ['229.jpg', 'kathakali'], ['81.jpg', 'manipuri'], ['357.jpg', 'sattriya'], ['300.jpg', 'mohiniyattam'], ['241.jpg', 'kathakali'], ['12.jpg', 'kathak'], ['344.jpg', 'sattriya'], ['352.jpg', 'sattriya'], ['396.jpg', 'kuchipudi'], ['26.jpg', 'kathak'], ['403.jpg', 'kuchipudi'], ['313.jpg', 'sattriya'], ['267.jpg', 'mohiniyattam'], ['117.jpg', 'bharatanatyam'], ['79.jpg', 'manipuri'], ['160.jpg', 'bharatanatyam'], ['377.jpg', 'kuchipudi'], ['434.jpg', 'kuchipudi'], ['299.jpg', 'mohiniyattam'], ['289.jpg', 'mohiniyattam'], ['245.jpg', 'mohiniyattam'], ['72.jpg', 'manipuri'], ['3.jpg', 'kathak'], ['124.jpg', 'bharatanatyam'], ['334.jpg', 'sattriya'], ['205.jpg', 'kathakali'], ['310.jpg', 'mohiniyattam'], ['237.jpg', 'kathakali'], ['314.jpg', 'sattriya'], ['240.jpg', 'kathakali'], ['98.jpg', 'manipuri'], ['266.jpg', 'mohiniyattam'], ['181.jpg', 'kathakali'], ['30.jpg', 'kathak'], ['343.jpg', 'sattriya'], ['298.jpg', 'mohiniyattam'], ['311.jpg', 'mohiniyattam'], ['449.jpg', 'odissi'], ['476.jpg', 'odissi'], ['308.jpg', 'mohiniyattam'], ['501.jpg', 'odissi'], ['148.jpg', 'bharatanatyam'], ['409.jpg', 'kuchipudi'], ['208.jpg', 'kathakali'], ['134.jpg', 'bharatanatyam'], ['423.jpg', 'kuchipudi'], ['66.jpg', 'kathak'], ['109.jpg', 'manipuri'], ['91.jpg', 'manipuri'], ['178.jpg', 'kathakali'], ['319.jpg', 'sattriya'], ['293.jpg', 'mohiniyattam'], ['474.jpg', 'odissi'], ['144.jpg', 'bharatanatyam'], ['430.jpg', 'kuchipudi'], ['417.jpg', 'kuchipudi'], ['25.jpg', 'kathak'], ['156.jpg', 'bharatanatyam'], ['356.jpg', 'sattriya'], ['347.jpg', 'sattriya'], ['497.jpg', 'odissi'], ['513.jpg', 'odissi'], ['39.jpg', 'kathak'], ['504.jpg', 'odissi'], ['22.jpg', 'kathak'], ['297.jpg', 'mohiniyattam'], ['37.jpg', 'kathak'], ['453.jpg', 'odissi'], ['141.jpg', 'bharatanatyam'], ['188.jpg', 'kathakali'], ['222.jpg', 'kathakali'], ['100.jpg', 'manipuri'], ['336.jpg', 'sattriya'], ['499.jpg', 'odissi'], ['255.jpg', 'mohiniyattam'], ['496.jpg', 'odissi'], ['471.jpg', 'odissi'], ['475.jpg', 'odissi'], ['192.jpg', 'kathakali'], ['101.jpg', 'manipuri'], ['288.jpg', 'mohiniyattam'], ['350.jpg', 'sattriya'], ['477.jpg', 'odissi'], ['209.jpg', 'kathakali'], ['176.jpg', 'bharatanatyam'], ['492.jpg', 'odissi'], ['187.jpg', 'kathakali'], ['116.jpg', 'bharatanatyam'], ['87.jpg', 'manipuri'], ['29.jpg', 'kathak'], ['182.jpg', 'kathakali'], ['371.jpg', 'sattriya'], ['83.jpg', 'manipuri'], ['412.jpg', 'kuchipudi'], ['84.jpg', 'manipuri'], ['372.jpg', 'sattriya'], ['486.jpg', 'odissi'], ['115.jpg', 'bharatanatyam'], ['213.jpg', 'kathakali'], ['489.jpg', 'odissi'], ['260.jpg', 'mohiniyattam'], ['151.jpg', 'bharatanatyam'], ['207.jpg', 'kathakali'], ['425.jpg', 'kuchipudi'], ['122.jpg', 'bharatanatyam'], ['65.jpg', 'kathak'], ['133.jpg', 'bharatanatyam'], ['228.jpg', 'kathakali'], ['158.jpg', 'bharatanatyam'], ['516.jpg', 'odissi'], ['136.jpg', 'bharatanatyam'], ['367.jpg', 'sattriya'], ['16.jpg', 'kathak'], ['44.jpg', 'kathak'], ['249.jpg', 'mohiniyattam'], ['443.jpg', 'kuchipudi'], ['364.jpg', 'sattriya'], ['381.jpg', 'kuchipudi'], ['204.jpg', 'kathakali'], ['325.jpg', 'sattriya'], ['165.jpg', 'bharatanatyam'], ['419.jpg', 'kuchipudi'], ['468.jpg', 'odissi'], ['52.jpg', 'kathak'], ['451.jpg', 'odissi'], ['195.jpg', 'kathakali'], ['74.jpg', 'manipuri'], ['211.jpg', 'kathakali'], ['511.jpg', 'odissi'], ['454.jpg', 'odissi'], ['172.jpg', 'bharatanatyam'], ['388.jpg', 'kuchipudi'], ['376.jpg', 'kuchipudi'], ['446.jpg', 'odissi'], ['102.jpg', 'manipuri'], ['282.jpg', 'mohiniyattam'], ['494.jpg', 'odissi'], ['382.jpg', 'kuchipudi'], ['56.jpg', 'kathak'], ['418.jpg', 'kuchipudi'], ['236.jpg', 'kathakali'], ['212.jpg', 'kathakali'], ['163.jpg', 'bharatanatyam']]\n",
      "8\n",
      "                0\n",
      "1                \n",
      "bharatanatyam  36\n",
      "kathak         34\n",
      "kathakali      39\n",
      "kuchipudi      34\n",
      "manipuri       26\n",
      "mohiniyattam   32\n",
      "odissi         39\n",
      "sattriya       33\n",
      "8\n",
      "                0\n",
      "1                \n",
      "bharatanatyam  11\n",
      "kathak         10\n",
      "kathakali       8\n",
      "kuchipudi      12\n",
      "manipuri       10\n",
      "mohiniyattam   18\n",
      "odissi         10\n",
      "sattriya       12\n",
      "Mxnet Version: 1.7.0\n",
      "\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Experiment Details\n",
      "    Project: Dance_Form\n",
      "    Experiment: Model\n",
      "    Dir: /kaggle/working/workspace/Dance_Form/Model/\n",
      "\n",
      "Dataset Details\n",
      "    Train path:     ../input/dform-gold/dataset1/train\n",
      "    Val path:       ../input/dform-gold/dataset1/train\n",
      "    CSV train path: train_slot.csv\n",
      "    CSV val path:   test_slot.csv\n",
      "    Label Type:     single\n",
      "\n",
      "Dataset Params\n",
      "    Input Size:   224\n",
      "    Batch Size:   4\n",
      "    Data Shuffle: True\n",
      "    Processors:   2\n",
      "    Delimiter:   ,\n",
      "\n",
      "Pre-Composed Train Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Pre-Composed Val Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Dataset Numbers\n",
      "    Num train images: 273\n",
      "    Num val images:   91\n",
      "    Num classes:      8\n",
      "\n",
      "Model Params\n",
      "    Model name:           resnet152_v1\n",
      "    Use Gpu:              True\n",
      "    Use pretrained:       True\n",
      "    Freeze base network:  False\n",
      "\n",
      "Model Details\n",
      "    Loading pretrained model\n",
      "    Model Loaded on device\n",
      "        Model name:                           resnet152_v1\n",
      "        Num of potentially trainable layers:  311\n",
      "        Num of actual trainable layers:       311\n",
      "\n",
      "Optimizer\n",
      "    Name:          sgd\n",
      "    Learning rate: 0.01\n",
      "    Params:        {'lr': 0.01, 'momentum': 0, 'weight_decay': 0, 'momentum_dampening_rate': 0, 'clipnorm': 0.0, 'clipvalue': 0.0}\n",
      "\n",
      "\n",
      "\n",
      "Learning rate scheduler\n",
      "    Name:   steplr\n",
      "    Params: {'step_size': 1, 'gamma': 0.98, 'last_epoch': -1}\n",
      "\n",
      "Loss\n",
      "    Name:          softmaxcrossentropy\n",
      "    Params:        {'weight': None, 'batch_axis': 0, 'axis_to_sum_over': -1, 'label_as_categories': True, 'label_smoothing': False}\n",
      "\n",
      "Training params\n",
      "    Num Epochs: 10\n",
      "\n",
      "Display params\n",
      "    Display progress:          True\n",
      "    Display progress realtime: True\n",
      "    Save Training logs:        True\n",
      "    Save Intermediate models:  True\n",
      "    Intermediate model prefix: intermediate_model_\n",
      "\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/opt/conda/lib/python3.7/site-packages/monk/system/imports.py:160: UserWarning: ArgumentWarning: clipnorm and clipvalue are active only for keras in current version of Monk\n",
      "  warnings.warn(msg)\n",
      "/opt/conda/lib/python3.7/site-packages/monk/system/imports.py:160: UserWarning: ArgumentWarning: momentum_dampening_rate is active only for pytorch in current version of Monk\n",
      "  warnings.warn(msg)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Pre-Composed Train Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Pre-Composed Val Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Dataset Numbers\n",
      "    Num train images: 273\n",
      "    Num val images:   91\n",
      "    Num classes:      8\n",
      "\n",
      "Model Details\n",
      "    Loading pretrained model\n",
      "    Model Loaded on device\n",
      "        Model name:                           resnet152_v1\n",
      "        Num of potentially trainable layers:  311\n",
      "        Num of actual trainable layers:       311\n",
      "\n",
      "Training Start\n",
      "    Epoch 1/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "9d23cabef1684d1685ba23f2242a423f",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "6b1aa13119cd46f386861f7b71ee9a35",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.01\n",
      "    [Epoch 1] Train-acc: 0.469, Train-loss: 1.477 | Val-acc: 0.692308, Val-loss: 0.940, | time: 13.9 sec\n",
      "\n",
      "    Epoch 2/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "adf24a48df4c4e2e9aad5de430404a53",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "c44f67464f854fd79544a3c8f1c771ee",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.0098\n",
      "    [Epoch 2] Train-acc: 0.846, Train-loss: 0.542 | Val-acc: 0.736264, Val-loss: 0.782, | time: 15.9 sec\n",
      "\n",
      "    Epoch 3/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "05fdcbfcb59744718751773c725aac9a",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "0c9c76e2abad4ccf96d501c6be65af32",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009604\n",
      "    [Epoch 3] Train-acc: 0.908, Train-loss: 0.297 | Val-acc: 0.714286, Val-loss: 0.875, | time: 11.5 sec\n",
      "\n",
      "    Epoch 4/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "58375b0aaaaf4cc6bee45a3d25b5d05a",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "ccdc3ae43edf4ab68be8e009d19eb568",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009411919999999999\n",
      "    [Epoch 4] Train-acc: 0.974, Train-loss: 0.125 | Val-acc: 0.758242, Val-loss: 0.684, | time: 12.9 sec\n",
      "\n",
      "    Epoch 5/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "9ad4d2fe974e4745b2ad878a6df2ff5b",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "94809180a0c8424aabd5b65be0db827d",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "    curr_lr - 0.009223681599999999\n",
      "    [Epoch 5] Train-acc: 0.982, Train-loss: 0.103 | Val-acc: 0.703297, Val-loss: 0.918, | time: 13.3 sec\n",
      "\n",
      "    Epoch 6/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "948d10b2435f4d2fa7bf12e88e80dd96",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "ba541220f0b24922bd18206ae82e4ab3",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009039207967999998\n",
      "    [Epoch 6] Train-acc: 0.982, Train-loss: 0.108 | Val-acc: 0.725275, Val-loss: 0.918, | time: 12.2 sec\n",
      "\n",
      "    Epoch 7/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "73662a98fb81407ba156b32a8b754a35",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "48a9500ca64e4f59bc32fd9a31687b45",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008858423808639998\n",
      "    [Epoch 7] Train-acc: 0.985, Train-loss: 0.065 | Val-acc: 0.681319, Val-loss: 1.027, | time: 11.7 sec\n",
      "\n",
      "    Epoch 8/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "c3ea4dce652248db86cb5fb0c4a605e2",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "dbc7a854b0634905aacd51a20ea1b847",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008681255332467197\n",
      "    [Epoch 8] Train-acc: 0.996, Train-loss: 0.044 | Val-acc: 0.736264, Val-loss: 1.030, | time: 12.0 sec\n",
      "\n",
      "    Epoch 9/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "1d20b6540e2b45dc844a2144408a9236",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "d4fb8f06f0764df0b3bce3118f4774de",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "    curr_lr - 0.008507630225817853\n",
      "    [Epoch 9] Train-acc: 0.985, Train-loss: 0.054 | Val-acc: 0.703297, Val-loss: 1.230, | time: 12.2 sec\n",
      "\n",
      "    Epoch 10/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "fc7739cf1a64403591657546d8dbbbef",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "8fc882371b8c443fbaa12c2fd35d52bc",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008337477621301496\n",
      "    [Epoch 10] Train-acc: 0.989, Train-loss: 0.052 | Val-acc: 0.791209, Val-loss: 0.736, | time: 15.5 sec\n",
      "\n",
      "    Training completed in: 1m 57s\n",
      "    Best val Acc:          0.791209\n",
      "\n",
      "Training End\n",
      "\n",
      "Training Outputs\n",
      "    Model Dir:   /kaggle/working/workspace/Dance_Form/Model/output/models/\n",
      "    Log Dir:     /kaggle/working/workspace/Dance_Form/Model/output/logs/\n",
      "    Final model: final\n",
      "    Best model:  best_model\n",
      "    Log 1 - Validation accuracy history log: val_acc_history.npy\n",
      "    Log 2 - Validation loss history log:     val_loss_history.npy\n",
      "    Log 3 - Training accuracy history log:   train_acc_history.npy\n",
      "    Log 4 - Training loss history log:       train_loss_history.npy\n",
      "    Log 5 - Training curve:                  train_loss_history.npy\n",
      "    Log 6 - Validation curve:                train_loss_history.npy\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/408.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9827629327774048\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/274.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9998531341552734\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/73.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.7984362840652466\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/315.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9999331831932068\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/379.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.7584385275840759\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/197.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9928545355796814\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/277.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.7732933759689331\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/149.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9893676042556763\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/362.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9957067370414734\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/244.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9998301863670349\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/32.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.7699151039123535\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/361.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9958629608154297\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/455.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9197039008140564\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/472.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.751274585723877\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/31.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.5181170701980591\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/281.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.999665379524231\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/326.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9359049797058105\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/488.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8480603694915771\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/307.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9656341671943665\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/500.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9959550499916077\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/247.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9985895752906799\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/426.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8283767104148865\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/331.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9924342632293701\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/120.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9457413554191589\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/104.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999666213989258\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/60.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9830169081687927\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/415.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9089581966400146\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/142.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9917718768119812\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/296.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999733567237854\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/444.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9827994108200073\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/413.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9997510313987732\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/295.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9984091520309448\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/303.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.999438464641571\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/126.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9953996539115906\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/483.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9763278961181641\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/397.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.5666842460632324\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/279.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9994516968727112\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/359.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9985314607620239\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/370.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.930778443813324\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/242.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9997978210449219\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/214.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998188018798828\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/113.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8205809593200684\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/121.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9977627992630005\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/190.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.3867993652820587\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/261.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9993430972099304\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/478.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9974811673164368\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/327.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.5867598056793213\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/174.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8783972263336182\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/384.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.721649706363678\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/154.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9930988550186157\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/99.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.3191606402397156\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/191.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999599456787109\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/69.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999913573265076\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/276.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9969543218612671\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/263.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9672276377677917\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/481.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.8980191349983215\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/15.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9994242191314697\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/89.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999904632568359\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/251.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.605887770652771\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/383.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9801936149597168\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/420.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.4451759457588196\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/254.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9995937943458557\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/258.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9998779296875\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/243.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998006224632263\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/1.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9978517889976501\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/368.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.4500138461589813\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/387.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8873494267463684\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/76.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.652874231338501\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/422.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.6158135533332825\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/10.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.5152943134307861\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/53.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9999761581420898\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/169.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9951030611991882\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/24.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9793824553489685\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/312.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9988628625869751\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/304.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.8134002089500427\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/493.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9799374938011169\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/342.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9966467618942261\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/106.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9883407354354858\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/77.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9997835159301758\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/509.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9849810004234314\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/143.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9868239164352417\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/70.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999856948852539\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/234.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9987653493881226\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/435.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9612312316894531\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/355.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.38016632199287415\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/4.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.7997527718544006\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/348.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9621951580047607\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/167.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9908624291419983\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/75.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999838471412659\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/62.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.8911661505699158\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/180.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998751282691956\n",
      "\n",
      "{'408.jpg': 'kuchipudi', '274.jpg': 'mohiniyattam', '73.jpg': 'bharatanatyam', '315.jpg': 'sattriya', '379.jpg': 'bharatanatyam', '197.jpg': 'kathakali', '277.jpg': 'odissi', '149.jpg': 'kathak', '362.jpg': 'sattriya', '244.jpg': 'mohiniyattam', '32.jpg': 'kathak', '361.jpg': 'sattriya', '455.jpg': 'odissi', '472.jpg': 'odissi', '31.jpg': 'kathak', '281.jpg': 'mohiniyattam', '326.jpg': 'sattriya', '488.jpg': 'sattriya', '307.jpg': 'mohiniyattam', '500.jpg': 'odissi', '247.jpg': 'mohiniyattam', '426.jpg': 'sattriya', '331.jpg': 'sattriya', '120.jpg': 'kuchipudi', '104.jpg': 'manipuri', '60.jpg': 'kathak', '415.jpg': 'kuchipudi', '142.jpg': 'bharatanatyam', '296.jpg': 'mohiniyattam', '444.jpg': 'odissi', '413.jpg': 'kuchipudi', '295.jpg': 'mohiniyattam', '303.jpg': 'mohiniyattam', '126.jpg': 'bharatanatyam', '483.jpg': 'odissi', '397.jpg': 'kuchipudi', '279.jpg': 'mohiniyattam', '359.jpg': 'sattriya', '370.jpg': 'kathak', '242.jpg': 'kathakali', '214.jpg': 'kathakali', '113.jpg': 'kuchipudi', '121.jpg': 'bharatanatyam', '190.jpg': 'kathakali', '261.jpg': 'mohiniyattam', '478.jpg': 'odissi', '327.jpg': 'sattriya', '174.jpg': 'kathak', '384.jpg': 'kuchipudi', '154.jpg': 'bharatanatyam', '99.jpg': 'kuchipudi', '191.jpg': 'kathakali', '69.jpg': 'manipuri', '276.jpg': 'mohiniyattam', '263.jpg': 'kuchipudi', '481.jpg': 'odissi', '15.jpg': 'kathak', '89.jpg': 'manipuri', '251.jpg': 'sattriya', '383.jpg': 'kathak', '420.jpg': 'kuchipudi', '254.jpg': 'mohiniyattam', '258.jpg': 'mohiniyattam', '243.jpg': 'kathakali', '1.jpg': 'kathak', '368.jpg': 'kathak', '387.jpg': 'kathak', '76.jpg': 'kuchipudi', '422.jpg': 'kathak', '10.jpg': 'kathak', '53.jpg': 'kathak', '169.jpg': 'bharatanatyam', '24.jpg': 'kathak', '312.jpg': 'mohiniyattam', '304.jpg': 'mohiniyattam', '493.jpg': 'odissi', '342.jpg': 'sattriya', '106.jpg': 'manipuri', '77.jpg': 'manipuri', '509.jpg': 'odissi', '143.jpg': 'bharatanatyam', '70.jpg': 'manipuri', '234.jpg': 'kathakali', '435.jpg': 'bharatanatyam', '355.jpg': 'odissi', '4.jpg': 'kathak', '348.jpg': 'sattriya', '167.jpg': 'kathak', '75.jpg': 'manipuri', '62.jpg': 'bharatanatyam', '180.jpg': 'kathakali'}\n",
      "predictions\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "[['408.jpg', 'kuchipudi'], ['274.jpg', 'mohiniyattam'], ['73.jpg', 'bharatanatyam'], ['315.jpg', 'sattriya'], ['379.jpg', 'bharatanatyam'], ['197.jpg', 'kathakali'], ['277.jpg', 'odissi'], ['149.jpg', 'kathak'], ['362.jpg', 'sattriya'], ['244.jpg', 'mohiniyattam'], ['32.jpg', 'kathak'], ['361.jpg', 'sattriya'], ['455.jpg', 'odissi'], ['472.jpg', 'odissi'], ['31.jpg', 'kathak'], ['281.jpg', 'mohiniyattam'], ['326.jpg', 'sattriya'], ['488.jpg', 'sattriya'], ['307.jpg', 'mohiniyattam'], ['500.jpg', 'odissi'], ['247.jpg', 'mohiniyattam'], ['426.jpg', 'sattriya'], ['331.jpg', 'sattriya'], ['120.jpg', 'kuchipudi'], ['104.jpg', 'manipuri'], ['60.jpg', 'kathak'], ['415.jpg', 'kuchipudi'], ['142.jpg', 'bharatanatyam'], ['296.jpg', 'mohiniyattam'], ['444.jpg', 'odissi'], ['413.jpg', 'kuchipudi'], ['295.jpg', 'mohiniyattam'], ['303.jpg', 'mohiniyattam'], ['126.jpg', 'bharatanatyam'], ['483.jpg', 'odissi'], ['397.jpg', 'kuchipudi'], ['279.jpg', 'mohiniyattam'], ['359.jpg', 'sattriya'], ['370.jpg', 'kathak'], ['242.jpg', 'kathakali'], ['214.jpg', 'kathakali'], ['113.jpg', 'kuchipudi'], ['121.jpg', 'bharatanatyam'], ['190.jpg', 'kathakali'], ['261.jpg', 'mohiniyattam'], ['478.jpg', 'odissi'], ['327.jpg', 'sattriya'], ['174.jpg', 'kathak'], ['384.jpg', 'kuchipudi'], ['154.jpg', 'bharatanatyam'], ['99.jpg', 'kuchipudi'], ['191.jpg', 'kathakali'], ['69.jpg', 'manipuri'], ['276.jpg', 'mohiniyattam'], ['263.jpg', 'kuchipudi'], ['481.jpg', 'odissi'], ['15.jpg', 'kathak'], ['89.jpg', 'manipuri'], ['251.jpg', 'sattriya'], ['383.jpg', 'kathak'], ['420.jpg', 'kuchipudi'], ['254.jpg', 'mohiniyattam'], ['258.jpg', 'mohiniyattam'], ['243.jpg', 'kathakali'], ['1.jpg', 'kathak'], ['368.jpg', 'kathak'], ['387.jpg', 'kathak'], ['76.jpg', 'kuchipudi'], ['422.jpg', 'kathak'], ['10.jpg', 'kathak'], ['53.jpg', 'kathak'], ['169.jpg', 'bharatanatyam'], ['24.jpg', 'kathak'], ['312.jpg', 'mohiniyattam'], ['304.jpg', 'mohiniyattam'], ['493.jpg', 'odissi'], ['342.jpg', 'sattriya'], ['106.jpg', 'manipuri'], ['77.jpg', 'manipuri'], ['509.jpg', 'odissi'], ['143.jpg', 'bharatanatyam'], ['70.jpg', 'manipuri'], ['234.jpg', 'kathakali'], ['435.jpg', 'bharatanatyam'], ['355.jpg', 'odissi'], ['4.jpg', 'kathak'], ['348.jpg', 'sattriya'], ['167.jpg', 'kathak'], ['75.jpg', 'manipuri'], ['62.jpg', 'bharatanatyam'], ['180.jpg', 'kathakali']]\n"
     ]
    },
    {
     "data": {
      "image/png": "[encoded data, 9140 characters]\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "EDA: Class imbalance\n",
      "    1. Class: bharatanatyam, Number: 47\n",
      "    2. Class: kathak, Number: 44\n",
      "    3. Class: kathakali, Number: 47\n",
      "    4. Class: kuchipudi, Number: 46\n",
      "    5. Class: manipuri, Number: 36\n",
      "    6. Class: mohiniyattam, Number: 50\n",
      "    7. Class: odissi, Number: 49\n",
      "    8. Class: sattriya, Number: 45\n",
      "\n",
      "correct 69 #images 91.0\n",
      "accuracy for 0 th iteration: 0.7582417582417582\n",
      "8\n",
      "                0\n",
      "1                \n",
      "bharatanatyam  34\n",
      "kathak         34\n",
      "kathakali      35\n",
      "kuchipudi      33\n",
      "manipuri       25\n",
      "mohiniyattam   39\n",
      "odissi         38\n",
      "sattriya       35\n",
      "8\n",
      "                0\n",
      "1                \n",
      "bharatanatyam  13\n",
      "kathak         10\n",
      "kathakali      12\n",
      "kuchipudi      13\n",
      "manipuri       11\n",
      "mohiniyattam   11\n",
      "odissi         11\n",
      "sattriya       10\n",
      "Mxnet Version: 1.7.0\n",
      "\n",
      "Experiment Details\n",
      "    Project: Dance_Form\n",
      "    Experiment: Model\n",
      "    Dir: /kaggle/working/workspace/Dance_Form/Model/\n",
      "\n",
      "Dataset Details\n",
      "    Train path:     ../input/dform-gold/dataset1/train\n",
      "    Val path:       ../input/dform-gold/dataset1/train\n",
      "    CSV train path: train_slot.csv\n",
      "    CSV val path:   test_slot.csv\n",
      "    Label Type:     single\n",
      "\n",
      "Dataset Params\n",
      "    Input Size:   224\n",
      "    Batch Size:   4\n",
      "    Data Shuffle: True\n",
      "    Processors:   2\n",
      "    Delimiter:   ,\n",
      "\n",
      "Pre-Composed Train Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Pre-Composed Val Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Dataset Numbers\n",
      "    Num train images: 273\n",
      "    Num val images:   91\n",
      "    Num classes:      8\n",
      "\n",
      "Model Params\n",
      "    Model name:           resnet152_v1\n",
      "    Use Gpu:              True\n",
      "    Use pretrained:       True\n",
      "    Freeze base network:  False\n",
      "\n",
      "Model Details\n",
      "    Loading pretrained model\n",
      "    Model Loaded on device\n",
      "        Model name:                           resnet152_v1\n",
      "        Num of potentially trainable layers:  311\n",
      "        Num of actual trainable layers:       311\n",
      "\n",
      "Optimizer\n",
      "    Name:          sgd\n",
      "    Learning rate: 0.01\n",
      "    Params:        {'lr': 0.01, 'momentum': 0, 'weight_decay': 0, 'momentum_dampening_rate': 0, 'clipnorm': 0.0, 'clipvalue': 0.0}\n",
      "\n",
      "\n",
      "\n",
      "Learning rate scheduler\n",
      "    Name:   steplr\n",
      "    Params: {'step_size': 1, 'gamma': 0.98, 'last_epoch': -1}\n",
      "\n",
      "Loss\n",
      "    Name:          softmaxcrossentropy\n",
      "    Params:        {'weight': None, 'batch_axis': 0, 'axis_to_sum_over': -1, 'label_as_categories': True, 'label_smoothing': False}\n",
      "\n",
      "Training params\n",
      "    Num Epochs: 10\n",
      "\n",
      "Display params\n",
      "    Display progress:          True\n",
      "    Display progress realtime: True\n",
      "    Save Training logs:        True\n",
      "    Save Intermediate models:  True\n",
      "    Intermediate model prefix: intermediate_model_\n",
      "\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/opt/conda/lib/python3.7/site-packages/monk/system/imports.py:160: UserWarning: ArgumentWarning: clipnorm and clipvalue are active only for keras in current version of Monk\n",
      "  warnings.warn(msg)\n",
      "/opt/conda/lib/python3.7/site-packages/monk/system/imports.py:160: UserWarning: ArgumentWarning: momentum_dampening_rate is active only for pytorch in current version of Monk\n",
      "  warnings.warn(msg)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Pre-Composed Train Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Pre-Composed Val Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Dataset Numbers\n",
      "    Num train images: 273\n",
      "    Num val images:   91\n",
      "    Num classes:      8\n",
      "\n",
      "Model Details\n",
      "    Loading pretrained model\n",
      "    Model Loaded on device\n",
      "        Model name:                           resnet152_v1\n",
      "        Num of potentially trainable layers:  311\n",
      "        Num of actual trainable layers:       311\n",
      "\n",
      "Training Start\n",
      "    Epoch 1/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "a30a21cdc98140038b99356c8c237637",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "80651bcb16054be790996c12bb7c74f6",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.01\n",
      "    [Epoch 1] Train-acc: 0.505, Train-loss: 1.373 | Val-acc: 0.604396, Val-loss: 1.046, | time: 12.7 sec\n",
      "\n",
      "    Epoch 2/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "85581b9a580443ca8c134a179051671d",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "62abaf73bcf749b8a53c5222845f50cd",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "    curr_lr - 0.0098\n",
      "    [Epoch 2] Train-acc: 0.832, Train-loss: 0.539 | Val-acc: 0.681319, Val-loss: 0.908, | time: 14.4 sec\n",
      "\n",
      "    Epoch 3/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "2b772dbd00dc481fa0edc94b99d5eac4",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "e447796f2c6f4c139f07bfe86c37db91",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009604\n",
      "    [Epoch 3] Train-acc: 0.934, Train-loss: 0.290 | Val-acc: 0.725275, Val-loss: 0.861, | time: 14.1 sec\n",
      "\n",
      "    Epoch 4/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "570b6e3062d94e6ea721194783ad7c68",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "3cd479e7eb72484e98911bd005dc020f",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "    curr_lr - 0.009411919999999999\n",
      "    [Epoch 4] Train-acc: 0.934, Train-loss: 0.231 | Val-acc: 0.747253, Val-loss: 0.786, | time: 12.4 sec\n",
      "\n",
      "    Epoch 5/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "41f3d5dbf86645b18e7d972b09f27d7d",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "c7959c1a50fc4754a2f00b8598947b6c",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "    curr_lr - 0.009223681599999999\n",
      "    [Epoch 5] Train-acc: 0.971, Train-loss: 0.134 | Val-acc: 0.769231, Val-loss: 0.730, | time: 13.3 sec\n",
      "\n",
      "    Epoch 6/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "049f27e815404cbbb4d5fce817746353",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "fea085cf39864c74b9e18963b76655df",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "    curr_lr - 0.009039207967999998\n",
      "    [Epoch 6] Train-acc: 0.967, Train-loss: 0.118 | Val-acc: 0.725275, Val-loss: 0.772, | time: 12.5 sec\n",
      "\n",
      "    Epoch 7/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "acb84ec27ef64bb2a10adc3c565e22bb",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "ad628efa22cb49ef9bef99f8c681ef65",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008858423808639998\n",
      "    [Epoch 7] Train-acc: 0.996, Train-loss: 0.048 | Val-acc: 0.692308, Val-loss: 0.818, | time: 11.9 sec\n",
      "\n",
      "    Epoch 8/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "20862c424c22471abd8e5f79c0b757a3",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "8de07f1f8a264d38bc1574f4872d69df",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "    curr_lr - 0.008681255332467197\n",
      "    [Epoch 8] Train-acc: 0.996, Train-loss: 0.037 | Val-acc: 0.813187, Val-loss: 0.624, | time: 13.9 sec\n",
      "\n",
      "    Epoch 9/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "f9e6ae3547ad4f61a302fb65797d1e8a",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "369a7be211624f19b66063152c15957f",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008507630225817853\n",
      "    [Epoch 9] Train-acc: 0.993, Train-loss: 0.062 | Val-acc: 0.802198, Val-loss: 0.671, | time: 11.9 sec\n",
      "\n",
      "    Epoch 10/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "a6177622337344e495d666e9d007d4cd",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "4297347e815b4e5bb6ccd8c363f2776e",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008337477621301496\n",
      "    [Epoch 10] Train-acc: 0.996, Train-loss: 0.038 | Val-acc: 0.835165, Val-loss: 0.519, | time: 12.8 sec\n",
      "\n",
      "    Training completed in: 1m 57s\n",
      "    Best val Acc:          0.835165\n",
      "\n",
      "Training End\n",
      "\n",
      "Training Outputs\n",
      "    Model Dir:   /kaggle/working/workspace/Dance_Form/Model/output/models/\n",
      "    Log Dir:     /kaggle/working/workspace/Dance_Form/Model/output/logs/\n",
      "    Final model: final\n",
      "    Best model:  best_model\n",
      "    Log 1 - Validation accuracy history log: val_acc_history.npy\n",
      "    Log 2 - Validation loss history log:     val_loss_history.npy\n",
      "    Log 3 - Training accuracy history log:   train_acc_history.npy\n",
      "    Log 4 - Training loss history log:       train_loss_history.npy\n",
      "    Log 5 - Training curve:                  train_loss_history.npy\n",
      "    Log 6 - Validation curve:                train_loss_history.npy\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/199.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999131560325623\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/519.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9808447957038879\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/8.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9997339248657227\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/185.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998835921287537\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/309.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.996361255645752\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/305.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999865889549255\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/88.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999752044677734\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/337.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9961303472518921\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/433.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.4141768217086792\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/82.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.999995231628418\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/428.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.986714243888855\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/268.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9997491836547852\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/159.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8188718557357788\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/51.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9999590516090393\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/395.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9791910648345947\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/166.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9975711107254028\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/93.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.6204642653465271\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/235.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9997044205665588\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/227.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999342560768127\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/459.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.5990387797355652\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/85.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      1.0\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/103.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999990463256836\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/43.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9198170900344849\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/131.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.990971028804779\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/223.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999027252197266\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/436.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8435999751091003\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/345.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.5595546960830688\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/389.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.7916454672813416\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/322.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9999265670776367\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/225.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9996519684791565\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/257.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999256134033203\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/427.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8984096646308899\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/107.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.4186514616012573\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/432.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9172604084014893\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/341.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9999226927757263\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/328.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.6381651759147644\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/90.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.999998152256012\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/184.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9990572333335876\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/259.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9996519684791565\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/445.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9983344078063965\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/491.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9956051111221313\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/94.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999875426292419\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/177.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9976058006286621\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/333.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.30796676874160767\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/137.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.44990602135658264\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/179.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9992139935493469\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/272.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999656677246094\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/406.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.2894425690174103\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/54.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9998798966407776\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/49.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.7372620105743408\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/78.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999933838844299\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/127.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.4995337724685669\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/399.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9901846051216125\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/339.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9983657598495483\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/2.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9871344566345215\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/140.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9843322038650513\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/21.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9548484683036804\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/164.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9988105893135071\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/219.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999627470970154\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/442.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.8927483558654785\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/105.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9998273849487305\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/168.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9803235530853271\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/294.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999408721923828\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/391.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.6285624504089355\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/135.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9765080809593201\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/18.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9996080994606018\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/68.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999533295631409\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/466.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.994663655757904\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/503.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9994955658912659\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/221.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999638199806213\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/490.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9971644282341003\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/230.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9997387528419495\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/450.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9999865889549255\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/321.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9829602241516113\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/273.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.5688149333000183\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/233.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999474883079529\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/480.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9961987733840942\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/153.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.7831683158874512\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/262.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9998349547386169\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/400.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.48251965641975403\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/393.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9171655774116516\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/462.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9051632881164551\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/5.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9954503178596497\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/353.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8620313405990601\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/248.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999933838844299\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/452.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9995985627174377\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/19.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9998435974121094\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/139.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.6325473785400391\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/253.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9998169541358948\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/118.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.6744745969772339\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/369.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9869669079780579\n",
      "\n",
      "{'199.jpg': 'kathakali', '519.jpg': 'odissi', '8.jpg': 'kathak', '185.jpg': 'kathakali', '309.jpg': 'mohiniyattam', '305.jpg': 'mohiniyattam', '88.jpg': 'manipuri', '337.jpg': 'sattriya', '433.jpg': 'kuchipudi', '82.jpg': 'manipuri', '428.jpg': 'kuchipudi', '268.jpg': 'mohiniyattam', '159.jpg': 'kuchipudi', '51.jpg': 'kathak', '395.jpg': 'kuchipudi', '166.jpg': 'bharatanatyam', '93.jpg': 'manipuri', '235.jpg': 'kathakali', '227.jpg': 'kathakali', '459.jpg': 'bharatanatyam', '85.jpg': 'manipuri', '103.jpg': 'manipuri', '43.jpg': 'kathak', '131.jpg': 'bharatanatyam', '223.jpg': 'kathakali', '436.jpg': 'kuchipudi', '345.jpg': 'sattriya', '389.jpg': 'odissi', '322.jpg': 'sattriya', '225.jpg': 'kathakali', '257.jpg': 'mohiniyattam', '427.jpg': 'kuchipudi', '107.jpg': 'odissi', '432.jpg': 'kuchipudi', '341.jpg': 'sattriya', '328.jpg': 'manipuri', '90.jpg': 'manipuri', '184.jpg': 'kathakali', '259.jpg': 'mohiniyattam', '445.jpg': 'odissi', '491.jpg': 'odissi', '94.jpg': 'manipuri', '177.jpg': 'bharatanatyam', '333.jpg': 'bharatanatyam', '137.jpg': 'kuchipudi', '179.jpg': 'kathakali', '272.jpg': 'mohiniyattam', '406.jpg': 'kuchipudi', '54.jpg': 'kathak', '49.jpg': 'bharatanatyam', '78.jpg': 'manipuri', '127.jpg': 'kuchipudi', '399.jpg': 'kathak', '339.jpg': 'sattriya', '2.jpg': 'kathak', '140.jpg': 'bharatanatyam', '21.jpg': 'kathak', '164.jpg': 'bharatanatyam', '219.jpg': 'kathakali', '442.jpg': 'odissi', '105.jpg': 'manipuri', '168.jpg': 'kuchipudi', '294.jpg': 'mohiniyattam', '391.jpg': 'kuchipudi', '135.jpg': 'kathak', '18.jpg': 'kathak', '68.jpg': 'manipuri', '466.jpg': 'odissi', '503.jpg': 'odissi', '221.jpg': 'kathakali', '490.jpg': 'odissi', '230.jpg': 'kathakali', '450.jpg': 'odissi', '321.jpg': 'sattriya', '273.jpg': 'mohiniyattam', '233.jpg': 'kathakali', '480.jpg': 'odissi', '153.jpg': 'bharatanatyam', '262.jpg': 'mohiniyattam', '400.jpg': 'kuchipudi', '393.jpg': 'bharatanatyam', '462.jpg': 'odissi', '5.jpg': 'kathak', '353.jpg': 'sattriya', '248.jpg': 'mohiniyattam', '452.jpg': 'odissi', '19.jpg': 'kathak', '139.jpg': 'kuchipudi', '253.jpg': 'mohiniyattam', '118.jpg': 'bharatanatyam', '369.jpg': 'sattriya'}\n",
      "predictions\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "[['199.jpg', 'kathakali'], ['519.jpg', 'odissi'], ['8.jpg', 'kathak'], ['185.jpg', 'kathakali'], ['309.jpg', 'mohiniyattam'], ['305.jpg', 'mohiniyattam'], ['88.jpg', 'manipuri'], ['337.jpg', 'sattriya'], ['433.jpg', 'kuchipudi'], ['82.jpg', 'manipuri'], ['428.jpg', 'kuchipudi'], ['268.jpg', 'mohiniyattam'], ['159.jpg', 'kuchipudi'], ['51.jpg', 'kathak'], ['395.jpg', 'kuchipudi'], ['166.jpg', 'bharatanatyam'], ['93.jpg', 'manipuri'], ['235.jpg', 'kathakali'], ['227.jpg', 'kathakali'], ['459.jpg', 'bharatanatyam'], ['85.jpg', 'manipuri'], ['103.jpg', 'manipuri'], ['43.jpg', 'kathak'], ['131.jpg', 'bharatanatyam'], ['223.jpg', 'kathakali'], ['436.jpg', 'kuchipudi'], ['345.jpg', 'sattriya'], ['389.jpg', 'odissi'], ['322.jpg', 'sattriya'], ['225.jpg', 'kathakali'], ['257.jpg', 'mohiniyattam'], ['427.jpg', 'kuchipudi'], ['107.jpg', 'odissi'], ['432.jpg', 'kuchipudi'], ['341.jpg', 'sattriya'], ['328.jpg', 'manipuri'], ['90.jpg', 'manipuri'], ['184.jpg', 'kathakali'], ['259.jpg', 'mohiniyattam'], ['445.jpg', 'odissi'], ['491.jpg', 'odissi'], ['94.jpg', 'manipuri'], ['177.jpg', 'bharatanatyam'], ['333.jpg', 'bharatanatyam'], ['137.jpg', 'kuchipudi'], ['179.jpg', 'kathakali'], ['272.jpg', 'mohiniyattam'], ['406.jpg', 'kuchipudi'], ['54.jpg', 'kathak'], ['49.jpg', 'bharatanatyam'], ['78.jpg', 'manipuri'], ['127.jpg', 'kuchipudi'], ['399.jpg', 'kathak'], ['339.jpg', 'sattriya'], ['2.jpg', 'kathak'], ['140.jpg', 'bharatanatyam'], ['21.jpg', 'kathak'], ['164.jpg', 'bharatanatyam'], ['219.jpg', 'kathakali'], ['442.jpg', 'odissi'], ['105.jpg', 'manipuri'], ['168.jpg', 'kuchipudi'], ['294.jpg', 'mohiniyattam'], ['391.jpg', 'kuchipudi'], ['135.jpg', 'kathak'], ['18.jpg', 'kathak'], ['68.jpg', 'manipuri'], ['466.jpg', 'odissi'], ['503.jpg', 'odissi'], ['221.jpg', 'kathakali'], ['490.jpg', 'odissi'], ['230.jpg', 'kathakali'], ['450.jpg', 'odissi'], ['321.jpg', 'sattriya'], ['273.jpg', 'mohiniyattam'], ['233.jpg', 'kathakali'], ['480.jpg', 'odissi'], ['153.jpg', 'bharatanatyam'], ['262.jpg', 'mohiniyattam'], ['400.jpg', 'kuchipudi'], ['393.jpg', 'bharatanatyam'], ['462.jpg', 'odissi'], ['5.jpg', 'kathak'], ['353.jpg', 'sattriya'], ['248.jpg', 'mohiniyattam'], ['452.jpg', 'odissi'], ['19.jpg', 'kathak'], ['139.jpg', 'kuchipudi'], ['253.jpg', 'mohiniyattam'], ['118.jpg', 'bharatanatyam'], ['369.jpg', 'sattriya']]\n"
     ]
    },
    {
     "data": {
      "image/png": "[encoded data, 9140 characters]\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "EDA: Class imbalance\n",
      "    1. Class: bharatanatyam, Number: 47\n",
      "    2. Class: kathak, Number: 44\n",
      "    3. Class: kathakali, Number: 47\n",
      "    4. Class: kuchipudi, Number: 46\n",
      "    5. Class: manipuri, Number: 36\n",
      "    6. Class: mohiniyattam, Number: 50\n",
      "    7. Class: odissi, Number: 49\n",
      "    8. Class: sattriya, Number: 45\n",
      "\n",
      "correct 76 #images 91.0\n",
      "accuracy for 1 th iteration: 0.8351648351648352\n",
      "8\n",
      "                0\n",
      "1                \n",
      "bharatanatyam  38\n",
      "kathak         30\n",
      "kathakali      34\n",
      "kuchipudi      36\n",
      "manipuri       28\n",
      "mohiniyattam   35\n",
      "odissi         41\n",
      "sattriya       31\n",
      "8\n",
      "                0\n",
      "1                \n",
      "bharatanatyam   9\n",
      "kathak         14\n",
      "kathakali      13\n",
      "kuchipudi      10\n",
      "manipuri        8\n",
      "mohiniyattam   15\n",
      "odissi          8\n",
      "sattriya       14\n",
      "Mxnet Version: 1.7.0\n",
      "\n",
      "Experiment Details\n",
      "    Project: Dance_Form\n",
      "    Experiment: Model\n",
      "    Dir: /kaggle/working/workspace/Dance_Form/Model/\n",
      "\n",
      "Dataset Details\n",
      "    Train path:     ../input/dform-gold/dataset1/train\n",
      "    Val path:       ../input/dform-gold/dataset1/train\n",
      "    CSV train path: train_slot.csv\n",
      "    CSV val path:   test_slot.csv\n",
      "    Label Type:     single\n",
      "\n",
      "Dataset Params\n",
      "    Input Size:   224\n",
      "    Batch Size:   4\n",
      "    Data Shuffle: True\n",
      "    Processors:   2\n",
      "    Delimiter:   ,\n",
      "\n",
      "Pre-Composed Train Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Pre-Composed Val Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Dataset Numbers\n",
      "    Num train images: 273\n",
      "    Num val images:   91\n",
      "    Num classes:      8\n",
      "\n",
      "Model Params\n",
      "    Model name:           resnet152_v1\n",
      "    Use Gpu:              True\n",
      "    Use pretrained:       True\n",
      "    Freeze base network:  False\n",
      "\n",
      "Model Details\n",
      "    Loading pretrained model\n",
      "    Model Loaded on device\n",
      "        Model name:                           resnet152_v1\n",
      "        Num of potentially trainable layers:  311\n",
      "        Num of actual trainable layers:       311\n",
      "\n",
      "Optimizer\n",
      "    Name:          sgd\n",
      "    Learning rate: 0.01\n",
      "    Params:        {'lr': 0.01, 'momentum': 0, 'weight_decay': 0, 'momentum_dampening_rate': 0, 'clipnorm': 0.0, 'clipvalue': 0.0}\n",
      "\n",
      "\n",
      "\n",
      "Learning rate scheduler\n",
      "    Name:   steplr\n",
      "    Params: {'step_size': 1, 'gamma': 0.98, 'last_epoch': -1}\n",
      "\n",
      "Loss\n",
      "    Name:          softmaxcrossentropy\n",
      "    Params:        {'weight': None, 'batch_axis': 0, 'axis_to_sum_over': -1, 'label_as_categories': True, 'label_smoothing': False}\n",
      "\n",
      "Training params\n",
      "    Num Epochs: 10\n",
      "\n",
      "Display params\n",
      "    Display progress:          True\n",
      "    Display progress realtime: True\n",
      "    Save Training logs:        True\n",
      "    Save Intermediate models:  True\n",
      "    Intermediate model prefix: intermediate_model_\n",
      "\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/opt/conda/lib/python3.7/site-packages/monk/system/imports.py:160: UserWarning: ArgumentWarning: clipnorm and clipvalue are active only for keras in current version of Monk\n",
      "  warnings.warn(msg)\n",
      "/opt/conda/lib/python3.7/site-packages/monk/system/imports.py:160: UserWarning: ArgumentWarning: momentum_dampening_rate is active only for pytorch in current version of Monk\n",
      "  warnings.warn(msg)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Pre-Composed Train Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Pre-Composed Val Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Dataset Numbers\n",
      "    Num train images: 273\n",
      "    Num val images:   91\n",
      "    Num classes:      8\n",
      "\n",
      "Model Details\n",
      "    Loading pretrained model\n",
      "    Model Loaded on device\n",
      "        Model name:                           resnet152_v1\n",
      "        Num of potentially trainable layers:  311\n",
      "        Num of actual trainable layers:       311\n",
      "\n",
      "Training Start\n",
      "    Epoch 1/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "4d08ab53211b4f4c82dca0785573a254",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "0138838185434ab483a02fa59b86d909",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.01\n",
      "    [Epoch 1] Train-acc: 0.469, Train-loss: 1.474 | Val-acc: 0.593407, Val-loss: 1.185, | time: 13.0 sec\n",
      "\n",
      "    Epoch 2/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "e5831eb14a6440b5a3a092da33f00f7e",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "caca50255edf4150a47864c05b9ef7e3",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.0098\n",
      "    [Epoch 2] Train-acc: 0.832, Train-loss: 0.518 | Val-acc: 0.703297, Val-loss: 0.984, | time: 16.2 sec\n",
      "\n",
      "    Epoch 3/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "2a491925e18f4c54888e0d408bd0a5bd",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "489c42d31c52422c99c910c2a0e0b344",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009604\n",
      "    [Epoch 3] Train-acc: 0.912, Train-loss: 0.294 | Val-acc: 0.681319, Val-loss: 0.908, | time: 11.7 sec\n",
      "\n",
      "    Epoch 4/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "e9e977d0d01348a199c84a62852bb7d0",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "1459df45c6794758ac682e8d115e5124",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009411919999999999\n",
      "    [Epoch 4] Train-acc: 0.956, Train-loss: 0.193 | Val-acc: 0.681319, Val-loss: 0.890, | time: 11.6 sec\n",
      "\n",
      "    Epoch 5/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "2a32e2720a6d49ad8cc382626f510d61",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "b343cc0183fd44828485d4e7651fa423",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "    curr_lr - 0.009223681599999999\n",
      "    [Epoch 5] Train-acc: 0.974, Train-loss: 0.132 | Val-acc: 0.736264, Val-loss: 0.911, | time: 13.5 sec\n",
      "\n",
      "    Epoch 6/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "deaa1f18e5144969b0380a6b0c189d4a",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "28294a532ac7408f93c72ebc15b67983",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009039207967999998\n",
      "    [Epoch 6] Train-acc: 0.982, Train-loss: 0.103 | Val-acc: 0.714286, Val-loss: 0.787, | time: 12.9 sec\n",
      "\n",
      "    Epoch 7/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "1d0e8c769ade49b892a6172f26123570",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "db04d90c29d145a4ae149df84e6853ef",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008858423808639998\n",
      "    [Epoch 7] Train-acc: 0.989, Train-loss: 0.058 | Val-acc: 0.725275, Val-loss: 0.792, | time: 13.7 sec\n",
      "\n",
      "    Epoch 8/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "e734c3e7dff4492387d95bada140eed5",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "2dc26a4abb934a9c9f4b589ed0b2ba7f",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008681255332467197\n",
      "    [Epoch 8] Train-acc: 0.978, Train-loss: 0.082 | Val-acc: 0.769231, Val-loss: 0.797, | time: 15.0 sec\n",
      "\n",
      "    Epoch 9/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "d227a8cab8a94ecc8a906e34fb010fb5",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "d77ed19288624c0fa811261515df7c0c",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008507630225817853\n",
      "    [Epoch 9] Train-acc: 0.982, Train-loss: 0.060 | Val-acc: 0.758242, Val-loss: 0.959, | time: 11.8 sec\n",
      "\n",
      "    Epoch 10/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "a8b398604dcf4be7b5ce1df55e2fa19f",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "d6248e828cb547408311e70feb1c2c5d",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008337477621301496\n",
      "    [Epoch 10] Train-acc: 0.985, Train-loss: 0.071 | Val-acc: 0.714286, Val-loss: 0.863, | time: 12.6 sec\n",
      "\n",
      "    Training completed in: 2m 1s\n",
      "    Best val Acc:          0.769231\n",
      "\n",
      "Training End\n",
      "\n",
      "Training Outputs\n",
      "    Model Dir:   /kaggle/working/workspace/Dance_Form/Model/output/models/\n",
      "    Log Dir:     /kaggle/working/workspace/Dance_Form/Model/output/logs/\n",
      "    Final model: final\n",
      "    Best model:  best_model\n",
      "    Log 1 - Validation accuracy history log: val_acc_history.npy\n",
      "    Log 2 - Validation loss history log:     val_loss_history.npy\n",
      "    Log 3 - Training accuracy history log:   train_acc_history.npy\n",
      "    Log 4 - Training loss history log:       train_loss_history.npy\n",
      "    Log 5 - Training curve:                  train_loss_history.npy\n",
      "    Log 6 - Validation curve:                train_loss_history.npy\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/201.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9855546951293945\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/469.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9675343632698059\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/123.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9975806474685669\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/203.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.998904824256897\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/42.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9024029970169067\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/161.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9997034668922424\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/404.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9492673277854919\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/155.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9885255098342896\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/186.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9852069616317749\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/335.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8018038272857666\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/338.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.4829895496368408\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/218.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9570249915122986\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/27.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9960302114486694\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/46.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.6922929286956787\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/515.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9999474883079529\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/265.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9992850422859192\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/58.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9496973156929016\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/252.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.43095070123672485\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/407.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.6957712769508362\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/287.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9983782172203064\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/464.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8803198337554932\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/351.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.45540010929107666\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/365.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.33915334939956665\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/130.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.8573915958404541\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/329.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.8019620180130005\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/231.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9992926120758057\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/36.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.6619192361831665\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/111.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999342560768127\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/96.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8608065247535706\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/250.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9821617603302002\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/320.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9883209466934204\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/502.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9928057789802551\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/50.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9998931288719177\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/405.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.7467177510261536\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/402.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9532602429389954\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/63.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.7035050392150879\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/512.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.958518385887146\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/47.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9532366991043091\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/7.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9441283345222473\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/229.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9996986985206604\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/81.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.999665379524231\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/357.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.48025190830230713\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/300.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.999342143535614\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/241.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999761581420898\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/12.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9917894601821899\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/344.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9694772362709045\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/352.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.5436274409294128\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/396.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9860417246818542\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/26.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.789775550365448\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/403.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.49616044759750366\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/313.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9822226762771606\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/267.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9995785355567932\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/117.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.5599483251571655\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/79.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9964186549186707\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/160.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9069633483886719\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/377.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.45044806599617004\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/434.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.3797066807746887\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/299.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.998972475528717\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/289.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.5274094939231873\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/245.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9976047873497009\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/72.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.42317211627960205\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/3.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9735687971115112\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/124.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.4384108781814575\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/334.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9994612336158752\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/205.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9964680671691895\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/310.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9894228577613831\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/237.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9971796274185181\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/314.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9683522582054138\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/240.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9853619933128357\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/98.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999351501464844\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/266.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.4323309361934662\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/181.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9992744326591492\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/30.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.5996235609054565\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/343.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.7204069495201111\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/298.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.996963381767273\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/311.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9995680451393127\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/449.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9986600279808044\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/476.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9989124536514282\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/308.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9996253252029419\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/501.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9996644258499146\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/148.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.999760627746582\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/409.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.994186282157898\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/208.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9933384656906128\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/134.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.5156350135803223\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/423.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.8445611000061035\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/66.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9985480904579163\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/109.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8924206495285034\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/91.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9908420443534851\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/178.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9961987733840942\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/319.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.8210124373435974\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/293.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9955243468284607\n",
      "\n",
      "{'201.jpg': 'kathakali', '469.jpg': 'odissi', '123.jpg': 'bharatanatyam', '203.jpg': 'kathakali', '42.jpg': 'kathak', '161.jpg': 'bharatanatyam', '404.jpg': 'kuchipudi', '155.jpg': 'bharatanatyam', '186.jpg': 'kathakali', '335.jpg': 'sattriya', '338.jpg': 'mohiniyattam', '218.jpg': 'kathakali', '27.jpg': 'kathak', '46.jpg': 'kathak', '515.jpg': 'odissi', '265.jpg': 'mohiniyattam', '58.jpg': 'sattriya', '252.jpg': 'mohiniyattam', '407.jpg': 'kuchipudi', '287.jpg': 'mohiniyattam', '464.jpg': 'kuchipudi', '351.jpg': 'sattriya', '365.jpg': 'sattriya', '130.jpg': 'bharatanatyam', '329.jpg': 'odissi', '231.jpg': 'kathakali', '36.jpg': 'kathak', '111.jpg': 'manipuri', '96.jpg': 'kathak', '250.jpg': 'mohiniyattam', '320.jpg': 'sattriya', '502.jpg': 'odissi', '50.jpg': 'kathak', '405.jpg': 'kuchipudi', '402.jpg': 'kuchipudi', '63.jpg': 'kathak', '512.jpg': 'odissi', '47.jpg': 'kathak', '7.jpg': 'kathak', '229.jpg': 'kathakali', '81.jpg': 'manipuri', '357.jpg': 'sattriya', '300.jpg': 'mohiniyattam', '241.jpg': 'kathakali', '12.jpg': 'kathak', '344.jpg': 'sattriya', '352.jpg': 'kuchipudi', '396.jpg': 'kuchipudi', '26.jpg': 'kathak', '403.jpg': 'kathak', '313.jpg': 'sattriya', '267.jpg': 'mohiniyattam', '117.jpg': 'odissi', '79.jpg': 'manipuri', '160.jpg': 'bharatanatyam', '377.jpg': 'odissi', '434.jpg': 'odissi', '299.jpg': 'mohiniyattam', '289.jpg': 'mohiniyattam', '245.jpg': 'mohiniyattam', '72.jpg': 'sattriya', '3.jpg': 'kathak', '124.jpg': 'kuchipudi', '334.jpg': 'sattriya', '205.jpg': 'kathakali', '310.jpg': 'mohiniyattam', '237.jpg': 'kathakali', '314.jpg': 'kuchipudi', '240.jpg': 'kathakali', '98.jpg': 'manipuri', '266.jpg': 'kuchipudi', '181.jpg': 'kathakali', '30.jpg': 'kathak', '343.jpg': 'kathak', '298.jpg': 'mohiniyattam', '311.jpg': 'mohiniyattam', '449.jpg': 'odissi', '476.jpg': 'odissi', '308.jpg': 'mohiniyattam', '501.jpg': 'odissi', '148.jpg': 'bharatanatyam', '409.jpg': 'kuchipudi', '208.jpg': 'kathakali', '134.jpg': 'kathak', '423.jpg': 'bharatanatyam', '66.jpg': 'kathak', '109.jpg': 'sattriya', '91.jpg': 'manipuri', '178.jpg': 'kathakali', '319.jpg': 'mohiniyattam', '293.jpg': 'mohiniyattam'}\n",
      "predictions\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "[['201.jpg', 'kathakali'], ['469.jpg', 'odissi'], ['123.jpg', 'bharatanatyam'], ['203.jpg', 'kathakali'], ['42.jpg', 'kathak'], ['161.jpg', 'bharatanatyam'], ['404.jpg', 'kuchipudi'], ['155.jpg', 'bharatanatyam'], ['186.jpg', 'kathakali'], ['335.jpg', 'sattriya'], ['338.jpg', 'mohiniyattam'], ['218.jpg', 'kathakali'], ['27.jpg', 'kathak'], ['46.jpg', 'kathak'], ['515.jpg', 'odissi'], ['265.jpg', 'mohiniyattam'], ['58.jpg', 'sattriya'], ['252.jpg', 'mohiniyattam'], ['407.jpg', 'kuchipudi'], ['287.jpg', 'mohiniyattam'], ['464.jpg', 'kuchipudi'], ['351.jpg', 'sattriya'], ['365.jpg', 'sattriya'], ['130.jpg', 'bharatanatyam'], ['329.jpg', 'odissi'], ['231.jpg', 'kathakali'], ['36.jpg', 'kathak'], ['111.jpg', 'manipuri'], ['96.jpg', 'kathak'], ['250.jpg', 'mohiniyattam'], ['320.jpg', 'sattriya'], ['502.jpg', 'odissi'], ['50.jpg', 'kathak'], ['405.jpg', 'kuchipudi'], ['402.jpg', 'kuchipudi'], ['63.jpg', 'kathak'], ['512.jpg', 'odissi'], ['47.jpg', 'kathak'], ['7.jpg', 'kathak'], ['229.jpg', 'kathakali'], ['81.jpg', 'manipuri'], ['357.jpg', 'sattriya'], ['300.jpg', 'mohiniyattam'], ['241.jpg', 'kathakali'], ['12.jpg', 'kathak'], ['344.jpg', 'sattriya'], ['352.jpg', 'kuchipudi'], ['396.jpg', 'kuchipudi'], ['26.jpg', 'kathak'], ['403.jpg', 'kathak'], ['313.jpg', 'sattriya'], ['267.jpg', 'mohiniyattam'], ['117.jpg', 'odissi'], ['79.jpg', 'manipuri'], ['160.jpg', 'bharatanatyam'], ['377.jpg', 'odissi'], ['434.jpg', 'odissi'], ['299.jpg', 'mohiniyattam'], ['289.jpg', 'mohiniyattam'], ['245.jpg', 'mohiniyattam'], ['72.jpg', 'sattriya'], ['3.jpg', 'kathak'], ['124.jpg', 'kuchipudi'], ['334.jpg', 'sattriya'], ['205.jpg', 'kathakali'], ['310.jpg', 'mohiniyattam'], ['237.jpg', 'kathakali'], ['314.jpg', 'kuchipudi'], ['240.jpg', 'kathakali'], ['98.jpg', 'manipuri'], ['266.jpg', 'kuchipudi'], ['181.jpg', 'kathakali'], ['30.jpg', 'kathak'], ['343.jpg', 'kathak'], ['298.jpg', 'mohiniyattam'], ['311.jpg', 'mohiniyattam'], ['449.jpg', 'odissi'], ['476.jpg', 'odissi'], ['308.jpg', 'mohiniyattam'], ['501.jpg', 'odissi'], ['148.jpg', 'bharatanatyam'], ['409.jpg', 'kuchipudi'], ['208.jpg', 'kathakali'], ['134.jpg', 'kathak'], ['423.jpg', 'bharatanatyam'], ['66.jpg', 'kathak'], ['109.jpg', 'sattriya'], ['91.jpg', 'manipuri'], ['178.jpg', 'kathakali'], ['319.jpg', 'mohiniyattam'], ['293.jpg', 'mohiniyattam']]\n"
     ]
    },
    {
     "data": {
      "image/png": "[encoded data, 9140 characters]\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "EDA: Class imbalance\n",
      "    1. Class: bharatanatyam, Number: 47\n",
      "    2. Class: kathak, Number: 44\n",
      "    3. Class: kathakali, Number: 47\n",
      "    4. Class: kuchipudi, Number: 46\n",
      "    5. Class: manipuri, Number: 36\n",
      "    6. Class: mohiniyattam, Number: 50\n",
      "    7. Class: odissi, Number: 49\n",
      "    8. Class: sattriya, Number: 45\n",
      "\n",
      "correct 72 #images 91.0\n",
      "accuracy for 2 th iteration: 0.7912087912087912\n",
      "8\n",
      "                0\n",
      "1                \n",
      "bharatanatyam  33\n",
      "kathak         34\n",
      "kathakali      33\n",
      "kuchipudi      35\n",
      "manipuri       29\n",
      "mohiniyattam   44\n",
      "odissi         29\n",
      "sattriya       36\n",
      "8\n",
      "                0\n",
      "1                \n",
      "bharatanatyam  14\n",
      "kathak         10\n",
      "kathakali      14\n",
      "kuchipudi      11\n",
      "manipuri        7\n",
      "mohiniyattam    6\n",
      "odissi         20\n",
      "sattriya        9\n",
      "Mxnet Version: 1.7.0\n",
      "\n",
      "Experiment Details\n",
      "    Project: Dance_Form\n",
      "    Experiment: Model\n",
      "    Dir: /kaggle/working/workspace/Dance_Form/Model/\n",
      "\n",
      "Dataset Details\n",
      "    Train path:     ../input/dform-gold/dataset1/train\n",
      "    Val path:       ../input/dform-gold/dataset1/train\n",
      "    CSV train path: train_slot.csv\n",
      "    CSV val path:   test_slot.csv\n",
      "    Label Type:     single\n",
      "\n",
      "Dataset Params\n",
      "    Input Size:   224\n",
      "    Batch Size:   4\n",
      "    Data Shuffle: True\n",
      "    Processors:   2\n",
      "    Delimiter:   ,\n",
      "\n",
      "Pre-Composed Train Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Pre-Composed Val Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Dataset Numbers\n",
      "    Num train images: 273\n",
      "    Num val images:   91\n",
      "    Num classes:      8\n",
      "\n",
      "Model Params\n",
      "    Model name:           resnet152_v1\n",
      "    Use Gpu:              True\n",
      "    Use pretrained:       True\n",
      "    Freeze base network:  False\n",
      "\n",
      "Model Details\n",
      "    Loading pretrained model\n",
      "    Model Loaded on device\n",
      "        Model name:                           resnet152_v1\n",
      "        Num of potentially trainable layers:  311\n",
      "        Num of actual trainable layers:       311\n",
      "\n",
      "Optimizer\n",
      "    Name:          sgd\n",
      "    Learning rate: 0.01\n",
      "    Params:        {'lr': 0.01, 'momentum': 0, 'weight_decay': 0, 'momentum_dampening_rate': 0, 'clipnorm': 0.0, 'clipvalue': 0.0}\n",
      "\n",
      "\n",
      "\n",
      "Learning rate scheduler\n",
      "    Name:   steplr\n",
      "    Params: {'step_size': 1, 'gamma': 0.98, 'last_epoch': -1}\n",
      "\n",
      "Loss\n",
      "    Name:          softmaxcrossentropy\n",
      "    Params:        {'weight': None, 'batch_axis': 0, 'axis_to_sum_over': -1, 'label_as_categories': True, 'label_smoothing': False}\n",
      "\n",
      "Training params\n",
      "    Num Epochs: 10\n",
      "\n",
      "Display params\n",
      "    Display progress:          True\n",
      "    Display progress realtime: True\n",
      "    Save Training logs:        True\n",
      "    Save Intermediate models:  True\n",
      "    Intermediate model prefix: intermediate_model_\n",
      "\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/opt/conda/lib/python3.7/site-packages/monk/system/imports.py:160: UserWarning: ArgumentWarning: clipnorm and clipvalue are active only for keras in current version of Monk\n",
      "  warnings.warn(msg)\n",
      "/opt/conda/lib/python3.7/site-packages/monk/system/imports.py:160: UserWarning: ArgumentWarning: momentum_dampening_rate is active only for pytorch in current version of Monk\n",
      "  warnings.warn(msg)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Pre-Composed Train Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Pre-Composed Val Transforms\n",
      "[{'RandomHorizontalFlip': {'p': 0.8}}, {'Normalize': {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]}}]\n",
      "\n",
      "Dataset Numbers\n",
      "    Num train images: 273\n",
      "    Num val images:   91\n",
      "    Num classes:      8\n",
      "\n",
      "Model Details\n",
      "    Loading pretrained model\n",
      "    Model Loaded on device\n",
      "        Model name:                           resnet152_v1\n",
      "        Num of potentially trainable layers:  311\n",
      "        Num of actual trainable layers:       311\n",
      "\n",
      "Training Start\n",
      "    Epoch 1/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "b5e0938a36fd4075af6ab6b6064f4ba1",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "ca8db2d83b25469380231b0ff9b13278",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.01\n",
      "    [Epoch 1] Train-acc: 0.469, Train-loss: 1.472 | Val-acc: 0.703297, Val-loss: 0.950, | time: 13.4 sec\n",
      "\n",
      "    Epoch 2/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "68fd8fd327c0431f9f57878188eed735",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "14152597db7d44fcb4b2e4b0de76ad31",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.0098\n",
      "    [Epoch 2] Train-acc: 0.791, Train-loss: 0.645 | Val-acc: 0.736264, Val-loss: 0.884, | time: 12.9 sec\n",
      "\n",
      "    Epoch 3/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "2cbdc798ee3a4fbfb71edfad17d8ba2b",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "70d084d1ee94453795eebf97826b4188",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009604\n",
      "    [Epoch 3] Train-acc: 0.905, Train-loss: 0.332 | Val-acc: 0.780220, Val-loss: 0.656, | time: 12.6 sec\n",
      "\n",
      "    Epoch 4/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "ec71cb49123d4421bc2aea53d9cac312",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "3d112b210a034214b417afb3195fec57",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009411919999999999\n",
      "    [Epoch 4] Train-acc: 0.956, Train-loss: 0.154 | Val-acc: 0.813187, Val-loss: 0.705, | time: 13.6 sec\n",
      "\n",
      "    Epoch 5/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "82cf5247716d4fe990b6009141a37523",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "0bf167730c9d4f12b22074047a540002",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009223681599999999\n",
      "    [Epoch 5] Train-acc: 0.982, Train-loss: 0.105 | Val-acc: 0.769231, Val-loss: 0.736, | time: 12.8 sec\n",
      "\n",
      "    Epoch 6/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "9e4ec49eb2f943d7934d2f1c214c08ef",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "d792d8f585d14dbeb32b2a1725ecc243",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.009039207967999998\n",
      "    [Epoch 6] Train-acc: 0.989, Train-loss: 0.065 | Val-acc: 0.747253, Val-loss: 0.863, | time: 12.3 sec\n",
      "\n",
      "    Epoch 7/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "320355e043a54847be2ba1ca3ec781b9",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "e650c44d4f2440618e130a3a313ef1b0",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008858423808639998\n",
      "    [Epoch 7] Train-acc: 0.978, Train-loss: 0.065 | Val-acc: 0.791209, Val-loss: 0.703, | time: 11.7 sec\n",
      "\n",
      "    Epoch 8/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "b7708924964f44979945698d2a089fdc",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "3ae39a06df6c4e88bf6c4a73175c9d51",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008681255332467197\n",
      "    [Epoch 8] Train-acc: 0.989, Train-loss: 0.051 | Val-acc: 0.769231, Val-loss: 0.738, | time: 11.8 sec\n",
      "\n",
      "    Epoch 9/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "2aac2db415544d319c8b1d6c7f8e47f7",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "0b89b105fd104d4f94ae604367a67c1d",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008507630225817853\n",
      "    [Epoch 9] Train-acc: 1.000, Train-loss: 0.023 | Val-acc: 0.769231, Val-loss: 0.826, | time: 13.5 sec\n",
      "\n",
      "    Epoch 10/10\n",
      "    ----------\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "e9c82dd8279e4019a3aace0468711852",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=69.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "dbb3318758d34ae1bf07857c5e578fd7",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(FloatProgress(value=0.0, max=23.0), HTML(value='')))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "    curr_lr - 0.008337477621301496\n",
      "    [Epoch 10] Train-acc: 0.989, Train-loss: 0.038 | Val-acc: 0.758242, Val-loss: 0.817, | time: 12.0 sec\n",
      "\n",
      "    Training completed in: 1m 58s\n",
      "    Best val Acc:          0.813187\n",
      "\n",
      "Training End\n",
      "\n",
      "Training Outputs\n",
      "    Model Dir:   /kaggle/working/workspace/Dance_Form/Model/output/models/\n",
      "    Log Dir:     /kaggle/working/workspace/Dance_Form/Model/output/logs/\n",
      "    Final model: final\n",
      "    Best model:  best_model\n",
      "    Log 1 - Validation accuracy history log: val_acc_history.npy\n",
      "    Log 2 - Validation loss history log:     val_loss_history.npy\n",
      "    Log 3 - Training accuracy history log:   train_acc_history.npy\n",
      "    Log 4 - Training loss history log:       train_loss_history.npy\n",
      "    Log 5 - Training curve:                  train_loss_history.npy\n",
      "    Log 6 - Validation curve:                train_loss_history.npy\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/474.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9990172386169434\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/144.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.4924539029598236\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/430.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9696483612060547\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/417.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9999390244483948\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/25.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8664692640304565\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/156.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9997873902320862\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/356.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.708357572555542\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/347.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.999725341796875\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/497.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9847527742385864\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/513.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9422389268875122\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/39.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8965681791305542\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/504.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.6977547407150269\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/22.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.7551038265228271\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/297.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.5352093577384949\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/37.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9843941330909729\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/453.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9944688081741333\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/141.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9478420615196228\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/188.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.7922357320785522\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/222.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998722076416016\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/100.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9988391399383545\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/336.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9481638669967651\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/499.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.5931611061096191\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/255.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999713897705078\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/496.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.6582927107810974\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/471.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9952016472816467\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/475.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9998101592063904\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/192.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9995385408401489\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/101.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999485611915588\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/288.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999170303344727\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/350.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9508079886436462\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/477.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9704448580741882\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/209.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998388290405273\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/176.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.5109393000602722\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/492.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.994457483291626\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/187.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999781250953674\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/116.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.981902003288269\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/87.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.4279188811779022\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/29.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9934777021408081\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/182.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999618530273438\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/371.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9957465529441833\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/83.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9408579468727112\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/412.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.32966914772987366\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/84.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.999545156955719\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/372.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8755704164505005\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/486.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.912288248538971\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/115.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9863421320915222\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/213.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.999005913734436\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/489.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9983591437339783\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/260.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999809265136719\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/151.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.6237540245056152\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/207.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999770522117615\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/425.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9931367039680481\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/122.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9523629546165466\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/65.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8758560419082642\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/133.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9387543201446533\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/228.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999895095825195\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/158.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9904878735542297\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/516.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9998883605003357\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/136.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9551549553871155\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/367.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.6860017776489258\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/16.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9992430806159973\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/44.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8608531951904297\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/249.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999303817749023\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/443.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9979588389396667\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/364.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.997351348400116\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/381.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.3789437413215637\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/204.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999046921730042\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/325.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.6358885169029236\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/165.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9987848401069641\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/419.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9814194440841675\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/468.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.3634603023529053\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/52.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9972487092018127\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/451.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9276043176651001\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/195.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9988857507705688\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/74.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999722838401794\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/211.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.999995231628418\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/511.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9988462328910828\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/454.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.983359158039093\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/172.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8264615535736084\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/388.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9632294178009033\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/376.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9689902067184448\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/446.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9947618842124939\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/102.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9995909929275513\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/282.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.6741712689399719\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/494.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.998573899269104\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/382.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.43408966064453125\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/56.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.991970956325531\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/418.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.5468295812606812\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/236.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9953550696372986\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/212.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9992630481719971\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/train/163.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8724167943000793\n",
      "\n",
      "{'474.jpg': 'odissi', '144.jpg': 'bharatanatyam', '430.jpg': 'kuchipudi', '417.jpg': 'kuchipudi', '25.jpg': 'kathak', '156.jpg': 'bharatanatyam', '356.jpg': 'kuchipudi', '347.jpg': 'sattriya', '497.jpg': 'odissi', '513.jpg': 'odissi', '39.jpg': 'kathak', '504.jpg': 'kuchipudi', '22.jpg': 'sattriya', '297.jpg': 'mohiniyattam', '37.jpg': 'kathak', '453.jpg': 'odissi', '141.jpg': 'bharatanatyam', '188.jpg': 'kathakali', '222.jpg': 'kathakali', '100.jpg': 'manipuri', '336.jpg': 'kuchipudi', '499.jpg': 'sattriya', '255.jpg': 'mohiniyattam', '496.jpg': 'odissi', '471.jpg': 'odissi', '475.jpg': 'odissi', '192.jpg': 'kathakali', '101.jpg': 'manipuri', '288.jpg': 'mohiniyattam', '350.jpg': 'kuchipudi', '477.jpg': 'odissi', '209.jpg': 'kathakali', '176.jpg': 'bharatanatyam', '492.jpg': 'odissi', '187.jpg': 'kathakali', '116.jpg': 'bharatanatyam', '87.jpg': 'sattriya', '29.jpg': 'kathak', '182.jpg': 'kathakali', '371.jpg': 'sattriya', '83.jpg': 'mohiniyattam', '412.jpg': 'bharatanatyam', '84.jpg': 'manipuri', '372.jpg': 'kuchipudi', '486.jpg': 'odissi', '115.jpg': 'bharatanatyam', '213.jpg': 'kathakali', '489.jpg': 'odissi', '260.jpg': 'mohiniyattam', '151.jpg': 'kuchipudi', '207.jpg': 'kathakali', '425.jpg': 'kuchipudi', '122.jpg': 'bharatanatyam', '65.jpg': 'kathak', '133.jpg': 'kuchipudi', '228.jpg': 'kathakali', '158.jpg': 'bharatanatyam', '516.jpg': 'odissi', '136.jpg': 'bharatanatyam', '367.jpg': 'kuchipudi', '16.jpg': 'kathak', '44.jpg': 'kathak', '249.jpg': 'mohiniyattam', '443.jpg': 'kuchipudi', '364.jpg': 'sattriya', '381.jpg': 'kuchipudi', '204.jpg': 'kathakali', '325.jpg': 'kuchipudi', '165.jpg': 'bharatanatyam', '419.jpg': 'kuchipudi', '468.jpg': 'kuchipudi', '52.jpg': 'sattriya', '451.jpg': 'odissi', '195.jpg': 'kathakali', '74.jpg': 'manipuri', '211.jpg': 'kathakali', '511.jpg': 'odissi', '454.jpg': 'odissi', '172.jpg': 'kuchipudi', '388.jpg': 'kuchipudi', '376.jpg': 'kuchipudi', '446.jpg': 'odissi', '102.jpg': 'manipuri', '282.jpg': 'sattriya', '494.jpg': 'odissi', '382.jpg': 'kuchipudi', '56.jpg': 'kathak', '418.jpg': 'kuchipudi', '236.jpg': 'kathakali', '212.jpg': 'kathakali', '163.jpg': 'kuchipudi'}\n",
      "predictions\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "[['474.jpg', 'odissi'], ['144.jpg', 'bharatanatyam'], ['430.jpg', 'kuchipudi'], ['417.jpg', 'kuchipudi'], ['25.jpg', 'kathak'], ['156.jpg', 'bharatanatyam'], ['356.jpg', 'kuchipudi'], ['347.jpg', 'sattriya'], ['497.jpg', 'odissi'], ['513.jpg', 'odissi'], ['39.jpg', 'kathak'], ['504.jpg', 'kuchipudi'], ['22.jpg', 'sattriya'], ['297.jpg', 'mohiniyattam'], ['37.jpg', 'kathak'], ['453.jpg', 'odissi'], ['141.jpg', 'bharatanatyam'], ['188.jpg', 'kathakali'], ['222.jpg', 'kathakali'], ['100.jpg', 'manipuri'], ['336.jpg', 'kuchipudi'], ['499.jpg', 'sattriya'], ['255.jpg', 'mohiniyattam'], ['496.jpg', 'odissi'], ['471.jpg', 'odissi'], ['475.jpg', 'odissi'], ['192.jpg', 'kathakali'], ['101.jpg', 'manipuri'], ['288.jpg', 'mohiniyattam'], ['350.jpg', 'kuchipudi'], ['477.jpg', 'odissi'], ['209.jpg', 'kathakali'], ['176.jpg', 'bharatanatyam'], ['492.jpg', 'odissi'], ['187.jpg', 'kathakali'], ['116.jpg', 'bharatanatyam'], ['87.jpg', 'sattriya'], ['29.jpg', 'kathak'], ['182.jpg', 'kathakali'], ['371.jpg', 'sattriya'], ['83.jpg', 'mohiniyattam'], ['412.jpg', 'bharatanatyam'], ['84.jpg', 'manipuri'], ['372.jpg', 'kuchipudi'], ['486.jpg', 'odissi'], ['115.jpg', 'bharatanatyam'], ['213.jpg', 'kathakali'], ['489.jpg', 'odissi'], ['260.jpg', 'mohiniyattam'], ['151.jpg', 'kuchipudi'], ['207.jpg', 'kathakali'], ['425.jpg', 'kuchipudi'], ['122.jpg', 'bharatanatyam'], ['65.jpg', 'kathak'], ['133.jpg', 'kuchipudi'], ['228.jpg', 'kathakali'], ['158.jpg', 'bharatanatyam'], ['516.jpg', 'odissi'], ['136.jpg', 'bharatanatyam'], ['367.jpg', 'kuchipudi'], ['16.jpg', 'kathak'], ['44.jpg', 'kathak'], ['249.jpg', 'mohiniyattam'], ['443.jpg', 'kuchipudi'], ['364.jpg', 'sattriya'], ['381.jpg', 'kuchipudi'], ['204.jpg', 'kathakali'], ['325.jpg', 'kuchipudi'], ['165.jpg', 'bharatanatyam'], ['419.jpg', 'kuchipudi'], ['468.jpg', 'kuchipudi'], ['52.jpg', 'sattriya'], ['451.jpg', 'odissi'], ['195.jpg', 'kathakali'], ['74.jpg', 'manipuri'], ['211.jpg', 'kathakali'], ['511.jpg', 'odissi'], ['454.jpg', 'odissi'], ['172.jpg', 'kuchipudi'], ['388.jpg', 'kuchipudi'], ['376.jpg', 'kuchipudi'], ['446.jpg', 'odissi'], ['102.jpg', 'manipuri'], ['282.jpg', 'sattriya'], ['494.jpg', 'odissi'], ['382.jpg', 'kuchipudi'], ['56.jpg', 'kathak'], ['418.jpg', 'kuchipudi'], ['236.jpg', 'kathakali'], ['212.jpg', 'kathakali'], ['163.jpg', 'kuchipudi']]\n"
     ]
    },
    {
     "data": {
      "image/png": "[encoded data, 9140 characters]\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "EDA: Class imbalance\n",
      "    1. Class: bharatanatyam, Number: 47\n",
      "    2. Class: kathak, Number: 44\n",
      "    3. Class: kathakali, Number: 47\n",
      "    4. Class: kuchipudi, Number: 46\n",
      "    5. Class: manipuri, Number: 36\n",
      "    6. Class: mohiniyattam, Number: 50\n",
      "    7. Class: odissi, Number: 49\n",
      "    8. Class: sattriya, Number: 45\n",
      "\n",
      "correct 72 #images 91.0\n",
      "accuracy for 3 th iteration: 0.7912087912087912\n",
      "Overall accuracy: 0.7939560439560439\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<Figure size 432x288 with 0 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "print(data)\n",
    "accuracy = 0;\n",
    "for i in range(k):\n",
    "    \n",
    "    train = (data[0:(i * int(div))]) \n",
    "    test = data[ i * int(div) : (i + 1) * int(div) ]\n",
    "    for x in data[(i+1) * int(div) : ]:\n",
    "        train.append(x)\n",
    "    print(len(pd.DataFrame(train).groupby(1).count()[0]))\n",
    "    print(pd.DataFrame(train).groupby(1).count())\n",
    "    print(len(pd.DataFrame(test).groupby(1).count()[0]))\n",
    "    print(pd.DataFrame(test).groupby(1).count())\n",
    "    a = pd.DataFrame(train, columns = ['Image', 'target']);\n",
    "    a.to_csv(\"train_slot.csv\", index=False);\n",
    "    a = pd.DataFrame(test, columns = ['Image', 'target']);\n",
    "    a.to_csv(\"test_slot.csv\", index=False);\n",
    "\n",
    "    gtf = prototype(verbose=1);\n",
    "    gtf.Prototype(\"Dance_Form\", \"Model\");\n",
    "\n",
    "\n",
    "\n",
    "    gtf.Default(dataset_path=[\"../input/dform-gold/dataset1/train\", \"../input/dform-gold/dataset1/train\"], path_to_csv=[\"train_slot.csv\",\"test_slot.csv\"], model_name=\"resnet152_v1\", freeze_base_network=False, num_epochs=10);\n",
    "    #gtf.update_trainval_split(0.99);\n",
    "#     gtf.update_shuffle_data(True);\n",
    "#     gtf.optimizer_adam(0.001);\n",
    "#     gtf.update_batch_size(7);\n",
    "#     gtf.update_learning_rate(0.005);\n",
    "\n",
    "    gtf.Reload()\n",
    "\n",
    "    gtf.Train();\n",
    "    \n",
    "    # gtf.Dataset_Params(dataset_path=\"../input/dform-gold/dataset1/test\", path_to_csv=\"../input/dform-gold/dataset1/gold_labels.csv\");\n",
    "    #list_test=os.listdir(\"../input/dform-gold/dataset1/test/\");\n",
    "    #from tqdm.notebook import tqdm\n",
    "    combined = [];\n",
    "    predictions_dict = {};\n",
    "    j = 0\n",
    "    \n",
    "    with open('test_slot.csv', 'r',) as file:\n",
    "        reader = csv.reader(file, delimiter = ',')\n",
    "        for row in reader:\n",
    "            if(j == 0):\n",
    "                j = j + 1\n",
    "                continue\n",
    "            img_name = \"../input/dform-gold/dataset1/train/\" + row[0];\n",
    "            predictions = gtf.Infer(img_name=img_name);\n",
    "            id_ = row[0]\n",
    "            label = predictions[\"predicted_class\"];    \n",
    "            combined.append([id_, label]);\n",
    "            predictions_dict[id_] = label;\n",
    "\n",
    "    print(predictions_dict)\n",
    "    print(\"predictions\\n\\n\\n\\n\\n\")\n",
    "    print(combined)\n",
    "    # gtf.Summary()\n",
    "    gtf.EDA(show_img=True, save_img=True);\n",
    "    # print(gtf.EDA(show_img=True, save_img=True))\n",
    "    import csv\n",
    "    import numpy as np\n",
    "    confusion_mat = {\n",
    "\n",
    "                     'bharatanatyam':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0}, \n",
    "                     'kathak':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'kathakali':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'kuchipudi':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'manipuri':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'mohiniyattam':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'odissi':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'sattriya':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0}\n",
    "\n",
    "                    }\n",
    "    correct = 0\n",
    "    with open('test_slot.csv', 'r',) as file:\n",
    "        reader = csv.reader(file, delimiter = ',')\n",
    "        j = 0\n",
    "        for gold_label in reader:\n",
    "            if j == 0:\n",
    "                j = j + 1\n",
    "                continue\n",
    "            confusion_mat[gold_label[1]][predictions_dict[gold_label[0]]] = confusion_mat[gold_label[1]][predictions_dict[gold_label[0]]] + 1\n",
    "            if(gold_label[1] == predictions_dict[gold_label[0]]):\n",
    "                correct = correct + 1\n",
    "            \n",
    "    accuracy_of_iter = correct / div\n",
    "    print(\"correct\",correct,\"#images\",div)\n",
    "    print(\"accuracy for\", i, \"th iteration:\", accuracy_of_iter)\n",
    "    accuracy = accuracy + accuracy_of_iter\n",
    "#     print(confusion_mat)\n",
    "\n",
    "print(\"Overall accuracy:\", accuracy / k)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "_cell_guid": "9a3fc336-17ab-4c0b-bf9c-67002e5ea152",
    "_uuid": "70358206-36bd-4b07-918a-d4f28636bbd6"
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/6.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9988628625869751\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/9.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9570952653884888\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/11.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9725281000137329\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/13.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8521544933319092\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/14.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9228624701499939\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/17.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9223679304122925\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/20.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9929174780845642\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/23.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9999390244483948\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/28.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9997110366821289\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/33.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9913619756698608\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/34.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9822404980659485\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/35.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9989247918128967\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/38.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9923399686813354\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/40.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.999509871006012\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/41.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9990143179893494\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/45.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9982715845108032\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/48.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.6213087439537048\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/55.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.5050484538078308\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/57.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.9693399667739868\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/59.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9877687096595764\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/61.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8209008574485779\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/64.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8345979452133179\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/67.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.8857029676437378\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/71.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.8445027470588684\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/80.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9993860125541687\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/86.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.973456859588623\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/92.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999590516090393\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/95.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9989734292030334\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/97.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9992488026618958\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/108.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9999913573265076\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/110.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.9998846650123596\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/112.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9564063549041748\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/114.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9971116185188293\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/119.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9163223505020142\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/125.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9504982829093933\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/128.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9691445231437683\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/129.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.3365727365016937\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/132.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.92779541015625\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/138.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.727344810962677\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/145.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9481213688850403\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/146.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.5666612386703491\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/147.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.624552845954895\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/150.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9998788237571716\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/152.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.998626708984375\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/157.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9904325008392334\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/162.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9925028085708618\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/170.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9959417581558228\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/171.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.9887399673461914\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/173.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.7433345913887024\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/175.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.7361698150634766\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/183.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.999992311000824\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/189.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9997320771217346\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/193.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9985467195510864\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/194.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9995394349098206\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/196.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9812775254249573\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/198.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998664855957031\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/200.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999590516090393\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/202.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999027252197266\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/206.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.999995231628418\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/210.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9982386827468872\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/215.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998798966407776\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/216.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999447464942932\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/217.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998292922973633\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/220.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999331831932068\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/224.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9998683929443359\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/226.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8222840428352356\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/232.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999599456787109\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/238.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.9999103546142578\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/239.jpg\n",
      "    Predicted class:      kathakali\n",
      "    Predicted score:      0.999852180480957\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/246.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.8502001762390137\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/256.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999055862426758\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/264.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.5822122097015381\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/269.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.4831823408603668\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/270.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9993860125541687\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/271.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999675154685974\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/275.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.8317989706993103\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/278.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9997912049293518\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/280.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9993574023246765\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/283.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9993612170219421\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/284.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9998740553855896\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/285.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.8457890748977661\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/286.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8322964310646057\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/290.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999856948852539\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/291.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999247193336487\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/292.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9999875426292419\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/301.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.3332084119319916\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/302.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9998636245727539\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/306.jpg\n",
      "    Predicted class:      mohiniyattam\n",
      "    Predicted score:      0.9236103892326355\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/316.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.826218843460083\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/317.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.7966588139533997\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/318.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8727009892463684\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/323.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.49157842993736267\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/324.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.7261680960655212\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/330.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.7995388507843018\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/332.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9994041919708252\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/340.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8402586579322815\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/346.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9424150586128235\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/349.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.7498708963394165\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/354.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9996071457862854\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/358.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9985285997390747\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/360.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9978717565536499\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/363.jpg\n",
      "    Predicted class:      manipuri\n",
      "    Predicted score:      0.6699398756027222\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/366.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.9993317127227783\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/373.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8967499136924744\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/374.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9983033537864685\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/375.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.5614005923271179\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/378.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8223645687103271\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/380.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9851787090301514\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/385.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9928572773933411\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/386.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.37652674317359924\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/390.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.999845564365387\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/392.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.28685179352760315\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/394.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9472026824951172\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/398.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.5266106724739075\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/401.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9908955097198486\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/410.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9989067316055298\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/411.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9979683756828308\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/414.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9996271729469299\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/416.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.8839203715324402\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/421.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.7673898935317993\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/424.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.641181230545044\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/429.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8727658987045288\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/431.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.5736575126647949\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/437.jpg\n",
      "    Predicted class:      bharatanatyam\n",
      "    Predicted score:      0.5489776134490967\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/438.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.5498906373977661\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/439.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9992825984954834\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/440.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9997177720069885\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/441.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9653509259223938\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/447.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9456921815872192\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/448.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9956440925598145\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/456.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.6164515018463135\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/457.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.7794362902641296\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/458.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9370673894882202\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/460.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.8937714695930481\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/461.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9923452138900757\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/463.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9923329949378967\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/465.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.9973061084747314\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/467.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8869797587394714\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/470.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9998874664306641\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/473.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9031159281730652\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/479.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.7111099362373352\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/482.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.4552202522754669\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/484.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9997539520263672\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/485.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.5021514296531677\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/487.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9991582632064819\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/495.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9970998167991638\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/498.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9943023920059204\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/505.jpg\n",
      "    Predicted class:      sattriya\n",
      "    Predicted score:      0.32784345746040344\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/506.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9860703349113464\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/507.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.952690839767456\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/508.jpg\n",
      "    Predicted class:      kathak\n",
      "    Predicted score:      0.837192714214325\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/510.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.7838859558105469\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/514.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.5254158973693848\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/517.jpg\n",
      "    Predicted class:      kuchipudi\n",
      "    Predicted score:      0.8677216172218323\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/518.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9762399792671204\n",
      "\n",
      "Prediction\n",
      "    Image name:         ../input/dform-gold/dataset1/test/520.jpg\n",
      "    Predicted class:      odissi\n",
      "    Predicted score:      0.9441958665847778\n",
      "\n",
      "#correct labels  121 out of 156\n",
      "test accuracy : 0.7756410256410257\n",
      "               bharatanatyam  kathak  kathakali  kuchipudi  manipuri  \\\n",
      "bharatanatyam             10       0          0          1         0   \n",
      "kathak                     1      20          0          0         0   \n",
      "kathakali                  0       0         18          0         0   \n",
      "kuchipudi                  8       2          1         18         0   \n",
      "manipuri                   0       0          0          0         8   \n",
      "mohiniyattam               0       0          0          0         0   \n",
      "odissi                     0       0          0          1         0   \n",
      "sattriya                   0       1          0          5         0   \n",
      "\n",
      "               mohiniyattam  odissi  sattriya  \n",
      "bharatanatyam             0       0         0  \n",
      "kathak                    0       2         1  \n",
      "kathakali                 0       0         0  \n",
      "kuchipudi                 0       4         2  \n",
      "manipuri                  0       0         1  \n",
      "mohiniyattam             16       0         0  \n",
      "odissi                    0      20         0  \n",
      "sattriya                  3       2        11  \n"
     ]
    }
   ],
   "source": [
    "confusion_mat = {\n",
    "\n",
    "                     'bharatanatyam':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0}, \n",
    "                     'kathak':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'kathakali':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'kuchipudi':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'manipuri':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'mohiniyattam':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'odissi':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0},\n",
    "                     'sattriya':{'bharatanatyam':0,'kathak':0,'kathakali':0,'kuchipudi':0,'manipuri':0,'mohiniyattam':0,'odissi':0,'sattriya':0}\n",
    "\n",
    "                    }\n",
    "j = 0\n",
    "combined = []\n",
    "correct = 0\n",
    "with open('../input/dform-gold/dataset1/gold_labels.csv', 'r',) as file:\n",
    "    reader = csv.reader(file, delimiter = ',')\n",
    "    for gold_label in reader:\n",
    "        if(j == 0):\n",
    "            j = j + 1\n",
    "            continue\n",
    "        img_name = \"../input/dform-gold/dataset1/test/\" + gold_label[0];\n",
    "        predictions = gtf.Infer(img_name=img_name);\n",
    "        id_ = gold_label[0]\n",
    "        label = predictions[\"predicted_class\"];    \n",
    "        combined.append([id_, label]);\n",
    "        confusion_mat[gold_label[1]][label] = confusion_mat[gold_label[1]][label] + 1\n",
    "        if(gold_label[1] == label):\n",
    "            correct = correct + 1\n",
    "#         predictions_dict[id_] = label;\n",
    "print(\"#correct labels \", correct, 'out of',len(combined))\n",
    "print(\"test accuracy :\", correct / len(combined))\n",
    "conf_mat = pd.DataFrame(confusion_mat)\n",
    "print(conf_mat)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "_cell_guid": "5cc94dac-7bdd-4788-853a-05c08e8641d2",
    "_uuid": "9a7225d6-c420-47ae-bc1f-c71fceb187f4"
   },
   "outputs": [],
   "source": [
    "gtf.List_Models()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
