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.
Files changed (72) hide show
  1. {python_ldl-0.1.0 → python_ldl-0.1.1}/PKG-INFO +3 -1
  2. {python_ldl-0.1.0 → python_ldl-0.1.1}/README.md +1 -0
  3. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_duo_ldl.py +2 -2
  4. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_dpa.py +1 -1
  5. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_lrldl.py +2 -2
  6. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_rbm.c +8215 -6644
  7. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_specialized_algorithms.py +4 -4
  8. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_tree.c +25934 -21458
  9. {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/PKG-INFO +3 -1
  10. {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/requires.txt +1 -0
  11. {python_ldl-0.1.0 → python_ldl-0.1.1}/setup.py +2 -1
  12. {python_ldl-0.1.0 → python_ldl-0.1.1}/LICENSE +0 -0
  13. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/__init__.py +0 -0
  14. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/__init__.py +0 -0
  15. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_algorithm_adaptation.py +0 -0
  16. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_bp.py +0 -0
  17. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_classifier.py +0 -0
  18. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_cpnn.py +0 -0
  19. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_delta_ldl.py +0 -0
  20. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ensemble.py +0 -0
  21. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_incomplete.py +0 -0
  22. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_label_enhancement.py +0 -0
  23. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_da.py +0 -0
  24. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_dpm.py +0 -0
  25. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_dvs.py +0 -0
  26. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_hvlc.py +0 -0
  27. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_lclr.py +0 -0
  28. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_lrr.py +0 -0
  29. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldl_scl.py +0 -0
  30. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldlf.py +0 -0
  31. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldllc.py +0 -0
  32. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ldlsf.py +0 -0
  33. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_problem_transformation.py +0 -0
  34. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_rknn_ldl.py +0 -0
  35. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_s_ldl.py +0 -0
  36. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_snefy_ldl.py +0 -0
  37. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/_ssg_ldl.py +0 -0
  38. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/base/__init__.py +0 -0
  39. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/base/_lazy.py +0 -0
  40. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/base/deep.py +0 -0
  41. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/base/shallow.py +0 -0
  42. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/callbacks.py +0 -0
  43. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/loss_function_engineering.py +0 -0
  44. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/optimizers.py +0 -0
  45. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/algorithms/utils.py +0 -0
  46. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/applications/__init__.py +0 -0
  47. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/applications/emphasis_selection.py +0 -0
  48. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/applications/facial_emotion_recognition.py +0 -0
  49. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/applications/lesion_counting.py +0 -0
  50. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/experiment.py +0 -0
  51. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/AA_BP_fit.m +0 -0
  52. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/AA_BP_predict.m +0 -0
  53. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/AA_KNN.m +0 -0
  54. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/BFGS_Process.m +0 -0
  55. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/PT_Bayes_fit.m +0 -0
  56. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/PT_Bayes_predict.m +0 -0
  57. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/PT_SVM_fit.m +0 -0
  58. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/PT_SVM_predict.m +0 -0
  59. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/SA_BFGS_fit.m +0 -0
  60. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/SA_BFGS_predict.m +0 -0
  61. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/SA_IIS_fit.m +0 -0
  62. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/SA_IIS_predict.m +0 -0
  63. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/matlab_algorithms/__init__.py +0 -0
  64. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/metrics.py +0 -0
  65. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyldl/utils.py +0 -0
  66. {python_ldl-0.1.0 → python_ldl-0.1.1}/pyproject.toml +0 -0
  67. {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/SOURCES.txt +0 -0
  68. {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/dependency_links.txt +0 -0
  69. {python_ldl-0.1.0 → python_ldl-0.1.1}/python_ldl.egg-info/top_level.txt +0 -0
  70. {python_ldl-0.1.0 → python_ldl-0.1.1}/setup.cfg +0 -0
  71. {python_ldl-0.1.0 → python_ldl-0.1.1}/tests/__init__.py +0 -0
  72. {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.0
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
@@ -187,6 +187,7 @@ numba
187
187
  numpy
188
188
  qpsolvers
189
189
  quadprog
190
+ requests
190
191
  scikit-fuzzy
191
192
  scikit-learn
192
193
  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 normalize
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 normalize(D_pred)
33
+ return proj(D_pred)
@@ -36,4 +36,4 @@ class LDL_DPA(BaseBFGS, BaseDeepLDL):
36
36
 
37
37
  def _before_train(self):
38
38
  from scipy.stats import rankdata
39
- self._R = ops.cast(rankdata(self._D, axis=1), dtype="float32")
39
+ self._R = ops.cast(rankdata(self._to_numpy(self._D), axis=1), dtype="float32")
@@ -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, random_state=None, **kwargs):
15
- super().__init__(random_state, **kwargs)
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