Commit Graph

71 Commits

Author SHA1 Message Date
Alejandro Moreo Fernandez b29966797a Fix 10 correctness bugs and clean up warnings/logging in core library
Correctness:
- OneVsAllAggregative.aggregation_fit: fix undefined variable and call to
  the nonexistent aggregate_fit (should be aggregation_fit)
- solve_adjustment: stop mutating the caller's fitted arrays in place for
  method='invariant-ratio'
- LabelledCollection.join(): fix classes always being None due to
  ndarray.sort() returning None; now unions each collection's own classes_
  so a class absent from a particular join is kept at zero prevalence
- Rename the duplicate newSVMKLD (nkld variant) to newSVMNKLD so both loss
  variants are reachable
- EMQ/DyS/DMy: resolve n_jobs via qp._get_njobs() like the other methods,
  so qp.environ['N_JOBS'] is respected
- AggregativeMedianEstimator: drop backend='threading' (global np.random
  state mutated via temp_seed is not thread-safe); use the safe process
  based default instead
- NeuralClassifier: default device now 'cpu', matching its own docstring
- ConfidenceEllipseSimplex: narrow bare except to np.linalg.LinAlgError
- SVMperf: stop merging stderr into stdout so failures report the actual
  subprocess error instead of crashing with AttributeError
- ConfidenceRegionABC: replace @lru_cache on bound methods (leaked every
  instance for the process lifetime) with per-instance caching

Style/quality:
- Replace print() with warnings.warn()/logging across aggregative.py,
  base.py, meta.py, model_selection.py, classification/neural.py,
  method/_neural.py, classification/svmperf.py, data/reader.py,
  data/datasets.py; also fixes a `raise RuntimeWarning(...)` in EMQ that
  would have crashed instead of warning
- Remove dead duplicate class MedianEstimator2 in meta.py
- Rename misleading _compute_tpr(TP, FP) parameter to FN, matching what
  callers actually pass
- Replace argparse.ArgumentError misuse with ValueError
- Remove commented-out dead code in protocol.py
- _lequa.py: fix CSV-parse failure raising an unrelated UnboundLocalError
  instead of a clear ValueError

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 18:49:44 +02:00
Alejandro Moreo f6c822ca8f improving docs and new example for image datasets 2026-07-03 17:07:02 +02:00
Alejandro Moreo 4916919833 added dataset for images 2026-07-02 18:21:35 +02:00
Alejandro Moreo e44056d860 integrating bayesian methods and related functionality, plus unit test refactor 2026-06-05 14:08:06 +02:00
Andrea Esuli c1ae85950a
Fix regex for whitespace delimiter in CSV reads 2026-02-23 09:29:45 +01:00
Lorenzo Volpi bd59b5d190 fixed deprecated numpy call to in1d 2026-01-15 18:14:50 +01:00
Alejandro Moreo Fernandez beb57e0fcf minor edits 2025-10-03 17:29:19 +02:00
Alejandro Moreo Fernandez 8adcc33c59 merged 2025-10-03 11:00:06 +02:00
Alejandro Moreo Fernandez 265fcc2d92 tests passed; working on examples 2025-07-13 14:27:14 +02:00
Alejandro Moreo Fernandez 4cfb97c165 merging with office branch 2025-06-15 11:59:32 +02:00
Lorenzo Volpi 82fe293d3f fixed read_csv call for deprecation 2024-10-30 14:01:41 +01:00
Alejandro Moreo Fernandez 55c62a9dd2 adding name to datasets un fetch_UCIMulticlassDataset 2024-09-16 13:22:36 +02:00
Alejandro Moreo Fernandez e580e33b83 removing the warning supression in datasets 2024-08-22 18:11:47 +02:00
Alejandro Moreo Fernandez 13beb45274 import fix 2024-07-23 16:18:02 +02:00
Alejandro Moreo Fernandez 73d53820c2 import fix 2024-07-23 16:07:24 +02:00
Alejandro Moreo Fernandez 3f20aa06b1 adding standardization for the uci datasets, binary and multi, which is by default set to True 2024-07-23 15:46:05 +02:00
Alejandro Moreo Fernandez 89d02043be merging from pull request uci binary 2024-07-20 17:08:56 +02:00
Alejandro Moreo Fernandez 9a7e50f6c5 Merge branch 'devel' of github.com:lorenzovolpi/QuaPy into lorenzovolpi-devel 2024-07-20 16:55:05 +02:00
Lorenzo Volpi b543857c08 fix UCI multiclass features 2024-07-12 18:03:42 +02:00
Alejandro Moreo Fernandez 5da9fa0b09 adding lequa2024 datasets and example 4b 2024-07-12 09:41:40 +02:00
Alejandro Moreo Fernandez 2034845988 allow max_train_instances be deactivated in UCI multiclass datasets 2024-07-10 10:45:03 +02:00
Lorenzo Volpi 8237c121de UCI binary fetch function rewritten using UCI python api 2024-07-02 16:08:55 +02:00
Alejandro Moreo Fernandez 9ad36ef008 cleaning examples and adding basic example 2024-05-29 14:24:03 +02:00
Alejandro Moreo Fernandez 8517338765
Merge branch 'devel' into ucimulti 2024-04-29 17:58:06 +02:00
Lorenzo Volpi 19524f9aa8 ucimulti datasets removed, cleaning 2024-04-29 17:36:13 +02:00
Lorenzo Volpi 498fd8b050 datasets removed from ucimulti 2024-04-24 17:23:01 +02:00
Lorenzo Volpi f74b048e2d uci_multi dataset removed 2024-04-24 15:20:14 +02:00
Lorenzo Volpi ecfc175622 datasets removed, debug output added 2024-04-23 16:30:17 +02:00
Alejandro Moreo Fernandez e6f380dc5f update changelog 2024-04-18 09:38:33 +02:00
Alejandro Moreo Fernandez 561b672200 updated unit tests 2024-04-16 15:12:22 +02:00
Alejandro Moreo Fernandez e0b80167b9 added max_train_instances to fetch_UCIMulticlassLabelledCollection 2024-04-12 18:24:12 +02:00
Alejandro Moreo Fernandez 4abec6629b integrating more uci-multiclass datasets 2024-04-12 18:08:00 +02:00
Alejandro Moreo Fernandez 3095d7092c Merge branch 'ucimulti' of github.com:lorenzovolpi/QuaPy into lorenzovolpi-ucimulti 2024-04-12 13:36:38 +02:00
Alejandro Moreo Fernandez b53d417240 merged 2024-04-12 13:35:13 +02:00
Lorenzo Volpi f69fca32b4 Added UCI multiclass datasets; added filter for min instances per class to UCI multiclass datasets 2024-04-11 20:08:52 +02:00
Alejandro Moreo Fernandez 7705c92c8c fixing ifcb and documenting 2024-02-12 12:39:18 +01:00
Alejandro Moreo Fernandez a8230827e2 testing IFCB dataset 2024-02-08 14:33:22 +01:00
Alejandro Moreo Fernandez a97978b85d merged 2024-02-07 18:45:42 +01:00
Alejandro Moreo Fernandez fcc3f8a0d9 fixing sphinx doc 2024-02-07 18:31:34 +01:00
Alejandro Moreo Fernandez 76cf784844 added HDx and an example comparing HDy vs HDx 2023-11-08 15:34:17 +01:00
Alejandro Moreo Fernandez f18bce5f80 added dataset IFCB plankton 2023-11-08 11:07:47 +01:00
Alejandro Moreo Fernandez 3d4ffcea62 merging cross-val fix 2023-11-08 10:00:25 +01:00
Alejandro Moreo Fernandez e71f82105e doc fix for LeQua2022 2023-10-30 09:47:01 +01:00
Alejandro Moreo Fernandez b36fda5f10 adding plankton 2023-10-24 11:54:19 +02:00
Alejandro Moreo Fernandez ea71559722 revised 2023-10-18 17:50:46 +02:00
pglez82 ffab2131a8 fixing requests 2023-10-18 14:12:40 +02:00
pglez82 a9f10f77f4 fixing mistakes 2023-10-17 18:44:28 +02:00
pglez82 239549eb4d fixing mistakes 2023-10-17 18:44:02 +02:00
pglez82 72fd21471d fixing mistakes 2023-10-17 18:43:33 +02:00
pglez82 d7192430e4 uci multiclass datasets 2023-10-17 18:24:33 +02:00