Skip to content

Commit

Permalink
add source headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Mar 2, 2024
1 parent 8765a4a commit 38b209f
Show file tree
Hide file tree
Showing 79 changed files with 474 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import logging
from pytest import fixture

Expand Down
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import os
import sys
sys.path.insert(0, os.path.abspath(".."))
Expand Down
6 changes: 6 additions & 0 deletions lenskit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Toolkit for recommender systems research, teaching, and more.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
LensKit algorithms.
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/als.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import logging
from collections import namedtuple

Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/basic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Basic utility algorithms and combiners.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/bias.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import logging

import pandas as pd
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/funksvd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
FunkSVD (biased MF).
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/item_knn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Item-based k-NN collaborative filtering.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/mf_common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Common utilities & implementations for matrix factorization.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/ranking.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Algorithms to rank items based on scores.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/svd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import logging

import pandas as pd
Expand Down
6 changes: 6 additions & 0 deletions lenskit/algorithms/user_knn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
User-based k-NN collaborative filtering.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/batch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Batch-run predictors and recommenders for evaluation.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/batch/_predict.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import logging
import warnings

Expand Down
6 changes: 6 additions & 0 deletions lenskit/batch/_recommend.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import logging
import warnings

Expand Down
6 changes: 6 additions & 0 deletions lenskit/batch/_train.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import logging

from lenskit.sharing import persist, persist_binpickle
Expand Down
6 changes: 6 additions & 0 deletions lenskit/crossfold.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Data set cross-folding.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

from .matrix import RatingMatrix, sparse_ratings # noqa: F401
6 changes: 6 additions & 0 deletions lenskit/data/matrix.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Data manipulation routines.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/data/sampling.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import numpy as np
from numba import njit

Expand Down
6 changes: 6 additions & 0 deletions lenskit/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

from .movielens import * # noqa: F403
6 changes: 6 additions & 0 deletions lenskit/datasets/fetch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import sys
from zipfile import ZipFile
from urllib.request import urlopen
Expand Down
6 changes: 6 additions & 0 deletions lenskit/datasets/movielens.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Code to import commonly-used RecSys data sets into LensKit-compatible data frames.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/math/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Mathematical helper routines.
"""
6 changes: 6 additions & 0 deletions lenskit/math/solve.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Efficient solver routines.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Metrics for evaluating recommendations.
"""
6 changes: 6 additions & 0 deletions lenskit/metrics/predict.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Prediction accuracy metrics.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/metrics/topn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Top-N evaluation metrics.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/sharing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Support for sharing and saving models and data structures.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/sharing/binpickle.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import os
import pathlib
import tempfile
Expand Down
6 changes: 6 additions & 0 deletions lenskit/sharing/shm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import sys
import logging
import pickle
Expand Down
6 changes: 6 additions & 0 deletions lenskit/topn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

import logging
import functools as ft

Expand Down
6 changes: 6 additions & 0 deletions lenskit/util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Miscellaneous utility functions.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/util/accum.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Accumulator support.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/util/array.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Array utilities.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/util/debug.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Debugging utility code. Also runnable as a Python command.
Expand Down
6 changes: 6 additions & 0 deletions lenskit/util/log.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Logging utilities.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/util/parallel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Utilities for parallel processing.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/util/random.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is part of LensKit.
# Copyright (C) 2018-2023 Boise State University
# Copyright (C) 2023-2024 Drexel University
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT

"""
Utilities to manage randomness in LensKit and LensKit experiments.
"""
Expand Down
Loading

0 comments on commit 38b209f

Please sign in to comment.