python-ldl 0.1.0__tar.gz → 0.1.1__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.
- {python_ldl-0.1.0 → python_ldl-0.1.1}/PKG-INFO +3 -1
- {python_ldl-0.1.0 → python_ldl-0.1.1}/README.md +1 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_duo_ldl.py +2 -2
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_dpa.py +1 -1
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_lrldl.py +2 -2
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_rbm.c +8215 -6644
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_specialized_algorithms.py +4 -4
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_tree.c +25934 -21458
- {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/PKG-INFO +3 -1
- {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/requires.txt +1 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/setup.py +2 -1
- {python_ldl-0.1.0 → python_ldl-0.1.1}/LICENSE +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/__init__.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/__init__.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_algorithm_adaptation.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_bp.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_classifier.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_cpnn.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_delta_ldl.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ensemble.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_incomplete.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_label_enhancement.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_da.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_dpm.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_dvs.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_hvlc.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_lclr.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_lrr.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_scl.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldlf.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldllc.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldlsf.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_problem_transformation.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_rknn_ldl.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_s_ldl.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_snefy_ldl.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ssg_ldl.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/base/__init__.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/base/_lazy.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/base/deep.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/base/shallow.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/callbacks.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/loss_function_engineering.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/optimizers.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/utils.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/applications/__init__.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/applications/emphasis_selection.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/applications/facial_emotion_recognition.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/applications/lesion_counting.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/experiment.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/AA_BP_fit.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/AA_BP_predict.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/AA_KNN.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/BFGS_Process.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/PT_Bayes_fit.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/PT_Bayes_predict.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/PT_SVM_fit.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/PT_SVM_predict.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/SA_BFGS_fit.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/SA_BFGS_predict.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/SA_IIS_fit.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/SA_IIS_predict.m +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/__init__.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/metrics.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/utils.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/pyproject.toml +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/SOURCES.txt +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/dependency_links.txt +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/top_level.txt +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/setup.cfg +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/tests/__init__.py +0 -0
- {python_ldl-0.1.0 → python_ldl-0.1.1}/tests/test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-ldl
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Label distribution learning (LDL) and label enhancement (LE) toolkit implemented in python.
|
|
5
5
|
Home-page: https://github.com/SpriteMisaka/PyLDL
|
|
6
6
|
Author: SpriteMisaka
|
|
@@ -17,6 +17,7 @@ Requires-Dist: numba
|
|
|
17
17
|
Requires-Dist: numpy
|
|
18
18
|
Requires-Dist: qpsolvers
|
|
19
19
|
Requires-Dist: quadprog
|
|
20
|
+
Requires-Dist: requests
|
|
20
21
|
Requires-Dist: scikit-fuzzy
|
|
21
22
|
Requires-Dist: scikit-learn
|
|
22
23
|
Requires-Dist: scipy
|
|
@@ -226,6 +227,7 @@ numba
|
|
|
226
227
|
numpy
|
|
227
228
|
qpsolvers
|
|
228
229
|
quadprog
|
|
230
|
+
requests
|
|
229
231
|
scikit-fuzzy
|
|
230
232
|
scikit-learn
|
|
231
233
|
scipy
|
|
@@ -25,9 +25,9 @@ class Duo_LDL(BaseAdam, BaseDeepLDL):
|
|
|
25
25
|
, axis=1)
|
|
26
26
|
|
|
27
27
|
def predict(self, X):
|
|
28
|
-
from pyldl.algorithms.utils import
|
|
28
|
+
from pyldl.algorithms.utils import proj
|
|
29
29
|
C_pred = self._call(X)
|
|
30
30
|
shape = (X.shape[0], self._n_outputs - 1, self._n_outputs)
|
|
31
31
|
C_pred_reshaped = ops.transpose(ops.reshape(C_pred, shape), (0, 2, 1))
|
|
32
32
|
D_pred = self._to_numpy((ops.sum(C_pred_reshaped, axis=2) + 1) / self._n_outputs)
|
|
33
|
-
return
|
|
33
|
+
return proj(D_pred)
|
|
@@ -11,8 +11,8 @@ class _LRLDL(BaseADMM, BaseLDL):
|
|
|
11
11
|
:term:`ADMM` is used as optimization algorithm.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
def __init__(self, mode='threshold', param=None, alpha=1e-3, beta=1e-3,
|
|
15
|
-
super().__init__(
|
|
14
|
+
def __init__(self, mode='threshold', param=None, alpha=1e-3, beta=1e-3, **kwargs):
|
|
15
|
+
super().__init__(**kwargs)
|
|
16
16
|
self._mode = mode
|
|
17
17
|
self._param = param
|
|
18
18
|
self._alpha = alpha
|