~ruther/guix-local

e4cd1b9d8f7402a9d16aaa937795fcbd84577065 — Sharlatan Hellseher 1 year, 2 months ago 897d8a0
gnu: python-pgmpy: Skip more tests, run in parallel.

* gnu/packages/statistics.scm (python-pgmpy) [arguments] <test-flags>:
Skip 4 more tests, run in up to 8 threads to improve performance,
supported upstream.
[native-inputs]: Add python-pytest-xdist.

Change-Id: I7071114299dc2dc4e52e79a36fcda0d12892653f
1 files changed, 23 insertions(+), 9 deletions(-)

M gnu/packages/statistics.scm
M gnu/packages/statistics.scm => gnu/packages/statistics.scm +23 -9
@@ 3328,11 3328,24 @@ statistical summary in arrays and enumerables.")
         "1hg6wrg3jcac71zn4gknni1wrn38wa86ka3sgp2bndz59mx6sr2s"))))
    (build-system pyproject-build-system)
    (arguments
     (list #:test-flags
           #~(list "-k" (string-append
                         "not test_pillai"
                         " and not test_estimate_with_cache_no_llm_calls"
                         " and not test_estimate_with_orientations"))))
     (list
      #:test-flags
      #~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))
              "-k" (string-join
                    ;; AssertionError: False is not true
                    (list "not test_query_evidence"
                          ;; ValueError: Experimental support for categorical
                          ;; data is not implemented for current tree method
                          ;; yet.
                          "test_pillai"
                          "test_estimate_with_cache_no_llm_calls"
                          "test_estimate_with_orientations"
                          ;; _flapack.error: (liwork>=max(1,10*n)||liwork==-1)
                          ;; failed for 10th keyword liwork: dsyevr:liwork=1
                          "test_estimate"
                          "test_score_bnlearn"
                          "test_score_manual")
                    " and not "))))
    (propagated-inputs (list python-daft
                             python-joblib
                             python-networkx


@@ 3348,13 3361,14 @@ statistical summary in arrays and enumerables.")
    (native-inputs (list python-mock
                         python-pyro-ppl
                         python-pytest
                         python-pytest-xdist
                         python-setuptools
                         python-wheel
                         python-xgboost))
    (home-page "https://github.com/pgmpy/pgmpy")
    (synopsis "Probabilistic Graphical Models library")
    (description "This package provides a library for Probabilistic
Graphical Models.  It can be used for learning (Structure and Parameter),
inference (Probabilistic and Causal), and simulations in Bayesian
Networks.")
    (description
     "This package provides a library for Probabilistic Graphical Models.  It
can be used for learning (Structure and Parameter), inference (Probabilistic
and Causal), and simulations in Bayesian Networks.")
    (license license:expat)))