Skip to content
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

MNT remove author and license in GLM files #28799

Merged
merged 3 commits into from May 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,3 +1,5 @@
# Authors: The scikit-learn developers
# License: BSD 3 clause
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think going with this suggestion makes sense: #20813 (comment)

Suggested change
# License: BSD 3 clause
# SPDX-License-Identifier: BSD-3-Clause

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind, then we can update the blog for this as well.

"""
======================================
Poisson regression and non-normal loss
Expand Down Expand Up @@ -36,11 +38,6 @@

"""

# Authors: Christian Lorentzen <lorentzen.ch@gmail.com>
# Roman Yurchak <rth.yurchak@gmail.com>
# Olivier Grisel <olivier.grisel@ensta.org>
# License: BSD 3 clause

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
Expand Down
@@ -1,3 +1,5 @@
# Authors: The scikit-learn developers
# License: BSD 3 clause
"""
======================================
Tweedie regression on insurance claims
Expand Down Expand Up @@ -37,11 +39,6 @@
<https://doi.org/10.2139/ssrn.3164764>`_
"""

# Authors: Christian Lorentzen <lorentzen.ch@gmail.com>
# Roman Yurchak <rth.yurchak@gmail.com>
# Olivier Grisel <olivier.grisel@ensta.org>
# License: BSD 3 clause

# %%

from functools import partial
Expand Down
2 changes: 1 addition & 1 deletion sklearn/linear_model/_glm/__init__.py
@@ -1,5 +1,5 @@
# Authors: The scikit-learn developers
# License: BSD 3 clause

from .glm import (
GammaRegressor,
PoissonRegressor,
Expand Down
5 changes: 2 additions & 3 deletions sklearn/linear_model/_glm/_newton_solver.py
@@ -1,10 +1,9 @@
# Authors: The scikit-learn developers
# License: BSD 3 clause
"""
Newton solver for Generalized Linear Models
"""

# Author: Christian Lorentzen <lorentzen.ch@gmail.com>
# License: BSD 3 clause

import warnings
from abc import ABC, abstractmethod

Expand Down
6 changes: 2 additions & 4 deletions sklearn/linear_model/_glm/glm.py
@@ -1,11 +1,9 @@
# Authors: The scikit-learn developers
# License: BSD 3 clause
"""
Generalized Linear Models with Exponential Dispersion Family
"""

# Author: Christian Lorentzen <lorentzen.ch@gmail.com>
# some parts and tricks stolen from other sklearn files.
# License: BSD 3 clause

from numbers import Integral, Real

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions sklearn/linear_model/_glm/tests/__init__.py
@@ -1 +1,2 @@
# Authors: The scikit-learn developers
# License: BSD 3 clause
4 changes: 1 addition & 3 deletions sklearn/linear_model/_glm/tests/test_glm.py
@@ -1,7 +1,5 @@
# Authors: Christian Lorentzen <lorentzen.ch@gmail.com>
#
# Authors: The scikit-learn developers
# License: BSD 3 clause

import itertools
import warnings
from functools import partial
Expand Down