Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e3e4a77

Browse filesBrowse files
authored
MNT Remove absolute imports (#19668)
1 parent f4e692c commit e3e4a77
Copy full SHA for e3e4a77

File tree

5 files changed

+5
-5
lines changed
Filter options

5 files changed

+5
-5
lines changed

‎sklearn/gaussian_process/kernels.py

Copy file name to clipboardExpand all lines: sklearn/gaussian_process/kernels.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
from ..metrics.pairwise import pairwise_kernels
3232
from ..base import clone
3333
from ..utils.validation import _num_samples
34+
from ..exceptions import ConvergenceWarning
3435

3536
import warnings
36-
from sklearn.exceptions import ConvergenceWarning
3737

3838

3939
def _check_length_scale(X, length_scale):

‎sklearn/inspection/_partial_dependence.py

Copy file name to clipboardExpand all lines: sklearn/inspection/_partial_dependence.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from ..ensemble import RandomForestRegressor
2828
from ..exceptions import NotFittedError
2929
from ..ensemble._gb import BaseGradientBoosting
30-
from sklearn.ensemble._hist_gradient_boosting.gradient_boosting import (
30+
from ..ensemble._hist_gradient_boosting.gradient_boosting import (
3131
BaseHistGradientBoosting)
3232

3333

‎sklearn/metrics/_plot/base.py

Copy file name to clipboardExpand all lines: sklearn/metrics/_plot/base.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import numpy as np
22

3-
from sklearn.base import is_classifier
3+
from ...base import is_classifier
44

55

66
def _check_classifier_response_method(estimator, response_method):

‎sklearn/metrics/pairwise.py

Copy file name to clipboardExpand all lines: sklearn/metrics/pairwise.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def haversine_distances(X, Y=None):
748748
array([[ 0. , 11099.54035582],
749749
[11099.54035582, 0. ]])
750750
"""
751-
from sklearn.neighbors import DistanceMetric
751+
from ..neighbors import DistanceMetric
752752
return DistanceMetric.get_metric('haversine').pairwise(X, Y)
753753

754754

‎sklearn/utils/_estimator_html_repr.py

Copy file name to clipboardExpand all lines: sklearn/utils/_estimator_html_repr.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import uuid
66
import html
77

8-
from sklearn import config_context
8+
from .. import config_context
99

1010

1111
class _VisualBlock:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.