Skip to content

Commit b766cec

Browse files
shobsiGenesis929
authored andcommitted
chore: fix typo mertics to metrics (#549)
* chore: fix typo `mertics` to `metrics` * revert unintended change
1 parent 6b45547 commit b766cec

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

bigframes/ml/metrics/_metrics.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import typing
2020
from typing import Tuple, Union
2121

22-
import bigframes_vendored.sklearn.metrics._classification as vendored_mertics_classification
23-
import bigframes_vendored.sklearn.metrics._ranking as vendored_mertics_ranking
22+
import bigframes_vendored.sklearn.metrics._classification as vendored_metrics_classification
23+
import bigframes_vendored.sklearn.metrics._ranking as vendored_metrics_ranking
2424
import bigframes_vendored.sklearn.metrics._regression as vendored_metrics_regression
2525
import numpy as np
2626
import pandas as pd
@@ -79,7 +79,7 @@ def accuracy_score(
7979
return score.sum()
8080

8181

82-
accuracy_score.__doc__ = inspect.getdoc(vendored_mertics_classification.accuracy_score)
82+
accuracy_score.__doc__ = inspect.getdoc(vendored_metrics_classification.accuracy_score)
8383

8484

8585
def roc_curve(
@@ -149,7 +149,7 @@ def roc_curve(
149149
)
150150

151151

152-
roc_curve.__doc__ = inspect.getdoc(vendored_mertics_ranking.roc_curve)
152+
roc_curve.__doc__ = inspect.getdoc(vendored_metrics_ranking.roc_curve)
153153

154154

155155
def roc_auc_score(
@@ -171,7 +171,7 @@ def roc_auc_score(
171171
return (width_diff * height_avg).sum()
172172

173173

174-
roc_auc_score.__doc__ = inspect.getdoc(vendored_mertics_ranking.roc_auc_score)
174+
roc_auc_score.__doc__ = inspect.getdoc(vendored_metrics_ranking.roc_auc_score)
175175

176176

177177
def auc(
@@ -185,7 +185,7 @@ def auc(
185185
return auc
186186

187187

188-
auc.__doc__ = inspect.getdoc(vendored_mertics_ranking.auc)
188+
auc.__doc__ = inspect.getdoc(vendored_metrics_ranking.auc)
189189

190190

191191
def confusion_matrix(
@@ -223,7 +223,7 @@ def confusion_matrix(
223223

224224

225225
confusion_matrix.__doc__ = inspect.getdoc(
226-
vendored_mertics_classification.confusion_matrix
226+
vendored_metrics_classification.confusion_matrix
227227
)
228228

229229

@@ -261,7 +261,7 @@ def recall_score(
261261
return recall_score
262262

263263

264-
recall_score.__doc__ = inspect.getdoc(vendored_mertics_classification.recall_score)
264+
recall_score.__doc__ = inspect.getdoc(vendored_metrics_classification.recall_score)
265265

266266

267267
def precision_score(
@@ -299,7 +299,7 @@ def precision_score(
299299

300300

301301
precision_score.__doc__ = inspect.getdoc(
302-
vendored_mertics_classification.precision_score
302+
vendored_metrics_classification.precision_score
303303
)
304304

305305

@@ -334,4 +334,4 @@ def f1_score(
334334
return f1_score
335335

336336

337-
f1_score.__doc__ = inspect.getdoc(vendored_mertics_classification.f1_score)
337+
f1_score.__doc__ = inspect.getdoc(vendored_metrics_classification.f1_score)

0 commit comments

Comments
 (0)