Skip to content

Commit

Permalink
chore(docs): add derivative work credits
Browse files Browse the repository at this point in the history
* chore(docs): add derivative work credits

* chore(docs): add more derivative work credits

* chore(docs): add author
  • Loading branch information
HugoDelatte committed Jan 19, 2024
1 parent e1e202a commit c2fdd82
Show file tree
Hide file tree
Showing 48 changed files with 144 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ If you use `skfolio` in a scientific publication, we would appreciate citations:
Bibtex entry::
@misc{skfolio,
author = {Hugo Delatte},
author = {Hugo Delatte, Carlo Nicolini},
title = {skfolio},
year = {2023},
url = {https://github.com/skfolio/skfolio}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ If you use `skfolio` in a scientific publication, we would appreciate citations:
Bibtex entry::
@misc{skfolio,
author = {Hugo Delatte},
author = {Hugo Delatte, Carlo Nicolini},
title = {skfolio},
year = {2023},
url = {https://github.com/skfolio/skfolio}
Expand Down
1 change: 1 addition & 0 deletions src/skfolio/cluster/_hierarchical.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Hierarchical Clustering estimators."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
5 changes: 5 additions & 0 deletions src/skfolio/datasets/_base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"""Datasets module."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-portfolio, Copyright (c) 2022, Carlo Nicolini, Licensed under MIT Licence.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

import gzip
import os
Expand Down
1 change: 1 addition & 0 deletions src/skfolio/distance/_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Base Distance Estimators"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/distance/_distance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Distance Estimators"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
classes used across skfolio.
"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/measures/_enums.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Module that includes all Measures enums used across `skfolio`."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
3 changes: 3 additions & 0 deletions src/skfolio/measures/_measures.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""Module that includes all Measures functions used across `skfolio`."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Gini mean difference and OWA GMD weights features are derived
# from Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.


import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions src/skfolio/metrics/_scorer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"""Scorer module"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-portfolio, Copyright (c) 2022, Carlo Nicolini, Licensed under MIT Licence.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

from collections.abc import Callable

Expand Down
5 changes: 5 additions & 0 deletions src/skfolio/model_selection/_combinatorial.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"""Combinatorial module"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-portfolio, Copyright (c) 2022, Carlo Nicolini, Licensed under MIT Licence.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

import itertools
import math
Expand Down
5 changes: 5 additions & 0 deletions src/skfolio/model_selection/_validation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"""Model validation module."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-portfolio, Copyright (c) 2022, Carlo Nicolini, Licensed under MIT Licence.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

import numpy as np
import numpy.typing as npt
Expand Down
5 changes: 5 additions & 0 deletions src/skfolio/model_selection/_walk_forward.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"""Walk Forward cross-validator"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-portfolio, Copyright (c) 2022, Carlo Nicolini, Licensed under MIT Licence.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

from collections.abc import Iterator

Expand Down
7 changes: 7 additions & 0 deletions src/skfolio/moments/covariance/_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
"""Base Covariance Estimators."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

from abc import ABC, abstractmethod

import numpy as np
Expand Down
7 changes: 7 additions & 0 deletions src/skfolio/moments/covariance/_covariance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
"""Covariance Estimators."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

import numpy as np
import numpy.typing as npt
import pandas as pd
Expand Down
4 changes: 4 additions & 0 deletions src/skfolio/moments/expected_returns/_base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""Base Expected returns estimators."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

from abc import ABC, abstractmethod

Expand Down
5 changes: 5 additions & 0 deletions src/skfolio/moments/expected_returns/_expected_returns.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"""Expected returns estimators."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

from enum import auto

Expand Down
8 changes: 8 additions & 0 deletions src/skfolio/optimization/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
from skfolio.population import Population
from skfolio.portfolio import Portfolio

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-portfolio, Copyright (c) 2022, Carlo Nicolini, Licensed under MIT Licence.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.


class BaseOptimization(skb.BaseEstimator, ABC):
"""Base class for all portfolio optimizations in skfolio.
Expand Down
5 changes: 5 additions & 0 deletions src/skfolio/optimization/cluster/_nco.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"""Nested Clusters Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

from copy import deepcopy

Expand Down
4 changes: 4 additions & 0 deletions src/skfolio/optimization/cluster/hierarchical/_base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""Base Hierarchical Clustering Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier

from abc import ABC, abstractmethod

Expand Down
4 changes: 3 additions & 1 deletion src/skfolio/optimization/cluster/hierarchical/_herc.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Hierarchical Equal Risk Contribution estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

# The risk measure generalization and constraint features are derived
# from Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.

import numpy as np
import numpy.typing as npt
Expand Down
4 changes: 4 additions & 0 deletions src/skfolio/optimization/cluster/hierarchical/_hrp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""Hierarchical Risk Parity Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# The risk measure generalization and constraint features are derived
# from Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.


import numpy as np
import numpy.typing as npt
Expand Down
3 changes: 3 additions & 0 deletions src/skfolio/optimization/convex/_base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""Base Convex Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# The optimization features are derived
# from Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.

import warnings
from abc import ABC, abstractmethod
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Distributionally Robust CVaR Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Maximum Diversification Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
3 changes: 3 additions & 0 deletions src/skfolio/optimization/convex/_mean_risk.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""Mean Risk Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# The optimization features are derived
# from Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.

import cvxpy as cp
import numpy as np
Expand Down
3 changes: 3 additions & 0 deletions src/skfolio/optimization/convex/_risk_budgeting.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""Risk Budgeting Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# The optimization features are derived
# from Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.

import cvxpy as cp
import numpy as np
Expand Down
4 changes: 4 additions & 0 deletions src/skfolio/optimization/ensemble/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
Follow same implementation as Base composition from sklearn
"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

from abc import ABC, abstractmethod
from contextlib import suppress
Expand Down
4 changes: 4 additions & 0 deletions src/skfolio/optimization/ensemble/_stacking.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""Stacking Optimization estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier
# Grisel Licensed under BSD 3 clause.

from copy import deepcopy

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/population/_population.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
A population is a collection of portfolios.
"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/portfolio/_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Base Portfolio module"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/portfolio/_multi_period_portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
`MultiPeriodPortfolio` is a list of `Portfolio`.
"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/portfolio/_portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
is the dot product of the assets weights with the assets returns.
"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/pre_selection/_pre_selection.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""pre-selection estimators module"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/preprocessing/_returns.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Preprocessing module to transform X to returns."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
1 change: 1 addition & 0 deletions src/skfolio/prior/_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Base Prior estimator"""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

Expand Down
4 changes: 4 additions & 0 deletions src/skfolio/prior/_black_litterman.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""Black & Litterman Prior Model estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause
# Implementation derived from:
# Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause.
# PyPortfolioOpt, Copyright (c) 2018 Robert Andrew Martin, Licensed under MIT Licence.

import numpy as np
import numpy.typing as npt
Expand Down
2 changes: 2 additions & 0 deletions src/skfolio/prior/_empirical.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Empirical Prior Model estimator."""

# Copyright (c) 2023
# Author: Hugo Delatte <delatte.hugo@gmail.com>
# License: BSD 3 clause

import numpy as np
import numpy.typing as npt

Expand Down

0 comments on commit c2fdd82

Please sign in to comment.