wandb 0.17.0rc2__py3-none-win_amd64.whl → 0.17.2__py3-none-win_amd64.whl
Sign up to get free protection for your applications and to get access to all the features.
- wandb/__init__.py +4 -2
- wandb/apis/importers/internals/internal.py +0 -1
- wandb/apis/importers/wandb.py +12 -7
- wandb/apis/internal.py +0 -3
- wandb/apis/public/api.py +213 -79
- wandb/apis/public/artifacts.py +335 -100
- wandb/apis/public/files.py +9 -9
- wandb/apis/public/jobs.py +16 -4
- wandb/apis/public/projects.py +26 -28
- wandb/apis/public/query_generator.py +1 -1
- wandb/apis/public/runs.py +163 -65
- wandb/apis/public/sweeps.py +2 -2
- wandb/apis/reports/__init__.py +1 -7
- wandb/apis/reports/v1/__init__.py +5 -27
- wandb/apis/reports/v2/__init__.py +7 -19
- wandb/apis/workspaces/__init__.py +8 -0
- wandb/beta/workflows.py +8 -3
- wandb/bin/wandb-core +0 -0
- wandb/cli/cli.py +151 -59
- wandb/docker/__init__.py +1 -1
- wandb/errors/term.py +10 -2
- wandb/filesync/step_checksum.py +1 -4
- wandb/filesync/step_prepare.py +4 -24
- wandb/filesync/step_upload.py +5 -107
- wandb/filesync/upload_job.py +0 -76
- wandb/integration/gym/__init__.py +35 -15
- wandb/integration/openai/fine_tuning.py +21 -3
- wandb/integration/prodigy/prodigy.py +1 -1
- wandb/jupyter.py +16 -17
- wandb/old/summary.py +5 -0
- wandb/plot/pr_curve.py +2 -1
- wandb/plot/roc_curve.py +2 -1
- wandb/{plots → plot}/utils.py +13 -25
- wandb/proto/v3/wandb_internal_pb2.py +54 -54
- wandb/proto/v3/wandb_settings_pb2.py +2 -2
- wandb/proto/v3/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v4/wandb_internal_pb2.py +54 -54
- wandb/proto/v4/wandb_settings_pb2.py +2 -2
- wandb/proto/v4/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v5/wandb_base_pb2.py +30 -0
- wandb/proto/v5/wandb_internal_pb2.py +355 -0
- wandb/proto/v5/wandb_server_pb2.py +63 -0
- wandb/proto/v5/wandb_settings_pb2.py +45 -0
- wandb/proto/v5/wandb_telemetry_pb2.py +41 -0
- wandb/proto/wandb_base_pb2.py +2 -0
- wandb/proto/wandb_deprecated.py +9 -1
- wandb/proto/wandb_generate_deprecated.py +34 -0
- wandb/proto/{wandb_internal_codegen.py → wandb_generate_proto.py} +1 -35
- wandb/proto/wandb_internal_pb2.py +2 -0
- wandb/proto/wandb_server_pb2.py +2 -0
- wandb/proto/wandb_settings_pb2.py +2 -0
- wandb/proto/wandb_telemetry_pb2.py +2 -0
- wandb/sdk/artifacts/artifact.py +76 -23
- wandb/sdk/artifacts/artifact_manifest.py +1 -1
- wandb/sdk/artifacts/artifact_manifest_entry.py +6 -3
- wandb/sdk/artifacts/artifact_manifests/artifact_manifest_v1.py +1 -1
- wandb/sdk/artifacts/artifact_saver.py +1 -10
- wandb/sdk/artifacts/storage_handlers/local_file_handler.py +6 -2
- wandb/sdk/artifacts/storage_handlers/multi_handler.py +1 -1
- wandb/sdk/artifacts/storage_handlers/tracking_handler.py +6 -4
- wandb/sdk/artifacts/storage_policies/wandb_storage_policy.py +2 -42
- wandb/sdk/artifacts/storage_policy.py +1 -12
- wandb/sdk/data_types/_dtypes.py +5 -2
- wandb/sdk/data_types/html.py +1 -1
- wandb/sdk/data_types/image.py +1 -1
- wandb/sdk/data_types/object_3d.py +1 -1
- wandb/sdk/data_types/video.py +4 -2
- wandb/sdk/interface/interface.py +13 -0
- wandb/sdk/interface/interface_shared.py +1 -1
- wandb/sdk/internal/file_pusher.py +2 -5
- wandb/sdk/internal/file_stream.py +6 -19
- wandb/sdk/internal/internal_api.py +160 -138
- wandb/sdk/internal/job_builder.py +207 -135
- wandb/sdk/internal/progress.py +0 -28
- wandb/sdk/internal/sender.py +105 -42
- wandb/sdk/internal/settings_static.py +8 -1
- wandb/sdk/internal/system/assets/gpu.py +2 -0
- wandb/sdk/internal/system/assets/trainium.py +3 -3
- wandb/sdk/internal/system/system_info.py +4 -2
- wandb/sdk/internal/update.py +1 -1
- wandb/sdk/launch/__init__.py +9 -1
- wandb/sdk/launch/_launch.py +4 -24
- wandb/sdk/launch/_launch_add.py +1 -3
- wandb/sdk/launch/_project_spec.py +184 -224
- wandb/sdk/launch/agent/agent.py +58 -18
- wandb/sdk/launch/agent/config.py +0 -3
- wandb/sdk/launch/builder/abstract.py +67 -0
- wandb/sdk/launch/builder/build.py +165 -576
- wandb/sdk/launch/builder/context_manager.py +235 -0
- wandb/sdk/launch/builder/docker_builder.py +7 -23
- wandb/sdk/launch/builder/kaniko_builder.py +10 -23
- wandb/sdk/launch/builder/templates/dockerfile.py +92 -0
- wandb/sdk/launch/create_job.py +51 -45
- wandb/sdk/launch/environment/aws_environment.py +26 -1
- wandb/sdk/launch/inputs/files.py +148 -0
- wandb/sdk/launch/inputs/internal.py +224 -0
- wandb/sdk/launch/inputs/manage.py +95 -0
- wandb/sdk/launch/runner/abstract.py +2 -2
- wandb/sdk/launch/runner/kubernetes_monitor.py +45 -12
- wandb/sdk/launch/runner/kubernetes_runner.py +6 -8
- wandb/sdk/launch/runner/local_container.py +2 -3
- wandb/sdk/launch/runner/local_process.py +8 -29
- wandb/sdk/launch/runner/sagemaker_runner.py +20 -14
- wandb/sdk/launch/runner/vertex_runner.py +8 -7
- wandb/sdk/launch/sweeps/scheduler.py +2 -0
- wandb/sdk/launch/sweeps/utils.py +2 -2
- wandb/sdk/launch/utils.py +16 -138
- wandb/sdk/lib/_settings_toposort_generated.py +2 -5
- wandb/sdk/lib/apikey.py +4 -2
- wandb/sdk/lib/config_util.py +3 -3
- wandb/sdk/lib/proto_util.py +22 -1
- wandb/sdk/lib/redirect.py +1 -1
- wandb/sdk/service/service.py +2 -1
- wandb/sdk/service/streams.py +5 -5
- wandb/sdk/wandb_init.py +25 -59
- wandb/sdk/wandb_login.py +28 -25
- wandb/sdk/wandb_run.py +135 -70
- wandb/sdk/wandb_settings.py +33 -64
- wandb/sdk/wandb_watch.py +1 -1
- wandb/sklearn/plot/classifier.py +4 -6
- wandb/sync/sync.py +2 -2
- wandb/testing/relay.py +32 -17
- wandb/util.py +39 -37
- wandb/wandb_agent.py +3 -3
- wandb/wandb_controller.py +3 -2
- {wandb-0.17.0rc2.dist-info → wandb-0.17.2.dist-info}/METADATA +7 -9
- {wandb-0.17.0rc2.dist-info → wandb-0.17.2.dist-info}/RECORD +130 -152
- wandb/apis/reports/v1/_blocks.py +0 -1406
- wandb/apis/reports/v1/_helpers.py +0 -70
- wandb/apis/reports/v1/_panels.py +0 -1282
- wandb/apis/reports/v1/_templates.py +0 -478
- wandb/apis/reports/v1/blocks.py +0 -27
- wandb/apis/reports/v1/helpers.py +0 -2
- wandb/apis/reports/v1/mutations.py +0 -66
- wandb/apis/reports/v1/panels.py +0 -17
- wandb/apis/reports/v1/report.py +0 -268
- wandb/apis/reports/v1/runset.py +0 -144
- wandb/apis/reports/v1/templates.py +0 -7
- wandb/apis/reports/v1/util.py +0 -406
- wandb/apis/reports/v1/validators.py +0 -131
- wandb/apis/reports/v2/blocks.py +0 -25
- wandb/apis/reports/v2/expr_parsing.py +0 -257
- wandb/apis/reports/v2/gql.py +0 -68
- wandb/apis/reports/v2/interface.py +0 -1911
- wandb/apis/reports/v2/internal.py +0 -867
- wandb/apis/reports/v2/metrics.py +0 -6
- wandb/apis/reports/v2/panels.py +0 -15
- wandb/catboost/__init__.py +0 -9
- wandb/fastai/__init__.py +0 -9
- wandb/keras/__init__.py +0 -19
- wandb/lightgbm/__init__.py +0 -9
- wandb/plots/__init__.py +0 -6
- wandb/plots/explain_text.py +0 -36
- wandb/plots/heatmap.py +0 -81
- wandb/plots/named_entity.py +0 -43
- wandb/plots/part_of_speech.py +0 -50
- wandb/plots/plot_definitions.py +0 -768
- wandb/plots/precision_recall.py +0 -121
- wandb/plots/roc.py +0 -103
- wandb/sacred/__init__.py +0 -3
- wandb/xgboost/__init__.py +0 -9
- {wandb-0.17.0rc2.dist-info → wandb-0.17.2.dist-info}/WHEEL +0 -0
- {wandb-0.17.0rc2.dist-info → wandb-0.17.2.dist-info}/entry_points.txt +0 -0
- {wandb-0.17.0rc2.dist-info → wandb-0.17.2.dist-info}/licenses/LICENSE +0 -0
@@ -1,478 +0,0 @@
|
|
1
|
-
# We can import from the top after dropping support for Python 3.6
|
2
|
-
# import wandb.apis.reports as wr
|
3
|
-
from .util import coalesce
|
4
|
-
|
5
|
-
|
6
|
-
def create_example_header():
|
7
|
-
"""Create an example header with image at top."""
|
8
|
-
import wandb.apis.reports as wr
|
9
|
-
|
10
|
-
return [
|
11
|
-
wr.P(),
|
12
|
-
wr.HorizontalRule(),
|
13
|
-
wr.P(),
|
14
|
-
wr.Image(
|
15
|
-
"https://camo.githubusercontent.com/83839f20c90facc062330f8fee5a7ab910fdd04b80b4c4c7e89d6d8137543540/68747470733a2f2f692e696d6775722e636f6d2f676236423469672e706e67"
|
16
|
-
),
|
17
|
-
wr.P(),
|
18
|
-
wr.HorizontalRule(),
|
19
|
-
wr.P(),
|
20
|
-
]
|
21
|
-
|
22
|
-
|
23
|
-
def create_example_footer():
|
24
|
-
"""Create an example footer with image and text at bottom."""
|
25
|
-
import wandb.apis.reports as wr
|
26
|
-
|
27
|
-
return [
|
28
|
-
wr.P(),
|
29
|
-
wr.HorizontalRule(),
|
30
|
-
wr.P(),
|
31
|
-
wr.H1("Disclaimer"),
|
32
|
-
wr.P(
|
33
|
-
"The views and opinions expressed in this report are those of the authors and do not necessarily reflect the official policy or position of Weights & Biases. blah blah blah blah blah boring text at the bottom"
|
34
|
-
),
|
35
|
-
wr.P(),
|
36
|
-
wr.HorizontalRule(),
|
37
|
-
]
|
38
|
-
|
39
|
-
|
40
|
-
def create_enterprise_report(
|
41
|
-
project=None,
|
42
|
-
title="Untitled Report",
|
43
|
-
description="",
|
44
|
-
header=None,
|
45
|
-
body=None,
|
46
|
-
footer=None,
|
47
|
-
):
|
48
|
-
"""Create an example enterprise report with a header and footer.
|
49
|
-
|
50
|
-
Can be used to add custom branding to reports.
|
51
|
-
"""
|
52
|
-
import wandb.apis.reports as wr
|
53
|
-
|
54
|
-
project = coalesce(project, "default-project")
|
55
|
-
header = coalesce(header, create_example_header())
|
56
|
-
body = coalesce(body, [])
|
57
|
-
footer = coalesce(footer, create_example_footer())
|
58
|
-
|
59
|
-
return wr.Report(
|
60
|
-
project=project,
|
61
|
-
title=title,
|
62
|
-
description=description,
|
63
|
-
blocks=[*header, *body, *footer],
|
64
|
-
)
|
65
|
-
|
66
|
-
|
67
|
-
def create_customer_landing_page(
|
68
|
-
project=None,
|
69
|
-
company_name="My Company",
|
70
|
-
main_contact="My Contact (name@email.com)",
|
71
|
-
slack_link="https://company.slack.com",
|
72
|
-
):
|
73
|
-
"""Create an example customer landing page using data from Andrew's demo."""
|
74
|
-
import wandb.apis.reports as wr
|
75
|
-
|
76
|
-
project = coalesce(project, "default-project")
|
77
|
-
|
78
|
-
return wr.Report(
|
79
|
-
project,
|
80
|
-
title=f"Weights & Biases @ {company_name}",
|
81
|
-
description=f"The developer-first MLOps platform is now available at {company_name}!\nReach out to {main_contact} for an account, and join your dedicated slack channel at:\n{slack_link}",
|
82
|
-
blocks=[
|
83
|
-
wr.P(),
|
84
|
-
wr.HorizontalRule(),
|
85
|
-
wr.TableOfContents(),
|
86
|
-
wr.P(),
|
87
|
-
wr.HorizontalRule(),
|
88
|
-
wr.H1(text=["What is Weights & Biases?"]),
|
89
|
-
wr.P(
|
90
|
-
text=[
|
91
|
-
"Weights & Biases (W&B) is the developer-first MLOps platform to build better models faster. Over 200,000+ ML practitioners at 500+ companies use W&B to optimize their ML workflows in Natural Language, Computer Vision, Reinforcement Learning, Tabular ML, Finance, and more!"
|
92
|
-
]
|
93
|
-
),
|
94
|
-
wr.P(),
|
95
|
-
wr.H2(text=["Why do you need W&B?"]),
|
96
|
-
wr.P(
|
97
|
-
text=[
|
98
|
-
"ML is a highly experimental field. Often we try many different datasets, model architectures, optimizers, hyperparameters, etc."
|
99
|
-
]
|
100
|
-
),
|
101
|
-
wr.P(
|
102
|
-
text=["Experimentation is great, but it can get messy. Have you ever:"]
|
103
|
-
),
|
104
|
-
wr.UnorderedList(
|
105
|
-
items=[
|
106
|
-
["Logged experiments in a sketchy spreadsheet?"],
|
107
|
-
[
|
108
|
-
"Built an amazing model but could not reproduce it for a colleague / model validation?"
|
109
|
-
],
|
110
|
-
["Wondered why your model is making strange predictions?"],
|
111
|
-
["Fumbled with tuning hyperparameters?"],
|
112
|
-
[
|
113
|
-
"Struggled explaining to a colleague the impact of what you're doing?"
|
114
|
-
],
|
115
|
-
]
|
116
|
-
),
|
117
|
-
wr.P(
|
118
|
-
text=["If that sounds familiar, W&B might be a good solution for you!"]
|
119
|
-
),
|
120
|
-
wr.P(),
|
121
|
-
wr.H2(
|
122
|
-
text=[
|
123
|
-
"What does W&B do?",
|
124
|
-
wr.Link(text="", url="https://wandb.ai/site/experiment-tracking"),
|
125
|
-
]
|
126
|
-
),
|
127
|
-
wr.P(
|
128
|
-
text=[
|
129
|
-
wr.Link(text="", url="https://wandb.ai/site/experiment-tracking"),
|
130
|
-
"W&B has lightweight and flexible tools for... (expand to see more)",
|
131
|
-
]
|
132
|
-
),
|
133
|
-
wr.H3(
|
134
|
-
text=[
|
135
|
-
wr.Link(
|
136
|
-
text="Experiment tracking",
|
137
|
-
url="https://wandb.ai/site/experiment-tracking",
|
138
|
-
)
|
139
|
-
]
|
140
|
-
),
|
141
|
-
wr.PanelGrid(
|
142
|
-
runsets=[
|
143
|
-
wr.Runset(
|
144
|
-
entity="megatruong",
|
145
|
-
project="whirlwind_test4",
|
146
|
-
name="Run set",
|
147
|
-
query="",
|
148
|
-
filters={
|
149
|
-
"$or": [
|
150
|
-
{
|
151
|
-
"$and": [
|
152
|
-
{"state": {"$ne": "crashed"}},
|
153
|
-
{
|
154
|
-
"config.Learner.value.opt_func": {
|
155
|
-
"$ne": None
|
156
|
-
}
|
157
|
-
},
|
158
|
-
]
|
159
|
-
}
|
160
|
-
]
|
161
|
-
},
|
162
|
-
groupby=["Learner.opt_func"],
|
163
|
-
order=["-CreatedTimestamp"],
|
164
|
-
)
|
165
|
-
],
|
166
|
-
panels=[
|
167
|
-
wr.LinePlot(
|
168
|
-
x="Step",
|
169
|
-
y=["gradients/layers.0.4.0.bn1.bias"],
|
170
|
-
log_y=False,
|
171
|
-
groupby="None",
|
172
|
-
layout={"x": 16, "y": 12, "w": 8, "h": 6},
|
173
|
-
),
|
174
|
-
wr.LinePlot(
|
175
|
-
x="Step",
|
176
|
-
y=["gradients/layers.0.1.weight"],
|
177
|
-
log_y=False,
|
178
|
-
groupby="None",
|
179
|
-
layout={"x": 8, "y": 12, "w": 8, "h": 6},
|
180
|
-
),
|
181
|
-
wr.LinePlot(
|
182
|
-
x="Step",
|
183
|
-
y=["gradients/layers.0.1.bias"],
|
184
|
-
log_y=False,
|
185
|
-
groupby="None",
|
186
|
-
layout={"x": 0, "y": 12, "w": 8, "h": 6},
|
187
|
-
),
|
188
|
-
wr.LinePlot(
|
189
|
-
x="Step",
|
190
|
-
y=["train_loss"],
|
191
|
-
log_y=False,
|
192
|
-
groupby="None",
|
193
|
-
layout={"x": 16, "y": 0, "w": 8, "h": 6},
|
194
|
-
),
|
195
|
-
wr.LinePlot(
|
196
|
-
x="Step",
|
197
|
-
y=["valid_loss"],
|
198
|
-
log_y=False,
|
199
|
-
groupby="None",
|
200
|
-
layout={"x": 16, "y": 6, "w": 8, "h": 6},
|
201
|
-
),
|
202
|
-
wr.LinePlot(
|
203
|
-
x="Step",
|
204
|
-
y=["top_k_accuracy"],
|
205
|
-
log_y=False,
|
206
|
-
groupby="None",
|
207
|
-
layout={"x": 8, "y": 0, "w": 8, "h": 6},
|
208
|
-
),
|
209
|
-
wr.LinePlot(
|
210
|
-
x="Step",
|
211
|
-
y=["mom_0"],
|
212
|
-
log_y=False,
|
213
|
-
groupby="None",
|
214
|
-
layout={"x": 0, "y": 6, "w": 8, "h": 6},
|
215
|
-
),
|
216
|
-
wr.LinePlot(
|
217
|
-
x="Step",
|
218
|
-
y=["lr_0"],
|
219
|
-
log_y=False,
|
220
|
-
groupby="None",
|
221
|
-
layout={"x": 8, "y": 6, "w": 8, "h": 6},
|
222
|
-
),
|
223
|
-
wr.LinePlot(
|
224
|
-
x="Step",
|
225
|
-
y=["accuracy"],
|
226
|
-
log_y=False,
|
227
|
-
groupby="None",
|
228
|
-
layout={"x": 0, "y": 0, "w": 8, "h": 6},
|
229
|
-
),
|
230
|
-
],
|
231
|
-
custom_run_colors={
|
232
|
-
("Run set", "megatruong"): "rgb(83, 135, 221)",
|
233
|
-
("Run set", "fastai.optimizer.ranger"): "rgb(83, 135, 221)",
|
234
|
-
("Run set", "fastai.optimizer.Adam"): "rgb(229, 116, 57)",
|
235
|
-
},
|
236
|
-
),
|
237
|
-
wr.P(
|
238
|
-
text=[
|
239
|
-
wr.Link(
|
240
|
-
text="",
|
241
|
-
url="https://assets.website-files.com/5ac6b7f2924c656f2b13a88c/6066c22135b8983b61ad7939_weights-and-biases-logo.svg",
|
242
|
-
)
|
243
|
-
]
|
244
|
-
),
|
245
|
-
wr.H3(
|
246
|
-
text=[
|
247
|
-
wr.Link(
|
248
|
-
text="Dataset and model versioning, evaluation, and reproduction",
|
249
|
-
url="https://wandb.ai/site/artifacts",
|
250
|
-
)
|
251
|
-
]
|
252
|
-
),
|
253
|
-
wr.WeaveBlockArtifact(
|
254
|
-
entity="megatruong",
|
255
|
-
project="whirlwind_test4",
|
256
|
-
artifact="camvid_learner",
|
257
|
-
tab="lineage",
|
258
|
-
),
|
259
|
-
wr.P(),
|
260
|
-
wr.H3(
|
261
|
-
text=[
|
262
|
-
wr.Link(
|
263
|
-
text="Hyperparameter optimization",
|
264
|
-
url="https://wandb.ai/site/sweeps",
|
265
|
-
)
|
266
|
-
]
|
267
|
-
),
|
268
|
-
wr.P(text=[wr.Link(text="", url="https://wandb.ai/site/sweeps")]),
|
269
|
-
wr.PanelGrid(
|
270
|
-
runsets=[
|
271
|
-
wr.Runset(
|
272
|
-
entity="wandb",
|
273
|
-
project="cartpole",
|
274
|
-
name="Run set",
|
275
|
-
query="sweep",
|
276
|
-
filters={"$or": [{"$and": []}]},
|
277
|
-
order=["-CreatedTimestamp"],
|
278
|
-
)
|
279
|
-
],
|
280
|
-
panels=[
|
281
|
-
wr.MediaBrowser(layout={"x": 0, "y": 10, "w": 24, "h": 10}),
|
282
|
-
wr.ParallelCoordinatesPlot(
|
283
|
-
columns=[
|
284
|
-
wr.PCColumn(metric="c::activation"),
|
285
|
-
wr.PCColumn(metric="c::lr", log_scale=True),
|
286
|
-
wr.PCColumn(
|
287
|
-
metric="c::target_model_update",
|
288
|
-
log_scale=True,
|
289
|
-
),
|
290
|
-
wr.PCColumn(metric="c::n_hidden", log_scale=True),
|
291
|
-
wr.PCColumn(metric="test_reward"),
|
292
|
-
],
|
293
|
-
layout={"x": 0, "y": 0, "w": 24, "h": 10},
|
294
|
-
),
|
295
|
-
],
|
296
|
-
),
|
297
|
-
wr.H3(
|
298
|
-
text=[
|
299
|
-
wr.Link(
|
300
|
-
text="Model visualization and analysis",
|
301
|
-
url="https://wandb.ai/site/tables",
|
302
|
-
)
|
303
|
-
]
|
304
|
-
),
|
305
|
-
wr.P(text=[wr.Link(text="", url="https://wandb.ai/site/tables")]),
|
306
|
-
wr.PanelGrid(
|
307
|
-
runsets=[
|
308
|
-
wr.Runset(
|
309
|
-
entity="megatruong",
|
310
|
-
project="whirlwind_test4",
|
311
|
-
name="Run set",
|
312
|
-
query="",
|
313
|
-
filters={"$or": [{"$and": []}]},
|
314
|
-
order=["-CreatedTimestamp"],
|
315
|
-
)
|
316
|
-
],
|
317
|
-
panels=[
|
318
|
-
wr.WeavePanelSummaryTable(
|
319
|
-
table_name="valid_table",
|
320
|
-
layout={"x": 7, "y": 0, "w": 7, "h": 13},
|
321
|
-
),
|
322
|
-
wr.WeavePanelSummaryTable(
|
323
|
-
table_name="img_table",
|
324
|
-
layout={"x": 0, "y": 0, "w": 7, "h": 13},
|
325
|
-
),
|
326
|
-
wr.WeavePanelSummaryTable(
|
327
|
-
table_name="image_table",
|
328
|
-
layout={"x": 14, "y": 0, "w": 10, "h": 13},
|
329
|
-
),
|
330
|
-
],
|
331
|
-
),
|
332
|
-
wr.P(),
|
333
|
-
wr.PanelGrid(
|
334
|
-
runsets=[
|
335
|
-
wr.Runset(
|
336
|
-
entity="wandb",
|
337
|
-
project="wandb_spacy_integration",
|
338
|
-
name="Run set",
|
339
|
-
query="",
|
340
|
-
filters={"$or": [{"$and": []}]},
|
341
|
-
order=["-CreatedTimestamp"],
|
342
|
-
)
|
343
|
-
],
|
344
|
-
panels=[
|
345
|
-
wr.WeavePanelSummaryTable(
|
346
|
-
table_name="spaCy NER table",
|
347
|
-
layout={"x": 0, "y": 0, "w": 24, "h": 10},
|
348
|
-
),
|
349
|
-
wr.WeavePanelSummaryTable(
|
350
|
-
table_name="per annotation scores",
|
351
|
-
layout={"x": 7, "y": 10, "w": 17, "h": 8},
|
352
|
-
),
|
353
|
-
wr.WeavePanelSummaryTable(
|
354
|
-
table_name="metrics", layout={"x": 0, "y": 10, "w": 7, "h": 8}
|
355
|
-
),
|
356
|
-
],
|
357
|
-
),
|
358
|
-
wr.H3(
|
359
|
-
text=[
|
360
|
-
wr.Link(
|
361
|
-
text="ML team collaboration and sharing results",
|
362
|
-
url="https://wandb.ai/site/reports",
|
363
|
-
)
|
364
|
-
]
|
365
|
-
),
|
366
|
-
wr.H2(text=["How do I get access?"]),
|
367
|
-
wr.P(text=[f"Ask {main_contact} to help:"]),
|
368
|
-
wr.OrderedList(
|
369
|
-
items=[
|
370
|
-
["Set up your account"],
|
371
|
-
[
|
372
|
-
"Get added to the ",
|
373
|
-
wr.Link(
|
374
|
-
text="joint slack channel",
|
375
|
-
url=slack_link,
|
376
|
-
),
|
377
|
-
],
|
378
|
-
]
|
379
|
-
),
|
380
|
-
wr.HorizontalRule(),
|
381
|
-
wr.H1(text=["Getting Started"]),
|
382
|
-
wr.P(text=["W&B has two components:"]),
|
383
|
-
wr.OrderedList(
|
384
|
-
items=[
|
385
|
-
["A centrally managed MLOps platform and UI"],
|
386
|
-
[
|
387
|
-
"The ",
|
388
|
-
wr.InlineCode(code="wandb"),
|
389
|
-
" SDK (",
|
390
|
-
wr.Link(text="github", url="https://github.com/wandb/client"),
|
391
|
-
", ",
|
392
|
-
wr.Link(text="pypi", url="https://pypi.org/project/wandb/"),
|
393
|
-
", ",
|
394
|
-
wr.Link(
|
395
|
-
text="conda-forge",
|
396
|
-
url="https://anaconda.org/conda-forge/wandb",
|
397
|
-
),
|
398
|
-
")",
|
399
|
-
],
|
400
|
-
]
|
401
|
-
),
|
402
|
-
wr.P(),
|
403
|
-
wr.H3(text=["1. Install the SDK"]),
|
404
|
-
wr.CodeBlock(code=["pip install wandb"], language="python"),
|
405
|
-
wr.P(),
|
406
|
-
wr.H3(text=["2. Log in to W&B"]),
|
407
|
-
wr.P(text=["You will be prompted to get and set your API key in the UI."]),
|
408
|
-
wr.CodeBlock(code=["wandb.login()"], language="python"),
|
409
|
-
wr.P(),
|
410
|
-
wr.H3(text=["3. Setup an experiment"]),
|
411
|
-
wr.P(
|
412
|
-
text=[
|
413
|
-
"Add this to the beginning of your scripts (or top of your notebook)."
|
414
|
-
]
|
415
|
-
),
|
416
|
-
wr.CodeBlock(code=["wandb.init()"], language="python"),
|
417
|
-
wr.P(),
|
418
|
-
wr.P(
|
419
|
-
text=[
|
420
|
-
wr.Link(
|
421
|
-
text="For more details on options and advanced usage, see the docs.",
|
422
|
-
url="https://docs.wandb.ai/ref/python/init",
|
423
|
-
)
|
424
|
-
]
|
425
|
-
),
|
426
|
-
wr.P(),
|
427
|
-
wr.H3(text=["4. Log anything!"]),
|
428
|
-
wr.P(text=["You can log metrics anywhere in your script, for example"]),
|
429
|
-
wr.CodeBlock(code=['wandb.log({"loss": model_loss})'], language="python"),
|
430
|
-
wr.P(),
|
431
|
-
wr.P(
|
432
|
-
text=[
|
433
|
-
"Log metrics, graphs, dataframes, images with segmentation masks or bounding boxes, videos, point clouds, custom HTML, and more! ",
|
434
|
-
wr.Link(
|
435
|
-
text="For more details on logging, including advanced types, see the docs.",
|
436
|
-
url="https://docs.wandb.ai/guides/track/log",
|
437
|
-
),
|
438
|
-
]
|
439
|
-
),
|
440
|
-
wr.P(text=["W&B also helps you reproduce results by capturing:"]),
|
441
|
-
wr.UnorderedList(
|
442
|
-
items=[
|
443
|
-
["git state (repo, commit)"],
|
444
|
-
["requirements (requirements.txt, conda_env.yml)"],
|
445
|
-
["logs, including stdout"],
|
446
|
-
[
|
447
|
-
"hardware metrics (CPU, GPU, network, memory utilization, temperature, throughput)"
|
448
|
-
],
|
449
|
-
["and more!"],
|
450
|
-
]
|
451
|
-
),
|
452
|
-
wr.P(),
|
453
|
-
wr.H3(text=["Putting everything together:"]),
|
454
|
-
wr.CodeBlock(
|
455
|
-
code=[
|
456
|
-
"wandb.login()",
|
457
|
-
"",
|
458
|
-
"wandb.init()",
|
459
|
-
"for i in range(1000):",
|
460
|
-
' wandb.log({"metric": i})',
|
461
|
-
],
|
462
|
-
language="python",
|
463
|
-
),
|
464
|
-
wr.P(),
|
465
|
-
wr.H1(text=["What else is possible with W&B?"]),
|
466
|
-
wr.H2(text=["Example projects"]),
|
467
|
-
wr.Gallery(
|
468
|
-
ids=[
|
469
|
-
"Vmlldzo4ODc0MDc=",
|
470
|
-
"Vmlldzo4NDI3NzM=",
|
471
|
-
"Vmlldzo2MDIzMTg=",
|
472
|
-
"VmlldzoyMjA3MjY=",
|
473
|
-
"Vmlldzo1NjM4OA==",
|
474
|
-
]
|
475
|
-
),
|
476
|
-
wr.P(),
|
477
|
-
],
|
478
|
-
)
|
wandb/apis/reports/v1/blocks.py
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# flake8: noqa
|
2
|
-
from ._blocks import (
|
3
|
-
H1,
|
4
|
-
H2,
|
5
|
-
H3,
|
6
|
-
BlockQuote,
|
7
|
-
CalloutBlock,
|
8
|
-
CheckedList,
|
9
|
-
CodeBlock,
|
10
|
-
Gallery,
|
11
|
-
HorizontalRule,
|
12
|
-
Image,
|
13
|
-
LaTeXBlock,
|
14
|
-
MarkdownBlock,
|
15
|
-
OrderedList,
|
16
|
-
P,
|
17
|
-
PanelGrid,
|
18
|
-
SoundCloud,
|
19
|
-
Spotify,
|
20
|
-
TableOfContents,
|
21
|
-
UnorderedList,
|
22
|
-
Video,
|
23
|
-
WeaveBlockArtifact,
|
24
|
-
WeaveBlockArtifactVersionedFile,
|
25
|
-
WeaveBlockSummaryTable,
|
26
|
-
Twitter,
|
27
|
-
)
|
wandb/apis/reports/v1/helpers.py
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
from wandb_gql import gql
|
2
|
-
|
3
|
-
VIEW_REPORT = gql(
|
4
|
-
"""
|
5
|
-
query SpecificReport($reportId: ID!) {
|
6
|
-
view(id: $reportId) {
|
7
|
-
id
|
8
|
-
name
|
9
|
-
displayName
|
10
|
-
description
|
11
|
-
project {
|
12
|
-
id
|
13
|
-
name
|
14
|
-
entityName
|
15
|
-
}
|
16
|
-
createdAt
|
17
|
-
updatedAt
|
18
|
-
spec
|
19
|
-
}
|
20
|
-
}
|
21
|
-
"""
|
22
|
-
)
|
23
|
-
UPSERT_VIEW = gql(
|
24
|
-
"""
|
25
|
-
mutation upsertView(
|
26
|
-
$id: ID
|
27
|
-
$entityName: String
|
28
|
-
$projectName: String
|
29
|
-
$type: String
|
30
|
-
$name: String
|
31
|
-
$displayName: String
|
32
|
-
$description: String
|
33
|
-
$spec: String!
|
34
|
-
) {
|
35
|
-
upsertView(
|
36
|
-
input: {
|
37
|
-
id: $id
|
38
|
-
entityName: $entityName
|
39
|
-
projectName: $projectName
|
40
|
-
name: $name
|
41
|
-
displayName: $displayName
|
42
|
-
description: $description
|
43
|
-
type: $type
|
44
|
-
createdUsing: WANDB_SDK
|
45
|
-
spec: $spec
|
46
|
-
}
|
47
|
-
) {
|
48
|
-
view {
|
49
|
-
id
|
50
|
-
type
|
51
|
-
name
|
52
|
-
displayName
|
53
|
-
description
|
54
|
-
project {
|
55
|
-
id
|
56
|
-
name
|
57
|
-
entityName
|
58
|
-
}
|
59
|
-
spec
|
60
|
-
updatedAt
|
61
|
-
}
|
62
|
-
inserted
|
63
|
-
}
|
64
|
-
}
|
65
|
-
"""
|
66
|
-
)
|
wandb/apis/reports/v1/panels.py
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# flake8: noqa
|
2
|
-
from ._panels import (
|
3
|
-
BarPlot,
|
4
|
-
CodeComparer,
|
5
|
-
CustomChart,
|
6
|
-
LinePlot,
|
7
|
-
MarkdownPanel,
|
8
|
-
MediaBrowser,
|
9
|
-
ParallelCoordinatesPlot,
|
10
|
-
ParameterImportancePlot,
|
11
|
-
RunComparer,
|
12
|
-
ScalarChart,
|
13
|
-
ScatterPlot,
|
14
|
-
WeavePanelArtifact,
|
15
|
-
WeavePanelArtifactVersionedFile,
|
16
|
-
WeavePanelSummaryTable,
|
17
|
-
)
|