Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from abc import ABC, abstractmethod | |
| from inspect import signature | |
| from functools import wraps | |
| from numbers import Integral | |
| from typing import Optional | |
| def _isinstance(item, type_to_check): | |
| if hasattr(type_to_check, '__origin__'): | |
| if type_to_check.__origin__ == typing.Union: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sklearn.model_selection import cross_validate | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from sklearn.datasets import fetch_openml | |
| from sklearn.experimental import enable_hist_gradient_boosting # noqa | |
| from sklearn.ensemble import HistGradientBoostingClassifier | |
| from sklearn.pipeline import make_pipeline | |
| from sklearn.compose import make_column_transformer | |
| from sklearn.compose import make_column_selector |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Base injects the docstring description into `_parameters`? meh, `__init_subclass__` | |
| class Model(Base): | |
| """This is a cool model | |
| Parameters | |
| ---------- | |
| penalty : | |
| This is a something cool. | |
| - This is a list |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from collections import defaultdict | |
| from github import Github | |
| import os | |
| token = os.environ["GITHUB_TOKEN"] | |
| gh = Github(token) | |
| sk_repo = gh.get_repo("scikit-learn/scikit-learn") |