id
int64
1
6.07M
name
stringlengths
1
295
code
stringlengths
12
426k
language
stringclasses
1 value
source_file
stringlengths
5
202
start_line
int64
1
158k
end_line
int64
1
158k
repo
dict
2,001
__init__
def __init__(self, k, *args, **kwargs): super().__init__(*args, **kwargs) self.k = k
python
wandb/apis/reports/validators.py
84
86
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,002
call
def call(self, attr_name, value): if len(value) != self.k: raise ValueError( f"{attr_name} must have exactly {self.k} elements (got {len(value)!r}, elems: {value!r})" )
python
wandb/apis/reports/validators.py
88
92
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,003
__init__
def __init__(self, lb, ub, *args, **kwargs): super().__init__(*args, **kwargs) self.lb = lb self.ub = ub
python
wandb/apis/reports/validators.py
96
99
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,004
call
def call(self, attr_name, value): if not self.lb <= value <= self.ub: raise ValueError( f"{attr_name} must be between [{self.lb}, {self.ub}] inclusive (got {value})" )
python
wandb/apis/reports/validators.py
101
105
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,005
__init__
def __init__(self): super().__init__(attr_type=str)
python
wandb/apis/reports/validators.py
109
110
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,006
call
def call(self, attr_name, value): super().call(attr_name, value) if value[0] not in {"+", "-"}: raise ValueError( f'{attr_name} must be prefixed with "+" or "-" to indicate ascending or descending order' )
python
wandb/apis/reports/validators.py
112
118
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,007
call
def call(self, attr_name, value): if set(value.keys()) != {"x", "y", "w", "h"}: raise ValueError( f"{attr_name} must be a dict containing exactly the keys `x`, y`, `w`, `h`" ) for k, v in value.items(): if not isinstance(v, int): raise ...
python
wandb/apis/reports/validators.py
122
131
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,008
__init__
def __init__( self, entity=None, project=None, name="Run set", query="", filters=None, groupby=None, order=None, *args, **kwargs, ): super().__init__(*args, **kwargs) self._spec = self._default_runset_spec() self...
python
wandb/apis/reports/runset.py
19
42
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,009
from_json
def from_json(cls, spec: Dict[str, Any]) -> T: """This has a custom implementation because sometimes runsets are missing the project field.""" obj = cls() obj._spec = spec project = spec.get("project") if project: obj.entity = project.get( "entityName...
python
wandb/apis/reports/runset.py
45
60
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,010
filters
def filters(self): json_path = self._get_path("filters") filter_specs = nested_get(self, json_path) return self.query_generator.filter_to_mongo(filter_specs)
python
wandb/apis/reports/runset.py
63
66
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,011
filters
def filters(self, new_filters): json_path = self._get_path("filters") new_filter_specs = self.query_generator.mongo_to_filter(new_filters) nested_set(self, json_path, new_filter_specs)
python
wandb/apis/reports/runset.py
69
72
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,012
set_filters_with_python_expr
def set_filters_with_python_expr(self, expr): self.filters = self.pm_query_generator.python_to_mongo(expr) return self
python
wandb/apis/reports/runset.py
74
76
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,013
groupby
def groupby(self): json_path = self._get_path("groupby") groupby_specs = nested_get(self, json_path) cols = [self.query_generator.key_to_server_path(k) for k in groupby_specs] return [self.pm_query_generator.back_to_front(c) for c in cols]
python
wandb/apis/reports/runset.py
79
83
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,014
groupby
def groupby(self, new_groupby): json_path = self._get_path("groupby") cols = [self.pm_query_generator.front_to_back(g) for g in new_groupby] new_groupby_specs = [self.query_generator.server_path_to_key(c) for c in cols] nested_set(self, json_path, new_groupby_specs)
python
wandb/apis/reports/runset.py
86
90
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,015
order
def order(self): json_path = self._get_path("order") order_specs = nested_get(self, json_path) cols = self.query_generator.keys_to_order(order_specs) return [c[0] + self.pm_query_generator.back_to_front(c[1:]) for c in cols]
python
wandb/apis/reports/runset.py
93
97
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,016
order
def order(self, new_orders): json_path = self._get_path("order") cols = [o[0] + self.pm_query_generator.front_to_back(o[1:]) for o in new_orders] new_order_specs = self.query_generator.order_to_keys(cols) nested_set(self, json_path, new_order_specs)
python
wandb/apis/reports/runset.py
100
104
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,017
_runs_config
def _runs_config(self) -> dict: return {k: v for run in self.runs for k, v in run.config.items()}
python
wandb/apis/reports/runset.py
107
108
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,018
runs
def runs(self) -> Runs: return PublicApi().runs( path=f"{self.entity}/{self.project}", filters=self.filters )
python
wandb/apis/reports/runset.py
111
114
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,019
_default_filters
def _default_filters(): return {"$or": [{"$and": []}]}
python
wandb/apis/reports/runset.py
117
118
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,020
_default_groupby
def _default_groupby(): return []
python
wandb/apis/reports/runset.py
121
122
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,021
_default_order
def _default_order(): return ["-CreatedTimestamp"]
python
wandb/apis/reports/runset.py
125
126
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,022
_default_runset_spec
def _default_runset_spec(): return { "id": generate_name(), "runFeed": { "version": 2, "columnVisible": {"run:name": False}, "columnPinned": {}, "columnWidths": {}, "columnOrder": [], "pageSiz...
python
wandb/apis/reports/runset.py
129
144
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,023
create_example_header
def create_example_header(): """Create an example header with image at top.""" import wandb.apis.reports as wr return [ wr.P(), wr.HorizontalRule(), wr.P(), wr.Image( "https://camo.githubusercontent.com/83839f20c90facc062330f8fee5a7ab910fdd04b80b4c4c7e89d6d813754...
python
wandb/apis/reports/_templates.py
6
20
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,024
create_example_footer
def create_example_footer(): """Create an example footer with image and text at bottom.""" import wandb.apis.reports as wr return [ wr.P(), wr.HorizontalRule(), wr.P(), wr.H1("Disclaimer"), wr.P( "The views and opinions expressed in this report are those ...
python
wandb/apis/reports/_templates.py
23
37
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,025
create_enterprise_report
def create_enterprise_report( project=None, title="Untitled Report", description="", header=None, body=None, footer=None, ): """Create an example enterprise report with a header and footer. Can be used to add custom branding to reports. """ import wandb.apis.reports as wr p...
python
wandb/apis/reports/_templates.py
40
64
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,026
create_customer_landing_page
def create_customer_landing_page( project=None, company_name="My Company", main_contact="My Contact (name@email.com)", slack_link="https://company.slack.com", ): """Create an example customer landing page using data from Andrew's demo.""" import wandb.apis.reports as wr project = coalesce(p...
python
wandb/apis/reports/_templates.py
67
478
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,027
__init__
def __init__( self, project, entity=None, title="Untitled Report", description="", width="readable", blocks=None, *args, **kwargs, ): super().__init__(*args, **kwargs) self._viewspec = self._default_viewspec() self._orig...
python
wandb/apis/reports/report.py
34
54
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,028
from_url
def from_url(cls, url): report_id = cls._url_to_report_id(url) r = PublicApi().client.execute( VIEW_REPORT, variable_values={"reportId": report_id} ) viewspec = r["view"] viewspec["spec"] = json.loads(viewspec["spec"]) return cls.from_json(viewspec)
python
wandb/apis/reports/report.py
57
64
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,029
_url_to_report_id
def _url_to_report_id(url): try: report, *_ = url.split("?") # If the report title ends in trailing space report = report.replace("---", "--") *_, report_id = report.split("--") except ValueError as e: raise ValueError("Path must be `entity/pro...
python
wandb/apis/reports/report.py
67
76
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,030
blocks
def blocks(self): json_path = self._get_path("blocks") block_specs = nested_get(self, json_path) blocks = [] for bspec in block_specs: cls = block_mapping.get(bspec["type"], UnknownBlock) if cls is UnknownBlock: termwarn( inspec...
python
wandb/apis/reports/report.py
79
105
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,031
blocks
def blocks(self, new_blocks): json_path = self._get_path("blocks") new_block_specs = ( [P("").spec] + [b.spec for b in new_blocks] + [P("").spec] ) # hidden p blocks nested_set(self, json_path, new_block_specs)
python
wandb/apis/reports/report.py
108
113
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,032
_default_viewspec
def _default_viewspec(): return { "id": None, "name": None, "spec": { "version": 5, "panelSettings": {}, "blocks": [], "width": "readable", "authors": [], "discussionThreads": [], ...
python
wandb/apis/reports/report.py
116
129
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,033
from_json
def from_json(cls, viewspec): obj = cls(project=viewspec["project"]["name"]) obj._viewspec = viewspec obj._orig_viewspec = deepcopy(obj._viewspec) return obj
python
wandb/apis/reports/report.py
132
136
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,034
viewspec
def viewspec(self): return self._viewspec
python
wandb/apis/reports/report.py
139
140
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,035
modified
def modified(self) -> bool: return self._viewspec != self._orig_viewspec
python
wandb/apis/reports/report.py
143
144
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,036
spec
def spec(self) -> dict: return self._viewspec["spec"]
python
wandb/apis/reports/report.py
147
148
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,037
client
def client(self) -> "RetryingClient": return PublicApi().client
python
wandb/apis/reports/report.py
151
152
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,038
id
def id(self) -> str: return self._viewspec["id"]
python
wandb/apis/reports/report.py
155
156
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,039
name
def name(self) -> str: return self._viewspec["name"]
python
wandb/apis/reports/report.py
159
160
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,040
panel_grids
def panel_grids(self) -> "LList[PanelGrid]": return [b for b in self.blocks if isinstance(b, PanelGrid)]
python
wandb/apis/reports/report.py
163
164
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,041
runsets
def runsets(self) -> "LList[Runset]": return [rs for pg in self.panel_grids for rs in pg.runsets]
python
wandb/apis/reports/report.py
167
168
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,042
url
def url(self) -> str: title = re.sub(r"\W", "-", self.title) title = re.sub(r"-+", "-", title) title = urllib.parse.quote(title) id = self.id.replace("=", "") app_url = PublicApi().client.app_url if not app_url.endswith("/"): app_url = app_url + "/" re...
python
wandb/apis/reports/report.py
171
179
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,043
save
def save(self, draft: bool = False, clone: bool = False) -> "Report": if not self.modified: termwarn("Report has not been modified") # create project if not exists PublicApi().create_project(self.project, self.entity) # All panel grids must have at least one runset ...
python
wandb/apis/reports/report.py
181
220
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,044
to_html
def to_html(self, height: int = 1024, hidden: bool = False) -> str: """Generate HTML containing an iframe displaying this report.""" try: url = self.url + "?jupyter=true" style = f"border:none;width:100%;height:{height}px;" prefix = "" if hidden: ...
python
wandb/apis/reports/report.py
222
233
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,045
_repr_html_
def _repr_html_(self) -> str: return self.to_html()
python
wandb/apis/reports/report.py
235
236
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,046
__init__
def __init__(self, key: str) -> None: self.key = key
python
wandb/apis/reports/_helpers.py
9
10
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,047
__hash__
def __hash__(self) -> int: return hash(self.key)
python
wandb/apis/reports/_helpers.py
12
13
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,048
__repr__
def __repr__(self) -> str: return f"LineKey(key={self.key!r})"
python
wandb/apis/reports/_helpers.py
15
16
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,049
from_run
def from_run(cls, run: "Run", metric: str) -> "LineKey": key = f"{run.id}:{metric}" return cls(key)
python
wandb/apis/reports/_helpers.py
19
21
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,050
from_panel_agg
def from_panel_agg(cls, runset: "Runset", panel: "Panel", metric: str) -> "LineKey": key = f"{runset.id}-config:group:{panel.groupby}:null:{metric}" return cls(key)
python
wandb/apis/reports/_helpers.py
24
26
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,051
from_runset_agg
def from_runset_agg(cls, runset: "Runset", metric: str) -> "LineKey": groupby = runset.groupby if runset.groupby is None: groupby = "null" key = f"{runset.id}-run:group:{groupby}:{metric}" return cls(key)
python
wandb/apis/reports/_helpers.py
29
35
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,052
__init__
def __init__( self, metric, name=None, ascending=None, log_scale=None, *args, **kwargs ): super().__init__(*args, **kwargs) self.panel_metrics_helper = PanelMetricsHelper() self.metric = metric self.name = name self.ascending = ascending self.log_scale = log_s...
python
wandb/apis/reports/_helpers.py
44
52
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,053
from_json
def from_json(cls, spec): obj = cls(metric=spec["accessor"]) obj._spec = spec return obj
python
wandb/apis/reports/_helpers.py
55
58
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,054
metric
def metric(self): json_path = self._get_path("metric") value = nested_get(self, json_path) return self.panel_metrics_helper.special_back_to_front(value)
python
wandb/apis/reports/_helpers.py
61
64
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,055
metric
def metric(self, value): json_path = self._get_path("metric") value = self.panel_metrics_helper.special_front_to_back(value) nested_set(self, json_path, value)
python
wandb/apis/reports/_helpers.py
67
70
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,056
histogram
def histogram(table: wandb.Table, value: str, title: Optional[str] = None): """Construct a histogram plot. Arguments: table (wandb.Table): Table of data. value (string): Name of column to use as data for bucketing. title (string): Plot title. Returns: A plot object, to be p...
python
wandb/plot/histogram.py
6
26
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,057
line
def line( table: wandb.Table, x: str, y: str, stroke: Optional[str] = None, title: Optional[str] = None, ): """Construct a line plot. Arguments: table (wandb.Table): Table of data. x (string): Name of column to as for x-axis values. y (string): Name of column to as f...
python
wandb/plot/line.py
6
34
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,058
pr_curve
def pr_curve( y_true=None, y_probas=None, labels=None, classes_to_plot=None, interp_size=21, title=None, ): """Compute the tradeoff between precision and recall for different thresholds. A high area under the curve represents both high recall and high precision, where high precision...
python
wandb/plot/pr_curve.py
6
130
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,059
_step
def _step(x): y = np.array(x) for i in range(1, len(y)): y[i] = max(y[i], y[i - 1]) return y
python
wandb/plot/pr_curve.py
60
64
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,060
roc_curve
def roc_curve( y_true=None, y_probas=None, labels=None, classes_to_plot=None, title=None ): """Calculate and visualize receiver operating characteristic (ROC) scores. Arguments: y_true (arr): true sparse labels y_probas (arr): Target scores, can either be probability estimates, confidence ...
python
wandb/plot/roc_curve.py
6
108
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,061
line_series
def line_series( xs: t.Union[t.Iterable, t.Iterable[t.Iterable]], ys: t.Iterable[t.Iterable], keys: t.Optional[t.Iterable] = None, title: t.Optional[str] = None, xname: t.Optional[str] = None, ): """Construct a line series plot. Arguments: xs (array of arrays, or array): Array of ar...
python
wandb/plot/line_series.py
7
86
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,062
scatter
def scatter(table, x, y, title=None): """Construct a scatter plot. Arguments: table (wandb.Table): Table of data. x (string): Name of column to as for x-axis values. y (string): Name of column to as for y-axis values. title (string): Plot title. Returns: A plot obje...
python
wandb/plot/scatter.py
4
25
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,063
bar
def bar(table: wandb.Table, label: str, value: str, title: Optional[str] = None): """Construct a bar plot. Arguments: table (wandb.Table): Table of data. label (string): Name of column to use as each bar's label. value (string): Name of column to use as each bar's value. title (...
python
wandb/plot/bar.py
6
31
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,064
confusion_matrix
def confusion_matrix( probs: Optional[Sequence[Sequence]] = None, y_true: Optional[Sequence] = None, preds: Optional[Sequence] = None, class_names: Optional[Sequence[str]] = None, title: Optional[str] = None, ): """Compute a multi-run confusion matrix. Arguments: probs (2-d arr): Sh...
python
wandb/plot/confusion_matrix.py
9
96
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,065
generate_deprecated_class_definition
def generate_deprecated_class_definition() -> None: """ Generate a class definition listing the deprecated features. This is to allow static checks to ensure that proper field names are used. """ from wandb.proto.wandb_telemetry_pb2 import Deprecated # type: ignore[import] deprecated_features ...
python
wandb/proto/wandb_internal_codegen.py
13
42
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,066
get_pip_package_version
def get_pip_package_version(package_name: str) -> str: out = subprocess.check_output(("pip", "show", package_name)) info: Dict[str, Any] = dict( [line.split(": ", 2) for line in out.decode().rstrip("\n").split("\n")] # type: ignore[misc] ) return info["Version"]
python
wandb/proto/wandb_internal_codegen.py
45
50
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,067
get_min_required_version
def get_min_required_version(requirements_file_name: str, package_name: str) -> str: with open(requirements_file_name) as f: lines = f.readlines() for line in lines: tokens = line.strip().split(">=") if tokens[0] == package_name: if len(tokens) == 2: ...
python
wandb/proto/wandb_internal_codegen.py
53
65
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,068
__init__
def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.RunUpdate = channel.unary_unary( '/wandb_internal.InternalService/RunUpdate', request_serializer=wandb_dot_proto_dot_wandb__internal__pb2.RunRecord.SerializeT...
python
wandb/proto/v4/wandb_server_pb2_grpc.py
13
223
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,069
RunUpdate
def RunUpdate(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
229
233
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,070
Attach
def Attach(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
235
239
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,071
TBSend
def TBSend(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
241
245
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,072
RunStart
def RunStart(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
247
251
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,073
GetSummary
def GetSummary(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
253
257
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,074
SampledHistory
def SampledHistory(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
259
263
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,075
PollExit
def PollExit(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
265
269
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,076
ServerInfo
def ServerInfo(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
271
275
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,077
Shutdown
def Shutdown(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
277
281
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,078
RunStatus
def RunStatus(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
283
287
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,079
RunExit
def RunExit(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
289
293
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,080
RunPreempting
def RunPreempting(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
295
299
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,081
Metric
def Metric(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
301
305
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,082
PartialLog
def PartialLog(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
307
311
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,083
Log
def Log(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
313
317
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,084
Summary
def Summary(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
319
323
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,085
Config
def Config(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
325
329
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,086
Files
def Files(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
331
335
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,087
Output
def Output(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
337
341
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,088
OutputRaw
def OutputRaw(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
343
347
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,089
Telemetry
def Telemetry(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
349
353
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,090
Alert
def Alert(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
355
359
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,091
Artifact
def Artifact(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
361
365
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,092
LinkArtifact
def LinkArtifact(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
367
371
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,093
UseArtifact
def UseArtifact(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
373
377
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,094
ArtifactSend
def ArtifactSend(self, request, context): """rpc messages for async operations: Send, Poll, Cancel, Release """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
379
384
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,095
ArtifactPoll
def ArtifactPoll(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
386
390
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,096
Cancel
def Cancel(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
392
396
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,097
Keepalive
def Keepalive(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
398
402
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,098
CheckVersion
def CheckVersion(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
404
408
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,099
Pause
def Pause(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
410
414
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
2,100
Resume
def Resume(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
python
wandb/proto/v4/wandb_server_pb2_grpc.py
416
420
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }