Skip to content

fix: Add n_targets argument to GaussianProcessRegressor() #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions stubs/matplotlib/backends/backend_qt.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class FigureCanvasQT(QtWidgets.QWidget, FigureCanvasBase):
def keyPressEvent(self, event) -> None: ...
def keyReleaseEvent(self, event) -> None: ...
def resizeEvent(self, event) -> None: ...
def sizeHint(self) -> QtCore.QSize: ...
def minumumSizeHint(self) -> QtCore.QSize: ...
def sizeHint(self) -> QtCore.QSize: ... # type: ignore
def minumumSizeHint(self) -> QtCore.QSize: ... # type: ignore
def flush_events(self) -> None: ...
def start_event_loop(self, timeout=...) -> None: ...
def stop_event_loop(self, event=...) -> None: ...
Expand All @@ -58,7 +58,7 @@ class FigureCanvasQT(QtWidgets.QWidget, FigureCanvasBase):
def drawRectangle(self, rect) -> None: ...

class MainWindow(QtWidgets.QMainWindow):
closing: QtCore.Signal = ...
closing: QtCore.Signal = ... # type: ignore
def closeEvent(self, event) -> None: ...

class FigureManagerQT(FigureManagerBase):
Expand All @@ -71,7 +71,7 @@ class FigureManagerQT(FigureManagerBase):
def set_window_title(self, title) -> None: ...

class NavigationToolbar2QT(NavigationToolbar2, QtWidgets.QToolBar):
message: QtCore.Signal = ...
message: QtCore.Signal = ... # type: ignore
toolitems: list = ...
def __init__(self, canvas, parent=..., coordinates=...) -> None: ...
def edit_parameters(self) -> None: ...
Expand Down
1 change: 1 addition & 0 deletions stubs/sklearn/gaussian_process/_gpr.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class GaussianProcessRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
n_restarts_optimizer: Int = 0,
normalize_y: bool = False,
copy_X_train: bool = True,
n_targets: Int | None = None,
random_state: RandomState | None | Int = None,
) -> None: ...
def fit(
Expand Down
4 changes: 2 additions & 2 deletions stubs/sklearn/utils/_encode.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ from numpy import ndarray, str_
from . import is_scalar_nan as is_scalar_nan

class MissingValues(NamedTuple):
nan: ClassVar[bool] = ...
none: ClassVar[bool] = ...
nan: bool = ...
none: bool = ...

def to_list(self) -> list[float | Any]: ...

Expand Down
12 changes: 5 additions & 7 deletions stubs/sympy-stubs/plotting/pygletplot/util.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ def get_projection_matrix(array_type=..., glGetMethod=...) -> Array[c_float]: ..
def get_viewport() -> Array[c_int]: ...
def get_direction_vectors() -> tuple[tuple[Any, Any, Any], tuple[Any, Any, Any], tuple[Any, Any, Any]]: ...
def get_view_direction_vectors() -> tuple[tuple[Any, Any, Any], tuple[Any, Any, Any], tuple[Any, Any, Any]]: ...
def get_basis_vectors() -> (
tuple[
tuple[Literal[1], Literal[0], Literal[0]],
tuple[Literal[0], Literal[1], Literal[0]],
tuple[Literal[0], Literal[0], Literal[1]],
]
): ...
def get_basis_vectors() -> tuple[
tuple[Literal[1], Literal[0], Literal[0]],
tuple[Literal[0], Literal[1], Literal[0]],
tuple[Literal[0], Literal[0], Literal[1]],
]: ...
def screen_to_model(x, y, z) -> tuple[float, float, float]: ...
def model_to_screen(x, y, z) -> tuple[float, float, float]: ...
def vec_subs(a, b) -> tuple[Any, ...]: ...
Expand Down
18 changes: 8 additions & 10 deletions stubs/sympy-stubs/polys/numberfields/galois_resolvents.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ class Resolvent:
def wrap(text, width=...) -> LiteralString | Literal[""]: ...
def s_vars(n) -> Any: ...
def sparse_symmetrize_resolvent_coeffs(F, X, s, verbose=...) -> tuple[list[Any], list[Any]]: ...
def define_resolvents() -> (
dict[
tuple[Literal[4], Literal[0]]
| tuple[Literal[4], Literal[1]]
| tuple[Literal[5], Literal[1]]
| tuple[Literal[6], Literal[1]]
| tuple[Literal[6], Literal[2]],
Any,
]
): ...
def define_resolvents() -> dict[
tuple[Literal[4], Literal[0]]
| tuple[Literal[4], Literal[1]]
| tuple[Literal[5], Literal[1]]
| tuple[Literal[6], Literal[1]]
| tuple[Literal[6], Literal[2]],
Any,
]: ...
def generate_lambda_lookup(verbose=..., trial_run=...) -> str: ...
def get_resolvent_by_lookup(T, number) -> list[Any]: ...

Expand Down
Loading