{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": []
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    }
  },
  "cells": [
    {
      "cell_type": "markdown",
      "source": [
        "# tsfreshを用いた特徴量自動生成と分類\n",
        "\n",
        "けん玉データ編\n"
      ],
      "metadata": {
        "id": "uj7jI2g5cZlt"
      }
    },
    {
      "cell_type": "markdown",
      "source": [
        "## tsfreshのインストール"
      ],
      "metadata": {
        "id": "Hdqe-M98ckxa"
      }
    },
    {
      "cell_type": "code",
      "execution_count": 1,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "h7K_4Xvt8Vrp",
        "outputId": "5cdb5699-a74d-4e64-9524-afee55ae136d"
      },
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "Requirement already satisfied: tsfresh in /usr/local/lib/python3.12/dist-packages (0.21.1)\n",
            "Requirement already satisfied: requests>=2.9.1 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (2.32.4)\n",
            "Requirement already satisfied: numpy>=1.15.1 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (2.0.2)\n",
            "Requirement already satisfied: pandas>=0.25.0 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (2.2.2)\n",
            "Requirement already satisfied: statsmodels>=0.13 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (0.14.6)\n",
            "Requirement already satisfied: patsy>=0.4.1 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (1.0.2)\n",
            "Requirement already satisfied: pywavelets in /usr/local/lib/python3.12/dist-packages (from tsfresh) (1.9.0)\n",
            "Requirement already satisfied: scikit-learn>=0.22.0 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (1.6.1)\n",
            "Requirement already satisfied: tqdm>=4.10.0 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (4.67.3)\n",
            "Requirement already satisfied: stumpy>=1.7.2 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (1.13.0)\n",
            "Requirement already satisfied: cloudpickle in /usr/local/lib/python3.12/dist-packages (from tsfresh) (3.1.2)\n",
            "Requirement already satisfied: scipy>=1.14.0 in /usr/local/lib/python3.12/dist-packages (from tsfresh) (1.16.3)\n",
            "Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.12/dist-packages (from pandas>=0.25.0->tsfresh) (2.9.0.post0)\n",
            "Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.12/dist-packages (from pandas>=0.25.0->tsfresh) (2025.2)\n",
            "Requirement already satisfied: tzdata>=2022.7 in /usr/local/lib/python3.12/dist-packages (from pandas>=0.25.0->tsfresh) (2025.3)\n",
            "Requirement already satisfied: charset_normalizer<4,>=2 in /usr/local/lib/python3.12/dist-packages (from requests>=2.9.1->tsfresh) (3.4.6)\n",
            "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.12/dist-packages (from requests>=2.9.1->tsfresh) (3.11)\n",
            "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.12/dist-packages (from requests>=2.9.1->tsfresh) (2.5.0)\n",
            "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.12/dist-packages (from requests>=2.9.1->tsfresh) (2026.2.25)\n",
            "Requirement already satisfied: joblib>=1.2.0 in /usr/local/lib/python3.12/dist-packages (from scikit-learn>=0.22.0->tsfresh) (1.5.3)\n",
            "Requirement already satisfied: threadpoolctl>=3.1.0 in /usr/local/lib/python3.12/dist-packages (from scikit-learn>=0.22.0->tsfresh) (3.6.0)\n",
            "Requirement already satisfied: packaging>=21.3 in /usr/local/lib/python3.12/dist-packages (from statsmodels>=0.13->tsfresh) (26.0)\n",
            "Requirement already satisfied: numba>=0.57.1 in /usr/local/lib/python3.12/dist-packages (from stumpy>=1.7.2->tsfresh) (0.60.0)\n",
            "Requirement already satisfied: llvmlite<0.44,>=0.43.0dev0 in /usr/local/lib/python3.12/dist-packages (from numba>=0.57.1->stumpy>=1.7.2->tsfresh) (0.43.0)\n",
            "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.12/dist-packages (from python-dateutil>=2.8.2->pandas>=0.25.0->tsfresh) (1.17.0)\n"
          ]
        }
      ],
      "source": [
        "!pip install tsfresh"
      ]
    },
    {
      "cell_type": "markdown",
      "source": [
        "## ライブラリのインポート"
      ],
      "metadata": {
        "id": "9C81BMEmcuAI"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "import os\n",
        "import pathlib\n",
        "import glob\n",
        "\n",
        "import numpy as np\n",
        "import pandas as pd\n",
        "\n",
        "import tensorflow as tf\n",
        "\n",
        "from sklearn.model_selection import train_test_split\n",
        "\n",
        "import matplotlib.pyplot as plt"
      ],
      "metadata": {
        "id": "sjJBSdZO-ZUO"
      },
      "execution_count": 2,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "source": [
        "tsfresh関連のライブラリのインポート"
      ],
      "metadata": {
        "id": "zRQS4qo2g59R"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "from tsfresh.examples.robot_execution_failures import download_robot_execution_failures, load_robot_execution_failures\n",
        "from tsfresh import select_features\n",
        "from tsfresh.utilities.dataframe_functions import impute\n",
        "from tsfresh import extract_features\n",
        "\n",
        "#毎回同じ結果になるように、乱数のseedを固定\n",
        "seed = 0\n",
        "tf.random.set_seed(seed)\n",
        "np.random.seed(seed)"
      ],
      "metadata": {
        "id": "ibgmPJMm8XS9"
      },
      "execution_count": 3,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "source": [
        "## けん玉データの読み込み"
      ],
      "metadata": {
        "id": "xnwRI0sWcxBG"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "#データのディレクトリ\n",
        "data_dir = pathlib.Path(\"/content/drive/MyDrive/Anomaly_Detection/dataset/Kendama\")"
      ],
      "metadata": {
        "id": "QNdp9aw8g1ec"
      },
      "execution_count": 4,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data_ExpertSuccess = glob.glob(str(data_dir) + '/ExpertSuccess/*')\n",
        "data_ExpertFailure = glob.glob(str(data_dir) + '/ExpertFailure/*')\n",
        "data_BeginnerSuccess = glob.glob(str(data_dir) + '/BeginnerSuccess/*')\n",
        "data_BeginnerFailure = glob.glob(str(data_dir) + '/BeginnerFailure/*')\n",
        "data_NoExperienceFailure = glob.glob(str(data_dir) + '/NoExperienceFailure/*')"
      ],
      "metadata": {
        "id": "Mrwpwcu7rsC9"
      },
      "execution_count": 5,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "def makeData(data, labels, n=20):\n",
        "  df_data = pd.DataFrame(columns=['id','time','x','y','z'])\n",
        "  df_label = pd.Series()\n",
        "  for i in range(len(data)):\n",
        "    filename = data[i]\n",
        "    labelname = labels[i]\n",
        "    df_data0 = pd.read_csv(filename, delimiter='\\t',dtype=float)\n",
        "    fn = filename.split('/')[-1]\n",
        "    df_data0.insert(0, 'id', fn)\n",
        "    df_data = pd.concat([df_data,df_data0], ignore_index=False)\n",
        "    if labelname:\n",
        "      df_label.loc[fn] = True\n",
        "    else:\n",
        "      df_label.loc[fn] = False\n",
        "  return df_data, df_label.sort_index(ascending=True)"
      ],
      "metadata": {
        "id": "82Z4BsHgr_9v"
      },
      "execution_count": 6,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "source": [
        "## 特徴量の抽出"
      ],
      "metadata": {
        "id": "4H66zUDNwF4w"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "from tsfresh import extract_features\n",
        "from sklearn.preprocessing import StandardScaler\n",
        "from sklearn.decomposition import PCA"
      ],
      "metadata": {
        "id": "EKM7FoHcdazN"
      },
      "execution_count": 10,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "source": [
        "###熟練者の成功と失敗"
      ],
      "metadata": {
        "id": "vpq8BtVKdRtF"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "#熟練者の成功と失敗\n",
        "data1 = data_ExpertSuccess\n",
        "data2 = data_ExpertFailure\n",
        "data1_legend = 'ExpertSuccess'\n",
        "data2_legend = 'ExpertFailure'"
      ],
      "metadata": {
        "id": "IaBsIIk6_HGR"
      },
      "execution_count": 11,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data1_id = [0]*len(data1)\n",
        "data2_id = [1]*len(data2)\n",
        "df_data, df_label =makeData(data1+data2,data1_id+data2_id)\n",
        "\n",
        "extracted_features_train = extract_features(df_data, column_id=\"id\")\n",
        "extracted_features_train_impute = impute(extracted_features_train)\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(extracted_features_train_impute)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca1 = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "0ihVcZF0dWQz",
        "outputId": "9de41e3e-d97d-4b5b-ff0c-eaba571a250a"
      },
      "execution_count": 12,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "/tmp/ipykernel_41858/1282099759.py:10: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.\n",
            "  df_data = pd.concat([df_data,df_data0], ignore_index=False)\n",
            "WARNING:tsfresh.feature_extraction.settings:Dependency not available for matrix_profile, this feature will be disabled!\n",
            "Feature Extraction: 100%|██████████| 44/44 [01:00<00:00,  1.37s/it]\n",
            "/usr/local/lib/python3.12/dist-packages/tsfresh/utilities/dataframe_functions.py:198: RuntimeWarning: The columns ['time__benford_correlation'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__query_similarity_count__query_None__threshold_0.0'\n",
            " 'x__query_similarity_count__query_None__threshold_0.0'\n",
            " 'y__query_similarity_count__query_None__threshold_0.0'\n",
            " 'z__query_similarity_count__query_None__threshold_0.0'] did not have any finite values. Filling with zeros.\n",
            "  warnings.warn(\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca  =data_pca1\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='o', facecolor='None',s=100,color='k', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "mZpZUqCAdWML",
        "outputId": "d6bf552d-9f6a-4441-a268-67af3b2839d0"
      },
      "execution_count": 13,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 29004 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "features_filtered_train = select_features(extracted_features_train_impute, df_label)\n",
        "features_filtered_train"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 377
        },
        "id": "nKDk022x5rUR",
        "outputId": "75fabe7e-9674-4674-e541-128882c39f5d"
      },
      "execution_count": 14,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "Empty DataFrame\n",
              "Columns: []\n",
              "Index: [ExpertFailure1.txt, ExpertFailure2.txt, ExpertFailure3.txt, ExpertFailure4.txt, ExpertFailure5.txt, ExpertFailure6.txt, ExpertSuccess1.txt, ExpertSuccess2.txt, ExpertSuccess3.txt, ExpertSuccess4.txt, ExpertSuccess5.txt]"
            ],
            "text/html": [
              "\n",
              "  <div id=\"df-9a35e329-0370-478f-8a4b-fe5c94b57b5d\" class=\"colab-df-container\">\n",
              "    <div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>ExpertFailure1.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure2.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure3.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure4.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure5.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure6.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess1.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess2.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess3.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess4.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess5.txt</th>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "</div>\n",
              "    <div class=\"colab-df-buttons\">\n",
              "\n",
              "  <div class=\"colab-df-container\">\n",
              "    <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-9a35e329-0370-478f-8a4b-fe5c94b57b5d')\"\n",
              "            title=\"Convert this dataframe to an interactive table.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
              "    <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "\n",
              "  <style>\n",
              "    .colab-df-container {\n",
              "      display:flex;\n",
              "      gap: 12px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert {\n",
              "      background-color: #E8F0FE;\n",
              "      border: none;\n",
              "      border-radius: 50%;\n",
              "      cursor: pointer;\n",
              "      display: none;\n",
              "      fill: #1967D2;\n",
              "      height: 32px;\n",
              "      padding: 0 0 0 0;\n",
              "      width: 32px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert:hover {\n",
              "      background-color: #E2EBFA;\n",
              "      box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "      fill: #174EA6;\n",
              "    }\n",
              "\n",
              "    .colab-df-buttons div {\n",
              "      margin-bottom: 4px;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert {\n",
              "      background-color: #3B4455;\n",
              "      fill: #D2E3FC;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert:hover {\n",
              "      background-color: #434B5C;\n",
              "      box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "      filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "      fill: #FFFFFF;\n",
              "    }\n",
              "  </style>\n",
              "\n",
              "    <script>\n",
              "      const buttonEl =\n",
              "        document.querySelector('#df-9a35e329-0370-478f-8a4b-fe5c94b57b5d button.colab-df-convert');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      async function convertToInteractive(key) {\n",
              "        const element = document.querySelector('#df-9a35e329-0370-478f-8a4b-fe5c94b57b5d');\n",
              "        const dataTable =\n",
              "          await google.colab.kernel.invokeFunction('convertToInteractive',\n",
              "                                                    [key], {});\n",
              "        if (!dataTable) return;\n",
              "\n",
              "        const docLinkHtml = 'Like what you see? Visit the ' +\n",
              "          '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
              "          + ' to learn more about interactive tables.';\n",
              "        element.innerHTML = '';\n",
              "        dataTable['output_type'] = 'display_data';\n",
              "        await google.colab.output.renderOutput(dataTable, element);\n",
              "        const docLink = document.createElement('div');\n",
              "        docLink.innerHTML = docLinkHtml;\n",
              "        element.appendChild(docLink);\n",
              "      }\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "\n",
              "  <div id=\"id_8bf1b40b-8fbe-484b-80ae-4b9ba9c5401c\">\n",
              "    <style>\n",
              "      .colab-df-generate {\n",
              "        background-color: #E8F0FE;\n",
              "        border: none;\n",
              "        border-radius: 50%;\n",
              "        cursor: pointer;\n",
              "        display: none;\n",
              "        fill: #1967D2;\n",
              "        height: 32px;\n",
              "        padding: 0 0 0 0;\n",
              "        width: 32px;\n",
              "      }\n",
              "\n",
              "      .colab-df-generate:hover {\n",
              "        background-color: #E2EBFA;\n",
              "        box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "        fill: #174EA6;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate {\n",
              "        background-color: #3B4455;\n",
              "        fill: #D2E3FC;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate:hover {\n",
              "        background-color: #434B5C;\n",
              "        box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "        filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "        fill: #FFFFFF;\n",
              "      }\n",
              "    </style>\n",
              "    <button class=\"colab-df-generate\" onclick=\"generateWithVariable('features_filtered_train')\"\n",
              "            title=\"Generate code using this dataframe.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
              "       width=\"24px\">\n",
              "    <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "    <script>\n",
              "      (() => {\n",
              "      const buttonEl =\n",
              "        document.querySelector('#id_8bf1b40b-8fbe-484b-80ae-4b9ba9c5401c button.colab-df-generate');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      buttonEl.onclick = () => {\n",
              "        google.colab.notebook.generateWithVariable('features_filtered_train');\n",
              "      }\n",
              "      })();\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "    </div>\n",
              "  </div>\n"
            ],
            "application/vnd.google.colaboratory.intrinsic+json": {
              "type": "dataframe",
              "variable_name": "features_filtered_train",
              "summary": "{\n  \"name\": \"features_filtered_train\",\n  \"rows\": 11,\n  \"fields\": []\n}"
            }
          },
          "metadata": {},
          "execution_count": 14
        }
      ]
    },
    {
      "cell_type": "markdown",
      "source": [
        "###初心者の成功と失敗"
      ],
      "metadata": {
        "id": "lLIon_K0eF41"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "#初心者の成功と失敗\n",
        "data1 = data_BeginnerSuccess\n",
        "data2 = data_BeginnerFailure\n",
        "data1_legend = 'BeginnerSuccess'\n",
        "data2_legend = 'BeginnerFailure'"
      ],
      "metadata": {
        "id": "EScwUE0OHdQP"
      },
      "execution_count": 15,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data1_id = [0]*len(data1)\n",
        "data2_id = [1]*len(data2)\n",
        "df_data, df_label =makeData(data1+data2,data1_id+data2_id)\n",
        "\n",
        "extracted_features_train = extract_features(df_data, column_id=\"id\")\n",
        "extracted_features_train_impute = impute(extracted_features_train)\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(extracted_features_train_impute)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca2 = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "bmHAi4klecHt",
        "outputId": "fd982366-fae7-4bc6-c2d8-4b0b75207c77"
      },
      "execution_count": 16,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "/tmp/ipykernel_41858/1282099759.py:10: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.\n",
            "  df_data = pd.concat([df_data,df_data0], ignore_index=False)\n",
            "WARNING:tsfresh.feature_extraction.settings:Dependency not available for matrix_profile, this feature will be disabled!\n",
            "Feature Extraction: 100%|██████████| 52/52 [01:18<00:00,  1.51s/it]\n",
            "/usr/local/lib/python3.12/dist-packages/tsfresh/utilities/dataframe_functions.py:198: RuntimeWarning: The columns ['time__benford_correlation'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__query_similarity_count__query_None__threshold_0.0'\n",
            " 'x__friedrich_coefficients__coeff_0__m_3__r_30'\n",
            " 'x__friedrich_coefficients__coeff_1__m_3__r_30'\n",
            " 'x__friedrich_coefficients__coeff_2__m_3__r_30'\n",
            " 'x__friedrich_coefficients__coeff_3__m_3__r_30'\n",
            " 'x__max_langevin_fixed_point__m_3__r_30'\n",
            " 'x__query_similarity_count__query_None__threshold_0.0'\n",
            " 'y__query_similarity_count__query_None__threshold_0.0'\n",
            " 'z__query_similarity_count__query_None__threshold_0.0'] did not have any finite values. Filling with zeros.\n",
            "  warnings.warn(\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "features_filtered_train = select_features(extracted_features_train_impute, df_label)\n",
        "features_filtered_train"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 439
        },
        "id": "uM6HydvtF3Ui",
        "outputId": "e0db5147-41d2-4b4a-8dfb-4d11c378f462"
      },
      "execution_count": 17,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "Empty DataFrame\n",
              "Columns: []\n",
              "Index: [BeginnerFailure1.txt, BeginnerFailure2.txt, BeginnerFailure3.txt, BeginnerFailure4.txt, BeginnerFailure5.txt, BeginnerFailure6.txt, BeginnerFailure7.txt, BeginnerSuccess1.txt, BeginnerSuccess2.txt, BeginnerSuccess3.txt, BeginnerSuccess4.txt, BeginnerSuccess5.txt, BeginnerSuccess6.txt]"
            ],
            "text/html": [
              "\n",
              "  <div id=\"df-3f2ff72b-ffa8-4ec5-ab9a-ca79cf517e3b\" class=\"colab-df-container\">\n",
              "    <div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure1.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure2.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure3.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure4.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure5.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure6.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure7.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess1.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess2.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess3.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess4.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess5.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess6.txt</th>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "</div>\n",
              "    <div class=\"colab-df-buttons\">\n",
              "\n",
              "  <div class=\"colab-df-container\">\n",
              "    <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-3f2ff72b-ffa8-4ec5-ab9a-ca79cf517e3b')\"\n",
              "            title=\"Convert this dataframe to an interactive table.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
              "    <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "\n",
              "  <style>\n",
              "    .colab-df-container {\n",
              "      display:flex;\n",
              "      gap: 12px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert {\n",
              "      background-color: #E8F0FE;\n",
              "      border: none;\n",
              "      border-radius: 50%;\n",
              "      cursor: pointer;\n",
              "      display: none;\n",
              "      fill: #1967D2;\n",
              "      height: 32px;\n",
              "      padding: 0 0 0 0;\n",
              "      width: 32px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert:hover {\n",
              "      background-color: #E2EBFA;\n",
              "      box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "      fill: #174EA6;\n",
              "    }\n",
              "\n",
              "    .colab-df-buttons div {\n",
              "      margin-bottom: 4px;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert {\n",
              "      background-color: #3B4455;\n",
              "      fill: #D2E3FC;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert:hover {\n",
              "      background-color: #434B5C;\n",
              "      box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "      filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "      fill: #FFFFFF;\n",
              "    }\n",
              "  </style>\n",
              "\n",
              "    <script>\n",
              "      const buttonEl =\n",
              "        document.querySelector('#df-3f2ff72b-ffa8-4ec5-ab9a-ca79cf517e3b button.colab-df-convert');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      async function convertToInteractive(key) {\n",
              "        const element = document.querySelector('#df-3f2ff72b-ffa8-4ec5-ab9a-ca79cf517e3b');\n",
              "        const dataTable =\n",
              "          await google.colab.kernel.invokeFunction('convertToInteractive',\n",
              "                                                    [key], {});\n",
              "        if (!dataTable) return;\n",
              "\n",
              "        const docLinkHtml = 'Like what you see? Visit the ' +\n",
              "          '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
              "          + ' to learn more about interactive tables.';\n",
              "        element.innerHTML = '';\n",
              "        dataTable['output_type'] = 'display_data';\n",
              "        await google.colab.output.renderOutput(dataTable, element);\n",
              "        const docLink = document.createElement('div');\n",
              "        docLink.innerHTML = docLinkHtml;\n",
              "        element.appendChild(docLink);\n",
              "      }\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "\n",
              "  <div id=\"id_829e4be8-e4ed-4dd5-b0cd-eeed2d97b800\">\n",
              "    <style>\n",
              "      .colab-df-generate {\n",
              "        background-color: #E8F0FE;\n",
              "        border: none;\n",
              "        border-radius: 50%;\n",
              "        cursor: pointer;\n",
              "        display: none;\n",
              "        fill: #1967D2;\n",
              "        height: 32px;\n",
              "        padding: 0 0 0 0;\n",
              "        width: 32px;\n",
              "      }\n",
              "\n",
              "      .colab-df-generate:hover {\n",
              "        background-color: #E2EBFA;\n",
              "        box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "        fill: #174EA6;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate {\n",
              "        background-color: #3B4455;\n",
              "        fill: #D2E3FC;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate:hover {\n",
              "        background-color: #434B5C;\n",
              "        box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "        filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "        fill: #FFFFFF;\n",
              "      }\n",
              "    </style>\n",
              "    <button class=\"colab-df-generate\" onclick=\"generateWithVariable('features_filtered_train')\"\n",
              "            title=\"Generate code using this dataframe.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
              "       width=\"24px\">\n",
              "    <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "    <script>\n",
              "      (() => {\n",
              "      const buttonEl =\n",
              "        document.querySelector('#id_829e4be8-e4ed-4dd5-b0cd-eeed2d97b800 button.colab-df-generate');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      buttonEl.onclick = () => {\n",
              "        google.colab.notebook.generateWithVariable('features_filtered_train');\n",
              "      }\n",
              "      })();\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "    </div>\n",
              "  </div>\n"
            ],
            "application/vnd.google.colaboratory.intrinsic+json": {
              "type": "dataframe",
              "variable_name": "features_filtered_train",
              "summary": "{\n  \"name\": \"features_filtered_train\",\n  \"rows\": 13,\n  \"fields\": []\n}"
            }
          },
          "metadata": {},
          "execution_count": 17
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca  =data_pca2\n",
        "\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='^',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='^', facecolor='None',s=100,color='k', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "Feve2Mhzef_0",
        "outputId": "7d78a0e7-13ac-44be-8710-035911034f29"
      },
      "execution_count": 18,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 26028 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "markdown",
      "source": [
        "###熟練者と未経験者の比較"
      ],
      "metadata": {
        "id": "mdwxWSQzejMB"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "#熟練者と未経験者の比較\n",
        "data1 = data_ExpertSuccess + data_ExpertFailure\n",
        "data2 = data_NoExperienceFailure\n",
        "data1_legend = 'Expert'\n",
        "data2_legend = 'NoExperience'"
      ],
      "metadata": {
        "id": "d-GBm5g1_61n"
      },
      "execution_count": 19,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data1_id = [0]*len(data1)\n",
        "data2_id = [1]*len(data2)\n",
        "df_data, df_label =makeData(data1+data2,data1_id+data2_id)\n",
        "\n",
        "extracted_features_train = extract_features(df_data, column_id=\"id\")\n",
        "extracted_features_train_impute = impute(extracted_features_train)\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(extracted_features_train_impute)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca3 = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "_WOf5yfDeind",
        "outputId": "653cb64a-5358-4ed4-853f-793984957949"
      },
      "execution_count": 20,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "/tmp/ipykernel_41858/1282099759.py:10: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.\n",
            "  df_data = pd.concat([df_data,df_data0], ignore_index=False)\n",
            "WARNING:tsfresh.feature_extraction.settings:Dependency not available for matrix_profile, this feature will be disabled!\n",
            "Feature Extraction: 100%|██████████| 68/68 [01:27<00:00,  1.28s/it]\n",
            "/usr/local/lib/python3.12/dist-packages/tsfresh/utilities/dataframe_functions.py:198: RuntimeWarning: The columns ['time__benford_correlation'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__query_similarity_count__query_None__threshold_0.0'\n",
            " 'x__query_similarity_count__query_None__threshold_0.0'\n",
            " 'y__query_similarity_count__query_None__threshold_0.0'\n",
            " 'z__query_similarity_count__query_None__threshold_0.0'] did not have any finite values. Filling with zeros.\n",
            "  warnings.warn(\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "features_filtered_train = select_features(extracted_features_train_impute, df_label)\n",
        "features_filtered_train"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 565
        },
        "id": "HQrdLA_2F5-x",
        "outputId": "3c0b2845-82b8-4d50-81b9-1e3bdc6e70b6"
      },
      "execution_count": 21,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "Empty DataFrame\n",
              "Columns: []\n",
              "Index: [ExpertFailure1.txt, ExpertFailure2.txt, ExpertFailure3.txt, ExpertFailure4.txt, ExpertFailure5.txt, ExpertFailure6.txt, ExpertSuccess1.txt, ExpertSuccess2.txt, ExpertSuccess3.txt, ExpertSuccess4.txt, ExpertSuccess5.txt, NoExperienceFailure1.txt, NoExperienceFailure2.txt, NoExperienceFailure3.txt, NoExperienceFailure4.txt, NoExperienceFailure5.txt, NoExperienceFailure6.txt]"
            ],
            "text/html": [
              "\n",
              "  <div id=\"df-d723f535-10b8-45a3-9849-ed889b63a7e7\" class=\"colab-df-container\">\n",
              "    <div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>ExpertFailure1.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure2.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure3.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure4.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure5.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure6.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess1.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess2.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess3.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess4.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess5.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure1.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure2.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure3.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure4.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure5.txt</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure6.txt</th>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "</div>\n",
              "    <div class=\"colab-df-buttons\">\n",
              "\n",
              "  <div class=\"colab-df-container\">\n",
              "    <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-d723f535-10b8-45a3-9849-ed889b63a7e7')\"\n",
              "            title=\"Convert this dataframe to an interactive table.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
              "    <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "\n",
              "  <style>\n",
              "    .colab-df-container {\n",
              "      display:flex;\n",
              "      gap: 12px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert {\n",
              "      background-color: #E8F0FE;\n",
              "      border: none;\n",
              "      border-radius: 50%;\n",
              "      cursor: pointer;\n",
              "      display: none;\n",
              "      fill: #1967D2;\n",
              "      height: 32px;\n",
              "      padding: 0 0 0 0;\n",
              "      width: 32px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert:hover {\n",
              "      background-color: #E2EBFA;\n",
              "      box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "      fill: #174EA6;\n",
              "    }\n",
              "\n",
              "    .colab-df-buttons div {\n",
              "      margin-bottom: 4px;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert {\n",
              "      background-color: #3B4455;\n",
              "      fill: #D2E3FC;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert:hover {\n",
              "      background-color: #434B5C;\n",
              "      box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "      filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "      fill: #FFFFFF;\n",
              "    }\n",
              "  </style>\n",
              "\n",
              "    <script>\n",
              "      const buttonEl =\n",
              "        document.querySelector('#df-d723f535-10b8-45a3-9849-ed889b63a7e7 button.colab-df-convert');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      async function convertToInteractive(key) {\n",
              "        const element = document.querySelector('#df-d723f535-10b8-45a3-9849-ed889b63a7e7');\n",
              "        const dataTable =\n",
              "          await google.colab.kernel.invokeFunction('convertToInteractive',\n",
              "                                                    [key], {});\n",
              "        if (!dataTable) return;\n",
              "\n",
              "        const docLinkHtml = 'Like what you see? Visit the ' +\n",
              "          '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
              "          + ' to learn more about interactive tables.';\n",
              "        element.innerHTML = '';\n",
              "        dataTable['output_type'] = 'display_data';\n",
              "        await google.colab.output.renderOutput(dataTable, element);\n",
              "        const docLink = document.createElement('div');\n",
              "        docLink.innerHTML = docLinkHtml;\n",
              "        element.appendChild(docLink);\n",
              "      }\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "\n",
              "  <div id=\"id_4f775d2b-1b74-49ef-9849-885a049da8cb\">\n",
              "    <style>\n",
              "      .colab-df-generate {\n",
              "        background-color: #E8F0FE;\n",
              "        border: none;\n",
              "        border-radius: 50%;\n",
              "        cursor: pointer;\n",
              "        display: none;\n",
              "        fill: #1967D2;\n",
              "        height: 32px;\n",
              "        padding: 0 0 0 0;\n",
              "        width: 32px;\n",
              "      }\n",
              "\n",
              "      .colab-df-generate:hover {\n",
              "        background-color: #E2EBFA;\n",
              "        box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "        fill: #174EA6;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate {\n",
              "        background-color: #3B4455;\n",
              "        fill: #D2E3FC;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate:hover {\n",
              "        background-color: #434B5C;\n",
              "        box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "        filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "        fill: #FFFFFF;\n",
              "      }\n",
              "    </style>\n",
              "    <button class=\"colab-df-generate\" onclick=\"generateWithVariable('features_filtered_train')\"\n",
              "            title=\"Generate code using this dataframe.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
              "       width=\"24px\">\n",
              "    <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "    <script>\n",
              "      (() => {\n",
              "      const buttonEl =\n",
              "        document.querySelector('#id_4f775d2b-1b74-49ef-9849-885a049da8cb button.colab-df-generate');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      buttonEl.onclick = () => {\n",
              "        google.colab.notebook.generateWithVariable('features_filtered_train');\n",
              "      }\n",
              "      })();\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "    </div>\n",
              "  </div>\n"
            ],
            "application/vnd.google.colaboratory.intrinsic+json": {
              "type": "dataframe",
              "variable_name": "features_filtered_train",
              "summary": "{\n  \"name\": \"features_filtered_train\",\n  \"rows\": 17,\n  \"fields\": []\n}"
            }
          },
          "metadata": {},
          "execution_count": 21
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca = data_pca3\n",
        "\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='x',s=100,color='k', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "eY2naNICen-r",
        "outputId": "69d0d57a-da02-4118-b24c-6aedce08acea"
      },
      "execution_count": 22,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 26220 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "markdown",
      "source": [
        "###熟練者と初心者の比較\n"
      ],
      "metadata": {
        "id": "ocUKce7YeKwR"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "#熟練者と初心者の比較\n",
        "data1 = data_ExpertSuccess + data_ExpertFailure\n",
        "data2 = data_BeginnerSuccess+data_BeginnerFailure\n",
        "data1_legend = 'Expert'\n",
        "data2_legend = 'Beginner'"
      ],
      "metadata": {
        "id": "F_3ui8VwEPQR"
      },
      "execution_count": 23,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data1_id = [0]*len(data1)\n",
        "data2_id = [1]*len(data2)\n",
        "df_data, df_label =makeData(data1+data2,data1_id+data2_id)\n",
        "\n",
        "extracted_features_train = extract_features(df_data, column_id=\"id\")\n",
        "extracted_features_train_impute = impute(extracted_features_train)\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(extracted_features_train_impute)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca4 = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "tWDwGwrbeJAP",
        "outputId": "0095d44e-45e0-40cb-85c3-cef0882aa42b"
      },
      "execution_count": 24,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "/tmp/ipykernel_41858/1282099759.py:10: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.\n",
            "  df_data = pd.concat([df_data,df_data0], ignore_index=False)\n",
            "WARNING:tsfresh.feature_extraction.settings:Dependency not available for matrix_profile, this feature will be disabled!\n",
            "Feature Extraction: 100%|██████████| 96/96 [02:18<00:00,  1.44s/it]\n",
            "/usr/local/lib/python3.12/dist-packages/tsfresh/utilities/dataframe_functions.py:198: RuntimeWarning: The columns ['time__benford_correlation'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__query_similarity_count__query_None__threshold_0.0'\n",
            " 'x__query_similarity_count__query_None__threshold_0.0'\n",
            " 'y__query_similarity_count__query_None__threshold_0.0'\n",
            " 'z__query_similarity_count__query_None__threshold_0.0'] did not have any finite values. Filling with zeros.\n",
            "  warnings.warn(\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "features_filtered_train = select_features(extracted_features_train_impute, df_label)\n",
        "features_filtered_train"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 851
        },
        "id": "_QbJdXZnF_HY",
        "outputId": "8e0f86e9-09a8-4e5d-be14-965c74d79cd0"
      },
      "execution_count": 25,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "                      z__ratio_beyond_r_sigma__r_3  x__quantile__q_0.2  \\\n",
              "BeginnerFailure1.txt                         0.000               -42.2   \n",
              "BeginnerFailure2.txt                         0.003               -45.0   \n",
              "BeginnerFailure3.txt                         0.000               -42.0   \n",
              "BeginnerFailure4.txt                         0.001               -47.0   \n",
              "BeginnerFailure5.txt                         0.002               -37.0   \n",
              "BeginnerFailure6.txt                         0.002               -34.0   \n",
              "BeginnerFailure7.txt                         0.000               -40.0   \n",
              "BeginnerSuccess1.txt                         0.001               -46.2   \n",
              "BeginnerSuccess2.txt                         0.009               -49.0   \n",
              "BeginnerSuccess3.txt                         0.001               -44.0   \n",
              "BeginnerSuccess4.txt                         0.000               -37.2   \n",
              "BeginnerSuccess5.txt                         0.001               -41.0   \n",
              "BeginnerSuccess6.txt                         0.000               -44.0   \n",
              "ExpertFailure1.txt                           0.039               -27.0   \n",
              "ExpertFailure2.txt                           0.038               -27.0   \n",
              "ExpertFailure3.txt                           0.041               -29.0   \n",
              "ExpertFailure4.txt                           0.036               -33.0   \n",
              "ExpertFailure5.txt                           0.040               -20.0   \n",
              "ExpertFailure6.txt                           0.046               -24.2   \n",
              "ExpertSuccess1.txt                           0.031               -23.2   \n",
              "ExpertSuccess2.txt                           0.030               -29.0   \n",
              "ExpertSuccess3.txt                           0.039               -27.0   \n",
              "ExpertSuccess4.txt                           0.035               -22.0   \n",
              "ExpertSuccess5.txt                           0.029               -27.0   \n",
              "\n",
              "                      z__ratio_beyond_r_sigma__r_2.5  z__quantile__q_0.2  \\\n",
              "BeginnerFailure1.txt                           0.013               -60.0   \n",
              "BeginnerFailure2.txt                           0.004               -72.2   \n",
              "BeginnerFailure3.txt                           0.016               -80.0   \n",
              "BeginnerFailure4.txt                           0.005               -75.0   \n",
              "BeginnerFailure5.txt                           0.004               -73.0   \n",
              "BeginnerFailure6.txt                           0.022               -78.0   \n",
              "BeginnerFailure7.txt                           0.016               -66.2   \n",
              "BeginnerSuccess1.txt                           0.003               -72.0   \n",
              "BeginnerSuccess2.txt                           0.032               -73.0   \n",
              "BeginnerSuccess3.txt                           0.026               -73.0   \n",
              "BeginnerSuccess4.txt                           0.002               -71.0   \n",
              "BeginnerSuccess5.txt                           0.021               -74.0   \n",
              "BeginnerSuccess6.txt                           0.000               -78.2   \n",
              "ExpertFailure1.txt                             0.050               -39.2   \n",
              "ExpertFailure2.txt                             0.049               -53.0   \n",
              "ExpertFailure3.txt                             0.053               -56.0   \n",
              "ExpertFailure4.txt                             0.053               -47.0   \n",
              "ExpertFailure5.txt                             0.051               -27.0   \n",
              "ExpertFailure6.txt                             0.055               -56.2   \n",
              "ExpertSuccess1.txt                             0.050               -44.2   \n",
              "ExpertSuccess2.txt                             0.048               -54.0   \n",
              "ExpertSuccess3.txt                             0.052               -58.0   \n",
              "ExpertSuccess4.txt                             0.048               -50.2   \n",
              "ExpertSuccess5.txt                             0.048               -55.0   \n",
              "\n",
              "                      y__quantile__q_0.2  z__index_mass_quantile__q_0.7  \\\n",
              "BeginnerFailure1.txt               -75.0                          0.822   \n",
              "BeginnerFailure2.txt               -78.2                          0.748   \n",
              "BeginnerFailure3.txt               -72.2                          0.787   \n",
              "BeginnerFailure4.txt               -74.0                          0.809   \n",
              "BeginnerFailure5.txt               -90.0                          0.799   \n",
              "BeginnerFailure6.txt               -73.0                          0.793   \n",
              "BeginnerFailure7.txt               -69.0                          0.813   \n",
              "BeginnerSuccess1.txt               -81.0                          0.768   \n",
              "BeginnerSuccess2.txt               -74.0                          0.813   \n",
              "BeginnerSuccess3.txt               -65.0                          0.775   \n",
              "BeginnerSuccess4.txt               -77.0                          0.781   \n",
              "BeginnerSuccess5.txt               -78.0                          0.794   \n",
              "BeginnerSuccess6.txt               -86.0                          0.775   \n",
              "ExpertFailure1.txt                 -35.2                          0.545   \n",
              "ExpertFailure2.txt                 -45.0                          0.489   \n",
              "ExpertFailure3.txt                 -39.0                          0.491   \n",
              "ExpertFailure4.txt                 -38.0                          0.584   \n",
              "ExpertFailure5.txt                 -53.0                          0.442   \n",
              "ExpertFailure6.txt                 -44.0                          0.572   \n",
              "ExpertSuccess1.txt                 -34.0                          0.423   \n",
              "ExpertSuccess2.txt                 -38.0                          0.519   \n",
              "ExpertSuccess3.txt                 -37.0                          0.488   \n",
              "ExpertSuccess4.txt                 -40.0                          0.501   \n",
              "ExpertSuccess5.txt                 -44.0                          0.673   \n",
              "\n",
              "                      y__quantile__q_0.1  z__index_mass_quantile__q_0.4  \\\n",
              "BeginnerFailure1.txt              -128.1                          0.735   \n",
              "BeginnerFailure2.txt              -143.0                          0.560   \n",
              "BeginnerFailure3.txt              -131.1                          0.648   \n",
              "BeginnerFailure4.txt               -94.0                          0.673   \n",
              "BeginnerFailure5.txt              -128.0                          0.674   \n",
              "BeginnerFailure6.txt              -134.0                          0.629   \n",
              "BeginnerFailure7.txt              -140.3                          0.712   \n",
              "BeginnerSuccess1.txt              -109.1                          0.572   \n",
              "BeginnerSuccess2.txt              -116.3                          0.684   \n",
              "BeginnerSuccess3.txt              -128.0                          0.594   \n",
              "BeginnerSuccess4.txt              -114.1                          0.607   \n",
              "BeginnerSuccess5.txt              -126.2                          0.629   \n",
              "BeginnerSuccess6.txt              -134.1                          0.633   \n",
              "ExpertFailure1.txt                 -54.0                          0.491   \n",
              "ExpertFailure2.txt                 -56.0                          0.431   \n",
              "ExpertFailure3.txt                 -56.0                          0.409   \n",
              "ExpertFailure4.txt                 -59.0                          0.393   \n",
              "ExpertFailure5.txt                 -65.1                          0.398   \n",
              "ExpertFailure6.txt                 -58.0                          0.509   \n",
              "ExpertSuccess1.txt                 -47.0                          0.357   \n",
              "ExpertSuccess2.txt                 -49.0                          0.439   \n",
              "ExpertSuccess3.txt                 -52.0                          0.424   \n",
              "ExpertSuccess4.txt                 -57.1                          0.441   \n",
              "ExpertSuccess5.txt                 -58.1                          0.518   \n",
              "\n",
              "                      z__absolute_maximum  \\\n",
              "BeginnerFailure1.txt                160.0   \n",
              "BeginnerFailure2.txt                230.0   \n",
              "BeginnerFailure3.txt                172.0   \n",
              "BeginnerFailure4.txt                194.0   \n",
              "BeginnerFailure5.txt                228.0   \n",
              "BeginnerFailure6.txt                198.0   \n",
              "BeginnerFailure7.txt                150.0   \n",
              "BeginnerSuccess1.txt                195.0   \n",
              "BeginnerSuccess2.txt                237.0   \n",
              "BeginnerSuccess3.txt                173.0   \n",
              "BeginnerSuccess4.txt                189.0   \n",
              "BeginnerSuccess5.txt                166.0   \n",
              "BeginnerSuccess6.txt                172.0   \n",
              "ExpertFailure1.txt                  345.0   \n",
              "ExpertFailure2.txt                  355.0   \n",
              "ExpertFailure3.txt                  346.0   \n",
              "ExpertFailure4.txt                  342.0   \n",
              "ExpertFailure5.txt                  374.0   \n",
              "ExpertFailure6.txt                  314.0   \n",
              "ExpertSuccess1.txt                  317.0   \n",
              "ExpertSuccess2.txt                  299.0   \n",
              "ExpertSuccess3.txt                  307.0   \n",
              "ExpertSuccess4.txt                  312.0   \n",
              "ExpertSuccess5.txt                  258.0   \n",
              "\n",
              "                      y__percentage_of_reoccurring_datapoints_to_all_datapoints  \\\n",
              "BeginnerFailure1.txt                                              0.860           \n",
              "BeginnerFailure2.txt                                              0.867           \n",
              "BeginnerFailure3.txt                                              0.856           \n",
              "BeginnerFailure4.txt                                              0.871           \n",
              "BeginnerFailure5.txt                                              0.878           \n",
              "BeginnerFailure6.txt                                              0.899           \n",
              "BeginnerFailure7.txt                                              0.863           \n",
              "BeginnerSuccess1.txt                                              0.888           \n",
              "BeginnerSuccess2.txt                                              0.880           \n",
              "BeginnerSuccess3.txt                                              0.862           \n",
              "BeginnerSuccess4.txt                                              0.863           \n",
              "BeginnerSuccess5.txt                                              0.846           \n",
              "BeginnerSuccess6.txt                                              0.875           \n",
              "ExpertFailure1.txt                                                0.939           \n",
              "ExpertFailure2.txt                                                0.951           \n",
              "ExpertFailure3.txt                                                0.957           \n",
              "ExpertFailure4.txt                                                0.925           \n",
              "ExpertFailure5.txt                                                0.936           \n",
              "ExpertFailure6.txt                                                0.933           \n",
              "ExpertSuccess1.txt                                                0.937           \n",
              "ExpertSuccess2.txt                                                0.953           \n",
              "ExpertSuccess3.txt                                                0.938           \n",
              "ExpertSuccess4.txt                                                0.948           \n",
              "ExpertSuccess5.txt                                                0.947           \n",
              "\n",
              "                      ...  \\\n",
              "BeginnerFailure1.txt  ...   \n",
              "BeginnerFailure2.txt  ...   \n",
              "BeginnerFailure3.txt  ...   \n",
              "BeginnerFailure4.txt  ...   \n",
              "BeginnerFailure5.txt  ...   \n",
              "BeginnerFailure6.txt  ...   \n",
              "BeginnerFailure7.txt  ...   \n",
              "BeginnerSuccess1.txt  ...   \n",
              "BeginnerSuccess2.txt  ...   \n",
              "BeginnerSuccess3.txt  ...   \n",
              "BeginnerSuccess4.txt  ...   \n",
              "BeginnerSuccess5.txt  ...   \n",
              "BeginnerSuccess6.txt  ...   \n",
              "ExpertFailure1.txt    ...   \n",
              "ExpertFailure2.txt    ...   \n",
              "ExpertFailure3.txt    ...   \n",
              "ExpertFailure4.txt    ...   \n",
              "ExpertFailure5.txt    ...   \n",
              "ExpertFailure6.txt    ...   \n",
              "ExpertSuccess1.txt    ...   \n",
              "ExpertSuccess2.txt    ...   \n",
              "ExpertSuccess3.txt    ...   \n",
              "ExpertSuccess4.txt    ...   \n",
              "ExpertSuccess5.txt    ...   \n",
              "\n",
              "                      y__agg_linear_trend__attr_\"intercept\"__chunk_len_50__f_agg_\"var\"  \\\n",
              "BeginnerFailure1.txt                                         236.227903                  \n",
              "BeginnerFailure2.txt                                         176.948960                  \n",
              "BeginnerFailure3.txt                                         449.653074                  \n",
              "BeginnerFailure4.txt                                         666.844806                  \n",
              "BeginnerFailure5.txt                                         242.077766                  \n",
              "BeginnerFailure6.txt                                         626.010937                  \n",
              "BeginnerFailure7.txt                                        -111.918137                  \n",
              "BeginnerSuccess1.txt                                         952.468166                  \n",
              "BeginnerSuccess2.txt                                         660.047891                  \n",
              "BeginnerSuccess3.txt                                        1359.952309                  \n",
              "BeginnerSuccess4.txt                                        1028.908937                  \n",
              "BeginnerSuccess5.txt                                         679.087194                  \n",
              "BeginnerSuccess6.txt                                         219.537126                  \n",
              "ExpertFailure1.txt                                            92.386263                  \n",
              "ExpertFailure2.txt                                           245.323783                  \n",
              "ExpertFailure3.txt                                            32.182760                  \n",
              "ExpertFailure4.txt                                         -3448.730686                  \n",
              "ExpertFailure5.txt                                          -478.557897                  \n",
              "ExpertFailure6.txt                                           127.123183                  \n",
              "ExpertSuccess1.txt                                           160.551337                  \n",
              "ExpertSuccess2.txt                                            -2.978200                  \n",
              "ExpertSuccess3.txt                                           139.127126                  \n",
              "ExpertSuccess4.txt                                          -235.387840                  \n",
              "ExpertSuccess5.txt                                          -313.378149                  \n",
              "\n",
              "                      y__energy_ratio_by_chunks__num_segments_10__segment_focus_1  \\\n",
              "BeginnerFailure1.txt                                           0.000133             \n",
              "BeginnerFailure2.txt                                           0.000137             \n",
              "BeginnerFailure3.txt                                           0.000109             \n",
              "BeginnerFailure4.txt                                           0.000243             \n",
              "BeginnerFailure5.txt                                           0.000161             \n",
              "BeginnerFailure6.txt                                           0.000331             \n",
              "BeginnerFailure7.txt                                           0.000170             \n",
              "BeginnerSuccess1.txt                                           0.009815             \n",
              "BeginnerSuccess2.txt                                           0.000103             \n",
              "BeginnerSuccess3.txt                                           0.000068             \n",
              "BeginnerSuccess4.txt                                           0.000209             \n",
              "BeginnerSuccess5.txt                                           0.000361             \n",
              "BeginnerSuccess6.txt                                           0.000351             \n",
              "ExpertFailure1.txt                                             0.001276             \n",
              "ExpertFailure2.txt                                             0.000561             \n",
              "ExpertFailure3.txt                                             0.001742             \n",
              "ExpertFailure4.txt                                             0.001230             \n",
              "ExpertFailure5.txt                                             0.004827             \n",
              "ExpertFailure6.txt                                             0.000446             \n",
              "ExpertSuccess1.txt                                             0.000705             \n",
              "ExpertSuccess2.txt                                             0.001002             \n",
              "ExpertSuccess3.txt                                             0.003749             \n",
              "ExpertSuccess4.txt                                             0.005865             \n",
              "ExpertSuccess5.txt                                             0.002923             \n",
              "\n",
              "                      x__range_count__max_1__min_-1  x__value_count__value_-1  \\\n",
              "BeginnerFailure1.txt                          158.0                     128.0   \n",
              "BeginnerFailure2.txt                          173.0                      97.0   \n",
              "BeginnerFailure3.txt                          147.0                      81.0   \n",
              "BeginnerFailure4.txt                          173.0                      88.0   \n",
              "BeginnerFailure5.txt                          157.0                      93.0   \n",
              "BeginnerFailure6.txt                           59.0                      36.0   \n",
              "BeginnerFailure7.txt                          114.0                      41.0   \n",
              "BeginnerSuccess1.txt                          110.0                      50.0   \n",
              "BeginnerSuccess2.txt                          127.0                     100.0   \n",
              "BeginnerSuccess3.txt                           90.0                      24.0   \n",
              "BeginnerSuccess4.txt                           69.0                      51.0   \n",
              "BeginnerSuccess5.txt                          116.0                      55.0   \n",
              "BeginnerSuccess6.txt                          108.0                      66.0   \n",
              "ExpertFailure1.txt                             69.0                      34.0   \n",
              "ExpertFailure2.txt                            110.0                      54.0   \n",
              "ExpertFailure3.txt                             78.0                      40.0   \n",
              "ExpertFailure4.txt                             56.0                      21.0   \n",
              "ExpertFailure5.txt                             89.0                      33.0   \n",
              "ExpertFailure6.txt                             72.0                      25.0   \n",
              "ExpertSuccess1.txt                             46.0                      21.0   \n",
              "ExpertSuccess2.txt                             20.0                      10.0   \n",
              "ExpertSuccess3.txt                             51.0                      16.0   \n",
              "ExpertSuccess4.txt                             46.0                      28.0   \n",
              "ExpertSuccess5.txt                             54.0                      26.0   \n",
              "\n",
              "                      x__change_quantiles__f_agg_\"var\"__isabs_False__qh_0.6__ql_0.4  \\\n",
              "BeginnerFailure1.txt                                           0.636553               \n",
              "BeginnerFailure2.txt                                           9.241994               \n",
              "BeginnerFailure3.txt                                           3.917645               \n",
              "BeginnerFailure4.txt                                          10.038580               \n",
              "BeginnerFailure5.txt                                           3.200231               \n",
              "BeginnerFailure6.txt                                           3.209122               \n",
              "BeginnerFailure7.txt                                           1.859132               \n",
              "BeginnerSuccess1.txt                                           2.557900               \n",
              "BeginnerSuccess2.txt                                           6.973347               \n",
              "BeginnerSuccess3.txt                                           6.122428               \n",
              "BeginnerSuccess4.txt                                           6.132724               \n",
              "BeginnerSuccess5.txt                                           4.201411               \n",
              "BeginnerSuccess6.txt                                           2.656992               \n",
              "ExpertFailure1.txt                                             1.625554               \n",
              "ExpertFailure2.txt                                             1.073731               \n",
              "ExpertFailure3.txt                                             1.283765               \n",
              "ExpertFailure4.txt                                             1.580579               \n",
              "ExpertFailure5.txt                                             1.614375               \n",
              "ExpertFailure6.txt                                             1.686744               \n",
              "ExpertSuccess1.txt                                             0.877912               \n",
              "ExpertSuccess2.txt                                             2.177901               \n",
              "ExpertSuccess3.txt                                             1.785485               \n",
              "ExpertSuccess4.txt                                             1.482021               \n",
              "ExpertSuccess5.txt                                             1.565830               \n",
              "\n",
              "                      x__energy_ratio_by_chunks__num_segments_10__segment_focus_0  \\\n",
              "BeginnerFailure1.txt                                           0.000182             \n",
              "BeginnerFailure2.txt                                           0.000075             \n",
              "BeginnerFailure3.txt                                           0.000253             \n",
              "BeginnerFailure4.txt                                           0.000236             \n",
              "BeginnerFailure5.txt                                           0.000177             \n",
              "BeginnerFailure6.txt                                           0.000253             \n",
              "BeginnerFailure7.txt                                           0.000274             \n",
              "BeginnerSuccess1.txt                                           0.000185             \n",
              "BeginnerSuccess2.txt                                           0.000179             \n",
              "BeginnerSuccess3.txt                                           0.000137             \n",
              "BeginnerSuccess4.txt                                           0.000288             \n",
              "BeginnerSuccess5.txt                                           0.000314             \n",
              "BeginnerSuccess6.txt                                           0.000211             \n",
              "ExpertFailure1.txt                                             0.000391             \n",
              "ExpertFailure2.txt                                             0.000377             \n",
              "ExpertFailure3.txt                                             0.000973             \n",
              "ExpertFailure4.txt                                             0.002205             \n",
              "ExpertFailure5.txt                                             0.000765             \n",
              "ExpertFailure6.txt                                             0.000127             \n",
              "ExpertSuccess1.txt                                             0.001627             \n",
              "ExpertSuccess2.txt                                             0.000982             \n",
              "ExpertSuccess3.txt                                             0.003703             \n",
              "ExpertSuccess4.txt                                             0.002434             \n",
              "ExpertSuccess5.txt                                             0.002156             \n",
              "\n",
              "                      y__agg_autocorrelation__f_agg_\"median\"__maxlag_40  \\\n",
              "BeginnerFailure1.txt                                           0.888867   \n",
              "BeginnerFailure2.txt                                           0.736006   \n",
              "BeginnerFailure3.txt                                           0.867170   \n",
              "BeginnerFailure4.txt                                           0.850657   \n",
              "BeginnerFailure5.txt                                           0.839196   \n",
              "BeginnerFailure6.txt                                           0.860778   \n",
              "BeginnerFailure7.txt                                           0.870969   \n",
              "BeginnerSuccess1.txt                                           0.800206   \n",
              "BeginnerSuccess2.txt                                           0.732660   \n",
              "BeginnerSuccess3.txt                                           0.837070   \n",
              "BeginnerSuccess4.txt                                           0.855369   \n",
              "BeginnerSuccess5.txt                                           0.847834   \n",
              "BeginnerSuccess6.txt                                           0.844774   \n",
              "ExpertFailure1.txt                                             0.808454   \n",
              "ExpertFailure2.txt                                             0.788532   \n",
              "ExpertFailure3.txt                                             0.692316   \n",
              "ExpertFailure4.txt                                             0.259776   \n",
              "ExpertFailure5.txt                                             0.600549   \n",
              "ExpertFailure6.txt                                             0.832747   \n",
              "ExpertSuccess1.txt                                             0.563120   \n",
              "ExpertSuccess2.txt                                             0.660070   \n",
              "ExpertSuccess3.txt                                             0.757380   \n",
              "ExpertSuccess4.txt                                             0.520382   \n",
              "ExpertSuccess5.txt                                             0.745054   \n",
              "\n",
              "                      x__change_quantiles__f_agg_\"var\"__isabs_True__qh_0.6__ql_0.4  \\\n",
              "BeginnerFailure1.txt                                           0.418454              \n",
              "BeginnerFailure2.txt                                           5.652078              \n",
              "BeginnerFailure3.txt                                           2.288453              \n",
              "BeginnerFailure4.txt                                           7.077160              \n",
              "BeginnerFailure5.txt                                           1.994462              \n",
              "BeginnerFailure6.txt                                           1.809259              \n",
              "BeginnerFailure7.txt                                           1.182762              \n",
              "BeginnerSuccess1.txt                                           1.667500              \n",
              "BeginnerSuccess2.txt                                           4.971368              \n",
              "BeginnerSuccess3.txt                                           3.465556              \n",
              "BeginnerSuccess4.txt                                           3.993294              \n",
              "BeginnerSuccess5.txt                                           2.426523              \n",
              "BeginnerSuccess6.txt                                           1.565887              \n",
              "ExpertFailure1.txt                                             0.911779              \n",
              "ExpertFailure2.txt                                             0.700617              \n",
              "ExpertFailure3.txt                                             0.800382              \n",
              "ExpertFailure4.txt                                             0.817391              \n",
              "ExpertFailure5.txt                                             1.089375              \n",
              "ExpertFailure6.txt                                             0.937917              \n",
              "ExpertSuccess1.txt                                             0.488042              \n",
              "ExpertSuccess2.txt                                             1.440750              \n",
              "ExpertSuccess3.txt                                             1.044432              \n",
              "ExpertSuccess4.txt                                             0.816048              \n",
              "ExpertSuccess5.txt                                             1.008828              \n",
              "\n",
              "                      z__agg_autocorrelation__f_agg_\"median\"__maxlag_40  \\\n",
              "BeginnerFailure1.txt                                           0.867324   \n",
              "BeginnerFailure2.txt                                           0.800296   \n",
              "BeginnerFailure3.txt                                           0.874580   \n",
              "BeginnerFailure4.txt                                           0.852654   \n",
              "BeginnerFailure5.txt                                           0.800797   \n",
              "BeginnerFailure6.txt                                           0.814190   \n",
              "BeginnerFailure7.txt                                           0.868118   \n",
              "BeginnerSuccess1.txt                                           0.840544   \n",
              "BeginnerSuccess2.txt                                           0.837810   \n",
              "BeginnerSuccess3.txt                                           0.865119   \n",
              "BeginnerSuccess4.txt                                           0.891168   \n",
              "BeginnerSuccess5.txt                                           0.895572   \n",
              "BeginnerSuccess6.txt                                           0.875996   \n",
              "ExpertFailure1.txt                                             0.798058   \n",
              "ExpertFailure2.txt                                             0.775535   \n",
              "ExpertFailure3.txt                                             0.788870   \n",
              "ExpertFailure4.txt                                             0.627639   \n",
              "ExpertFailure5.txt                                             0.709326   \n",
              "ExpertFailure6.txt                                             0.801036   \n",
              "ExpertSuccess1.txt                                             0.801746   \n",
              "ExpertSuccess2.txt                                             0.825931   \n",
              "ExpertSuccess3.txt                                             0.813048   \n",
              "ExpertSuccess4.txt                                             0.789983   \n",
              "ExpertSuccess5.txt                                             0.816979   \n",
              "\n",
              "                      y__change_quantiles__f_agg_\"mean\"__isabs_True__qh_0.6__ql_0.2  \n",
              "BeginnerFailure1.txt                                           1.483568              \n",
              "BeginnerFailure2.txt                                           2.373333              \n",
              "BeginnerFailure3.txt                                           2.986877              \n",
              "BeginnerFailure4.txt                                           2.374346              \n",
              "BeginnerFailure5.txt                                           3.160622              \n",
              "BeginnerFailure6.txt                                           2.820856              \n",
              "BeginnerFailure7.txt                                           2.146402              \n",
              "BeginnerSuccess1.txt                                           1.393782              \n",
              "BeginnerSuccess2.txt                                           2.301020              \n",
              "BeginnerSuccess3.txt                                           1.870558              \n",
              "BeginnerSuccess4.txt                                           3.092308              \n",
              "BeginnerSuccess5.txt                                           2.013953              \n",
              "BeginnerSuccess6.txt                                           3.118090              \n",
              "ExpertFailure1.txt                                             1.243902              \n",
              "ExpertFailure2.txt                                             1.992443              \n",
              "ExpertFailure3.txt                                             1.252525              \n",
              "ExpertFailure4.txt                                             1.621687              \n",
              "ExpertFailure5.txt                                             1.363171              \n",
              "ExpertFailure6.txt                                             1.655263              \n",
              "ExpertSuccess1.txt                                             1.415816              \n",
              "ExpertSuccess2.txt                                             1.717822              \n",
              "ExpertSuccess3.txt                                             1.288265              \n",
              "ExpertSuccess4.txt                                             1.193627              \n",
              "ExpertSuccess5.txt                                             1.497436              \n",
              "\n",
              "[24 rows x 235 columns]"
            ],
            "text/html": [
              "\n",
              "  <div id=\"df-cc7940e6-dbfa-487e-9470-bb4ab18dd67d\" class=\"colab-df-container\">\n",
              "    <div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "      <th>z__ratio_beyond_r_sigma__r_3</th>\n",
              "      <th>x__quantile__q_0.2</th>\n",
              "      <th>z__ratio_beyond_r_sigma__r_2.5</th>\n",
              "      <th>z__quantile__q_0.2</th>\n",
              "      <th>y__quantile__q_0.2</th>\n",
              "      <th>z__index_mass_quantile__q_0.7</th>\n",
              "      <th>y__quantile__q_0.1</th>\n",
              "      <th>z__index_mass_quantile__q_0.4</th>\n",
              "      <th>z__absolute_maximum</th>\n",
              "      <th>y__percentage_of_reoccurring_datapoints_to_all_datapoints</th>\n",
              "      <th>...</th>\n",
              "      <th>y__agg_linear_trend__attr_\"intercept\"__chunk_len_50__f_agg_\"var\"</th>\n",
              "      <th>y__energy_ratio_by_chunks__num_segments_10__segment_focus_1</th>\n",
              "      <th>x__range_count__max_1__min_-1</th>\n",
              "      <th>x__value_count__value_-1</th>\n",
              "      <th>x__change_quantiles__f_agg_\"var\"__isabs_False__qh_0.6__ql_0.4</th>\n",
              "      <th>x__energy_ratio_by_chunks__num_segments_10__segment_focus_0</th>\n",
              "      <th>y__agg_autocorrelation__f_agg_\"median\"__maxlag_40</th>\n",
              "      <th>x__change_quantiles__f_agg_\"var\"__isabs_True__qh_0.6__ql_0.4</th>\n",
              "      <th>z__agg_autocorrelation__f_agg_\"median\"__maxlag_40</th>\n",
              "      <th>y__change_quantiles__f_agg_\"mean\"__isabs_True__qh_0.6__ql_0.2</th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure1.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>-42.2</td>\n",
              "      <td>0.013</td>\n",
              "      <td>-60.0</td>\n",
              "      <td>-75.0</td>\n",
              "      <td>0.822</td>\n",
              "      <td>-128.1</td>\n",
              "      <td>0.735</td>\n",
              "      <td>160.0</td>\n",
              "      <td>0.860</td>\n",
              "      <td>...</td>\n",
              "      <td>236.227903</td>\n",
              "      <td>0.000133</td>\n",
              "      <td>158.0</td>\n",
              "      <td>128.0</td>\n",
              "      <td>0.636553</td>\n",
              "      <td>0.000182</td>\n",
              "      <td>0.888867</td>\n",
              "      <td>0.418454</td>\n",
              "      <td>0.867324</td>\n",
              "      <td>1.483568</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure2.txt</th>\n",
              "      <td>0.003</td>\n",
              "      <td>-45.0</td>\n",
              "      <td>0.004</td>\n",
              "      <td>-72.2</td>\n",
              "      <td>-78.2</td>\n",
              "      <td>0.748</td>\n",
              "      <td>-143.0</td>\n",
              "      <td>0.560</td>\n",
              "      <td>230.0</td>\n",
              "      <td>0.867</td>\n",
              "      <td>...</td>\n",
              "      <td>176.948960</td>\n",
              "      <td>0.000137</td>\n",
              "      <td>173.0</td>\n",
              "      <td>97.0</td>\n",
              "      <td>9.241994</td>\n",
              "      <td>0.000075</td>\n",
              "      <td>0.736006</td>\n",
              "      <td>5.652078</td>\n",
              "      <td>0.800296</td>\n",
              "      <td>2.373333</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure3.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>-42.0</td>\n",
              "      <td>0.016</td>\n",
              "      <td>-80.0</td>\n",
              "      <td>-72.2</td>\n",
              "      <td>0.787</td>\n",
              "      <td>-131.1</td>\n",
              "      <td>0.648</td>\n",
              "      <td>172.0</td>\n",
              "      <td>0.856</td>\n",
              "      <td>...</td>\n",
              "      <td>449.653074</td>\n",
              "      <td>0.000109</td>\n",
              "      <td>147.0</td>\n",
              "      <td>81.0</td>\n",
              "      <td>3.917645</td>\n",
              "      <td>0.000253</td>\n",
              "      <td>0.867170</td>\n",
              "      <td>2.288453</td>\n",
              "      <td>0.874580</td>\n",
              "      <td>2.986877</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure4.txt</th>\n",
              "      <td>0.001</td>\n",
              "      <td>-47.0</td>\n",
              "      <td>0.005</td>\n",
              "      <td>-75.0</td>\n",
              "      <td>-74.0</td>\n",
              "      <td>0.809</td>\n",
              "      <td>-94.0</td>\n",
              "      <td>0.673</td>\n",
              "      <td>194.0</td>\n",
              "      <td>0.871</td>\n",
              "      <td>...</td>\n",
              "      <td>666.844806</td>\n",
              "      <td>0.000243</td>\n",
              "      <td>173.0</td>\n",
              "      <td>88.0</td>\n",
              "      <td>10.038580</td>\n",
              "      <td>0.000236</td>\n",
              "      <td>0.850657</td>\n",
              "      <td>7.077160</td>\n",
              "      <td>0.852654</td>\n",
              "      <td>2.374346</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure5.txt</th>\n",
              "      <td>0.002</td>\n",
              "      <td>-37.0</td>\n",
              "      <td>0.004</td>\n",
              "      <td>-73.0</td>\n",
              "      <td>-90.0</td>\n",
              "      <td>0.799</td>\n",
              "      <td>-128.0</td>\n",
              "      <td>0.674</td>\n",
              "      <td>228.0</td>\n",
              "      <td>0.878</td>\n",
              "      <td>...</td>\n",
              "      <td>242.077766</td>\n",
              "      <td>0.000161</td>\n",
              "      <td>157.0</td>\n",
              "      <td>93.0</td>\n",
              "      <td>3.200231</td>\n",
              "      <td>0.000177</td>\n",
              "      <td>0.839196</td>\n",
              "      <td>1.994462</td>\n",
              "      <td>0.800797</td>\n",
              "      <td>3.160622</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure6.txt</th>\n",
              "      <td>0.002</td>\n",
              "      <td>-34.0</td>\n",
              "      <td>0.022</td>\n",
              "      <td>-78.0</td>\n",
              "      <td>-73.0</td>\n",
              "      <td>0.793</td>\n",
              "      <td>-134.0</td>\n",
              "      <td>0.629</td>\n",
              "      <td>198.0</td>\n",
              "      <td>0.899</td>\n",
              "      <td>...</td>\n",
              "      <td>626.010937</td>\n",
              "      <td>0.000331</td>\n",
              "      <td>59.0</td>\n",
              "      <td>36.0</td>\n",
              "      <td>3.209122</td>\n",
              "      <td>0.000253</td>\n",
              "      <td>0.860778</td>\n",
              "      <td>1.809259</td>\n",
              "      <td>0.814190</td>\n",
              "      <td>2.820856</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure7.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>-40.0</td>\n",
              "      <td>0.016</td>\n",
              "      <td>-66.2</td>\n",
              "      <td>-69.0</td>\n",
              "      <td>0.813</td>\n",
              "      <td>-140.3</td>\n",
              "      <td>0.712</td>\n",
              "      <td>150.0</td>\n",
              "      <td>0.863</td>\n",
              "      <td>...</td>\n",
              "      <td>-111.918137</td>\n",
              "      <td>0.000170</td>\n",
              "      <td>114.0</td>\n",
              "      <td>41.0</td>\n",
              "      <td>1.859132</td>\n",
              "      <td>0.000274</td>\n",
              "      <td>0.870969</td>\n",
              "      <td>1.182762</td>\n",
              "      <td>0.868118</td>\n",
              "      <td>2.146402</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess1.txt</th>\n",
              "      <td>0.001</td>\n",
              "      <td>-46.2</td>\n",
              "      <td>0.003</td>\n",
              "      <td>-72.0</td>\n",
              "      <td>-81.0</td>\n",
              "      <td>0.768</td>\n",
              "      <td>-109.1</td>\n",
              "      <td>0.572</td>\n",
              "      <td>195.0</td>\n",
              "      <td>0.888</td>\n",
              "      <td>...</td>\n",
              "      <td>952.468166</td>\n",
              "      <td>0.009815</td>\n",
              "      <td>110.0</td>\n",
              "      <td>50.0</td>\n",
              "      <td>2.557900</td>\n",
              "      <td>0.000185</td>\n",
              "      <td>0.800206</td>\n",
              "      <td>1.667500</td>\n",
              "      <td>0.840544</td>\n",
              "      <td>1.393782</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess2.txt</th>\n",
              "      <td>0.009</td>\n",
              "      <td>-49.0</td>\n",
              "      <td>0.032</td>\n",
              "      <td>-73.0</td>\n",
              "      <td>-74.0</td>\n",
              "      <td>0.813</td>\n",
              "      <td>-116.3</td>\n",
              "      <td>0.684</td>\n",
              "      <td>237.0</td>\n",
              "      <td>0.880</td>\n",
              "      <td>...</td>\n",
              "      <td>660.047891</td>\n",
              "      <td>0.000103</td>\n",
              "      <td>127.0</td>\n",
              "      <td>100.0</td>\n",
              "      <td>6.973347</td>\n",
              "      <td>0.000179</td>\n",
              "      <td>0.732660</td>\n",
              "      <td>4.971368</td>\n",
              "      <td>0.837810</td>\n",
              "      <td>2.301020</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess3.txt</th>\n",
              "      <td>0.001</td>\n",
              "      <td>-44.0</td>\n",
              "      <td>0.026</td>\n",
              "      <td>-73.0</td>\n",
              "      <td>-65.0</td>\n",
              "      <td>0.775</td>\n",
              "      <td>-128.0</td>\n",
              "      <td>0.594</td>\n",
              "      <td>173.0</td>\n",
              "      <td>0.862</td>\n",
              "      <td>...</td>\n",
              "      <td>1359.952309</td>\n",
              "      <td>0.000068</td>\n",
              "      <td>90.0</td>\n",
              "      <td>24.0</td>\n",
              "      <td>6.122428</td>\n",
              "      <td>0.000137</td>\n",
              "      <td>0.837070</td>\n",
              "      <td>3.465556</td>\n",
              "      <td>0.865119</td>\n",
              "      <td>1.870558</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess4.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>-37.2</td>\n",
              "      <td>0.002</td>\n",
              "      <td>-71.0</td>\n",
              "      <td>-77.0</td>\n",
              "      <td>0.781</td>\n",
              "      <td>-114.1</td>\n",
              "      <td>0.607</td>\n",
              "      <td>189.0</td>\n",
              "      <td>0.863</td>\n",
              "      <td>...</td>\n",
              "      <td>1028.908937</td>\n",
              "      <td>0.000209</td>\n",
              "      <td>69.0</td>\n",
              "      <td>51.0</td>\n",
              "      <td>6.132724</td>\n",
              "      <td>0.000288</td>\n",
              "      <td>0.855369</td>\n",
              "      <td>3.993294</td>\n",
              "      <td>0.891168</td>\n",
              "      <td>3.092308</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess5.txt</th>\n",
              "      <td>0.001</td>\n",
              "      <td>-41.0</td>\n",
              "      <td>0.021</td>\n",
              "      <td>-74.0</td>\n",
              "      <td>-78.0</td>\n",
              "      <td>0.794</td>\n",
              "      <td>-126.2</td>\n",
              "      <td>0.629</td>\n",
              "      <td>166.0</td>\n",
              "      <td>0.846</td>\n",
              "      <td>...</td>\n",
              "      <td>679.087194</td>\n",
              "      <td>0.000361</td>\n",
              "      <td>116.0</td>\n",
              "      <td>55.0</td>\n",
              "      <td>4.201411</td>\n",
              "      <td>0.000314</td>\n",
              "      <td>0.847834</td>\n",
              "      <td>2.426523</td>\n",
              "      <td>0.895572</td>\n",
              "      <td>2.013953</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess6.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>-44.0</td>\n",
              "      <td>0.000</td>\n",
              "      <td>-78.2</td>\n",
              "      <td>-86.0</td>\n",
              "      <td>0.775</td>\n",
              "      <td>-134.1</td>\n",
              "      <td>0.633</td>\n",
              "      <td>172.0</td>\n",
              "      <td>0.875</td>\n",
              "      <td>...</td>\n",
              "      <td>219.537126</td>\n",
              "      <td>0.000351</td>\n",
              "      <td>108.0</td>\n",
              "      <td>66.0</td>\n",
              "      <td>2.656992</td>\n",
              "      <td>0.000211</td>\n",
              "      <td>0.844774</td>\n",
              "      <td>1.565887</td>\n",
              "      <td>0.875996</td>\n",
              "      <td>3.118090</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure1.txt</th>\n",
              "      <td>0.039</td>\n",
              "      <td>-27.0</td>\n",
              "      <td>0.050</td>\n",
              "      <td>-39.2</td>\n",
              "      <td>-35.2</td>\n",
              "      <td>0.545</td>\n",
              "      <td>-54.0</td>\n",
              "      <td>0.491</td>\n",
              "      <td>345.0</td>\n",
              "      <td>0.939</td>\n",
              "      <td>...</td>\n",
              "      <td>92.386263</td>\n",
              "      <td>0.001276</td>\n",
              "      <td>69.0</td>\n",
              "      <td>34.0</td>\n",
              "      <td>1.625554</td>\n",
              "      <td>0.000391</td>\n",
              "      <td>0.808454</td>\n",
              "      <td>0.911779</td>\n",
              "      <td>0.798058</td>\n",
              "      <td>1.243902</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure2.txt</th>\n",
              "      <td>0.038</td>\n",
              "      <td>-27.0</td>\n",
              "      <td>0.049</td>\n",
              "      <td>-53.0</td>\n",
              "      <td>-45.0</td>\n",
              "      <td>0.489</td>\n",
              "      <td>-56.0</td>\n",
              "      <td>0.431</td>\n",
              "      <td>355.0</td>\n",
              "      <td>0.951</td>\n",
              "      <td>...</td>\n",
              "      <td>245.323783</td>\n",
              "      <td>0.000561</td>\n",
              "      <td>110.0</td>\n",
              "      <td>54.0</td>\n",
              "      <td>1.073731</td>\n",
              "      <td>0.000377</td>\n",
              "      <td>0.788532</td>\n",
              "      <td>0.700617</td>\n",
              "      <td>0.775535</td>\n",
              "      <td>1.992443</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure3.txt</th>\n",
              "      <td>0.041</td>\n",
              "      <td>-29.0</td>\n",
              "      <td>0.053</td>\n",
              "      <td>-56.0</td>\n",
              "      <td>-39.0</td>\n",
              "      <td>0.491</td>\n",
              "      <td>-56.0</td>\n",
              "      <td>0.409</td>\n",
              "      <td>346.0</td>\n",
              "      <td>0.957</td>\n",
              "      <td>...</td>\n",
              "      <td>32.182760</td>\n",
              "      <td>0.001742</td>\n",
              "      <td>78.0</td>\n",
              "      <td>40.0</td>\n",
              "      <td>1.283765</td>\n",
              "      <td>0.000973</td>\n",
              "      <td>0.692316</td>\n",
              "      <td>0.800382</td>\n",
              "      <td>0.788870</td>\n",
              "      <td>1.252525</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure4.txt</th>\n",
              "      <td>0.036</td>\n",
              "      <td>-33.0</td>\n",
              "      <td>0.053</td>\n",
              "      <td>-47.0</td>\n",
              "      <td>-38.0</td>\n",
              "      <td>0.584</td>\n",
              "      <td>-59.0</td>\n",
              "      <td>0.393</td>\n",
              "      <td>342.0</td>\n",
              "      <td>0.925</td>\n",
              "      <td>...</td>\n",
              "      <td>-3448.730686</td>\n",
              "      <td>0.001230</td>\n",
              "      <td>56.0</td>\n",
              "      <td>21.0</td>\n",
              "      <td>1.580579</td>\n",
              "      <td>0.002205</td>\n",
              "      <td>0.259776</td>\n",
              "      <td>0.817391</td>\n",
              "      <td>0.627639</td>\n",
              "      <td>1.621687</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure5.txt</th>\n",
              "      <td>0.040</td>\n",
              "      <td>-20.0</td>\n",
              "      <td>0.051</td>\n",
              "      <td>-27.0</td>\n",
              "      <td>-53.0</td>\n",
              "      <td>0.442</td>\n",
              "      <td>-65.1</td>\n",
              "      <td>0.398</td>\n",
              "      <td>374.0</td>\n",
              "      <td>0.936</td>\n",
              "      <td>...</td>\n",
              "      <td>-478.557897</td>\n",
              "      <td>0.004827</td>\n",
              "      <td>89.0</td>\n",
              "      <td>33.0</td>\n",
              "      <td>1.614375</td>\n",
              "      <td>0.000765</td>\n",
              "      <td>0.600549</td>\n",
              "      <td>1.089375</td>\n",
              "      <td>0.709326</td>\n",
              "      <td>1.363171</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure6.txt</th>\n",
              "      <td>0.046</td>\n",
              "      <td>-24.2</td>\n",
              "      <td>0.055</td>\n",
              "      <td>-56.2</td>\n",
              "      <td>-44.0</td>\n",
              "      <td>0.572</td>\n",
              "      <td>-58.0</td>\n",
              "      <td>0.509</td>\n",
              "      <td>314.0</td>\n",
              "      <td>0.933</td>\n",
              "      <td>...</td>\n",
              "      <td>127.123183</td>\n",
              "      <td>0.000446</td>\n",
              "      <td>72.0</td>\n",
              "      <td>25.0</td>\n",
              "      <td>1.686744</td>\n",
              "      <td>0.000127</td>\n",
              "      <td>0.832747</td>\n",
              "      <td>0.937917</td>\n",
              "      <td>0.801036</td>\n",
              "      <td>1.655263</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess1.txt</th>\n",
              "      <td>0.031</td>\n",
              "      <td>-23.2</td>\n",
              "      <td>0.050</td>\n",
              "      <td>-44.2</td>\n",
              "      <td>-34.0</td>\n",
              "      <td>0.423</td>\n",
              "      <td>-47.0</td>\n",
              "      <td>0.357</td>\n",
              "      <td>317.0</td>\n",
              "      <td>0.937</td>\n",
              "      <td>...</td>\n",
              "      <td>160.551337</td>\n",
              "      <td>0.000705</td>\n",
              "      <td>46.0</td>\n",
              "      <td>21.0</td>\n",
              "      <td>0.877912</td>\n",
              "      <td>0.001627</td>\n",
              "      <td>0.563120</td>\n",
              "      <td>0.488042</td>\n",
              "      <td>0.801746</td>\n",
              "      <td>1.415816</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess2.txt</th>\n",
              "      <td>0.030</td>\n",
              "      <td>-29.0</td>\n",
              "      <td>0.048</td>\n",
              "      <td>-54.0</td>\n",
              "      <td>-38.0</td>\n",
              "      <td>0.519</td>\n",
              "      <td>-49.0</td>\n",
              "      <td>0.439</td>\n",
              "      <td>299.0</td>\n",
              "      <td>0.953</td>\n",
              "      <td>...</td>\n",
              "      <td>-2.978200</td>\n",
              "      <td>0.001002</td>\n",
              "      <td>20.0</td>\n",
              "      <td>10.0</td>\n",
              "      <td>2.177901</td>\n",
              "      <td>0.000982</td>\n",
              "      <td>0.660070</td>\n",
              "      <td>1.440750</td>\n",
              "      <td>0.825931</td>\n",
              "      <td>1.717822</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess3.txt</th>\n",
              "      <td>0.039</td>\n",
              "      <td>-27.0</td>\n",
              "      <td>0.052</td>\n",
              "      <td>-58.0</td>\n",
              "      <td>-37.0</td>\n",
              "      <td>0.488</td>\n",
              "      <td>-52.0</td>\n",
              "      <td>0.424</td>\n",
              "      <td>307.0</td>\n",
              "      <td>0.938</td>\n",
              "      <td>...</td>\n",
              "      <td>139.127126</td>\n",
              "      <td>0.003749</td>\n",
              "      <td>51.0</td>\n",
              "      <td>16.0</td>\n",
              "      <td>1.785485</td>\n",
              "      <td>0.003703</td>\n",
              "      <td>0.757380</td>\n",
              "      <td>1.044432</td>\n",
              "      <td>0.813048</td>\n",
              "      <td>1.288265</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess4.txt</th>\n",
              "      <td>0.035</td>\n",
              "      <td>-22.0</td>\n",
              "      <td>0.048</td>\n",
              "      <td>-50.2</td>\n",
              "      <td>-40.0</td>\n",
              "      <td>0.501</td>\n",
              "      <td>-57.1</td>\n",
              "      <td>0.441</td>\n",
              "      <td>312.0</td>\n",
              "      <td>0.948</td>\n",
              "      <td>...</td>\n",
              "      <td>-235.387840</td>\n",
              "      <td>0.005865</td>\n",
              "      <td>46.0</td>\n",
              "      <td>28.0</td>\n",
              "      <td>1.482021</td>\n",
              "      <td>0.002434</td>\n",
              "      <td>0.520382</td>\n",
              "      <td>0.816048</td>\n",
              "      <td>0.789983</td>\n",
              "      <td>1.193627</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess5.txt</th>\n",
              "      <td>0.029</td>\n",
              "      <td>-27.0</td>\n",
              "      <td>0.048</td>\n",
              "      <td>-55.0</td>\n",
              "      <td>-44.0</td>\n",
              "      <td>0.673</td>\n",
              "      <td>-58.1</td>\n",
              "      <td>0.518</td>\n",
              "      <td>258.0</td>\n",
              "      <td>0.947</td>\n",
              "      <td>...</td>\n",
              "      <td>-313.378149</td>\n",
              "      <td>0.002923</td>\n",
              "      <td>54.0</td>\n",
              "      <td>26.0</td>\n",
              "      <td>1.565830</td>\n",
              "      <td>0.002156</td>\n",
              "      <td>0.745054</td>\n",
              "      <td>1.008828</td>\n",
              "      <td>0.816979</td>\n",
              "      <td>1.497436</td>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "<p>24 rows × 235 columns</p>\n",
              "</div>\n",
              "    <div class=\"colab-df-buttons\">\n",
              "\n",
              "  <div class=\"colab-df-container\">\n",
              "    <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-cc7940e6-dbfa-487e-9470-bb4ab18dd67d')\"\n",
              "            title=\"Convert this dataframe to an interactive table.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
              "    <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "\n",
              "  <style>\n",
              "    .colab-df-container {\n",
              "      display:flex;\n",
              "      gap: 12px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert {\n",
              "      background-color: #E8F0FE;\n",
              "      border: none;\n",
              "      border-radius: 50%;\n",
              "      cursor: pointer;\n",
              "      display: none;\n",
              "      fill: #1967D2;\n",
              "      height: 32px;\n",
              "      padding: 0 0 0 0;\n",
              "      width: 32px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert:hover {\n",
              "      background-color: #E2EBFA;\n",
              "      box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "      fill: #174EA6;\n",
              "    }\n",
              "\n",
              "    .colab-df-buttons div {\n",
              "      margin-bottom: 4px;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert {\n",
              "      background-color: #3B4455;\n",
              "      fill: #D2E3FC;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert:hover {\n",
              "      background-color: #434B5C;\n",
              "      box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "      filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "      fill: #FFFFFF;\n",
              "    }\n",
              "  </style>\n",
              "\n",
              "    <script>\n",
              "      const buttonEl =\n",
              "        document.querySelector('#df-cc7940e6-dbfa-487e-9470-bb4ab18dd67d button.colab-df-convert');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      async function convertToInteractive(key) {\n",
              "        const element = document.querySelector('#df-cc7940e6-dbfa-487e-9470-bb4ab18dd67d');\n",
              "        const dataTable =\n",
              "          await google.colab.kernel.invokeFunction('convertToInteractive',\n",
              "                                                    [key], {});\n",
              "        if (!dataTable) return;\n",
              "\n",
              "        const docLinkHtml = 'Like what you see? Visit the ' +\n",
              "          '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
              "          + ' to learn more about interactive tables.';\n",
              "        element.innerHTML = '';\n",
              "        dataTable['output_type'] = 'display_data';\n",
              "        await google.colab.output.renderOutput(dataTable, element);\n",
              "        const docLink = document.createElement('div');\n",
              "        docLink.innerHTML = docLinkHtml;\n",
              "        element.appendChild(docLink);\n",
              "      }\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "\n",
              "  <div id=\"id_d8caa5a4-ed03-44ee-b83d-c9fedc3291a6\">\n",
              "    <style>\n",
              "      .colab-df-generate {\n",
              "        background-color: #E8F0FE;\n",
              "        border: none;\n",
              "        border-radius: 50%;\n",
              "        cursor: pointer;\n",
              "        display: none;\n",
              "        fill: #1967D2;\n",
              "        height: 32px;\n",
              "        padding: 0 0 0 0;\n",
              "        width: 32px;\n",
              "      }\n",
              "\n",
              "      .colab-df-generate:hover {\n",
              "        background-color: #E2EBFA;\n",
              "        box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "        fill: #174EA6;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate {\n",
              "        background-color: #3B4455;\n",
              "        fill: #D2E3FC;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate:hover {\n",
              "        background-color: #434B5C;\n",
              "        box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "        filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "        fill: #FFFFFF;\n",
              "      }\n",
              "    </style>\n",
              "    <button class=\"colab-df-generate\" onclick=\"generateWithVariable('features_filtered_train')\"\n",
              "            title=\"Generate code using this dataframe.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
              "       width=\"24px\">\n",
              "    <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "    <script>\n",
              "      (() => {\n",
              "      const buttonEl =\n",
              "        document.querySelector('#id_d8caa5a4-ed03-44ee-b83d-c9fedc3291a6 button.colab-df-generate');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      buttonEl.onclick = () => {\n",
              "        google.colab.notebook.generateWithVariable('features_filtered_train');\n",
              "      }\n",
              "      })();\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "    </div>\n",
              "  </div>\n"
            ],
            "application/vnd.google.colaboratory.intrinsic+json": {
              "type": "dataframe",
              "variable_name": "features_filtered_train"
            }
          },
          "metadata": {},
          "execution_count": 25
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca = data_pca4\n",
        "\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='^',s=100,color='k', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "8dV22vareqB5",
        "outputId": "ee0f4e43-846f-4b99-91db-f964fd4bec0d"
      },
      "execution_count": 26,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 23436 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(features_filtered_train)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca4b = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "id": "ynCeryOLKtWE"
      },
      "execution_count": 27,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca = data_pca4b\n",
        "\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='^',s=100,color='k', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_sel.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_sel.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_sel.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "id": "9jvIDaMzKzlR",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "outputId": "36989f24-5170-41ad-8e08-90216b041471"
      },
      "execution_count": 28,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 25752 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "markdown",
      "source": [
        "###初心者と未経験者の比較"
      ],
      "metadata": {
        "id": "-W9f6dHBeOPr"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "#初心者と未経験者の比較\n",
        "data1 = data_BeginnerSuccess+data_BeginnerFailure\n",
        "data2 = data_NoExperienceFailure\n",
        "data1_legend = 'Beginner'\n",
        "data2_legend = 'NoExperience'"
      ],
      "metadata": {
        "id": "j4PfXppoF7le"
      },
      "execution_count": 29,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data1_id = [0]*len(data1)\n",
        "data2_id = [1]*len(data2)\n",
        "df_data, df_label =makeData(data1+data2,data1_id+data2_id)\n",
        "\n",
        "extracted_features_train = extract_features(df_data, column_id=\"id\")\n",
        "extracted_features_train_impute = impute(extracted_features_train)\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(extracted_features_train_impute)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca5 = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "qoU2CzzxeuEd",
        "outputId": "08ec1e3d-bb90-40d6-9bda-2f9dcd9ea7b8"
      },
      "execution_count": 30,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "/tmp/ipykernel_41858/1282099759.py:10: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.\n",
            "  df_data = pd.concat([df_data,df_data0], ignore_index=False)\n",
            "WARNING:tsfresh.feature_extraction.settings:Dependency not available for matrix_profile, this feature will be disabled!\n",
            "Feature Extraction: 100%|██████████| 76/76 [01:37<00:00,  1.29s/it]\n",
            "/usr/local/lib/python3.12/dist-packages/tsfresh/utilities/dataframe_functions.py:198: RuntimeWarning: The columns ['time__benford_correlation'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__query_similarity_count__query_None__threshold_0.0'\n",
            " 'x__query_similarity_count__query_None__threshold_0.0'\n",
            " 'y__query_similarity_count__query_None__threshold_0.0'\n",
            " 'z__query_similarity_count__query_None__threshold_0.0'] did not have any finite values. Filling with zeros.\n",
            "  warnings.warn(\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "features_filtered_train = select_features(extracted_features_train_impute, df_label)\n",
        "features_filtered_train"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 694
        },
        "id": "u5WnGaSLGBTv",
        "outputId": "f098f8c5-5992-44c3-9a97-e9ead3ef0948"
      },
      "execution_count": 31,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "                          z__permutation_entropy__dimension_7__tau_1  \\\n",
              "BeginnerFailure1.txt                                        4.332596   \n",
              "BeginnerFailure2.txt                                        4.279515   \n",
              "BeginnerFailure3.txt                                        4.868165   \n",
              "BeginnerFailure4.txt                                        4.796257   \n",
              "BeginnerFailure5.txt                                        4.295553   \n",
              "BeginnerFailure6.txt                                        4.455633   \n",
              "BeginnerFailure7.txt                                        4.435823   \n",
              "BeginnerSuccess1.txt                                        4.770228   \n",
              "BeginnerSuccess2.txt                                        4.659397   \n",
              "BeginnerSuccess3.txt                                        4.460108   \n",
              "BeginnerSuccess4.txt                                        4.776970   \n",
              "BeginnerSuccess5.txt                                        4.626736   \n",
              "BeginnerSuccess6.txt                                        4.487319   \n",
              "NoExperienceFailure1.txt                                    4.071211   \n",
              "NoExperienceFailure2.txt                                    3.584640   \n",
              "NoExperienceFailure3.txt                                    3.668126   \n",
              "NoExperienceFailure4.txt                                    3.442170   \n",
              "NoExperienceFailure5.txt                                    3.416475   \n",
              "NoExperienceFailure6.txt                                    4.108516   \n",
              "\n",
              "                          z__mean_n_absolute_max__number_of_maxima_7  \\\n",
              "BeginnerFailure1.txt                                      158.571429   \n",
              "BeginnerFailure2.txt                                      189.857143   \n",
              "BeginnerFailure3.txt                                      165.285714   \n",
              "BeginnerFailure4.txt                                      147.571429   \n",
              "BeginnerFailure5.txt                                      184.285714   \n",
              "BeginnerFailure6.txt                                      177.000000   \n",
              "BeginnerFailure7.txt                                      143.428571   \n",
              "BeginnerSuccess1.txt                                      169.428571   \n",
              "BeginnerSuccess2.txt                                      209.857143   \n",
              "BeginnerSuccess3.txt                                      155.285714   \n",
              "BeginnerSuccess4.txt                                      168.000000   \n",
              "BeginnerSuccess5.txt                                      137.714286   \n",
              "BeginnerSuccess6.txt                                      148.000000   \n",
              "NoExperienceFailure1.txt                                  239.714286   \n",
              "NoExperienceFailure2.txt                                  303.142857   \n",
              "NoExperienceFailure3.txt                                  263.142857   \n",
              "NoExperienceFailure4.txt                                  221.714286   \n",
              "NoExperienceFailure5.txt                                  249.714286   \n",
              "NoExperienceFailure6.txt                                  245.714286   \n",
              "\n",
              "                          z__permutation_entropy__dimension_6__tau_1  \\\n",
              "BeginnerFailure1.txt                                        3.696947   \n",
              "BeginnerFailure2.txt                                        3.690810   \n",
              "BeginnerFailure3.txt                                        4.153290   \n",
              "BeginnerFailure4.txt                                        4.112390   \n",
              "BeginnerFailure5.txt                                        3.679440   \n",
              "BeginnerFailure6.txt                                        3.839445   \n",
              "BeginnerFailure7.txt                                        3.812493   \n",
              "BeginnerSuccess1.txt                                        4.099933   \n",
              "BeginnerSuccess2.txt                                        3.938971   \n",
              "BeginnerSuccess3.txt                                        3.792232   \n",
              "BeginnerSuccess4.txt                                        4.085173   \n",
              "BeginnerSuccess5.txt                                        3.918515   \n",
              "BeginnerSuccess6.txt                                        3.849476   \n",
              "NoExperienceFailure1.txt                                    3.508372   \n",
              "NoExperienceFailure2.txt                                    3.050925   \n",
              "NoExperienceFailure3.txt                                    3.125085   \n",
              "NoExperienceFailure4.txt                                    2.932893   \n",
              "NoExperienceFailure5.txt                                    2.894337   \n",
              "NoExperienceFailure6.txt                                    3.475604   \n",
              "\n",
              "                           y__c3__lag_3  y__quantile__q_0.3  \\\n",
              "BeginnerFailure1.txt     -312284.004024               -55.3   \n",
              "BeginnerFailure2.txt     -382394.829980               -59.0   \n",
              "BeginnerFailure3.txt     -604238.422535               -66.0   \n",
              "BeginnerFailure4.txt     -295257.366197               -60.0   \n",
              "BeginnerFailure5.txt     -360669.745473               -72.0   \n",
              "BeginnerFailure6.txt     -402924.141851               -62.0   \n",
              "BeginnerFailure7.txt     -462025.670020               -46.0   \n",
              "BeginnerSuccess1.txt     -464720.279678               -77.0   \n",
              "BeginnerSuccess2.txt     -188961.846076               -63.0   \n",
              "BeginnerSuccess3.txt     -533554.330986               -57.0   \n",
              "BeginnerSuccess4.txt     -339759.372233               -68.0   \n",
              "BeginnerSuccess5.txt     -578845.032193               -72.3   \n",
              "BeginnerSuccess6.txt     -562805.964789               -70.0   \n",
              "NoExperienceFailure1.txt   26383.719316                -7.0   \n",
              "NoExperienceFailure2.txt  -22966.061368               -23.0   \n",
              "NoExperienceFailure3.txt   -6860.095573               -10.3   \n",
              "NoExperienceFailure4.txt  -96200.842052               -22.3   \n",
              "NoExperienceFailure5.txt   27755.005030               -18.0   \n",
              "NoExperienceFailure6.txt  -56864.757545               -35.0   \n",
              "\n",
              "                          y__autocorrelation__lag_4  \\\n",
              "BeginnerFailure1.txt                       0.991126   \n",
              "BeginnerFailure2.txt                       0.916843   \n",
              "BeginnerFailure3.txt                       0.978515   \n",
              "BeginnerFailure4.txt                       0.975332   \n",
              "BeginnerFailure5.txt                       0.951384   \n",
              "BeginnerFailure6.txt                       0.958262   \n",
              "BeginnerFailure7.txt                       0.939760   \n",
              "BeginnerSuccess1.txt                       0.894979   \n",
              "BeginnerSuccess2.txt                       0.908913   \n",
              "BeginnerSuccess3.txt                       0.980740   \n",
              "BeginnerSuccess4.txt                       0.942791   \n",
              "BeginnerSuccess5.txt                       0.961008   \n",
              "BeginnerSuccess6.txt                       0.933224   \n",
              "NoExperienceFailure1.txt                   0.727186   \n",
              "NoExperienceFailure2.txt                   0.840419   \n",
              "NoExperienceFailure3.txt                   0.844785   \n",
              "NoExperienceFailure4.txt                   0.876057   \n",
              "NoExperienceFailure5.txt                   0.836865   \n",
              "NoExperienceFailure6.txt                   0.892961   \n",
              "\n",
              "                          z__energy_ratio_by_chunks__num_segments_10__segment_focus_2  \\\n",
              "BeginnerFailure1.txt                                               0.000429             \n",
              "BeginnerFailure2.txt                                               0.000939             \n",
              "BeginnerFailure3.txt                                               0.000069             \n",
              "BeginnerFailure4.txt                                               0.000584             \n",
              "BeginnerFailure5.txt                                               0.000185             \n",
              "BeginnerFailure6.txt                                               0.000738             \n",
              "BeginnerFailure7.txt                                               0.000979             \n",
              "BeginnerSuccess1.txt                                               0.001255             \n",
              "BeginnerSuccess2.txt                                               0.000292             \n",
              "BeginnerSuccess3.txt                                               0.001826             \n",
              "BeginnerSuccess4.txt                                               0.000539             \n",
              "BeginnerSuccess5.txt                                               0.000109             \n",
              "BeginnerSuccess6.txt                                               0.000191             \n",
              "NoExperienceFailure1.txt                                           0.005319             \n",
              "NoExperienceFailure2.txt                                           0.165906             \n",
              "NoExperienceFailure3.txt                                           0.210954             \n",
              "NoExperienceFailure4.txt                                           0.254463             \n",
              "NoExperienceFailure5.txt                                           0.213277             \n",
              "NoExperienceFailure6.txt                                           0.096715             \n",
              "\n",
              "                          z__energy_ratio_by_chunks__num_segments_10__segment_focus_3  \\\n",
              "BeginnerFailure1.txt                                               0.000197             \n",
              "BeginnerFailure2.txt                                               0.111593             \n",
              "BeginnerFailure3.txt                                               0.000165             \n",
              "BeginnerFailure4.txt                                               0.004276             \n",
              "BeginnerFailure5.txt                                               0.001819             \n",
              "BeginnerFailure6.txt                                               0.008781             \n",
              "BeginnerFailure7.txt                                               0.001472             \n",
              "BeginnerSuccess1.txt                                               0.121406             \n",
              "BeginnerSuccess2.txt                                               0.006274             \n",
              "BeginnerSuccess3.txt                                               0.026740             \n",
              "BeginnerSuccess4.txt                                               0.066876             \n",
              "BeginnerSuccess5.txt                                               0.000846             \n",
              "BeginnerSuccess6.txt                                               0.001747             \n",
              "NoExperienceFailure1.txt                                           0.188438             \n",
              "NoExperienceFailure2.txt                                           0.356733             \n",
              "NoExperienceFailure3.txt                                           0.445329             \n",
              "NoExperienceFailure4.txt                                           0.363136             \n",
              "NoExperienceFailure5.txt                                           0.303553             \n",
              "NoExperienceFailure6.txt                                           0.185617             \n",
              "\n",
              "                          z__energy_ratio_by_chunks__num_segments_10__segment_focus_6  \\\n",
              "BeginnerFailure1.txt                                               0.132959             \n",
              "BeginnerFailure2.txt                                               0.136198             \n",
              "BeginnerFailure3.txt                                               0.387402             \n",
              "BeginnerFailure4.txt                                               0.201014             \n",
              "BeginnerFailure5.txt                                               0.281808             \n",
              "BeginnerFailure6.txt                                               0.341705             \n",
              "BeginnerFailure7.txt                                               0.174552             \n",
              "BeginnerSuccess1.txt                                               0.147272             \n",
              "BeginnerSuccess2.txt                                               0.300474             \n",
              "BeginnerSuccess3.txt                                               0.229923             \n",
              "BeginnerSuccess4.txt                                               0.361452             \n",
              "BeginnerSuccess5.txt                                               0.306967             \n",
              "BeginnerSuccess6.txt                                               0.359850             \n",
              "NoExperienceFailure1.txt                                           0.045606             \n",
              "NoExperienceFailure2.txt                                           0.037179             \n",
              "NoExperienceFailure3.txt                                           0.042724             \n",
              "NoExperienceFailure4.txt                                           0.085964             \n",
              "NoExperienceFailure5.txt                                           0.070544             \n",
              "NoExperienceFailure6.txt                                           0.058367             \n",
              "\n",
              "                          z__autocorrelation__lag_1  ...  \\\n",
              "BeginnerFailure1.txt                       0.972148  ...   \n",
              "BeginnerFailure2.txt                       0.959083  ...   \n",
              "BeginnerFailure3.txt                       0.967964  ...   \n",
              "BeginnerFailure4.txt                       0.944488  ...   \n",
              "BeginnerFailure5.txt                       0.945606  ...   \n",
              "BeginnerFailure6.txt                       0.958360  ...   \n",
              "BeginnerFailure7.txt                       0.964901  ...   \n",
              "BeginnerSuccess1.txt                       0.952319  ...   \n",
              "BeginnerSuccess2.txt                       0.958343  ...   \n",
              "BeginnerSuccess3.txt                       0.975294  ...   \n",
              "BeginnerSuccess4.txt                       0.963954  ...   \n",
              "BeginnerSuccess5.txt                       0.975902  ...   \n",
              "BeginnerSuccess6.txt                       0.945448  ...   \n",
              "NoExperienceFailure1.txt                   0.984289  ...   \n",
              "NoExperienceFailure2.txt                   0.992957  ...   \n",
              "NoExperienceFailure3.txt                   0.993135  ...   \n",
              "NoExperienceFailure4.txt                   0.995655  ...   \n",
              "NoExperienceFailure5.txt                   0.995640  ...   \n",
              "NoExperienceFailure6.txt                   0.993047  ...   \n",
              "\n",
              "                          y__large_standard_deviation__r_0.15000000000000002  \\\n",
              "BeginnerFailure1.txt                                                    1.0    \n",
              "BeginnerFailure2.txt                                                    1.0    \n",
              "BeginnerFailure3.txt                                                    1.0    \n",
              "BeginnerFailure4.txt                                                    1.0    \n",
              "BeginnerFailure5.txt                                                    1.0    \n",
              "BeginnerFailure6.txt                                                    1.0    \n",
              "BeginnerFailure7.txt                                                    1.0    \n",
              "BeginnerSuccess1.txt                                                    1.0    \n",
              "BeginnerSuccess2.txt                                                    1.0    \n",
              "BeginnerSuccess3.txt                                                    1.0    \n",
              "BeginnerSuccess4.txt                                                    1.0    \n",
              "BeginnerSuccess5.txt                                                    1.0    \n",
              "BeginnerSuccess6.txt                                                    1.0    \n",
              "NoExperienceFailure1.txt                                                0.0    \n",
              "NoExperienceFailure2.txt                                                0.0    \n",
              "NoExperienceFailure3.txt                                                0.0    \n",
              "NoExperienceFailure4.txt                                                0.0    \n",
              "NoExperienceFailure5.txt                                                0.0    \n",
              "NoExperienceFailure6.txt                                                1.0    \n",
              "\n",
              "                          x__ratio_value_number_to_time_series_length  \\\n",
              "BeginnerFailure1.txt                                            0.134   \n",
              "BeginnerFailure2.txt                                            0.155   \n",
              "BeginnerFailure3.txt                                            0.173   \n",
              "BeginnerFailure4.txt                                            0.142   \n",
              "BeginnerFailure5.txt                                            0.133   \n",
              "BeginnerFailure6.txt                                            0.149   \n",
              "BeginnerFailure7.txt                                            0.147   \n",
              "BeginnerSuccess1.txt                                            0.144   \n",
              "BeginnerSuccess2.txt                                            0.161   \n",
              "BeginnerSuccess3.txt                                            0.153   \n",
              "BeginnerSuccess4.txt                                            0.141   \n",
              "BeginnerSuccess5.txt                                            0.124   \n",
              "BeginnerSuccess6.txt                                            0.151   \n",
              "NoExperienceFailure1.txt                                        0.191   \n",
              "NoExperienceFailure2.txt                                        0.178   \n",
              "NoExperienceFailure3.txt                                        0.156   \n",
              "NoExperienceFailure4.txt                                        0.177   \n",
              "NoExperienceFailure5.txt                                        0.185   \n",
              "NoExperienceFailure6.txt                                        0.172   \n",
              "\n",
              "                          x__fft_coefficient__attr_\"abs\"__coeff_11  \\\n",
              "BeginnerFailure1.txt                                   2408.983991   \n",
              "BeginnerFailure2.txt                                    347.559535   \n",
              "BeginnerFailure3.txt                                   3186.182866   \n",
              "BeginnerFailure4.txt                                   2178.034663   \n",
              "BeginnerFailure5.txt                                   1604.924227   \n",
              "BeginnerFailure6.txt                                   3075.801468   \n",
              "BeginnerFailure7.txt                                   1995.636759   \n",
              "BeginnerSuccess1.txt                                   1607.768237   \n",
              "BeginnerSuccess2.txt                                   5267.773617   \n",
              "BeginnerSuccess3.txt                                   2047.793573   \n",
              "BeginnerSuccess4.txt                                   3883.551009   \n",
              "BeginnerSuccess5.txt                                   2396.130358   \n",
              "BeginnerSuccess6.txt                                   2523.457866   \n",
              "NoExperienceFailure1.txt                               4213.292584   \n",
              "NoExperienceFailure2.txt                               4898.578707   \n",
              "NoExperienceFailure3.txt                               5117.927916   \n",
              "NoExperienceFailure4.txt                               6499.628272   \n",
              "NoExperienceFailure5.txt                               8289.179695   \n",
              "NoExperienceFailure6.txt                               8491.806354   \n",
              "\n",
              "                          y__fft_coefficient__attr_\"abs\"__coeff_21  \\\n",
              "BeginnerFailure1.txt                                   2303.506335   \n",
              "BeginnerFailure2.txt                                    642.196347   \n",
              "BeginnerFailure3.txt                                    729.631245   \n",
              "BeginnerFailure4.txt                                   2008.697946   \n",
              "BeginnerFailure5.txt                                    518.320774   \n",
              "BeginnerFailure6.txt                                   1480.884251   \n",
              "BeginnerFailure7.txt                                   1330.720607   \n",
              "BeginnerSuccess1.txt                                   1344.142666   \n",
              "BeginnerSuccess2.txt                                   3795.007133   \n",
              "BeginnerSuccess3.txt                                   1192.200770   \n",
              "BeginnerSuccess4.txt                                    715.395629   \n",
              "BeginnerSuccess5.txt                                   1318.933975   \n",
              "BeginnerSuccess6.txt                                    363.266169   \n",
              "NoExperienceFailure1.txt                               2681.822666   \n",
              "NoExperienceFailure2.txt                               5770.295000   \n",
              "NoExperienceFailure3.txt                               3231.242258   \n",
              "NoExperienceFailure4.txt                               5391.289214   \n",
              "NoExperienceFailure5.txt                               6478.119922   \n",
              "NoExperienceFailure6.txt                               2847.101101   \n",
              "\n",
              "                          y__fft_coefficient__attr_\"abs\"__coeff_12  \\\n",
              "BeginnerFailure1.txt                                   2947.337552   \n",
              "BeginnerFailure2.txt                                   4065.061469   \n",
              "BeginnerFailure3.txt                                   2535.819402   \n",
              "BeginnerFailure4.txt                                   3412.647227   \n",
              "BeginnerFailure5.txt                                   2806.625031   \n",
              "BeginnerFailure6.txt                                   1615.384765   \n",
              "BeginnerFailure7.txt                                   2034.550447   \n",
              "BeginnerSuccess1.txt                                   1341.811045   \n",
              "BeginnerSuccess2.txt                                   3443.817126   \n",
              "BeginnerSuccess3.txt                                   2303.049743   \n",
              "BeginnerSuccess4.txt                                   1645.536825   \n",
              "BeginnerSuccess5.txt                                    292.470094   \n",
              "BeginnerSuccess6.txt                                    205.019139   \n",
              "NoExperienceFailure1.txt                               4674.563394   \n",
              "NoExperienceFailure2.txt                               7001.093355   \n",
              "NoExperienceFailure3.txt                               4739.152117   \n",
              "NoExperienceFailure4.txt                               5987.478303   \n",
              "NoExperienceFailure5.txt                               6234.816810   \n",
              "NoExperienceFailure6.txt                               3099.139252   \n",
              "\n",
              "                          x__index_mass_quantile__q_0.1  \\\n",
              "BeginnerFailure1.txt                              0.531   \n",
              "BeginnerFailure2.txt                              0.364   \n",
              "BeginnerFailure3.txt                              0.471   \n",
              "BeginnerFailure4.txt                              0.441   \n",
              "BeginnerFailure5.txt                              0.446   \n",
              "BeginnerFailure6.txt                              0.355   \n",
              "BeginnerFailure7.txt                              0.511   \n",
              "BeginnerSuccess1.txt                              0.411   \n",
              "BeginnerSuccess2.txt                              0.426   \n",
              "BeginnerSuccess3.txt                              0.385   \n",
              "BeginnerSuccess4.txt                              0.352   \n",
              "BeginnerSuccess5.txt                              0.418   \n",
              "BeginnerSuccess6.txt                              0.429   \n",
              "NoExperienceFailure1.txt                          0.370   \n",
              "NoExperienceFailure2.txt                          0.258   \n",
              "NoExperienceFailure3.txt                          0.243   \n",
              "NoExperienceFailure4.txt                          0.259   \n",
              "NoExperienceFailure5.txt                          0.254   \n",
              "NoExperienceFailure6.txt                          0.299   \n",
              "\n",
              "                          y__agg_linear_trend__attr_\"intercept\"__chunk_len_5__f_agg_\"max\"  \\\n",
              "BeginnerFailure1.txt                                              21.485075                 \n",
              "BeginnerFailure2.txt                                               8.864776                 \n",
              "BeginnerFailure3.txt                                              21.471791                 \n",
              "BeginnerFailure4.txt                                              26.558806                 \n",
              "BeginnerFailure5.txt                                              21.277463                 \n",
              "BeginnerFailure6.txt                                              19.209851                 \n",
              "BeginnerFailure7.txt                                              18.621940                 \n",
              "BeginnerSuccess1.txt                                              13.891791                 \n",
              "BeginnerSuccess2.txt                                              12.082388                 \n",
              "BeginnerSuccess3.txt                                              19.514478                 \n",
              "BeginnerSuccess4.txt                                              14.771940                 \n",
              "BeginnerSuccess5.txt                                              18.481493                 \n",
              "BeginnerSuccess6.txt                                              18.442239                 \n",
              "NoExperienceFailure1.txt                                           2.751194                 \n",
              "NoExperienceFailure2.txt                                           2.098358                 \n",
              "NoExperienceFailure3.txt                                           9.630597                 \n",
              "NoExperienceFailure4.txt                                           1.912836                 \n",
              "NoExperienceFailure5.txt                                           6.491493                 \n",
              "NoExperienceFailure6.txt                                          12.094478                 \n",
              "\n",
              "                          y__agg_linear_trend__attr_\"rvalue\"__chunk_len_50__f_agg_\"max\"  \\\n",
              "BeginnerFailure1.txt                                              -0.197279               \n",
              "BeginnerFailure2.txt                                              -0.026119               \n",
              "BeginnerFailure3.txt                                              -0.261682               \n",
              "BeginnerFailure4.txt                                              -0.232948               \n",
              "BeginnerFailure5.txt                                              -0.197603               \n",
              "BeginnerFailure6.txt                                              -0.232637               \n",
              "BeginnerFailure7.txt                                              -0.000290               \n",
              "BeginnerSuccess1.txt                                              -0.437226               \n",
              "BeginnerSuccess2.txt                                              -0.014500               \n",
              "BeginnerSuccess3.txt                                              -0.300256               \n",
              "BeginnerSuccess4.txt                                              -0.292509               \n",
              "BeginnerSuccess5.txt                                              -0.278316               \n",
              "BeginnerSuccess6.txt                                              -0.111256               \n",
              "NoExperienceFailure1.txt                                           0.474185               \n",
              "NoExperienceFailure2.txt                                           0.512882               \n",
              "NoExperienceFailure3.txt                                           0.396130               \n",
              "NoExperienceFailure4.txt                                           0.365869               \n",
              "NoExperienceFailure5.txt                                           0.309847               \n",
              "NoExperienceFailure6.txt                                          -0.056150               \n",
              "\n",
              "                          x__agg_linear_trend__attr_\"slope\"__chunk_len_10__f_agg_\"min\"  \\\n",
              "BeginnerFailure1.txt                                              -0.804590              \n",
              "BeginnerFailure2.txt                                              -0.594731              \n",
              "BeginnerFailure3.txt                                              -0.695422              \n",
              "BeginnerFailure4.txt                                              -0.788359              \n",
              "BeginnerFailure5.txt                                              -0.615584              \n",
              "BeginnerFailure6.txt                                              -0.473501              \n",
              "BeginnerFailure7.txt                                              -0.800750              \n",
              "BeginnerSuccess1.txt                                              -0.538254              \n",
              "BeginnerSuccess2.txt                                              -0.762760              \n",
              "BeginnerSuccess3.txt                                              -0.566361              \n",
              "BeginnerSuccess4.txt                                              -0.449595              \n",
              "BeginnerSuccess5.txt                                              -0.554893              \n",
              "BeginnerSuccess6.txt                                              -0.702490              \n",
              "NoExperienceFailure1.txt                                          -0.547219              \n",
              "NoExperienceFailure2.txt                                          -0.152265              \n",
              "NoExperienceFailure3.txt                                          -0.021116              \n",
              "NoExperienceFailure4.txt                                          -0.099970              \n",
              "NoExperienceFailure5.txt                                          -0.294431              \n",
              "NoExperienceFailure6.txt                                          -0.136124              \n",
              "\n",
              "                          y__fourier_entropy__bins_10  \n",
              "BeginnerFailure1.txt                         0.125256  \n",
              "BeginnerFailure2.txt                         0.136002  \n",
              "BeginnerFailure3.txt                         0.125256  \n",
              "BeginnerFailure4.txt                         0.125256  \n",
              "BeginnerFailure5.txt                         0.136002  \n",
              "BeginnerFailure6.txt                         0.090729  \n",
              "BeginnerFailure7.txt                         0.125256  \n",
              "BeginnerSuccess1.txt                         0.125256  \n",
              "BeginnerSuccess2.txt                         0.136002  \n",
              "BeginnerSuccess3.txt                         0.090729  \n",
              "BeginnerSuccess4.txt                         0.136002  \n",
              "BeginnerSuccess5.txt                         0.136002  \n",
              "BeginnerSuccess6.txt                         0.136002  \n",
              "NoExperienceFailure1.txt                     0.260704  \n",
              "NoExperienceFailure2.txt                     0.170467  \n",
              "NoExperienceFailure3.txt                     0.273489  \n",
              "NoExperienceFailure4.txt                     0.271451  \n",
              "NoExperienceFailure5.txt                     0.226363  \n",
              "NoExperienceFailure6.txt                     0.249958  \n",
              "\n",
              "[19 rows x 209 columns]"
            ],
            "text/html": [
              "\n",
              "  <div id=\"df-d0cd332b-d46f-47cb-a18b-79096d94f3da\" class=\"colab-df-container\">\n",
              "    <div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "      <th>z__permutation_entropy__dimension_7__tau_1</th>\n",
              "      <th>z__mean_n_absolute_max__number_of_maxima_7</th>\n",
              "      <th>z__permutation_entropy__dimension_6__tau_1</th>\n",
              "      <th>y__c3__lag_3</th>\n",
              "      <th>y__quantile__q_0.3</th>\n",
              "      <th>y__autocorrelation__lag_4</th>\n",
              "      <th>z__energy_ratio_by_chunks__num_segments_10__segment_focus_2</th>\n",
              "      <th>z__energy_ratio_by_chunks__num_segments_10__segment_focus_3</th>\n",
              "      <th>z__energy_ratio_by_chunks__num_segments_10__segment_focus_6</th>\n",
              "      <th>z__autocorrelation__lag_1</th>\n",
              "      <th>...</th>\n",
              "      <th>y__large_standard_deviation__r_0.15000000000000002</th>\n",
              "      <th>x__ratio_value_number_to_time_series_length</th>\n",
              "      <th>x__fft_coefficient__attr_\"abs\"__coeff_11</th>\n",
              "      <th>y__fft_coefficient__attr_\"abs\"__coeff_21</th>\n",
              "      <th>y__fft_coefficient__attr_\"abs\"__coeff_12</th>\n",
              "      <th>x__index_mass_quantile__q_0.1</th>\n",
              "      <th>y__agg_linear_trend__attr_\"intercept\"__chunk_len_5__f_agg_\"max\"</th>\n",
              "      <th>y__agg_linear_trend__attr_\"rvalue\"__chunk_len_50__f_agg_\"max\"</th>\n",
              "      <th>x__agg_linear_trend__attr_\"slope\"__chunk_len_10__f_agg_\"min\"</th>\n",
              "      <th>y__fourier_entropy__bins_10</th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure1.txt</th>\n",
              "      <td>4.332596</td>\n",
              "      <td>158.571429</td>\n",
              "      <td>3.696947</td>\n",
              "      <td>-312284.004024</td>\n",
              "      <td>-55.3</td>\n",
              "      <td>0.991126</td>\n",
              "      <td>0.000429</td>\n",
              "      <td>0.000197</td>\n",
              "      <td>0.132959</td>\n",
              "      <td>0.972148</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.134</td>\n",
              "      <td>2408.983991</td>\n",
              "      <td>2303.506335</td>\n",
              "      <td>2947.337552</td>\n",
              "      <td>0.531</td>\n",
              "      <td>21.485075</td>\n",
              "      <td>-0.197279</td>\n",
              "      <td>-0.804590</td>\n",
              "      <td>0.125256</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure2.txt</th>\n",
              "      <td>4.279515</td>\n",
              "      <td>189.857143</td>\n",
              "      <td>3.690810</td>\n",
              "      <td>-382394.829980</td>\n",
              "      <td>-59.0</td>\n",
              "      <td>0.916843</td>\n",
              "      <td>0.000939</td>\n",
              "      <td>0.111593</td>\n",
              "      <td>0.136198</td>\n",
              "      <td>0.959083</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.155</td>\n",
              "      <td>347.559535</td>\n",
              "      <td>642.196347</td>\n",
              "      <td>4065.061469</td>\n",
              "      <td>0.364</td>\n",
              "      <td>8.864776</td>\n",
              "      <td>-0.026119</td>\n",
              "      <td>-0.594731</td>\n",
              "      <td>0.136002</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure3.txt</th>\n",
              "      <td>4.868165</td>\n",
              "      <td>165.285714</td>\n",
              "      <td>4.153290</td>\n",
              "      <td>-604238.422535</td>\n",
              "      <td>-66.0</td>\n",
              "      <td>0.978515</td>\n",
              "      <td>0.000069</td>\n",
              "      <td>0.000165</td>\n",
              "      <td>0.387402</td>\n",
              "      <td>0.967964</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.173</td>\n",
              "      <td>3186.182866</td>\n",
              "      <td>729.631245</td>\n",
              "      <td>2535.819402</td>\n",
              "      <td>0.471</td>\n",
              "      <td>21.471791</td>\n",
              "      <td>-0.261682</td>\n",
              "      <td>-0.695422</td>\n",
              "      <td>0.125256</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure4.txt</th>\n",
              "      <td>4.796257</td>\n",
              "      <td>147.571429</td>\n",
              "      <td>4.112390</td>\n",
              "      <td>-295257.366197</td>\n",
              "      <td>-60.0</td>\n",
              "      <td>0.975332</td>\n",
              "      <td>0.000584</td>\n",
              "      <td>0.004276</td>\n",
              "      <td>0.201014</td>\n",
              "      <td>0.944488</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.142</td>\n",
              "      <td>2178.034663</td>\n",
              "      <td>2008.697946</td>\n",
              "      <td>3412.647227</td>\n",
              "      <td>0.441</td>\n",
              "      <td>26.558806</td>\n",
              "      <td>-0.232948</td>\n",
              "      <td>-0.788359</td>\n",
              "      <td>0.125256</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure5.txt</th>\n",
              "      <td>4.295553</td>\n",
              "      <td>184.285714</td>\n",
              "      <td>3.679440</td>\n",
              "      <td>-360669.745473</td>\n",
              "      <td>-72.0</td>\n",
              "      <td>0.951384</td>\n",
              "      <td>0.000185</td>\n",
              "      <td>0.001819</td>\n",
              "      <td>0.281808</td>\n",
              "      <td>0.945606</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.133</td>\n",
              "      <td>1604.924227</td>\n",
              "      <td>518.320774</td>\n",
              "      <td>2806.625031</td>\n",
              "      <td>0.446</td>\n",
              "      <td>21.277463</td>\n",
              "      <td>-0.197603</td>\n",
              "      <td>-0.615584</td>\n",
              "      <td>0.136002</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure6.txt</th>\n",
              "      <td>4.455633</td>\n",
              "      <td>177.000000</td>\n",
              "      <td>3.839445</td>\n",
              "      <td>-402924.141851</td>\n",
              "      <td>-62.0</td>\n",
              "      <td>0.958262</td>\n",
              "      <td>0.000738</td>\n",
              "      <td>0.008781</td>\n",
              "      <td>0.341705</td>\n",
              "      <td>0.958360</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.149</td>\n",
              "      <td>3075.801468</td>\n",
              "      <td>1480.884251</td>\n",
              "      <td>1615.384765</td>\n",
              "      <td>0.355</td>\n",
              "      <td>19.209851</td>\n",
              "      <td>-0.232637</td>\n",
              "      <td>-0.473501</td>\n",
              "      <td>0.090729</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure7.txt</th>\n",
              "      <td>4.435823</td>\n",
              "      <td>143.428571</td>\n",
              "      <td>3.812493</td>\n",
              "      <td>-462025.670020</td>\n",
              "      <td>-46.0</td>\n",
              "      <td>0.939760</td>\n",
              "      <td>0.000979</td>\n",
              "      <td>0.001472</td>\n",
              "      <td>0.174552</td>\n",
              "      <td>0.964901</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.147</td>\n",
              "      <td>1995.636759</td>\n",
              "      <td>1330.720607</td>\n",
              "      <td>2034.550447</td>\n",
              "      <td>0.511</td>\n",
              "      <td>18.621940</td>\n",
              "      <td>-0.000290</td>\n",
              "      <td>-0.800750</td>\n",
              "      <td>0.125256</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess1.txt</th>\n",
              "      <td>4.770228</td>\n",
              "      <td>169.428571</td>\n",
              "      <td>4.099933</td>\n",
              "      <td>-464720.279678</td>\n",
              "      <td>-77.0</td>\n",
              "      <td>0.894979</td>\n",
              "      <td>0.001255</td>\n",
              "      <td>0.121406</td>\n",
              "      <td>0.147272</td>\n",
              "      <td>0.952319</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.144</td>\n",
              "      <td>1607.768237</td>\n",
              "      <td>1344.142666</td>\n",
              "      <td>1341.811045</td>\n",
              "      <td>0.411</td>\n",
              "      <td>13.891791</td>\n",
              "      <td>-0.437226</td>\n",
              "      <td>-0.538254</td>\n",
              "      <td>0.125256</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess2.txt</th>\n",
              "      <td>4.659397</td>\n",
              "      <td>209.857143</td>\n",
              "      <td>3.938971</td>\n",
              "      <td>-188961.846076</td>\n",
              "      <td>-63.0</td>\n",
              "      <td>0.908913</td>\n",
              "      <td>0.000292</td>\n",
              "      <td>0.006274</td>\n",
              "      <td>0.300474</td>\n",
              "      <td>0.958343</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.161</td>\n",
              "      <td>5267.773617</td>\n",
              "      <td>3795.007133</td>\n",
              "      <td>3443.817126</td>\n",
              "      <td>0.426</td>\n",
              "      <td>12.082388</td>\n",
              "      <td>-0.014500</td>\n",
              "      <td>-0.762760</td>\n",
              "      <td>0.136002</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess3.txt</th>\n",
              "      <td>4.460108</td>\n",
              "      <td>155.285714</td>\n",
              "      <td>3.792232</td>\n",
              "      <td>-533554.330986</td>\n",
              "      <td>-57.0</td>\n",
              "      <td>0.980740</td>\n",
              "      <td>0.001826</td>\n",
              "      <td>0.026740</td>\n",
              "      <td>0.229923</td>\n",
              "      <td>0.975294</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.153</td>\n",
              "      <td>2047.793573</td>\n",
              "      <td>1192.200770</td>\n",
              "      <td>2303.049743</td>\n",
              "      <td>0.385</td>\n",
              "      <td>19.514478</td>\n",
              "      <td>-0.300256</td>\n",
              "      <td>-0.566361</td>\n",
              "      <td>0.090729</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess4.txt</th>\n",
              "      <td>4.776970</td>\n",
              "      <td>168.000000</td>\n",
              "      <td>4.085173</td>\n",
              "      <td>-339759.372233</td>\n",
              "      <td>-68.0</td>\n",
              "      <td>0.942791</td>\n",
              "      <td>0.000539</td>\n",
              "      <td>0.066876</td>\n",
              "      <td>0.361452</td>\n",
              "      <td>0.963954</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.141</td>\n",
              "      <td>3883.551009</td>\n",
              "      <td>715.395629</td>\n",
              "      <td>1645.536825</td>\n",
              "      <td>0.352</td>\n",
              "      <td>14.771940</td>\n",
              "      <td>-0.292509</td>\n",
              "      <td>-0.449595</td>\n",
              "      <td>0.136002</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess5.txt</th>\n",
              "      <td>4.626736</td>\n",
              "      <td>137.714286</td>\n",
              "      <td>3.918515</td>\n",
              "      <td>-578845.032193</td>\n",
              "      <td>-72.3</td>\n",
              "      <td>0.961008</td>\n",
              "      <td>0.000109</td>\n",
              "      <td>0.000846</td>\n",
              "      <td>0.306967</td>\n",
              "      <td>0.975902</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.124</td>\n",
              "      <td>2396.130358</td>\n",
              "      <td>1318.933975</td>\n",
              "      <td>292.470094</td>\n",
              "      <td>0.418</td>\n",
              "      <td>18.481493</td>\n",
              "      <td>-0.278316</td>\n",
              "      <td>-0.554893</td>\n",
              "      <td>0.136002</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess6.txt</th>\n",
              "      <td>4.487319</td>\n",
              "      <td>148.000000</td>\n",
              "      <td>3.849476</td>\n",
              "      <td>-562805.964789</td>\n",
              "      <td>-70.0</td>\n",
              "      <td>0.933224</td>\n",
              "      <td>0.000191</td>\n",
              "      <td>0.001747</td>\n",
              "      <td>0.359850</td>\n",
              "      <td>0.945448</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.151</td>\n",
              "      <td>2523.457866</td>\n",
              "      <td>363.266169</td>\n",
              "      <td>205.019139</td>\n",
              "      <td>0.429</td>\n",
              "      <td>18.442239</td>\n",
              "      <td>-0.111256</td>\n",
              "      <td>-0.702490</td>\n",
              "      <td>0.136002</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure1.txt</th>\n",
              "      <td>4.071211</td>\n",
              "      <td>239.714286</td>\n",
              "      <td>3.508372</td>\n",
              "      <td>26383.719316</td>\n",
              "      <td>-7.0</td>\n",
              "      <td>0.727186</td>\n",
              "      <td>0.005319</td>\n",
              "      <td>0.188438</td>\n",
              "      <td>0.045606</td>\n",
              "      <td>0.984289</td>\n",
              "      <td>...</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0.191</td>\n",
              "      <td>4213.292584</td>\n",
              "      <td>2681.822666</td>\n",
              "      <td>4674.563394</td>\n",
              "      <td>0.370</td>\n",
              "      <td>2.751194</td>\n",
              "      <td>0.474185</td>\n",
              "      <td>-0.547219</td>\n",
              "      <td>0.260704</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure2.txt</th>\n",
              "      <td>3.584640</td>\n",
              "      <td>303.142857</td>\n",
              "      <td>3.050925</td>\n",
              "      <td>-22966.061368</td>\n",
              "      <td>-23.0</td>\n",
              "      <td>0.840419</td>\n",
              "      <td>0.165906</td>\n",
              "      <td>0.356733</td>\n",
              "      <td>0.037179</td>\n",
              "      <td>0.992957</td>\n",
              "      <td>...</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0.178</td>\n",
              "      <td>4898.578707</td>\n",
              "      <td>5770.295000</td>\n",
              "      <td>7001.093355</td>\n",
              "      <td>0.258</td>\n",
              "      <td>2.098358</td>\n",
              "      <td>0.512882</td>\n",
              "      <td>-0.152265</td>\n",
              "      <td>0.170467</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure3.txt</th>\n",
              "      <td>3.668126</td>\n",
              "      <td>263.142857</td>\n",
              "      <td>3.125085</td>\n",
              "      <td>-6860.095573</td>\n",
              "      <td>-10.3</td>\n",
              "      <td>0.844785</td>\n",
              "      <td>0.210954</td>\n",
              "      <td>0.445329</td>\n",
              "      <td>0.042724</td>\n",
              "      <td>0.993135</td>\n",
              "      <td>...</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0.156</td>\n",
              "      <td>5117.927916</td>\n",
              "      <td>3231.242258</td>\n",
              "      <td>4739.152117</td>\n",
              "      <td>0.243</td>\n",
              "      <td>9.630597</td>\n",
              "      <td>0.396130</td>\n",
              "      <td>-0.021116</td>\n",
              "      <td>0.273489</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure4.txt</th>\n",
              "      <td>3.442170</td>\n",
              "      <td>221.714286</td>\n",
              "      <td>2.932893</td>\n",
              "      <td>-96200.842052</td>\n",
              "      <td>-22.3</td>\n",
              "      <td>0.876057</td>\n",
              "      <td>0.254463</td>\n",
              "      <td>0.363136</td>\n",
              "      <td>0.085964</td>\n",
              "      <td>0.995655</td>\n",
              "      <td>...</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0.177</td>\n",
              "      <td>6499.628272</td>\n",
              "      <td>5391.289214</td>\n",
              "      <td>5987.478303</td>\n",
              "      <td>0.259</td>\n",
              "      <td>1.912836</td>\n",
              "      <td>0.365869</td>\n",
              "      <td>-0.099970</td>\n",
              "      <td>0.271451</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure5.txt</th>\n",
              "      <td>3.416475</td>\n",
              "      <td>249.714286</td>\n",
              "      <td>2.894337</td>\n",
              "      <td>27755.005030</td>\n",
              "      <td>-18.0</td>\n",
              "      <td>0.836865</td>\n",
              "      <td>0.213277</td>\n",
              "      <td>0.303553</td>\n",
              "      <td>0.070544</td>\n",
              "      <td>0.995640</td>\n",
              "      <td>...</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0.185</td>\n",
              "      <td>8289.179695</td>\n",
              "      <td>6478.119922</td>\n",
              "      <td>6234.816810</td>\n",
              "      <td>0.254</td>\n",
              "      <td>6.491493</td>\n",
              "      <td>0.309847</td>\n",
              "      <td>-0.294431</td>\n",
              "      <td>0.226363</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure6.txt</th>\n",
              "      <td>4.108516</td>\n",
              "      <td>245.714286</td>\n",
              "      <td>3.475604</td>\n",
              "      <td>-56864.757545</td>\n",
              "      <td>-35.0</td>\n",
              "      <td>0.892961</td>\n",
              "      <td>0.096715</td>\n",
              "      <td>0.185617</td>\n",
              "      <td>0.058367</td>\n",
              "      <td>0.993047</td>\n",
              "      <td>...</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0.172</td>\n",
              "      <td>8491.806354</td>\n",
              "      <td>2847.101101</td>\n",
              "      <td>3099.139252</td>\n",
              "      <td>0.299</td>\n",
              "      <td>12.094478</td>\n",
              "      <td>-0.056150</td>\n",
              "      <td>-0.136124</td>\n",
              "      <td>0.249958</td>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "<p>19 rows × 209 columns</p>\n",
              "</div>\n",
              "    <div class=\"colab-df-buttons\">\n",
              "\n",
              "  <div class=\"colab-df-container\">\n",
              "    <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-d0cd332b-d46f-47cb-a18b-79096d94f3da')\"\n",
              "            title=\"Convert this dataframe to an interactive table.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
              "    <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "\n",
              "  <style>\n",
              "    .colab-df-container {\n",
              "      display:flex;\n",
              "      gap: 12px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert {\n",
              "      background-color: #E8F0FE;\n",
              "      border: none;\n",
              "      border-radius: 50%;\n",
              "      cursor: pointer;\n",
              "      display: none;\n",
              "      fill: #1967D2;\n",
              "      height: 32px;\n",
              "      padding: 0 0 0 0;\n",
              "      width: 32px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert:hover {\n",
              "      background-color: #E2EBFA;\n",
              "      box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "      fill: #174EA6;\n",
              "    }\n",
              "\n",
              "    .colab-df-buttons div {\n",
              "      margin-bottom: 4px;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert {\n",
              "      background-color: #3B4455;\n",
              "      fill: #D2E3FC;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert:hover {\n",
              "      background-color: #434B5C;\n",
              "      box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "      filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "      fill: #FFFFFF;\n",
              "    }\n",
              "  </style>\n",
              "\n",
              "    <script>\n",
              "      const buttonEl =\n",
              "        document.querySelector('#df-d0cd332b-d46f-47cb-a18b-79096d94f3da button.colab-df-convert');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      async function convertToInteractive(key) {\n",
              "        const element = document.querySelector('#df-d0cd332b-d46f-47cb-a18b-79096d94f3da');\n",
              "        const dataTable =\n",
              "          await google.colab.kernel.invokeFunction('convertToInteractive',\n",
              "                                                    [key], {});\n",
              "        if (!dataTable) return;\n",
              "\n",
              "        const docLinkHtml = 'Like what you see? Visit the ' +\n",
              "          '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
              "          + ' to learn more about interactive tables.';\n",
              "        element.innerHTML = '';\n",
              "        dataTable['output_type'] = 'display_data';\n",
              "        await google.colab.output.renderOutput(dataTable, element);\n",
              "        const docLink = document.createElement('div');\n",
              "        docLink.innerHTML = docLinkHtml;\n",
              "        element.appendChild(docLink);\n",
              "      }\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "\n",
              "  <div id=\"id_80543c69-1f67-49ed-930b-d13c4ccb7a22\">\n",
              "    <style>\n",
              "      .colab-df-generate {\n",
              "        background-color: #E8F0FE;\n",
              "        border: none;\n",
              "        border-radius: 50%;\n",
              "        cursor: pointer;\n",
              "        display: none;\n",
              "        fill: #1967D2;\n",
              "        height: 32px;\n",
              "        padding: 0 0 0 0;\n",
              "        width: 32px;\n",
              "      }\n",
              "\n",
              "      .colab-df-generate:hover {\n",
              "        background-color: #E2EBFA;\n",
              "        box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "        fill: #174EA6;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate {\n",
              "        background-color: #3B4455;\n",
              "        fill: #D2E3FC;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate:hover {\n",
              "        background-color: #434B5C;\n",
              "        box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "        filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "        fill: #FFFFFF;\n",
              "      }\n",
              "    </style>\n",
              "    <button class=\"colab-df-generate\" onclick=\"generateWithVariable('features_filtered_train')\"\n",
              "            title=\"Generate code using this dataframe.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
              "       width=\"24px\">\n",
              "    <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "    <script>\n",
              "      (() => {\n",
              "      const buttonEl =\n",
              "        document.querySelector('#id_80543c69-1f67-49ed-930b-d13c4ccb7a22 button.colab-df-generate');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      buttonEl.onclick = () => {\n",
              "        google.colab.notebook.generateWithVariable('features_filtered_train');\n",
              "      }\n",
              "      })();\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "    </div>\n",
              "  </div>\n"
            ],
            "application/vnd.google.colaboratory.intrinsic+json": {
              "type": "dataframe",
              "variable_name": "features_filtered_train"
            }
          },
          "metadata": {},
          "execution_count": 31
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca = data_pca5\n",
        "\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='^',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='x',s=100,color='k', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "f4_8ECrSeRrp",
        "outputId": "22cc8d0d-4b92-45d1-f300-c98a1d354ace"
      },
      "execution_count": 32,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 24536 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(features_filtered_train)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca5b = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "id": "iyoDJ0EFK7c4"
      },
      "execution_count": 33,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca = data_pca5b\n",
        "\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='^',s=100,color='k', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_sel.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_sel.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_sel.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "id": "4ahE98wDK_nc",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "outputId": "28638b0a-31ab-4209-879d-56c56365149a"
      },
      "execution_count": 34,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 23540 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "markdown",
      "source": [
        "## 経験者、初心者と未経験者の3者の比較"
      ],
      "metadata": {
        "id": "NjEoa6XrXWrO"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "#経験者、初心者と未経験者の比較\n",
        "data1 = data_ExpertSuccess + data_ExpertFailure\n",
        "data2 = data_BeginnerSuccess+data_BeginnerFailure\n",
        "data3 = data_NoExperienceFailure\n",
        "data1_legend = 'Expert'\n",
        "data2_legend = 'Beginner'\n",
        "data3_legend = 'NoExperience'"
      ],
      "metadata": {
        "id": "O8421OmhQXaw"
      },
      "execution_count": 35,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data1_id = [0]*len(data1)\n",
        "data2_id = [1]*len(data2)\n",
        "data3_id = [2]*len(data3)\n",
        "df_data, df_label =makeData(data1+data2+data3,data1_id+data2_id+data3_id)\n",
        "\n",
        "extracted_features_train = extract_features(df_data, column_id=\"id\")\n",
        "extracted_features_train_impute = impute(extracted_features_train)\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(extracted_features_train_impute)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca6 = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "eP3WSsRk_NDb",
        "outputId": "73bf2778-bb76-412f-d3ed-6332682ae58a"
      },
      "execution_count": 36,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "/tmp/ipykernel_41858/1282099759.py:10: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.\n",
            "  df_data = pd.concat([df_data,df_data0], ignore_index=False)\n",
            "WARNING:tsfresh.feature_extraction.settings:Dependency not available for matrix_profile, this feature will be disabled!\n",
            "Feature Extraction: 100%|██████████| 120/120 [02:32<00:00,  1.27s/it]\n",
            "/usr/local/lib/python3.12/dist-packages/tsfresh/utilities/dataframe_functions.py:198: RuntimeWarning: The columns ['time__benford_correlation'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"rvalue\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_5__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_10__f_agg_\"var\"'\n",
            " 'time__agg_linear_trend__attr_\"stderr\"__chunk_len_50__f_agg_\"var\"'\n",
            " 'time__query_similarity_count__query_None__threshold_0.0'\n",
            " 'x__query_similarity_count__query_None__threshold_0.0'\n",
            " 'y__query_similarity_count__query_None__threshold_0.0'\n",
            " 'z__query_similarity_count__query_None__threshold_0.0'] did not have any finite values. Filling with zeros.\n",
            "  warnings.warn(\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca = data_pca6\n",
        "\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='^',s=100,color='k', label=data2_legend)\n",
        "plt.scatter(data_pca[len(data1_id)+len(data2_id):len(data1_id)+len(data2_id)+len(data3_id), 0], data_pca[len(data1_id)+len(data2_id):len(data1_id)+len(data2_id)+len(data3_id), 1],marker='x',s=100,color='k', label=data3_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_vs_'+data3_legend+'.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_vs_'+data3_legend+'.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_vs_'+data3_legend+'.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "uzXUvNaGe3pr",
        "outputId": "d730fdf4-d3f3-46e7-dd13-25a724850fdd"
      },
      "execution_count": 38,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 31404 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "features_filtered_train = select_features(extracted_features_train_impute, df_label)\n",
        "features_filtered_train"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 1000
        },
        "id": "CMhZsfQx2Akq",
        "outputId": "5523b4f9-795e-4fe2-c675-fb6566feb6d2"
      },
      "execution_count": 39,
      "outputs": [
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "                          z__ratio_beyond_r_sigma__r_3  \\\n",
              "BeginnerFailure1.txt                             0.000   \n",
              "BeginnerFailure2.txt                             0.003   \n",
              "BeginnerFailure3.txt                             0.000   \n",
              "BeginnerFailure4.txt                             0.001   \n",
              "BeginnerFailure5.txt                             0.002   \n",
              "BeginnerFailure6.txt                             0.002   \n",
              "BeginnerFailure7.txt                             0.000   \n",
              "BeginnerSuccess1.txt                             0.001   \n",
              "BeginnerSuccess2.txt                             0.009   \n",
              "BeginnerSuccess3.txt                             0.001   \n",
              "BeginnerSuccess4.txt                             0.000   \n",
              "BeginnerSuccess5.txt                             0.001   \n",
              "BeginnerSuccess6.txt                             0.000   \n",
              "ExpertFailure1.txt                               0.039   \n",
              "ExpertFailure2.txt                               0.038   \n",
              "ExpertFailure3.txt                               0.041   \n",
              "ExpertFailure4.txt                               0.036   \n",
              "ExpertFailure5.txt                               0.040   \n",
              "ExpertFailure6.txt                               0.046   \n",
              "ExpertSuccess1.txt                               0.031   \n",
              "ExpertSuccess2.txt                               0.030   \n",
              "ExpertSuccess3.txt                               0.039   \n",
              "ExpertSuccess4.txt                               0.035   \n",
              "ExpertSuccess5.txt                               0.029   \n",
              "NoExperienceFailure1.txt                         0.000   \n",
              "NoExperienceFailure2.txt                         0.004   \n",
              "NoExperienceFailure3.txt                         0.000   \n",
              "NoExperienceFailure4.txt                         0.000   \n",
              "NoExperienceFailure5.txt                         0.000   \n",
              "NoExperienceFailure6.txt                         0.004   \n",
              "\n",
              "                          z__ratio_beyond_r_sigma__r_0.5  \\\n",
              "BeginnerFailure1.txt                               0.383   \n",
              "BeginnerFailure2.txt                               0.521   \n",
              "BeginnerFailure3.txt                               0.489   \n",
              "BeginnerFailure4.txt                               0.671   \n",
              "BeginnerFailure5.txt                               0.488   \n",
              "BeginnerFailure6.txt                               0.575   \n",
              "BeginnerFailure7.txt                               0.421   \n",
              "BeginnerSuccess1.txt                               0.814   \n",
              "BeginnerSuccess2.txt                               0.704   \n",
              "BeginnerSuccess3.txt                               0.656   \n",
              "BeginnerSuccess4.txt                               0.753   \n",
              "BeginnerSuccess5.txt                               0.683   \n",
              "BeginnerSuccess6.txt                               0.520   \n",
              "ExpertFailure1.txt                                 0.250   \n",
              "ExpertFailure2.txt                                 0.294   \n",
              "ExpertFailure3.txt                                 0.297   \n",
              "ExpertFailure4.txt                                 0.240   \n",
              "ExpertFailure5.txt                                 0.254   \n",
              "ExpertFailure6.txt                                 0.346   \n",
              "ExpertSuccess1.txt                                 0.317   \n",
              "ExpertSuccess2.txt                                 0.365   \n",
              "ExpertSuccess3.txt                                 0.341   \n",
              "ExpertSuccess4.txt                                 0.326   \n",
              "ExpertSuccess5.txt                                 0.362   \n",
              "NoExperienceFailure1.txt                           0.430   \n",
              "NoExperienceFailure2.txt                           0.397   \n",
              "NoExperienceFailure3.txt                           0.398   \n",
              "NoExperienceFailure4.txt                           0.469   \n",
              "NoExperienceFailure5.txt                           0.429   \n",
              "NoExperienceFailure6.txt                           0.434   \n",
              "\n",
              "                          z__augmented_dickey_fuller__attr_\"pvalue\"__autolag_\"AIC\"  \\\n",
              "BeginnerFailure1.txt                                               0.440691          \n",
              "BeginnerFailure2.txt                                               0.627167          \n",
              "BeginnerFailure3.txt                                               0.314854          \n",
              "BeginnerFailure4.txt                                               0.408733          \n",
              "BeginnerFailure5.txt                                               0.497797          \n",
              "BeginnerFailure6.txt                                               0.439405          \n",
              "BeginnerFailure7.txt                                               0.227865          \n",
              "BeginnerSuccess1.txt                                               0.528946          \n",
              "BeginnerSuccess2.txt                                               0.302712          \n",
              "BeginnerSuccess3.txt                                               0.335914          \n",
              "BeginnerSuccess4.txt                                               0.406794          \n",
              "BeginnerSuccess5.txt                                               0.189140          \n",
              "BeginnerSuccess6.txt                                               0.446127          \n",
              "ExpertFailure1.txt                                                 0.000027          \n",
              "ExpertFailure2.txt                                                 0.000001          \n",
              "ExpertFailure3.txt                                                 0.000673          \n",
              "ExpertFailure4.txt                                                 0.005797          \n",
              "ExpertFailure5.txt                                                 0.000001          \n",
              "ExpertFailure6.txt                                                 0.005224          \n",
              "ExpertSuccess1.txt                                                 0.000063          \n",
              "ExpertSuccess2.txt                                                 0.014103          \n",
              "ExpertSuccess3.txt                                                 0.000001          \n",
              "ExpertSuccess4.txt                                                 0.000284          \n",
              "ExpertSuccess5.txt                                                 0.000921          \n",
              "NoExperienceFailure1.txt                                           0.474502          \n",
              "NoExperienceFailure2.txt                                           0.149099          \n",
              "NoExperienceFailure3.txt                                           0.270483          \n",
              "NoExperienceFailure4.txt                                           0.171590          \n",
              "NoExperienceFailure5.txt                                           0.297789          \n",
              "NoExperienceFailure6.txt                                           0.109193          \n",
              "\n",
              "                          z__augmented_dickey_fuller__attr_\"teststat\"__autolag_\"AIC\"  \\\n",
              "BeginnerFailure1.txt                                              -1.681457            \n",
              "BeginnerFailure2.txt                                              -1.304377            \n",
              "BeginnerFailure3.txt                                              -1.937014            \n",
              "BeginnerFailure4.txt                                              -1.743731            \n",
              "BeginnerFailure5.txt                                              -1.571689            \n",
              "BeginnerFailure6.txt                                              -1.683941            \n",
              "BeginnerFailure7.txt                                              -2.142258            \n",
              "BeginnerSuccess1.txt                                              -1.509219            \n",
              "BeginnerSuccess2.txt                                              -1.963701            \n",
              "BeginnerSuccess3.txt                                              -1.891832            \n",
              "BeginnerSuccess4.txt                                              -1.747551            \n",
              "BeginnerSuccess5.txt                                              -2.248429            \n",
              "BeginnerSuccess6.txt                                              -1.670973            \n",
              "ExpertFailure1.txt                                                -4.953585            \n",
              "ExpertFailure2.txt                                                -5.578041            \n",
              "ExpertFailure3.txt                                                -4.194459            \n",
              "ExpertFailure4.txt                                                -3.598115            \n",
              "ExpertFailure5.txt                                                -5.634083            \n",
              "ExpertFailure6.txt                                                -3.629373            \n",
              "ExpertSuccess1.txt                                                -4.765460            \n",
              "ExpertSuccess2.txt                                                -3.317768            \n",
              "ExpertSuccess3.txt                                                -5.633416            \n",
              "ExpertSuccess4.txt                                                -4.410982            \n",
              "ExpertSuccess5.txt                                                -4.113114            \n",
              "NoExperienceFailure1.txt                                          -1.616620            \n",
              "NoExperienceFailure2.txt                                          -2.374379            \n",
              "NoExperienceFailure3.txt                                          -2.037249            \n",
              "NoExperienceFailure4.txt                                          -2.301174            \n",
              "NoExperienceFailure5.txt                                          -1.974668            \n",
              "NoExperienceFailure6.txt                                          -2.526354            \n",
              "\n",
              "                          z__spkt_welch_density__coeff_2  \\\n",
              "BeginnerFailure1.txt                        58048.163782   \n",
              "BeginnerFailure2.txt                        53278.728138   \n",
              "BeginnerFailure3.txt                       121033.977491   \n",
              "BeginnerFailure4.txt                        38335.430338   \n",
              "BeginnerFailure5.txt                        42195.996697   \n",
              "BeginnerFailure6.txt                        78991.684595   \n",
              "BeginnerFailure7.txt                        63616.206100   \n",
              "BeginnerSuccess1.txt                        59531.504420   \n",
              "BeginnerSuccess2.txt                        57259.752306   \n",
              "BeginnerSuccess3.txt                        50420.591282   \n",
              "BeginnerSuccess4.txt                        62410.644544   \n",
              "BeginnerSuccess5.txt                        78721.778502   \n",
              "BeginnerSuccess6.txt                        71892.734143   \n",
              "ExpertFailure1.txt                         815556.663115   \n",
              "ExpertFailure2.txt                         845898.077499   \n",
              "ExpertFailure3.txt                         874532.747330   \n",
              "ExpertFailure4.txt                         901005.068183   \n",
              "ExpertFailure5.txt                         992108.377811   \n",
              "ExpertFailure6.txt                         541306.718151   \n",
              "ExpertSuccess1.txt                         663311.206172   \n",
              "ExpertSuccess2.txt                         454875.698062   \n",
              "ExpertSuccess3.txt                         601801.046408   \n",
              "ExpertSuccess4.txt                         550694.952840   \n",
              "ExpertSuccess5.txt                         391423.997086   \n",
              "NoExperienceFailure1.txt                   282704.995826   \n",
              "NoExperienceFailure2.txt                   315302.908049   \n",
              "NoExperienceFailure3.txt                   371140.052504   \n",
              "NoExperienceFailure4.txt                   264379.369712   \n",
              "NoExperienceFailure5.txt                   325247.944985   \n",
              "NoExperienceFailure6.txt                   263047.016409   \n",
              "\n",
              "                          z__agg_autocorrelation__f_agg_\"var\"__maxlag_40  \\\n",
              "BeginnerFailure1.txt                                            0.003623   \n",
              "BeginnerFailure2.txt                                            0.002205   \n",
              "BeginnerFailure3.txt                                            0.004377   \n",
              "BeginnerFailure4.txt                                            0.003214   \n",
              "BeginnerFailure5.txt                                            0.002470   \n",
              "BeginnerFailure6.txt                                            0.004624   \n",
              "BeginnerFailure7.txt                                            0.003921   \n",
              "BeginnerSuccess1.txt                                            0.001843   \n",
              "BeginnerSuccess2.txt                                            0.003524   \n",
              "BeginnerSuccess3.txt                                            0.004849   \n",
              "BeginnerSuccess4.txt                                            0.002271   \n",
              "BeginnerSuccess5.txt                                            0.003550   \n",
              "BeginnerSuccess6.txt                                            0.002413   \n",
              "ExpertFailure1.txt                                              0.033920   \n",
              "ExpertFailure2.txt                                              0.044933   \n",
              "ExpertFailure3.txt                                              0.036142   \n",
              "ExpertFailure4.txt                                              0.041194   \n",
              "ExpertFailure5.txt                                              0.048905   \n",
              "ExpertFailure6.txt                                              0.024533   \n",
              "ExpertSuccess1.txt                                              0.030817   \n",
              "ExpertSuccess2.txt                                              0.021604   \n",
              "ExpertSuccess3.txt                                              0.026224   \n",
              "ExpertSuccess4.txt                                              0.031581   \n",
              "ExpertSuccess5.txt                                              0.017985   \n",
              "NoExperienceFailure1.txt                                        0.008692   \n",
              "NoExperienceFailure2.txt                                        0.010529   \n",
              "NoExperienceFailure3.txt                                        0.010623   \n",
              "NoExperienceFailure4.txt                                        0.011228   \n",
              "NoExperienceFailure5.txt                                        0.008484   \n",
              "NoExperienceFailure6.txt                                        0.008872   \n",
              "\n",
              "                          z__fft_coefficient__attr_\"abs\"__coeff_8  \\\n",
              "BeginnerFailure1.txt                                  3606.537894   \n",
              "BeginnerFailure2.txt                                  2961.571289   \n",
              "BeginnerFailure3.txt                                  3775.756233   \n",
              "BeginnerFailure4.txt                                  2543.186169   \n",
              "BeginnerFailure5.txt                                  2644.439134   \n",
              "BeginnerFailure6.txt                                  3292.762487   \n",
              "BeginnerFailure7.txt                                  1874.302095   \n",
              "BeginnerSuccess1.txt                                  1865.826310   \n",
              "BeginnerSuccess2.txt                                  5184.338423   \n",
              "BeginnerSuccess3.txt                                  2728.033591   \n",
              "BeginnerSuccess4.txt                                  3014.591092   \n",
              "BeginnerSuccess5.txt                                  1700.290014   \n",
              "BeginnerSuccess6.txt                                   697.303725   \n",
              "ExpertFailure1.txt                                   15067.491345   \n",
              "ExpertFailure2.txt                                   15222.634187   \n",
              "ExpertFailure3.txt                                   12794.997738   \n",
              "ExpertFailure4.txt                                   13987.883289   \n",
              "ExpertFailure5.txt                                   15214.145571   \n",
              "ExpertFailure6.txt                                   10614.718110   \n",
              "ExpertSuccess1.txt                                   12655.265835   \n",
              "ExpertSuccess2.txt                                    7127.591369   \n",
              "ExpertSuccess3.txt                                   11642.419254   \n",
              "ExpertSuccess4.txt                                   10738.898761   \n",
              "ExpertSuccess5.txt                                    8154.296796   \n",
              "NoExperienceFailure1.txt                              3081.951223   \n",
              "NoExperienceFailure2.txt                              3164.928236   \n",
              "NoExperienceFailure3.txt                              6177.493829   \n",
              "NoExperienceFailure4.txt                              2841.468881   \n",
              "NoExperienceFailure5.txt                              3603.967786   \n",
              "NoExperienceFailure6.txt                              3407.241967   \n",
              "\n",
              "                          z__fft_coefficient__attr_\"abs\"__coeff_1  \\\n",
              "BeginnerFailure1.txt                                 20611.625633   \n",
              "BeginnerFailure2.txt                                 27737.730689   \n",
              "BeginnerFailure3.txt                                 26525.046921   \n",
              "BeginnerFailure4.txt                                 24877.423540   \n",
              "BeginnerFailure5.txt                                 26269.174033   \n",
              "BeginnerFailure6.txt                                 27957.727371   \n",
              "BeginnerFailure7.txt                                 22899.799383   \n",
              "BeginnerSuccess1.txt                                 27365.169514   \n",
              "BeginnerSuccess2.txt                                 29094.126200   \n",
              "BeginnerSuccess3.txt                                 26903.184794   \n",
              "BeginnerSuccess4.txt                                 28700.687239   \n",
              "BeginnerSuccess5.txt                                 26773.657488   \n",
              "BeginnerSuccess6.txt                                 26639.458328   \n",
              "ExpertFailure1.txt                                    4609.900690   \n",
              "ExpertFailure2.txt                                    5393.038395   \n",
              "ExpertFailure3.txt                                    5270.875965   \n",
              "ExpertFailure4.txt                                    6976.125623   \n",
              "ExpertFailure5.txt                                    6061.258074   \n",
              "ExpertFailure6.txt                                    8372.320689   \n",
              "ExpertSuccess1.txt                                    6385.881886   \n",
              "ExpertSuccess2.txt                                    6870.876124   \n",
              "ExpertSuccess3.txt                                    4260.269198   \n",
              "ExpertSuccess4.txt                                    4585.154814   \n",
              "ExpertSuccess5.txt                                    7738.600846   \n",
              "NoExperienceFailure1.txt                              9082.886957   \n",
              "NoExperienceFailure2.txt                             11543.463285   \n",
              "NoExperienceFailure3.txt                             11174.398067   \n",
              "NoExperienceFailure4.txt                             12392.069634   \n",
              "NoExperienceFailure5.txt                             12437.222848   \n",
              "NoExperienceFailure6.txt                             14803.441619   \n",
              "\n",
              "                          z__kurtosis  z__skewness  ...   x__c3__lag_3  \\\n",
              "BeginnerFailure1.txt         0.704542    -0.158807  ...  -72940.454728   \n",
              "BeginnerFailure2.txt         0.296899     0.255338  ...  -67083.534205   \n",
              "BeginnerFailure3.txt         0.366672     0.240661  ...  -69181.438632   \n",
              "BeginnerFailure4.txt        -0.213555     0.153883  ...  -66903.104628   \n",
              "BeginnerFailure5.txt         0.093401    -0.118772  ...  -34904.740443   \n",
              "BeginnerFailure6.txt         0.428293     0.341467  ...  -71495.771630   \n",
              "BeginnerFailure7.txt         0.419909    -0.006898  ...  -54584.604628   \n",
              "BeginnerSuccess1.txt         0.065354     0.267604  ...  -62318.437626   \n",
              "BeginnerSuccess2.txt         0.793143    -0.845241  ...   78293.953722   \n",
              "BeginnerSuccess3.txt         0.374299     0.465092  ...  -93190.278672   \n",
              "BeginnerSuccess4.txt        -0.068237    -0.294792  ...  -54314.251509   \n",
              "BeginnerSuccess5.txt         0.111019     0.468153  ...  -48133.334004   \n",
              "BeginnerSuccess6.txt        -0.044153     0.238360  ... -135887.254527   \n",
              "ExpertFailure1.txt           4.816346     1.408724  ...   -2437.173038   \n",
              "ExpertFailure2.txt           5.387252     1.584693  ...  -18318.998994   \n",
              "ExpertFailure3.txt           4.435601     1.525419  ...  -36999.724346   \n",
              "ExpertFailure4.txt           4.353680     1.384908  ...   65705.080483   \n",
              "ExpertFailure5.txt           5.851165     1.759051  ...  -15249.899396   \n",
              "ExpertFailure6.txt           4.717178     1.903722  ...    8667.697183   \n",
              "ExpertSuccess1.txt           3.778969     1.068183  ...    1114.639839   \n",
              "ExpertSuccess2.txt           2.855326     1.171727  ...  -42491.612676   \n",
              "ExpertSuccess3.txt           3.885022     1.420170  ...  -10706.400402   \n",
              "ExpertSuccess4.txt           3.698660     1.264983  ...  -17325.965795   \n",
              "ExpertSuccess5.txt           2.866096     1.232144  ...  -19294.935614   \n",
              "NoExperienceFailure1.txt     0.646901     0.030765  ...  -62150.581489   \n",
              "NoExperienceFailure2.txt     0.993743     0.604802  ... -125125.587525   \n",
              "NoExperienceFailure3.txt     1.136319     0.609454  ...  -30149.901408   \n",
              "NoExperienceFailure4.txt     0.362008     0.382486  ...  -61096.567404   \n",
              "NoExperienceFailure5.txt     0.592362     0.510058  ... -178792.433602   \n",
              "NoExperienceFailure6.txt     1.847519     0.866211  ...  -52168.556338   \n",
              "\n",
              "                           x__c3__lag_2  x__quantile__q_0.8  \\\n",
              "BeginnerFailure1.txt      -78318.897590                -1.0   \n",
              "BeginnerFailure2.txt      -59427.913655                 0.0   \n",
              "BeginnerFailure3.txt      -64864.352410                 2.0   \n",
              "BeginnerFailure4.txt      -69569.466867                 1.0   \n",
              "BeginnerFailure5.txt      -33833.771084                -1.0   \n",
              "BeginnerFailure6.txt      -72483.144578                -2.0   \n",
              "BeginnerFailure7.txt      -62278.974900                 4.0   \n",
              "BeginnerSuccess1.txt      -64076.542169                -1.0   \n",
              "BeginnerSuccess2.txt       99457.737952                 0.0   \n",
              "BeginnerSuccess3.txt     -113511.975904                 1.0   \n",
              "BeginnerSuccess4.txt      -55035.507028                -2.0   \n",
              "BeginnerSuccess5.txt      -49248.466867                 1.0   \n",
              "BeginnerSuccess6.txt     -176590.389558                -1.0   \n",
              "ExpertFailure1.txt         -1709.319277                11.0   \n",
              "ExpertFailure2.txt        -18287.075301                11.0   \n",
              "ExpertFailure3.txt        -38049.802209                 3.2   \n",
              "ExpertFailure4.txt         90488.902610                 8.0   \n",
              "ExpertFailure5.txt        -12874.184739                 8.0   \n",
              "ExpertFailure6.txt         11248.295181                 9.0   \n",
              "ExpertSuccess1.txt          2378.808233                12.0   \n",
              "ExpertSuccess2.txt        -47322.917671                10.0   \n",
              "ExpertSuccess3.txt         -8535.088353                 7.0   \n",
              "ExpertSuccess4.txt        -17983.448795                 4.0   \n",
              "ExpertSuccess5.txt        -18643.064257                12.0   \n",
              "NoExperienceFailure1.txt  -68896.506024                -1.0   \n",
              "NoExperienceFailure2.txt -129525.610442                -1.0   \n",
              "NoExperienceFailure3.txt  -32301.806225                11.0   \n",
              "NoExperienceFailure4.txt  -54247.976908                10.0   \n",
              "NoExperienceFailure5.txt -190465.252008                -2.0   \n",
              "NoExperienceFailure6.txt  -59236.220884                 1.0   \n",
              "\n",
              "                          z__max_langevin_fixed_point__m_3__r_30  \\\n",
              "BeginnerFailure1.txt                                  272.365197   \n",
              "BeginnerFailure2.txt                                  272.365197   \n",
              "BeginnerFailure3.txt                                  272.365197   \n",
              "BeginnerFailure4.txt                                  272.365197   \n",
              "BeginnerFailure5.txt                                  272.365197   \n",
              "BeginnerFailure6.txt                                  272.365197   \n",
              "BeginnerFailure7.txt                                  272.365197   \n",
              "BeginnerSuccess1.txt                                   52.776586   \n",
              "BeginnerSuccess2.txt                                  131.320421   \n",
              "BeginnerSuccess3.txt                                  272.365197   \n",
              "BeginnerSuccess4.txt                                   -8.772503   \n",
              "BeginnerSuccess5.txt                                  272.365197   \n",
              "BeginnerSuccess6.txt                                  272.365197   \n",
              "ExpertFailure1.txt                                    315.110022   \n",
              "ExpertFailure2.txt                                    323.405113   \n",
              "ExpertFailure3.txt                                    327.971113   \n",
              "ExpertFailure4.txt                                    313.155816   \n",
              "ExpertFailure5.txt                                    377.608006   \n",
              "ExpertFailure6.txt                                    284.149448   \n",
              "ExpertSuccess1.txt                                    288.952860   \n",
              "ExpertSuccess2.txt                                    283.689189   \n",
              "ExpertSuccess3.txt                                    287.682179   \n",
              "ExpertSuccess4.txt                                    272.365197   \n",
              "ExpertSuccess5.txt                                    242.132756   \n",
              "NoExperienceFailure1.txt                               86.343459   \n",
              "NoExperienceFailure2.txt                              202.625029   \n",
              "NoExperienceFailure3.txt                              261.493058   \n",
              "NoExperienceFailure4.txt                              272.365197   \n",
              "NoExperienceFailure5.txt                              147.853449   \n",
              "NoExperienceFailure6.txt                              253.032678   \n",
              "\n",
              "                           x__c3__lag_1  z__binned_entropy__max_bins_10  \\\n",
              "BeginnerFailure1.txt      -87616.891784                        1.596120   \n",
              "BeginnerFailure2.txt      -52292.469940                        1.748197   \n",
              "BeginnerFailure3.txt      -65549.046092                        1.697850   \n",
              "BeginnerFailure4.txt      -69845.697395                        1.660403   \n",
              "BeginnerFailure5.txt      -32710.222445                        1.729247   \n",
              "BeginnerFailure6.txt      -73455.734469                        1.681515   \n",
              "BeginnerFailure7.txt      -82661.584168                        1.798531   \n",
              "BeginnerSuccess1.txt      -61204.382766                        1.646801   \n",
              "BeginnerSuccess2.txt      113631.532064                        1.769678   \n",
              "BeginnerSuccess3.txt     -132506.876754                        1.770839   \n",
              "BeginnerSuccess4.txt      -55279.098196                        1.864049   \n",
              "BeginnerSuccess5.txt      -50419.652305                        1.716835   \n",
              "BeginnerSuccess6.txt     -204038.199399                        1.782095   \n",
              "ExpertFailure1.txt         -1323.469940                        1.473581   \n",
              "ExpertFailure2.txt        -18321.814629                        1.461737   \n",
              "ExpertFailure3.txt        -38650.803607                        1.539209   \n",
              "ExpertFailure4.txt        108197.322645                        1.494847   \n",
              "ExpertFailure5.txt        -10255.949900                        1.328866   \n",
              "ExpertFailure6.txt         17383.752505                        1.577703   \n",
              "ExpertSuccess1.txt          2453.317635                        1.516072   \n",
              "ExpertSuccess2.txt        -49948.817635                        1.721526   \n",
              "ExpertSuccess3.txt         -7251.066132                        1.636337   \n",
              "ExpertSuccess4.txt        -16566.605210                        1.639586   \n",
              "ExpertSuccess5.txt        -16336.145291                        1.735544   \n",
              "NoExperienceFailure1.txt  -74123.411824                        1.731997   \n",
              "NoExperienceFailure2.txt -130338.635271                        1.757725   \n",
              "NoExperienceFailure3.txt  -34552.393788                        1.799970   \n",
              "NoExperienceFailure4.txt  -44838.970942                        1.904247   \n",
              "NoExperienceFailure5.txt -197032.790581                        1.819137   \n",
              "NoExperienceFailure6.txt  -65629.157315                        1.742484   \n",
              "\n",
              "                          x__ar_coefficient__coeff_0__k_10  \\\n",
              "BeginnerFailure1.txt                             -0.792068   \n",
              "BeginnerFailure2.txt                             -1.033799   \n",
              "BeginnerFailure3.txt                             -0.995832   \n",
              "BeginnerFailure4.txt                             -1.177124   \n",
              "BeginnerFailure5.txt                             -0.977925   \n",
              "BeginnerFailure6.txt                             -1.372344   \n",
              "BeginnerFailure7.txt                             -0.977465   \n",
              "BeginnerSuccess1.txt                             -1.026503   \n",
              "BeginnerSuccess2.txt                             -1.104203   \n",
              "BeginnerSuccess3.txt                             -1.028647   \n",
              "BeginnerSuccess4.txt                             -1.301399   \n",
              "BeginnerSuccess5.txt                             -0.874142   \n",
              "BeginnerSuccess6.txt                             -1.338601   \n",
              "ExpertFailure1.txt                               -0.232752   \n",
              "ExpertFailure2.txt                               -0.285017   \n",
              "ExpertFailure3.txt                               -0.285939   \n",
              "ExpertFailure4.txt                               -0.387351   \n",
              "ExpertFailure5.txt                               -0.153204   \n",
              "ExpertFailure6.txt                               -0.284880   \n",
              "ExpertSuccess1.txt                               -0.124630   \n",
              "ExpertSuccess2.txt                               -0.328460   \n",
              "ExpertSuccess3.txt                               -0.459836   \n",
              "ExpertSuccess4.txt                               -0.528489   \n",
              "ExpertSuccess5.txt                               -0.173720   \n",
              "NoExperienceFailure1.txt                         -0.493495   \n",
              "NoExperienceFailure2.txt                         -0.455383   \n",
              "NoExperienceFailure3.txt                         -0.444436   \n",
              "NoExperienceFailure4.txt                         -0.272088   \n",
              "NoExperienceFailure5.txt                         -1.073887   \n",
              "NoExperienceFailure6.txt                         -0.288165   \n",
              "\n",
              "                          z__fourier_entropy__bins_100  \\\n",
              "BeginnerFailure1.txt                          0.226363   \n",
              "BeginnerFailure2.txt                          0.514296   \n",
              "BeginnerFailure3.txt                          0.343950   \n",
              "BeginnerFailure4.txt                          0.591682   \n",
              "BeginnerFailure5.txt                          0.574202   \n",
              "BeginnerFailure6.txt                          0.745161   \n",
              "BeginnerFailure7.txt                          0.136002   \n",
              "BeginnerSuccess1.txt                          0.720635   \n",
              "BeginnerSuccess2.txt                          0.675998   \n",
              "BeginnerSuccess3.txt                          0.401846   \n",
              "BeginnerSuccess4.txt                          0.422803   \n",
              "BeginnerSuccess5.txt                          0.294982   \n",
              "BeginnerSuccess6.txt                          0.387337   \n",
              "ExpertFailure1.txt                            0.181214   \n",
              "ExpertFailure2.txt                            0.181214   \n",
              "ExpertFailure3.txt                            0.181214   \n",
              "ExpertFailure4.txt                            0.181214   \n",
              "ExpertFailure5.txt                            0.181214   \n",
              "ExpertFailure6.txt                            0.181214   \n",
              "ExpertSuccess1.txt                            0.181214   \n",
              "ExpertSuccess2.txt                            0.181214   \n",
              "ExpertSuccess3.txt                            0.181214   \n",
              "ExpertSuccess4.txt                            0.226363   \n",
              "ExpertSuccess5.txt                            0.181214   \n",
              "NoExperienceFailure1.txt                      0.181214   \n",
              "NoExperienceFailure2.txt                      0.273489   \n",
              "NoExperienceFailure3.txt                      0.226363   \n",
              "NoExperienceFailure4.txt                      0.314393   \n",
              "NoExperienceFailure5.txt                      0.318449   \n",
              "NoExperienceFailure6.txt                      0.435039   \n",
              "\n",
              "                          z__index_mass_quantile__q_0.7  \\\n",
              "BeginnerFailure1.txt                              0.822   \n",
              "BeginnerFailure2.txt                              0.748   \n",
              "BeginnerFailure3.txt                              0.787   \n",
              "BeginnerFailure4.txt                              0.809   \n",
              "BeginnerFailure5.txt                              0.799   \n",
              "BeginnerFailure6.txt                              0.793   \n",
              "BeginnerFailure7.txt                              0.813   \n",
              "BeginnerSuccess1.txt                              0.768   \n",
              "BeginnerSuccess2.txt                              0.813   \n",
              "BeginnerSuccess3.txt                              0.775   \n",
              "BeginnerSuccess4.txt                              0.781   \n",
              "BeginnerSuccess5.txt                              0.794   \n",
              "BeginnerSuccess6.txt                              0.775   \n",
              "ExpertFailure1.txt                                0.545   \n",
              "ExpertFailure2.txt                                0.489   \n",
              "ExpertFailure3.txt                                0.491   \n",
              "ExpertFailure4.txt                                0.584   \n",
              "ExpertFailure5.txt                                0.442   \n",
              "ExpertFailure6.txt                                0.572   \n",
              "ExpertSuccess1.txt                                0.423   \n",
              "ExpertSuccess2.txt                                0.519   \n",
              "ExpertSuccess3.txt                                0.488   \n",
              "ExpertSuccess4.txt                                0.501   \n",
              "ExpertSuccess5.txt                                0.673   \n",
              "NoExperienceFailure1.txt                          0.719   \n",
              "NoExperienceFailure2.txt                          0.560   \n",
              "NoExperienceFailure3.txt                          0.544   \n",
              "NoExperienceFailure4.txt                          0.572   \n",
              "NoExperienceFailure5.txt                          0.552   \n",
              "NoExperienceFailure6.txt                          0.544   \n",
              "\n",
              "                          y__fft_coefficient__attr_\"angle\"__coeff_1  \n",
              "BeginnerFailure1.txt                                    -104.093906  \n",
              "BeginnerFailure2.txt                                     -54.415851  \n",
              "BeginnerFailure3.txt                                     -85.979478  \n",
              "BeginnerFailure4.txt                                     -85.897570  \n",
              "BeginnerFailure5.txt                                     -84.524596  \n",
              "BeginnerFailure6.txt                                     -62.519692  \n",
              "BeginnerFailure7.txt                                     -98.040703  \n",
              "BeginnerSuccess1.txt                                     -53.409277  \n",
              "BeginnerSuccess2.txt                                     -68.437844  \n",
              "BeginnerSuccess3.txt                                     -67.714115  \n",
              "BeginnerSuccess4.txt                                     -62.801326  \n",
              "BeginnerSuccess5.txt                                     -78.853128  \n",
              "BeginnerSuccess6.txt                                     -75.553838  \n",
              "ExpertFailure1.txt                                      -126.997973  \n",
              "ExpertFailure2.txt                                      -100.921575  \n",
              "ExpertFailure3.txt                                       -97.618197  \n",
              "ExpertFailure4.txt                                       -89.751746  \n",
              "ExpertFailure5.txt                                       -82.636270  \n",
              "ExpertFailure6.txt                                      -117.093948  \n",
              "ExpertSuccess1.txt                                       -83.518353  \n",
              "ExpertSuccess2.txt                                      -100.850403  \n",
              "ExpertSuccess3.txt                                      -101.587515  \n",
              "ExpertSuccess4.txt                                      -106.243126  \n",
              "ExpertSuccess5.txt                                      -121.717845  \n",
              "NoExperienceFailure1.txt                                 -65.134551  \n",
              "NoExperienceFailure2.txt                                 -47.592158  \n",
              "NoExperienceFailure3.txt                                 -69.132884  \n",
              "NoExperienceFailure4.txt                                 -26.505959  \n",
              "NoExperienceFailure5.txt                                 -71.386757  \n",
              "NoExperienceFailure6.txt                                 -74.833163  \n",
              "\n",
              "[30 rows x 70 columns]"
            ],
            "text/html": [
              "\n",
              "  <div id=\"df-3039e281-8f68-4093-ad98-f83154b61c9c\" class=\"colab-df-container\">\n",
              "    <div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "      <th>z__ratio_beyond_r_sigma__r_3</th>\n",
              "      <th>z__ratio_beyond_r_sigma__r_0.5</th>\n",
              "      <th>z__augmented_dickey_fuller__attr_\"pvalue\"__autolag_\"AIC\"</th>\n",
              "      <th>z__augmented_dickey_fuller__attr_\"teststat\"__autolag_\"AIC\"</th>\n",
              "      <th>z__spkt_welch_density__coeff_2</th>\n",
              "      <th>z__agg_autocorrelation__f_agg_\"var\"__maxlag_40</th>\n",
              "      <th>z__fft_coefficient__attr_\"abs\"__coeff_8</th>\n",
              "      <th>z__fft_coefficient__attr_\"abs\"__coeff_1</th>\n",
              "      <th>z__kurtosis</th>\n",
              "      <th>z__skewness</th>\n",
              "      <th>...</th>\n",
              "      <th>x__c3__lag_3</th>\n",
              "      <th>x__c3__lag_2</th>\n",
              "      <th>x__quantile__q_0.8</th>\n",
              "      <th>z__max_langevin_fixed_point__m_3__r_30</th>\n",
              "      <th>x__c3__lag_1</th>\n",
              "      <th>z__binned_entropy__max_bins_10</th>\n",
              "      <th>x__ar_coefficient__coeff_0__k_10</th>\n",
              "      <th>z__fourier_entropy__bins_100</th>\n",
              "      <th>z__index_mass_quantile__q_0.7</th>\n",
              "      <th>y__fft_coefficient__attr_\"angle\"__coeff_1</th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure1.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.383</td>\n",
              "      <td>0.440691</td>\n",
              "      <td>-1.681457</td>\n",
              "      <td>58048.163782</td>\n",
              "      <td>0.003623</td>\n",
              "      <td>3606.537894</td>\n",
              "      <td>20611.625633</td>\n",
              "      <td>0.704542</td>\n",
              "      <td>-0.158807</td>\n",
              "      <td>...</td>\n",
              "      <td>-72940.454728</td>\n",
              "      <td>-78318.897590</td>\n",
              "      <td>-1.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-87616.891784</td>\n",
              "      <td>1.596120</td>\n",
              "      <td>-0.792068</td>\n",
              "      <td>0.226363</td>\n",
              "      <td>0.822</td>\n",
              "      <td>-104.093906</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure2.txt</th>\n",
              "      <td>0.003</td>\n",
              "      <td>0.521</td>\n",
              "      <td>0.627167</td>\n",
              "      <td>-1.304377</td>\n",
              "      <td>53278.728138</td>\n",
              "      <td>0.002205</td>\n",
              "      <td>2961.571289</td>\n",
              "      <td>27737.730689</td>\n",
              "      <td>0.296899</td>\n",
              "      <td>0.255338</td>\n",
              "      <td>...</td>\n",
              "      <td>-67083.534205</td>\n",
              "      <td>-59427.913655</td>\n",
              "      <td>0.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-52292.469940</td>\n",
              "      <td>1.748197</td>\n",
              "      <td>-1.033799</td>\n",
              "      <td>0.514296</td>\n",
              "      <td>0.748</td>\n",
              "      <td>-54.415851</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure3.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.489</td>\n",
              "      <td>0.314854</td>\n",
              "      <td>-1.937014</td>\n",
              "      <td>121033.977491</td>\n",
              "      <td>0.004377</td>\n",
              "      <td>3775.756233</td>\n",
              "      <td>26525.046921</td>\n",
              "      <td>0.366672</td>\n",
              "      <td>0.240661</td>\n",
              "      <td>...</td>\n",
              "      <td>-69181.438632</td>\n",
              "      <td>-64864.352410</td>\n",
              "      <td>2.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-65549.046092</td>\n",
              "      <td>1.697850</td>\n",
              "      <td>-0.995832</td>\n",
              "      <td>0.343950</td>\n",
              "      <td>0.787</td>\n",
              "      <td>-85.979478</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure4.txt</th>\n",
              "      <td>0.001</td>\n",
              "      <td>0.671</td>\n",
              "      <td>0.408733</td>\n",
              "      <td>-1.743731</td>\n",
              "      <td>38335.430338</td>\n",
              "      <td>0.003214</td>\n",
              "      <td>2543.186169</td>\n",
              "      <td>24877.423540</td>\n",
              "      <td>-0.213555</td>\n",
              "      <td>0.153883</td>\n",
              "      <td>...</td>\n",
              "      <td>-66903.104628</td>\n",
              "      <td>-69569.466867</td>\n",
              "      <td>1.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-69845.697395</td>\n",
              "      <td>1.660403</td>\n",
              "      <td>-1.177124</td>\n",
              "      <td>0.591682</td>\n",
              "      <td>0.809</td>\n",
              "      <td>-85.897570</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure5.txt</th>\n",
              "      <td>0.002</td>\n",
              "      <td>0.488</td>\n",
              "      <td>0.497797</td>\n",
              "      <td>-1.571689</td>\n",
              "      <td>42195.996697</td>\n",
              "      <td>0.002470</td>\n",
              "      <td>2644.439134</td>\n",
              "      <td>26269.174033</td>\n",
              "      <td>0.093401</td>\n",
              "      <td>-0.118772</td>\n",
              "      <td>...</td>\n",
              "      <td>-34904.740443</td>\n",
              "      <td>-33833.771084</td>\n",
              "      <td>-1.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-32710.222445</td>\n",
              "      <td>1.729247</td>\n",
              "      <td>-0.977925</td>\n",
              "      <td>0.574202</td>\n",
              "      <td>0.799</td>\n",
              "      <td>-84.524596</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure6.txt</th>\n",
              "      <td>0.002</td>\n",
              "      <td>0.575</td>\n",
              "      <td>0.439405</td>\n",
              "      <td>-1.683941</td>\n",
              "      <td>78991.684595</td>\n",
              "      <td>0.004624</td>\n",
              "      <td>3292.762487</td>\n",
              "      <td>27957.727371</td>\n",
              "      <td>0.428293</td>\n",
              "      <td>0.341467</td>\n",
              "      <td>...</td>\n",
              "      <td>-71495.771630</td>\n",
              "      <td>-72483.144578</td>\n",
              "      <td>-2.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-73455.734469</td>\n",
              "      <td>1.681515</td>\n",
              "      <td>-1.372344</td>\n",
              "      <td>0.745161</td>\n",
              "      <td>0.793</td>\n",
              "      <td>-62.519692</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerFailure7.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.421</td>\n",
              "      <td>0.227865</td>\n",
              "      <td>-2.142258</td>\n",
              "      <td>63616.206100</td>\n",
              "      <td>0.003921</td>\n",
              "      <td>1874.302095</td>\n",
              "      <td>22899.799383</td>\n",
              "      <td>0.419909</td>\n",
              "      <td>-0.006898</td>\n",
              "      <td>...</td>\n",
              "      <td>-54584.604628</td>\n",
              "      <td>-62278.974900</td>\n",
              "      <td>4.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-82661.584168</td>\n",
              "      <td>1.798531</td>\n",
              "      <td>-0.977465</td>\n",
              "      <td>0.136002</td>\n",
              "      <td>0.813</td>\n",
              "      <td>-98.040703</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess1.txt</th>\n",
              "      <td>0.001</td>\n",
              "      <td>0.814</td>\n",
              "      <td>0.528946</td>\n",
              "      <td>-1.509219</td>\n",
              "      <td>59531.504420</td>\n",
              "      <td>0.001843</td>\n",
              "      <td>1865.826310</td>\n",
              "      <td>27365.169514</td>\n",
              "      <td>0.065354</td>\n",
              "      <td>0.267604</td>\n",
              "      <td>...</td>\n",
              "      <td>-62318.437626</td>\n",
              "      <td>-64076.542169</td>\n",
              "      <td>-1.0</td>\n",
              "      <td>52.776586</td>\n",
              "      <td>-61204.382766</td>\n",
              "      <td>1.646801</td>\n",
              "      <td>-1.026503</td>\n",
              "      <td>0.720635</td>\n",
              "      <td>0.768</td>\n",
              "      <td>-53.409277</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess2.txt</th>\n",
              "      <td>0.009</td>\n",
              "      <td>0.704</td>\n",
              "      <td>0.302712</td>\n",
              "      <td>-1.963701</td>\n",
              "      <td>57259.752306</td>\n",
              "      <td>0.003524</td>\n",
              "      <td>5184.338423</td>\n",
              "      <td>29094.126200</td>\n",
              "      <td>0.793143</td>\n",
              "      <td>-0.845241</td>\n",
              "      <td>...</td>\n",
              "      <td>78293.953722</td>\n",
              "      <td>99457.737952</td>\n",
              "      <td>0.0</td>\n",
              "      <td>131.320421</td>\n",
              "      <td>113631.532064</td>\n",
              "      <td>1.769678</td>\n",
              "      <td>-1.104203</td>\n",
              "      <td>0.675998</td>\n",
              "      <td>0.813</td>\n",
              "      <td>-68.437844</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess3.txt</th>\n",
              "      <td>0.001</td>\n",
              "      <td>0.656</td>\n",
              "      <td>0.335914</td>\n",
              "      <td>-1.891832</td>\n",
              "      <td>50420.591282</td>\n",
              "      <td>0.004849</td>\n",
              "      <td>2728.033591</td>\n",
              "      <td>26903.184794</td>\n",
              "      <td>0.374299</td>\n",
              "      <td>0.465092</td>\n",
              "      <td>...</td>\n",
              "      <td>-93190.278672</td>\n",
              "      <td>-113511.975904</td>\n",
              "      <td>1.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-132506.876754</td>\n",
              "      <td>1.770839</td>\n",
              "      <td>-1.028647</td>\n",
              "      <td>0.401846</td>\n",
              "      <td>0.775</td>\n",
              "      <td>-67.714115</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess4.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.753</td>\n",
              "      <td>0.406794</td>\n",
              "      <td>-1.747551</td>\n",
              "      <td>62410.644544</td>\n",
              "      <td>0.002271</td>\n",
              "      <td>3014.591092</td>\n",
              "      <td>28700.687239</td>\n",
              "      <td>-0.068237</td>\n",
              "      <td>-0.294792</td>\n",
              "      <td>...</td>\n",
              "      <td>-54314.251509</td>\n",
              "      <td>-55035.507028</td>\n",
              "      <td>-2.0</td>\n",
              "      <td>-8.772503</td>\n",
              "      <td>-55279.098196</td>\n",
              "      <td>1.864049</td>\n",
              "      <td>-1.301399</td>\n",
              "      <td>0.422803</td>\n",
              "      <td>0.781</td>\n",
              "      <td>-62.801326</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess5.txt</th>\n",
              "      <td>0.001</td>\n",
              "      <td>0.683</td>\n",
              "      <td>0.189140</td>\n",
              "      <td>-2.248429</td>\n",
              "      <td>78721.778502</td>\n",
              "      <td>0.003550</td>\n",
              "      <td>1700.290014</td>\n",
              "      <td>26773.657488</td>\n",
              "      <td>0.111019</td>\n",
              "      <td>0.468153</td>\n",
              "      <td>...</td>\n",
              "      <td>-48133.334004</td>\n",
              "      <td>-49248.466867</td>\n",
              "      <td>1.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-50419.652305</td>\n",
              "      <td>1.716835</td>\n",
              "      <td>-0.874142</td>\n",
              "      <td>0.294982</td>\n",
              "      <td>0.794</td>\n",
              "      <td>-78.853128</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>BeginnerSuccess6.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.520</td>\n",
              "      <td>0.446127</td>\n",
              "      <td>-1.670973</td>\n",
              "      <td>71892.734143</td>\n",
              "      <td>0.002413</td>\n",
              "      <td>697.303725</td>\n",
              "      <td>26639.458328</td>\n",
              "      <td>-0.044153</td>\n",
              "      <td>0.238360</td>\n",
              "      <td>...</td>\n",
              "      <td>-135887.254527</td>\n",
              "      <td>-176590.389558</td>\n",
              "      <td>-1.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-204038.199399</td>\n",
              "      <td>1.782095</td>\n",
              "      <td>-1.338601</td>\n",
              "      <td>0.387337</td>\n",
              "      <td>0.775</td>\n",
              "      <td>-75.553838</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure1.txt</th>\n",
              "      <td>0.039</td>\n",
              "      <td>0.250</td>\n",
              "      <td>0.000027</td>\n",
              "      <td>-4.953585</td>\n",
              "      <td>815556.663115</td>\n",
              "      <td>0.033920</td>\n",
              "      <td>15067.491345</td>\n",
              "      <td>4609.900690</td>\n",
              "      <td>4.816346</td>\n",
              "      <td>1.408724</td>\n",
              "      <td>...</td>\n",
              "      <td>-2437.173038</td>\n",
              "      <td>-1709.319277</td>\n",
              "      <td>11.0</td>\n",
              "      <td>315.110022</td>\n",
              "      <td>-1323.469940</td>\n",
              "      <td>1.473581</td>\n",
              "      <td>-0.232752</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.545</td>\n",
              "      <td>-126.997973</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure2.txt</th>\n",
              "      <td>0.038</td>\n",
              "      <td>0.294</td>\n",
              "      <td>0.000001</td>\n",
              "      <td>-5.578041</td>\n",
              "      <td>845898.077499</td>\n",
              "      <td>0.044933</td>\n",
              "      <td>15222.634187</td>\n",
              "      <td>5393.038395</td>\n",
              "      <td>5.387252</td>\n",
              "      <td>1.584693</td>\n",
              "      <td>...</td>\n",
              "      <td>-18318.998994</td>\n",
              "      <td>-18287.075301</td>\n",
              "      <td>11.0</td>\n",
              "      <td>323.405113</td>\n",
              "      <td>-18321.814629</td>\n",
              "      <td>1.461737</td>\n",
              "      <td>-0.285017</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.489</td>\n",
              "      <td>-100.921575</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure3.txt</th>\n",
              "      <td>0.041</td>\n",
              "      <td>0.297</td>\n",
              "      <td>0.000673</td>\n",
              "      <td>-4.194459</td>\n",
              "      <td>874532.747330</td>\n",
              "      <td>0.036142</td>\n",
              "      <td>12794.997738</td>\n",
              "      <td>5270.875965</td>\n",
              "      <td>4.435601</td>\n",
              "      <td>1.525419</td>\n",
              "      <td>...</td>\n",
              "      <td>-36999.724346</td>\n",
              "      <td>-38049.802209</td>\n",
              "      <td>3.2</td>\n",
              "      <td>327.971113</td>\n",
              "      <td>-38650.803607</td>\n",
              "      <td>1.539209</td>\n",
              "      <td>-0.285939</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.491</td>\n",
              "      <td>-97.618197</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure4.txt</th>\n",
              "      <td>0.036</td>\n",
              "      <td>0.240</td>\n",
              "      <td>0.005797</td>\n",
              "      <td>-3.598115</td>\n",
              "      <td>901005.068183</td>\n",
              "      <td>0.041194</td>\n",
              "      <td>13987.883289</td>\n",
              "      <td>6976.125623</td>\n",
              "      <td>4.353680</td>\n",
              "      <td>1.384908</td>\n",
              "      <td>...</td>\n",
              "      <td>65705.080483</td>\n",
              "      <td>90488.902610</td>\n",
              "      <td>8.0</td>\n",
              "      <td>313.155816</td>\n",
              "      <td>108197.322645</td>\n",
              "      <td>1.494847</td>\n",
              "      <td>-0.387351</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.584</td>\n",
              "      <td>-89.751746</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure5.txt</th>\n",
              "      <td>0.040</td>\n",
              "      <td>0.254</td>\n",
              "      <td>0.000001</td>\n",
              "      <td>-5.634083</td>\n",
              "      <td>992108.377811</td>\n",
              "      <td>0.048905</td>\n",
              "      <td>15214.145571</td>\n",
              "      <td>6061.258074</td>\n",
              "      <td>5.851165</td>\n",
              "      <td>1.759051</td>\n",
              "      <td>...</td>\n",
              "      <td>-15249.899396</td>\n",
              "      <td>-12874.184739</td>\n",
              "      <td>8.0</td>\n",
              "      <td>377.608006</td>\n",
              "      <td>-10255.949900</td>\n",
              "      <td>1.328866</td>\n",
              "      <td>-0.153204</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.442</td>\n",
              "      <td>-82.636270</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertFailure6.txt</th>\n",
              "      <td>0.046</td>\n",
              "      <td>0.346</td>\n",
              "      <td>0.005224</td>\n",
              "      <td>-3.629373</td>\n",
              "      <td>541306.718151</td>\n",
              "      <td>0.024533</td>\n",
              "      <td>10614.718110</td>\n",
              "      <td>8372.320689</td>\n",
              "      <td>4.717178</td>\n",
              "      <td>1.903722</td>\n",
              "      <td>...</td>\n",
              "      <td>8667.697183</td>\n",
              "      <td>11248.295181</td>\n",
              "      <td>9.0</td>\n",
              "      <td>284.149448</td>\n",
              "      <td>17383.752505</td>\n",
              "      <td>1.577703</td>\n",
              "      <td>-0.284880</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.572</td>\n",
              "      <td>-117.093948</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess1.txt</th>\n",
              "      <td>0.031</td>\n",
              "      <td>0.317</td>\n",
              "      <td>0.000063</td>\n",
              "      <td>-4.765460</td>\n",
              "      <td>663311.206172</td>\n",
              "      <td>0.030817</td>\n",
              "      <td>12655.265835</td>\n",
              "      <td>6385.881886</td>\n",
              "      <td>3.778969</td>\n",
              "      <td>1.068183</td>\n",
              "      <td>...</td>\n",
              "      <td>1114.639839</td>\n",
              "      <td>2378.808233</td>\n",
              "      <td>12.0</td>\n",
              "      <td>288.952860</td>\n",
              "      <td>2453.317635</td>\n",
              "      <td>1.516072</td>\n",
              "      <td>-0.124630</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.423</td>\n",
              "      <td>-83.518353</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess2.txt</th>\n",
              "      <td>0.030</td>\n",
              "      <td>0.365</td>\n",
              "      <td>0.014103</td>\n",
              "      <td>-3.317768</td>\n",
              "      <td>454875.698062</td>\n",
              "      <td>0.021604</td>\n",
              "      <td>7127.591369</td>\n",
              "      <td>6870.876124</td>\n",
              "      <td>2.855326</td>\n",
              "      <td>1.171727</td>\n",
              "      <td>...</td>\n",
              "      <td>-42491.612676</td>\n",
              "      <td>-47322.917671</td>\n",
              "      <td>10.0</td>\n",
              "      <td>283.689189</td>\n",
              "      <td>-49948.817635</td>\n",
              "      <td>1.721526</td>\n",
              "      <td>-0.328460</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.519</td>\n",
              "      <td>-100.850403</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess3.txt</th>\n",
              "      <td>0.039</td>\n",
              "      <td>0.341</td>\n",
              "      <td>0.000001</td>\n",
              "      <td>-5.633416</td>\n",
              "      <td>601801.046408</td>\n",
              "      <td>0.026224</td>\n",
              "      <td>11642.419254</td>\n",
              "      <td>4260.269198</td>\n",
              "      <td>3.885022</td>\n",
              "      <td>1.420170</td>\n",
              "      <td>...</td>\n",
              "      <td>-10706.400402</td>\n",
              "      <td>-8535.088353</td>\n",
              "      <td>7.0</td>\n",
              "      <td>287.682179</td>\n",
              "      <td>-7251.066132</td>\n",
              "      <td>1.636337</td>\n",
              "      <td>-0.459836</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.488</td>\n",
              "      <td>-101.587515</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess4.txt</th>\n",
              "      <td>0.035</td>\n",
              "      <td>0.326</td>\n",
              "      <td>0.000284</td>\n",
              "      <td>-4.410982</td>\n",
              "      <td>550694.952840</td>\n",
              "      <td>0.031581</td>\n",
              "      <td>10738.898761</td>\n",
              "      <td>4585.154814</td>\n",
              "      <td>3.698660</td>\n",
              "      <td>1.264983</td>\n",
              "      <td>...</td>\n",
              "      <td>-17325.965795</td>\n",
              "      <td>-17983.448795</td>\n",
              "      <td>4.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-16566.605210</td>\n",
              "      <td>1.639586</td>\n",
              "      <td>-0.528489</td>\n",
              "      <td>0.226363</td>\n",
              "      <td>0.501</td>\n",
              "      <td>-106.243126</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>ExpertSuccess5.txt</th>\n",
              "      <td>0.029</td>\n",
              "      <td>0.362</td>\n",
              "      <td>0.000921</td>\n",
              "      <td>-4.113114</td>\n",
              "      <td>391423.997086</td>\n",
              "      <td>0.017985</td>\n",
              "      <td>8154.296796</td>\n",
              "      <td>7738.600846</td>\n",
              "      <td>2.866096</td>\n",
              "      <td>1.232144</td>\n",
              "      <td>...</td>\n",
              "      <td>-19294.935614</td>\n",
              "      <td>-18643.064257</td>\n",
              "      <td>12.0</td>\n",
              "      <td>242.132756</td>\n",
              "      <td>-16336.145291</td>\n",
              "      <td>1.735544</td>\n",
              "      <td>-0.173720</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.673</td>\n",
              "      <td>-121.717845</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure1.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.430</td>\n",
              "      <td>0.474502</td>\n",
              "      <td>-1.616620</td>\n",
              "      <td>282704.995826</td>\n",
              "      <td>0.008692</td>\n",
              "      <td>3081.951223</td>\n",
              "      <td>9082.886957</td>\n",
              "      <td>0.646901</td>\n",
              "      <td>0.030765</td>\n",
              "      <td>...</td>\n",
              "      <td>-62150.581489</td>\n",
              "      <td>-68896.506024</td>\n",
              "      <td>-1.0</td>\n",
              "      <td>86.343459</td>\n",
              "      <td>-74123.411824</td>\n",
              "      <td>1.731997</td>\n",
              "      <td>-0.493495</td>\n",
              "      <td>0.181214</td>\n",
              "      <td>0.719</td>\n",
              "      <td>-65.134551</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure2.txt</th>\n",
              "      <td>0.004</td>\n",
              "      <td>0.397</td>\n",
              "      <td>0.149099</td>\n",
              "      <td>-2.374379</td>\n",
              "      <td>315302.908049</td>\n",
              "      <td>0.010529</td>\n",
              "      <td>3164.928236</td>\n",
              "      <td>11543.463285</td>\n",
              "      <td>0.993743</td>\n",
              "      <td>0.604802</td>\n",
              "      <td>...</td>\n",
              "      <td>-125125.587525</td>\n",
              "      <td>-129525.610442</td>\n",
              "      <td>-1.0</td>\n",
              "      <td>202.625029</td>\n",
              "      <td>-130338.635271</td>\n",
              "      <td>1.757725</td>\n",
              "      <td>-0.455383</td>\n",
              "      <td>0.273489</td>\n",
              "      <td>0.560</td>\n",
              "      <td>-47.592158</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure3.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.398</td>\n",
              "      <td>0.270483</td>\n",
              "      <td>-2.037249</td>\n",
              "      <td>371140.052504</td>\n",
              "      <td>0.010623</td>\n",
              "      <td>6177.493829</td>\n",
              "      <td>11174.398067</td>\n",
              "      <td>1.136319</td>\n",
              "      <td>0.609454</td>\n",
              "      <td>...</td>\n",
              "      <td>-30149.901408</td>\n",
              "      <td>-32301.806225</td>\n",
              "      <td>11.0</td>\n",
              "      <td>261.493058</td>\n",
              "      <td>-34552.393788</td>\n",
              "      <td>1.799970</td>\n",
              "      <td>-0.444436</td>\n",
              "      <td>0.226363</td>\n",
              "      <td>0.544</td>\n",
              "      <td>-69.132884</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure4.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.469</td>\n",
              "      <td>0.171590</td>\n",
              "      <td>-2.301174</td>\n",
              "      <td>264379.369712</td>\n",
              "      <td>0.011228</td>\n",
              "      <td>2841.468881</td>\n",
              "      <td>12392.069634</td>\n",
              "      <td>0.362008</td>\n",
              "      <td>0.382486</td>\n",
              "      <td>...</td>\n",
              "      <td>-61096.567404</td>\n",
              "      <td>-54247.976908</td>\n",
              "      <td>10.0</td>\n",
              "      <td>272.365197</td>\n",
              "      <td>-44838.970942</td>\n",
              "      <td>1.904247</td>\n",
              "      <td>-0.272088</td>\n",
              "      <td>0.314393</td>\n",
              "      <td>0.572</td>\n",
              "      <td>-26.505959</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure5.txt</th>\n",
              "      <td>0.000</td>\n",
              "      <td>0.429</td>\n",
              "      <td>0.297789</td>\n",
              "      <td>-1.974668</td>\n",
              "      <td>325247.944985</td>\n",
              "      <td>0.008484</td>\n",
              "      <td>3603.967786</td>\n",
              "      <td>12437.222848</td>\n",
              "      <td>0.592362</td>\n",
              "      <td>0.510058</td>\n",
              "      <td>...</td>\n",
              "      <td>-178792.433602</td>\n",
              "      <td>-190465.252008</td>\n",
              "      <td>-2.0</td>\n",
              "      <td>147.853449</td>\n",
              "      <td>-197032.790581</td>\n",
              "      <td>1.819137</td>\n",
              "      <td>-1.073887</td>\n",
              "      <td>0.318449</td>\n",
              "      <td>0.552</td>\n",
              "      <td>-71.386757</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>NoExperienceFailure6.txt</th>\n",
              "      <td>0.004</td>\n",
              "      <td>0.434</td>\n",
              "      <td>0.109193</td>\n",
              "      <td>-2.526354</td>\n",
              "      <td>263047.016409</td>\n",
              "      <td>0.008872</td>\n",
              "      <td>3407.241967</td>\n",
              "      <td>14803.441619</td>\n",
              "      <td>1.847519</td>\n",
              "      <td>0.866211</td>\n",
              "      <td>...</td>\n",
              "      <td>-52168.556338</td>\n",
              "      <td>-59236.220884</td>\n",
              "      <td>1.0</td>\n",
              "      <td>253.032678</td>\n",
              "      <td>-65629.157315</td>\n",
              "      <td>1.742484</td>\n",
              "      <td>-0.288165</td>\n",
              "      <td>0.435039</td>\n",
              "      <td>0.544</td>\n",
              "      <td>-74.833163</td>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "<p>30 rows × 70 columns</p>\n",
              "</div>\n",
              "    <div class=\"colab-df-buttons\">\n",
              "\n",
              "  <div class=\"colab-df-container\">\n",
              "    <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-3039e281-8f68-4093-ad98-f83154b61c9c')\"\n",
              "            title=\"Convert this dataframe to an interactive table.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
              "    <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "\n",
              "  <style>\n",
              "    .colab-df-container {\n",
              "      display:flex;\n",
              "      gap: 12px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert {\n",
              "      background-color: #E8F0FE;\n",
              "      border: none;\n",
              "      border-radius: 50%;\n",
              "      cursor: pointer;\n",
              "      display: none;\n",
              "      fill: #1967D2;\n",
              "      height: 32px;\n",
              "      padding: 0 0 0 0;\n",
              "      width: 32px;\n",
              "    }\n",
              "\n",
              "    .colab-df-convert:hover {\n",
              "      background-color: #E2EBFA;\n",
              "      box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "      fill: #174EA6;\n",
              "    }\n",
              "\n",
              "    .colab-df-buttons div {\n",
              "      margin-bottom: 4px;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert {\n",
              "      background-color: #3B4455;\n",
              "      fill: #D2E3FC;\n",
              "    }\n",
              "\n",
              "    [theme=dark] .colab-df-convert:hover {\n",
              "      background-color: #434B5C;\n",
              "      box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "      filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "      fill: #FFFFFF;\n",
              "    }\n",
              "  </style>\n",
              "\n",
              "    <script>\n",
              "      const buttonEl =\n",
              "        document.querySelector('#df-3039e281-8f68-4093-ad98-f83154b61c9c button.colab-df-convert');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      async function convertToInteractive(key) {\n",
              "        const element = document.querySelector('#df-3039e281-8f68-4093-ad98-f83154b61c9c');\n",
              "        const dataTable =\n",
              "          await google.colab.kernel.invokeFunction('convertToInteractive',\n",
              "                                                    [key], {});\n",
              "        if (!dataTable) return;\n",
              "\n",
              "        const docLinkHtml = 'Like what you see? Visit the ' +\n",
              "          '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
              "          + ' to learn more about interactive tables.';\n",
              "        element.innerHTML = '';\n",
              "        dataTable['output_type'] = 'display_data';\n",
              "        await google.colab.output.renderOutput(dataTable, element);\n",
              "        const docLink = document.createElement('div');\n",
              "        docLink.innerHTML = docLinkHtml;\n",
              "        element.appendChild(docLink);\n",
              "      }\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "\n",
              "  <div id=\"id_93b2bd23-ff50-4d88-8735-ee14f15b107e\">\n",
              "    <style>\n",
              "      .colab-df-generate {\n",
              "        background-color: #E8F0FE;\n",
              "        border: none;\n",
              "        border-radius: 50%;\n",
              "        cursor: pointer;\n",
              "        display: none;\n",
              "        fill: #1967D2;\n",
              "        height: 32px;\n",
              "        padding: 0 0 0 0;\n",
              "        width: 32px;\n",
              "      }\n",
              "\n",
              "      .colab-df-generate:hover {\n",
              "        background-color: #E2EBFA;\n",
              "        box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
              "        fill: #174EA6;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate {\n",
              "        background-color: #3B4455;\n",
              "        fill: #D2E3FC;\n",
              "      }\n",
              "\n",
              "      [theme=dark] .colab-df-generate:hover {\n",
              "        background-color: #434B5C;\n",
              "        box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
              "        filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
              "        fill: #FFFFFF;\n",
              "      }\n",
              "    </style>\n",
              "    <button class=\"colab-df-generate\" onclick=\"generateWithVariable('features_filtered_train')\"\n",
              "            title=\"Generate code using this dataframe.\"\n",
              "            style=\"display:none;\">\n",
              "\n",
              "  <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
              "       width=\"24px\">\n",
              "    <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
              "  </svg>\n",
              "    </button>\n",
              "    <script>\n",
              "      (() => {\n",
              "      const buttonEl =\n",
              "        document.querySelector('#id_93b2bd23-ff50-4d88-8735-ee14f15b107e button.colab-df-generate');\n",
              "      buttonEl.style.display =\n",
              "        google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
              "\n",
              "      buttonEl.onclick = () => {\n",
              "        google.colab.notebook.generateWithVariable('features_filtered_train');\n",
              "      }\n",
              "      })();\n",
              "    </script>\n",
              "  </div>\n",
              "\n",
              "    </div>\n",
              "  </div>\n"
            ],
            "application/vnd.google.colaboratory.intrinsic+json": {
              "type": "dataframe",
              "variable_name": "features_filtered_train"
            }
          },
          "metadata": {},
          "execution_count": 39
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(features_filtered_train)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca6b = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行"
      ],
      "metadata": {
        "id": "j1GkKxAP2DbA"
      },
      "execution_count": 40,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "data_pca = data_pca6b\n",
        "\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:len(data1_id), 0], data_pca[0:len(data1_id), 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[len(data1_id):len(data1_id)+len(data2_id), 0], data_pca[len(data1_id):len(data1_id)+len(data2_id), 1],marker='^',s=100,color='k', label=data2_legend)\n",
        "plt.scatter(data_pca[len(data1_id)+len(data2_id):len(data1_id)+len(data2_id)+len(data3_id), 0], data_pca[len(data1_id)+len(data2_id):len(data1_id)+len(data2_id)+len(data3_id), 1],marker='x',s=100,color='k', label=data3_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_vs_'+data3_legend+'_sel.png')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_vs_'+data3_legend+'_sel.pdf')\n",
        "plt.savefig('Kendama_'+data1_legend+'_vs_'+data2_legend+'_vs_'+data3_legend+'_sel.svg')\n",
        "\n",
        "plt.show()"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "orsbKTaH2qU8",
        "outputId": "b66ce897-2dcb-415b-9d31-2f6349aa1db3"
      },
      "execution_count": 41,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 30684 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "markdown",
      "source": [
        "# 7項目データを用いた主成分分析"
      ],
      "metadata": {
        "id": "1RftTarDpTcr"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "df_data_ken = pd.read_csv(\"kendama.csv\", delimiter=',',index_col='id')\n",
        "data1_legend = 'Expert'\n",
        "data2_legend = 'Beginner'\n",
        "data3_legend = 'NoExperience'\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(df_data_ken)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:11, 0], data_pca[0:11, 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[11:11+12, 0], data_pca[11:11+12, 1],marker='^',s=100,color='k', label=data2_legend)\n",
        "plt.scatter(data_pca[11+12:11+12+6, 0], data_pca[11+12:11+12+6, 1],marker='x',s=100,color='k', label=data3_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('IF7_Ex_vs_Be_vs_NoEx.png')\n",
        "plt.savefig('IF7_Ex_vs_Be_vs_NoEx.pdf')\n",
        "plt.savefig('IF7_Ex_vs_Be_vs_NoEx.svg')"
      ],
      "metadata": {
        "id": "2Me_6-XsQuQx",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "outputId": "9bfaeafa-fead-4ed9-e0f4-d365c7275cb0"
      },
      "execution_count": 42,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 27464 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "df_data_ken = pd.read_csv(\"kendama_ExBe.csv\", delimiter=',',index_col='id')\n",
        "data1_legend = 'Expert'\n",
        "data2_legend = 'Beginner'\n",
        "data3_legend = 'NoExperience'\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(df_data_ken)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:11, 0], data_pca[0:11, 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[11:11+13, 0], data_pca[11:11+13, 1],marker='^',s=100,color='k', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('IF7_Ex_vs_Be.png')\n",
        "plt.savefig('IF7_Ex_vs_Be.pdf')\n",
        "plt.savefig('IF7_Ex_vs_Be.svg')"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 545
        },
        "id": "x3vRL-dJqATs",
        "outputId": "43e47736-272b-4b59-87dd-2aa652eb92a5"
      },
      "execution_count": 43,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 22744 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "df_data_ken = pd.read_csv(\"kendama_ExNoEx.csv\", delimiter=',',index_col='id')\n",
        "data1_legend = 'Expert'\n",
        "data2_legend = 'Beginner'\n",
        "data3_legend = 'NoExperience'\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(df_data_ken)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:11, 0], data_pca[0:11, 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[11:11+5, 0], data_pca[11:11+5, 1],marker='x',s=100,color='k', label=data3_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('IF7_Ex_vs_NoEx.png')\n",
        "plt.savefig('IF7_Ex_vs_NoEx.pdf')\n",
        "plt.savefig('IF7_Ex_vs_NoEx.svg')"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "8L0gA40pqAOv",
        "outputId": "d39db3ed-ecca-4a43-b3a5-35927ff54830"
      },
      "execution_count": 44,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 22280 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "df_data_ken = pd.read_csv(\"kendama_BeNoEx.csv\", delimiter=',',index_col='id')\n",
        "data1_legend = 'Expert'\n",
        "data2_legend = 'Beginner'\n",
        "data3_legend = 'NoExperience'\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(df_data_ken)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:13, 0], data_pca[0:13, 1],marker='^',s=100,color='k', label=data2_legend)\n",
        "plt.scatter(data_pca[13:13+5, 0], data_pca[13:13+5, 1],marker='x',s=100,color='k', label=data3_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('IF7_Be_vs_NoEx.png')\n",
        "plt.savefig('IF7_Be_vs_NoEx.pdf')\n",
        "plt.savefig('IF7_Be_vs_NoEx.svg')"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "pjFsmu-PqAFe",
        "outputId": "0e3fd0a3-96bc-4bf9-9eb6-9785180dd7cd"
      },
      "execution_count": 45,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 20872 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "df_data_ken = pd.read_csv(\"kendama_ExSF.csv\", delimiter=',',index_col='id')\n",
        "data1_legend = 'ExpertSuccess'\n",
        "data2_legend = 'ExpertFailure'\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(df_data_ken)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:5, 0], data_pca[0:5, 1],marker='o',s=100,color='k', label=data1_legend)\n",
        "plt.scatter(data_pca[5:5+6, 0], data_pca[5:5+6, 1],marker='o',s=100,color='k', facecolor='None', label=data3_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('IF7_Ex_SvsF.png')\n",
        "plt.savefig('IF7_Ex_SvsF.pdf')\n",
        "plt.savefig('IF7_Ex_SvsF.svg')"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "9HuLAfjwrrBk",
        "outputId": "a42e0101-eaed-41e8-c06f-4a112b3bb4af"
      },
      "execution_count": 46,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 24748 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "df_data_ken = pd.read_csv(\"kendama_BeSF.csv\", delimiter=',',index_col='id')\n",
        "data1_legend = 'BeginnerSuccess'\n",
        "data2_legend = 'BeginnerFailure'\n",
        "\n",
        "scaler = StandardScaler()\n",
        "extracted_features_train_impute_scaler = scaler.fit_transform(df_data_ken)\n",
        "pca = PCA()  # PCA を行ったり PCA の結果を格納したりするための変数を、pca として宣言\n",
        "data_pca = pca.fit_transform(extracted_features_train_impute_scaler)  # PCA を実行\n",
        "plt.figure(figsize=(6, 6))\n",
        "plt.scatter(data_pca[0:6, 0], data_pca[0:6, 1],marker=',',s=100,color='k',label=data1_legend)\n",
        "plt.scatter(data_pca[6:6+7, 0], data_pca[6:6+7, 1],marker=',',s=100,color='k', facecolor='None', label=data2_legend)\n",
        "\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.xlabel(\"PC1\")\n",
        "plt.ylabel(\"PC2\")\n",
        "\n",
        "plt.savefig('IF7_Be_SvsF.png')\n",
        "plt.savefig('IF7_Be_SvsF.pdf')\n",
        "plt.savefig('IF7_Be_SvsF.svg')"
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 542
        },
        "id": "IlpZAZulrq_Q",
        "outputId": "311c4d9c-d561-4150-bb69-446b006ca7ce"
      },
      "execution_count": 47,
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 600x600 with 1 Axes>"
            ],
            "image/png": "[encoded data, 23656 characters]\n"
          },
          "metadata": {}
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [],
      "metadata": {
        "id": "ZLS9w7h5Wo4J"
      },
      "execution_count": 47,
      "outputs": []
    }
  ]
}