Skip to content
Snippets Groups Projects
Analysis_07MAY2019_new.ipynb 161 KiB
Newer Older
  • Learn to ignore specific revisions
  • Riku-Laine's avatar
    Riku-Laine committed
         "output_type": "display_data"
        }
       ],
       "source": [
        "f_rates = np.zeros(0)\n",
        "\n",
        "for r in range(1, 9):\n",
        "    f_rates = np.append(\n",
        "        f_rates,\n",
        "        contraction(simple_train, 'judgeID_J', 'decision_T', 'result_Y',\n",
        "                    'probabilities_Y', 'acceptanceRate_R', r / 10))\n",
        "\n",
        "print(f_rates)\n",
        "plt.plot(f_rates, label=\"Contraction\")\n",
        "plt.title('Failure rate vs. Acceptance rate, simple data')\n",
        "plt.xlabel('Acceptance rate')\n",
        "plt.ylabel('Failure rate')\n",
        "plt.legend()\n",
        "plt.grid()\n",
        "plt.show()"
       ]
    
    Riku-Laine's avatar
    Riku-Laine committed
      }
     ],
     "metadata": {
      "kernelspec": {
       "display_name": "Python 3",
       "language": "python",
       "name": "python3"
      },
      "language_info": {
       "codemirror_mode": {
        "name": "ipython",
        "version": 3
       },
       "file_extension": ".py",
       "mimetype": "text/x-python",
       "name": "python",
       "nbconvert_exporter": "python",
       "pygments_lexer": "ipython3",
    
    Riku-Laine's avatar
    Riku-Laine committed
       "version": "3.7.3"
    
    Riku-Laine's avatar
    Riku-Laine committed
      },
      "toc": {
       "base_numbering": 1,
       "nav_menu": {},
       "number_sections": true,
       "sideBar": true,
       "skip_h1_title": true,
       "title_cell": "Table of Contents",
       "title_sidebar": "Contents",
       "toc_cell": true,
       "toc_position": {},
       "toc_section_display": true,
    
    Riku-Laine's avatar
    Riku-Laine committed
       "toc_window_display": true
    
    Riku-Laine's avatar
    Riku-Laine committed
      },
      "varInspector": {
       "cols": {
        "lenName": 16,
        "lenType": 16,
        "lenVar": 40
       },
       "kernels_config": {
        "python": {
         "delete_cmd_postfix": "",
         "delete_cmd_prefix": "del ",
         "library": "var_list.py",
         "varRefreshCmd": "print(var_dic_list())"
        },
        "r": {
         "delete_cmd_postfix": ") ",
         "delete_cmd_prefix": "rm(",
         "library": "var_list.r",
         "varRefreshCmd": "cat(var_dic_list()) "
        }
       },
    
    Riku-Laine's avatar
    Riku-Laine committed
       "position": {
        "height": "352.85px",
        "left": "1070px",
        "right": "20px",
        "top": "120px",
        "width": "350px"
       },
    
    Riku-Laine's avatar
    Riku-Laine committed
       "types_to_exclude": [
        "module",
        "function",
        "builtin_function_or_method",
        "instance",
        "_Feature"
       ],
       "window_display": false
      }
     },
     "nbformat": 4,
     "nbformat_minor": 2
    }