Commit Graph

34 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 4916919833 added dataset for images 2026-07-02 18:21:35 +02:00
Alejandro Moreo Fernandez dbda25b09a Merge branch 'devel' of gitea-s2i2s.isti.cnr.it:moreo/QuaPy into devel 2025-10-06 10:09:24 +02:00
Alejandro Moreo Fernandez 99c1755c81 improving plots 2025-09-25 13:18:35 +02:00
Alejandro Moreo Fernandez f64654d6f0 plot update 2025-04-07 09:44:54 +02:00
Alejandro Moreo Fernandez acfb02c51f bugfix import and missing certifi in setup 2024-05-17 18:04:22 +02:00
Alejandro Moreo Fernandez 2df89c83e8 bugfix, method order set to method names if None is passed 2023-04-05 12:16:29 +02:00
Alejandro Moreo Fernandez bfaa5678d7 merged 2023-02-17 12:54:15 +01:00
Alejandro Moreo Fernandez 49fc486c53 preparing to merge 2023-02-14 17:00:50 +01:00
Alejandro Moreo Fernandez 3c48841480 Merge branch 'protocols' of github.com:HLT-ISTI/QuaPy into protocols 2023-01-18 19:46:31 +01:00
Alejandro Moreo Fernandez 09abcfc935 adding calibration methods from the abstension package to quapy 2023-01-18 19:46:19 +01:00
Pablo González 38aa42e4c5 fixing a bug 2023-01-18 16:44:56 +01:00
Pablo González 8da4b4c5f3 placing the legend 2023-01-18 16:12:38 +01:00
Pablo González 7ed7c9b2e9 changing the logaritmic scale 2023-01-18 16:05:40 +01:00
Alejandro Moreo Fernandez 1d4fa40f3e Merge branch 'protocols' of github.com:HLT-ISTI/QuaPy into protocols 2023-01-18 15:19:57 +01:00
Pablo González f10a3139d9 changes to plots again 2023-01-18 14:53:46 +01:00
Pablo González 50d886bffe testing log scale 2023-01-18 13:06:38 +01:00
Pablo González c888346fcf solving a bug in show_legend 2023-01-17 11:03:52 +01:00
Pablo González 7bcf8b24e9 fixing bug 2023-01-16 17:17:02 +01:00
Pablo González 948f63fade updating plot to center it better 2023-01-16 17:00:24 +01:00
Alejandro Moreo Fernandez 8b0b9f522a some bugfixes, unittest and minor changes 2023-01-16 13:51:29 +01:00
Alejandro Moreo Fernandez cbe3f410ed updating diagonal plot legend 2022-05-20 11:52:59 +02:00
Alejandro Moreo Fernandez 7468519495 testing baselines for lequa 2021-11-24 11:20:42 +01:00
Alejandro Moreo Fernandez 1a3755eb58 adding documentation, adding brokenbar plots, merging plots from tweetsent with density 2021-11-22 18:10:48 +01:00
Alejandro Moreo Fernandez f28a84242f adding more colors to plots 2021-06-16 09:38:13 +02:00
Alejandro Moreo Fernandez 491ac56877 adding more colors to plots 2021-06-15 10:10:19 +02:00
Alejandro Moreo Fernandez e8c3e29911 svm-perf leaks model, fixing... 2021-06-15 07:49:16 +02:00
Alejandro Moreo Fernandez 3491ed7d72 plot fix 2021-03-11 09:27:14 +01:00
Alejandro Moreo Fernandez 775417c8eb bugfix in PACC 2021-02-18 13:48:41 +01:00
Alejandro Moreo Fernandez 1d89301089 more uci datasets, plots improved (higher fonts), and evaluation script that shows numerical results in command line 2021-01-27 22:49:54 +01:00
Alejandro Moreo Fernandez e609c262b4 parallel functionality added to quapy in order to allow for multiprocess parallelization (and not threading) handling quapy's environment variables 2021-01-27 09:54:41 +01:00
Alejandro Moreo Fernandez 5e64d2588a import fixes 2021-01-15 18:32:32 +01:00
Alejandro Moreo Fernandez 41347b50f9 cleaning and adding some uci datasets 2021-01-11 12:55:06 +01:00
Alejandro Moreo Fernandez d1b449d2e9 plot functionality added 2021-01-07 17:58:48 +01:00