Skip to content

Commit 72272e9

Browse files
committed
restructured project & fixed imports
1 parent e791468 commit 72272e9

File tree

7 files changed

+35
-3
lines changed

7 files changed

+35
-3
lines changed

lsp/__init__.py

Whitespace-only changes.

lsp_python/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""
2+
pyLSP.
3+
4+
pyLSP is a lightweight implementation of the Least Square Projection (LSP) dimensionality reduction technique using a sklearn style API.
5+
"""
6+
7+
__version__ = "0.0.3"
8+
__author__ = 'Luca Reichmann'

lsp/lsp.py renamed to lsp_python/lsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22

33
from sklearn.neighbors import NearestNeighbors
4-
from lsp.mds import MDS
4+
from lsp_python.mds import MDS
55

66

77

File renamed without changes.

setup.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from setuptools import setup
2+
3+
from pathlib import Path
4+
this_directory = Path(__file__).parent
5+
long_description = (this_directory / "README.md").read_text()
6+
7+
setup(
8+
name='lsp-python',
9+
version='0.0.3.post1',
10+
description='lsp-python is a lightweight implementation of the Least Square Projection (LSP) dimensionality reduction technique using a sklearn style API.',
11+
long_description=long_description,
12+
long_description_content_type='text/markdown',
13+
url='https://github.com/lvcarx/pyLSP',
14+
author='Luca Reichmann',
15+
author_email='[email protected]',
16+
license='MIT',
17+
packages=['lsp_python'],
18+
install_requires=['numpy',
19+
'scikit-learn',
20+
'matplotlib'],
21+
classifiers=[
22+
'Programming Language :: Python :: 3.11',
23+
],
24+
)

tests/digits_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from sklearn import datasets
55
from sklearn.utils import shuffle
66
from sklearn.preprocessing import MinMaxScaler
7-
from lsp.lsp import LSP
7+
from lsp_python.lsp import LSP
88

99
if __name__ == '__main__':
1010
digits = datasets.load_digits()

tests/iris_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from sklearn import datasets
55
from sklearn.utils import shuffle
66
from sklearn.preprocessing import MinMaxScaler
7-
from lsp.lsp import LSP
7+
from lsp_python.lsp import LSP
88

99
if __name__ == '__main__':
1010
iris = datasets.load_iris()

0 commit comments

Comments
 (0)