Skip to content

Commit 9741ace

Browse files
committed
added more explicit license clause from sklearn
1 parent d9c5302 commit 9741ace

16 files changed

+117
-0
lines changed

LICENSE

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,40 @@
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE
22+
23+
24+
Parts of this software, in particular code contained in the modules econml.tree and
25+
econml.grf contain files that are forks from the scikit-learn git repository, or code
26+
snippets from that repository:
27+
https://github.com/scikit-learn/scikit-learn
28+
published under the following License.
29+
30+
BSD 3-Clause License
31+
32+
Copyright (c) 2007-2020 The scikit-learn developers.
33+
All rights reserved.
34+
35+
Redistribution and use in source and binary forms, with or without
36+
modification, are permitted provided that the following conditions are met:
37+
38+
* Redistributions of source code must retain the above copyright notice, this
39+
list of conditions and the following disclaimer.
40+
41+
* Redistributions in binary form must reproduce the above copyright notice,
42+
this list of conditions and the following disclaimer in the documentation
43+
and/or other materials provided with the distribution.
44+
45+
* Neither the name of the copyright holder nor the names of its
46+
contributors may be used to endorse or promote products derived from
47+
this software without specific prior written permission.
48+
49+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
50+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
51+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
52+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
53+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
54+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
55+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
56+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
57+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
58+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

econml/grf/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
from ._criterion import LinearMomentGRFCriterion, LinearMomentGRFCriterionMSE
25
from .classes import CausalForest, CausalIVForest, RegressionForest, MultiOutputGRF
36

econml/grf/_base_grf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
#
44
# This code contains snippets of code from
55
# https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/_forest.py
6+
# published under the following license and copyright:
7+
# BSD 3-Clause License
8+
#
9+
# Copyright (c) 2007-2020 The scikit-learn developers.
10+
# All rights reserved.
611

712
import numbers
813
from warnings import catch_warnings, simplefilter, warn

econml/grf/_base_grftree.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
#
44
# This code contains snippets of code from:
55
# https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_classes.py
6+
# published under the following license and copyright:
7+
# BSD 3-Clause License
8+
#
9+
# Copyright (c) 2007-2020 The scikit-learn developers.
10+
# All rights reserved.
611

712
import numpy as np
813
import numbers

econml/grf/_criterion.pxd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
3+
# published under the following license and copyright:
4+
# BSD 3-Clause License
5+
#
6+
# Copyright (c) 2007-2020 The scikit-learn developers.
7+
# All rights reserved.
38

49
# See _criterion.pyx for implementation details.
510

econml/grf/_criterion.pyx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
#
88
# This code contains some snippets of code from:
99
# https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_criterion.pyx
10+
# published under the following license and copyright:
11+
# BSD 3-Clause License
12+
#
13+
# Copyright (c) 2007-2020 The scikit-learn developers.
14+
# All rights reserved.
1015

1116
from libc.stdlib cimport calloc
1217
from libc.stdlib cimport free

econml/grf/_ensemble.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
#
44
# This code is a fork from:
55
# https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/_base.py
6+
# published under the following license and copyright:
7+
# BSD 3-Clause License
8+
#
9+
# Copyright (c) 2007-2020 The scikit-learn developers.
10+
# All rights reserved.
611

712
import numbers
813
import numpy as np

econml/tree/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
13

24
from ._criterion import Criterion, RegressionCriterion, MSE
35
from ._splitter import Splitter, BestSplitter

econml/tree/_criterion.pxd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# Licensed under the MIT License.
33
#
44
# This code is a fork from: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_criterion.pxd
5+
# published under the following license and copyright:
6+
# BSD 3-Clause License
7+
#
8+
# Copyright (c) 2007-2020 The scikit-learn developers.
9+
# All rights reserved.
510

611
# See _criterion.pyx for implementation details.
712

econml/tree/_criterion.pyx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
# Licensed under the MIT License.
77
#
88
# This code is a fork from: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_criterion.pyx
9+
# published under the following license and copyright:
10+
# BSD 3-Clause License
11+
#
12+
# Copyright (c) 2007-2020 The scikit-learn developers.
13+
# All rights reserved.
914

1015
from libc.stdlib cimport calloc
1116
from libc.stdlib cimport free

econml/tree/_splitter.pxd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# Licensed under the MIT License.
33
#
44
# This code is a fork from: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_splitter.pxd
5+
# published under the following license and copyright:
6+
# BSD 3-Clause License
7+
#
8+
# Copyright (c) 2007-2020 The scikit-learn developers.
9+
# All rights reserved.
510

611
# See _splitter.pyx for details.
712

econml/tree/_splitter.pyx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
# Licensed under the MIT License.
77
#
88
# This code is a fork from: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_splitter.pyx
9+
# published under the following license and copyright:
10+
# BSD 3-Clause License
11+
#
12+
# Copyright (c) 2007-2020 The scikit-learn developers.
13+
# All rights reserved.
914

1015
from ._criterion cimport Criterion
1116

econml/tree/_tree.pxd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# Licensed under the MIT License.
33
#
44
# This code is a fork from: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_tree.pxd
5+
# published under the following license and copyright:
6+
# BSD 3-Clause License
7+
#
8+
# Copyright (c) 2007-2020 The scikit-learn developers.
9+
# All rights reserved.
510

611
# See _tree.pyx for details.
712

econml/tree/_tree.pyx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
# Licensed under the MIT License.
77
#
88
# This code is a fork from: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_tree.pyx
9+
# published under the following license and copyright:
10+
# BSD 3-Clause License
11+
#
12+
# Copyright (c) 2007-2020 The scikit-learn developers.
13+
# All rights reserved.
914

1015

1116
from cpython cimport Py_INCREF, PyObject, PyTypeObject

econml/tree/_utils.pxd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
#
4+
# This code is a fork from: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_utils.pxd
5+
# published under the following license and copyright:
6+
# BSD 3-Clause License
7+
#
8+
# Copyright (c) 2007-2020 The scikit-learn developers.
9+
# All rights reserved.
10+
111
import numpy as np
212
cimport numpy as np
313
from ._tree cimport Node

econml/tree/_utils.pyx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# cython: boundscheck=False
33
# cython: wraparound=False
44

5+
# Copyright (c) Microsoft Corporation. All rights reserved.
6+
# Licensed under the MIT License.
7+
#
8+
# This code is a fork from: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/_utils.pyx
9+
# published under the following license and copyright:
10+
# BSD 3-Clause License
11+
#
12+
# Copyright (c) 2007-2020 The scikit-learn developers.
13+
# All rights reserved.
14+
515
from libc.stdlib cimport free
616
from libc.stdlib cimport malloc
717
from libc.stdlib cimport realloc

0 commit comments

Comments
 (0)