19
19
import typing
20
20
from typing import Tuple , Union
21
21
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
24
24
import bigframes_vendored .sklearn .metrics ._regression as vendored_metrics_regression
25
25
import numpy as np
26
26
import pandas as pd
@@ -79,7 +79,7 @@ def accuracy_score(
79
79
return score .sum ()
80
80
81
81
82
- accuracy_score .__doc__ = inspect .getdoc (vendored_mertics_classification .accuracy_score )
82
+ accuracy_score .__doc__ = inspect .getdoc (vendored_metrics_classification .accuracy_score )
83
83
84
84
85
85
def roc_curve (
@@ -149,7 +149,7 @@ def roc_curve(
149
149
)
150
150
151
151
152
- roc_curve .__doc__ = inspect .getdoc (vendored_mertics_ranking .roc_curve )
152
+ roc_curve .__doc__ = inspect .getdoc (vendored_metrics_ranking .roc_curve )
153
153
154
154
155
155
def roc_auc_score (
@@ -171,7 +171,7 @@ def roc_auc_score(
171
171
return (width_diff * height_avg ).sum ()
172
172
173
173
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 )
175
175
176
176
177
177
def auc (
@@ -185,7 +185,7 @@ def auc(
185
185
return auc
186
186
187
187
188
- auc .__doc__ = inspect .getdoc (vendored_mertics_ranking .auc )
188
+ auc .__doc__ = inspect .getdoc (vendored_metrics_ranking .auc )
189
189
190
190
191
191
def confusion_matrix (
@@ -223,7 +223,7 @@ def confusion_matrix(
223
223
224
224
225
225
confusion_matrix .__doc__ = inspect .getdoc (
226
- vendored_mertics_classification .confusion_matrix
226
+ vendored_metrics_classification .confusion_matrix
227
227
)
228
228
229
229
@@ -261,7 +261,7 @@ def recall_score(
261
261
return recall_score
262
262
263
263
264
- recall_score .__doc__ = inspect .getdoc (vendored_mertics_classification .recall_score )
264
+ recall_score .__doc__ = inspect .getdoc (vendored_metrics_classification .recall_score )
265
265
266
266
267
267
def precision_score (
@@ -299,7 +299,7 @@ def precision_score(
299
299
300
300
301
301
precision_score .__doc__ = inspect .getdoc (
302
- vendored_mertics_classification .precision_score
302
+ vendored_metrics_classification .precision_score
303
303
)
304
304
305
305
@@ -334,4 +334,4 @@ def f1_score(
334
334
return f1_score
335
335
336
336
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