Skip to content

Commit b3954e9

Browse files
authored
Python 3.11 Updates (#981)
* updates to envs * linting fixes
1 parent fa5a583 commit b3954e9

File tree

27 files changed

+83
-36
lines changed

27 files changed

+83
-36
lines changed

ci/environment-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- numba
1616
- numpy
1717
- psutil
18-
- python=3.10
18+
- python=3.11
1919
- sortedcontainers
2020
- scikit-learn >=1.2.0
2121
- scipy

ci/environment-latest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
environment-3.10.yaml
1+
ci/environment-3.11.yaml

dask_ml/compose/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
These estimators are useful for working with heterogenous tabular data.
44
"""
5+
56
from ._column_transformer import ColumnTransformer, make_column_transformer
67

78
__all__ = ["ColumnTransformer", "make_column_transformer"]

dask_ml/decomposition/extmath.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Extended math utilities.
33
"""
4+
45
# Authors: Gael Varoquaux
56
# Alexandre Gramfort
67
# Alexandre T. Passos
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Utilities for extracting features from data.
33
"""
4+
45
from . import text
56

67
__all__ = ["text"]

dask_ml/feature_extraction/text.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Utilities to build feature vectors from text documents.
33
"""
4+
45
import itertools
56

67
import dask

dask_ml/linear_model/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""The ``dask_ml.linear_model`` module implements linear models for
22
classification and regression.
33
"""
4+
45
from .glm import LinearRegression, LogisticRegression, PoissonRegression
56

67
__all__ = [

dask_ml/linear_model/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""
22
"""
3+
34
import dask.array as da
45
import dask.dataframe as dd
56
import numpy as np

dask_ml/metrics/pairwise.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Daskified versions of sklearn.metrics.pairwise
33
"""
4+
45
import warnings
56
from typing import Any, Callable, Dict, Optional, Tuple, Union
67

@@ -188,7 +189,7 @@ def sigmoid_kernel(
188189
"rbf": rbf_kernel,
189190
"linear": linear_kernel,
190191
"polynomial": polynomial_kernel,
191-
"sigmoid": sigmoid_kernel
192+
"sigmoid": sigmoid_kernel,
192193
# TODO:
193194
# - cosine_similarity
194195
# - laplacian

dask_ml/model_selection/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
These estimators will operate in parallel. Their scalability depends
44
on the underlying estimators being used.
55
"""
6+
67
from ._hyperband import HyperbandSearchCV
78
from ._incremental import IncrementalSearchCV, InverseDecaySearchCV
89
from ._search import GridSearchCV, RandomizedSearchCV, check_cv, compute_n_splits

0 commit comments

Comments
 (0)