Skip to content

Commit c111272

Browse files
author
Immanuel Bayer
committed
add BSD 3 clause
1 parent 5ffd714 commit c111272

20 files changed

+86
-6
lines changed

COPYING

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
New BSD License
2+
3+
Copyright (c) 2014–2015 Immanuel Bayer
4+
All rights reserved.
5+
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are met:
9+
10+
a. Redistributions of source code must retain the above copyright notice,
11+
this list of conditions and the following disclaimer.
12+
b. Redistributions in binary form must reproduce the above copyright
13+
notice, this list of conditions and the following disclaimer in the
14+
documentation and/or other materials provided with the distribution.
15+
c. Neither the name of the developers nor the names of
16+
its contributors may be used to endorse or promote products
17+
derived from this software without specific prior written
18+
permission.
19+
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24+
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
25+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
31+
DAMAGE.

fastFM/als.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
from sklearn.utils import check_consistent_length, check_array
25
from sklearn.base import RegressorMixin
36
from base import FactorizationMachine, BaseFMClassifier,\

fastFM/base.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
import ffm
36
import scipy.sparse as sp

fastFM/bpr.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
from sklearn.utils import assert_all_finite, check_array
25
from sklearn.utils.testing import assert_array_equal
36
from base import FactorizationMachine

fastFM/cffm.pxd

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#cfastfm.pxd
2-
#
3-
# Declarations of "external" C functions and structures
4-
# distutils: include_dirs = /usr/include/suitesparse
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
53

64
cdef extern from "../fastFM-core/externals/CXSparse/Include/cs.h":
75
ctypedef struct cs_di: # matrix in compressed-column or triplet form */

fastFM/datasets.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
from ffm import ffm_predict
36
import scipy.sparse as sp

fastFM/ffm.pyx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# sample.pyx
2-
# Import the low-level C declarations
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
34
cimport cffm
45
from cffm cimport cs_di, ffm_param
56
# Import some functionality from Python and the C stdlib

fastFM/mcmc.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
from sklearn.utils import assert_all_finite, check_consistent_length,\
25
check_array
36
from base import FactorizationMachine, _validate_class_labels,\

fastFM/sgd.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
from sklearn.base import RegressorMixin
25
from sklearn.utils import check_array, check_consistent_length
36
from base import FactorizationMachine, BaseFMClassifier, _validate_class_labels

fastFM/tests/test_als.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
import scipy.sparse as sp
36
from sklearn import metrics

fastFM/tests/test_base.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
import scipy.sparse as sp
36
from sklearn import metrics

fastFM/tests/test_datasets.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
from fastFM.datasets import make_user_item_regression
25
from sklearn.metrics import mean_squared_error
36
import scipy.sparse as sp

fastFM/tests/test_ffm.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
import scipy.sparse as sp
36
from sklearn.metrics import mean_squared_error, r2_score

fastFM/tests/test_mcmc.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
import scipy.sparse as sp
36
from sklearn import metrics

fastFM/tests/test_ranking.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
import scipy.sparse as sp
36
from fastFM import bpr

fastFM/tests/test_sgd.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
import scipy.sparse as sp
36
from sklearn import metrics

fastFM/tests/test_transform.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import scipy.sparse as sp
25
import numpy as np
36
from numpy.testing import assert_array_equal

fastFM/tests/test_utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import numpy as np
25
from fastFM.utils import kendall_tau
36

fastFM/transform.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
3+
14
import scipy.sparse as sp
25
import numpy as np
36

fastFM/utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Author: Immanuel Bayer
2+
# License: BSD 3 clause
13

24

35
def kendall_tau(a, b):

0 commit comments

Comments
 (0)