{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "1c325f87", "metadata": { "metadata": {} }, "outputs": [], "source": [ "# %pip install numpy pandas xgboost lightgbm scikit-learn openpyxl" ] }, { "cell_type": "code", "execution_count": 2, "id": "45696607", "metadata": { "metadata": {} }, "outputs": [], "source": [ "# %pip install cupy-cuda12x" ] }, { "cell_type": "code", "execution_count": 3, "id": "20398dff", "metadata": { "metadata": {} }, "outputs": [], "source": [ "# # MLP\n", "# %pip install torch torchvision torchaudio" ] }, { "cell_type": "code", "execution_count": 4, "id": "953471cc", "metadata": {}, "outputs": [], "source": [ "import os\n", "os.chdir('/Users/yuesir/Documents/PostGraduation/论文/AMVL/code')" ] }, { "cell_type": "code", "execution_count": 5, "id": "48c47e6a-0d56-4d22-a239-1a958fe436de", "metadata": { "metadata": {} }, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd\n", "\n", "from utils.utils import load_dataset\n", "from utils.workflow import train_eval, case_study, benchmark_all_cases\n", "\n", "from function.ITRPCA import ITRPCA_F\n", "from function.VDA_GKSBMF import A_VDA_GMSBMF\n", "from function.DRPADC import WeightImputeLogFactorization, GetProbability\n", "from function.MVL import MVL_F\n", "from function.BMC import BMC_F\n", "from function.MSBMF import MSBMF_F\n", "from function.HGIMC import fBMC, fGRB, fHGI\n", "from function.AMVL import AMVL" ] }, { "cell_type": "markdown", "id": "fbec543e-9da1-44bb-aa82-d71fb2b793b3", "metadata": {}, "source": [ "## HN-DREP Benchmark" ] }, { "cell_type": "code", "execution_count": 6, "id": "e5f89f0a-7c1e-4b5d-9f59-e6ec96c27902", "metadata": { "metadata": {} }, "outputs": [ { "data": { "text/html": [ "
| \n", " | id | \n", "dataset | \n", "auc | \n", "aupr | \n", "f1 | \n", "time(s) | \n", "memory(kb) | \n", "overall(auc+aupr+f1) | \n", "
|---|---|---|---|---|---|---|---|---|
| 0 | \n", "HINGRL | \n", "Fdataset | \n", "0.9432 | \n", "0.9515 | \n", "0.8789 | \n", "18.0 | \n", "655120.0 | \n", "2.7736 | \n", "
| 1 | \n", "DRPADC | \n", "iDrug | \n", "0.9746 | \n", "0.9731 | \n", "0.7000 | \n", "1177.0 | \n", "1706124.0 | \n", "2.6477 | \n", "
| 2 | \n", "VDA-GKSBMF | \n", "Ydataset | \n", "0.9699 | \n", "0.9751 | \n", "0.6981 | \n", "111.0 | \n", "979672.0 | \n", "2.6431 | \n", "
| 3 | \n", "MLMC | \n", "Cdataset | \n", "0.9706 | \n", "0.9747 | \n", "0.6945 | \n", "57.0 | \n", "889936.0 | \n", "2.6398 | \n", "
| 4 | \n", "ITRPCA | \n", "Cdataset | \n", "0.9654 | \n", "0.9730 | \n", "0.6960 | \n", "18.0 | \n", "1328172.0 | \n", "2.6344 | \n", "