wandb

Форк
0
/
jupyter_test.ipynb 
120 строк · 3.3 Кб
1
{
2
 "cells": [
3
  {
4
   "cell_type": "code",
5
   "execution_count": null,
6
   "metadata": {},
7
   "outputs": [],
8
   "source": [
9
    "!pip install -e ../"
10
   ]
11
  },
12
  {
13
   "cell_type": "code",
14
   "execution_count": 1,
15
   "metadata": {},
16
   "outputs": [],
17
   "source": [
18
    "import wandb\n",
19
    "import time"
20
   ]
21
  },
22
  {
23
   "cell_type": "code",
24
   "execution_count": 2,
25
   "metadata": {},
26
   "outputs": [
27
    {
28
     "name": "stderr",
29
     "output_type": "stream",
30
     "text": [
31
      "\u001B[34m\u001B[1mwandb\u001B[0m: Currently logged in as: \u001B[33mvanpelt\u001B[0m (use `wandb login --relogin` to force relogin)\n",
32
      "\u001B[34m\u001B[1mwandb\u001B[0m: Tracking run with wandb version 0.0.40\n",
33
      "\u001B[34m\u001B[1mwandb\u001B[0m: Syncing run \u001B[33mdeep-elevator-22\u001B[0m\n",
34
      "\u001B[34m\u001B[1mwandb\u001B[0m: ⭐️ View project at \u001B[34m\u001B[4mhttps://app.wandb.ai/vanpelt/jupyter_test\u001B[0m\n",
35
      "\u001B[34m\u001B[1mwandb\u001B[0m: 🚀 View run at \u001B[34m\u001B[4mhttps://app.wandb.ai/vanpelt/jupyter_test/runs/155u9ivk\u001B[0m\n"
36
     ]
37
    },
38
    {
39
     "name": "stdout",
40
     "output_type": "stream",
41
     "text": [
42
      "\n"
43
     ]
44
    }
45
   ],
46
   "source": [
47
    "# Single cell logging\n",
48
    "wandb.init(project=\"jupyter_test\")\n",
49
    "for i in range(10):\n",
50
    "    time.sleep(0.5)\n",
51
    "    wandb.log({\"metric\": i})"
52
   ]
53
  },
54
  {
55
   "cell_type": "code",
56
   "execution_count": 3,
57
   "metadata": {},
58
   "outputs": [],
59
   "source": [
60
    "for i in range(10):\n",
61
    "    time.sleep(0.5)\n",
62
    "    wandb.log({\"metric\": i})"
63
   ]
64
  },
65
  {
66
   "cell_type": "code",
67
   "execution_count": 3,
68
   "metadata": {},
69
   "outputs": [
70
    {
71
     "name": "stderr",
72
     "output_type": "stream",
73
     "text": [
74
      "\u001B[34m\u001B[1mwandb\u001B[0m: Find user logs for this run at: ./wandb/runs/run-20200813_162851-155u9ivk/logs/debug-20200813_162851-155u9ivk.log\n",
75
      "\u001B[34m\u001B[1mwandb\u001B[0m: Find internal logs for this run at: ./wandb/runs/run-20200813_162851-155u9ivk/logs/debug-internal-20200813_162851-155u9ivk.log\n",
76
      "\u001B[34m\u001B[1mwandb\u001B[0m: Run summary:\n",
77
      "\u001B[34m\u001B[1mwandb\u001B[0m:       metric 9\n",
78
      "\u001B[34m\u001B[1mwandb\u001B[0m:        _step 9\n",
79
      "\u001B[34m\u001B[1mwandb\u001B[0m:     _runtime 6\n",
80
      "\u001B[34m\u001B[1mwandb\u001B[0m:   _timestamp 1597361338\n",
81
      "\u001B[34m\u001B[1mwandb\u001B[0m: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 2 other file(s)\n",
82
      "\u001B[34m\u001B[1mwandb\u001B[0m: \n",
83
      "\u001B[34m\u001B[1mwandb\u001B[0m: Synced \u001B[33mdeep-elevator-22\u001B[0m: \u001B[34mhttps://app.wandb.ai/vanpelt/jupyter_test/runs/155u9ivk\u001B[0m\n"
84
     ]
85
    }
86
   ],
87
   "source": [
88
    "wandb.join()"
89
   ]
90
  },
91
  {
92
   "cell_type": "code",
93
   "execution_count": null,
94
   "metadata": {},
95
   "outputs": [],
96
   "source": []
97
  }
98
 ],
99
 "metadata": {
100
  "kernelspec": {
101
   "display_name": "Python 3",
102
   "language": "python",
103
   "name": "python3"
104
  },
105
  "language_info": {
106
   "codemirror_mode": {
107
    "name": "ipython",
108
    "version": 3
109
   },
110
   "file_extension": ".py",
111
   "mimetype": "text/x-python",
112
   "name": "python",
113
   "nbconvert_exporter": "python",
114
   "pygments_lexer": "ipython3",
115
   "version": "3.7.5"
116
  }
117
 },
118
 "nbformat": 4,
119
 "nbformat_minor": 4
120
}
121

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.