linearboost 0.1.7__tar.gz → 0.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: linearboost
3
- Version: 0.1.7
3
+ Version: 0.1.9
4
4
  Summary: LinearBoost Classifier is a rapid and accurate classification algorithm that builds upon a very fast, linear classifier.
5
5
  Project-URL: Homepage, https://github.com/LinearBoost/linearboost-classifier
6
6
  Project-URL: Documentation, https://linearboost.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/LinearBoost/linearboost-classifier
8
8
  Project-URL: Issues, https://github.com/LinearBoost/linearboost-classifier/issues
9
9
  Author-email: Hamidreza Keshavarz <hamid9@outlook.com>, Reza Rawassizadeh <rezar@bu.edu>
10
- License-File: LICENSE
10
+ License-File: LICENSE.txt
11
11
  Keywords: adaboost,boost,boosting,classification,classifier,linear
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: Intended Audience :: Science/Research
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.9
16
14
  Classifier: Programming Language :: Python :: 3.10
17
15
  Classifier: Programming Language :: Python :: 3.11
18
16
  Classifier: Programming Language :: Python :: 3.12
@@ -21,7 +19,7 @@ Classifier: Topic :: Scientific/Engineering
21
19
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
20
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
23
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
- Requires-Python: <3.14,>=3.8
22
+ Requires-Python: <3.14,>=3.10
25
23
  Requires-Dist: scikit-learn>=1.2.2
26
24
  Requires-Dist: typing-extensions>=4.1.0; python_full_version < '3.11'
27
25
  Description-Content-Type: text/markdown
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2007-2024 The scikit-learn developers.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -21,14 +21,12 @@ classifiers = [
21
21
  "Topic :: Scientific/Engineering :: Artificial Intelligence",
22
22
  "Topic :: Scientific/Engineering :: Information Analysis",
23
23
  "Topic :: Software Development :: Libraries :: Python Modules",
24
- "Programming Language :: Python :: 3.8",
25
- "Programming Language :: Python :: 3.9",
26
24
  "Programming Language :: Python :: 3.10",
27
25
  "Programming Language :: Python :: 3.11",
28
26
  "Programming Language :: Python :: 3.12",
29
27
  "Programming Language :: Python :: 3.13",
30
28
  ]
31
- requires-python = ">=3.8,<3.14"
29
+ requires-python = ">=3.10,<3.14"
32
30
  dependencies = [
33
31
  "scikit-learn>=1.2.2",
34
32
  "typing-extensions>=4.1.0; python_full_version < '3.11'"
@@ -40,6 +38,7 @@ dev = [
40
38
  "pre-commit>=3.5.0",
41
39
  "pytest>=7.0.0",
42
40
  "ruff>=0.9.2",
41
+ "filelock>=3.20.1", # <-- ADD THIS LINE
43
42
  ]
44
43
 
45
44
  [project.urls]
@@ -1,2 +1,3 @@
1
1
  scikit-learn>=1.2.2
2
2
  typing-extensions>=4.1.0; python_version < "3.11"
3
+ filelock>=3.20.1
@@ -0,0 +1,9 @@
1
+ __version__ = "0.1.9"
2
+
3
+ from .linear_boost import LinearBoostClassifier
4
+ from .sefr import SEFR
5
+
6
+ __all__ = [
7
+ "LinearBoostClassifier",
8
+ "SEFR",
9
+ ]
@@ -863,6 +863,7 @@ class LinearBoostClassifier(_DenseAdaBoostClassifier):
863
863
  # Store validation data (original features for kernel computation)
864
864
  validation_data = (X_val_transformed, y_val, sample_weight_val)
865
865
  y = y_train
866
+ assert y is not None
866
867
  else:
867
868
  # For linear or approximate kernels, split after transformation
868
869
  n_samples = training_data.shape[0]
@@ -891,6 +892,7 @@ class LinearBoostClassifier(_DenseAdaBoostClassifier):
891
892
  # Store validation data for checking
892
893
  validation_data = (training_data_val, y_val, sample_weight_val)
893
894
  y = y_train
895
+ assert y is not None
894
896
  else:
895
897
  y_train = y
896
898