Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SomeoneSerge/936a5f103de3176707bc49702ce5d140 to your computer and use it in GitHub Desktop.
Save SomeoneSerge/936a5f103de3176707bc49702ce5d140 to your computer and use it in GitHub Desktop.
nix log /nix/store/jrs8lbd4k43cdja9bgsahw1lkgj88pz5-python3.11-skorch-0.14.0.drv
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/mwnr9bl32r062ckgn097w5sfyacf8p7q-skorch-0.14.0.tar.gz
source root is skorch-0.14.0
setting SOURCE_DATE_EPOCH to timestamp 1687793238 of file skorch-0.14.0/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing setuptoolsBuildPhase
/nix/store/lm2fgfw9iqs5wy45g2nc4anbfm2zz5zf-python3.11-setuptools-67.4.0/lib/python3.11/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/skorch
copying skorch/classifier.py -> build/lib/skorch
copying skorch/_doctor.py -> build/lib/skorch
copying skorch/history.py -> build/lib/skorch
copying skorch/__init__.py -> build/lib/skorch
copying skorch/setter.py -> build/lib/skorch
copying skorch/_version.py -> build/lib/skorch
copying skorch/probabilistic.py -> build/lib/skorch
copying skorch/toy.py -> build/lib/skorch
copying skorch/cli.py -> build/lib/skorch
copying skorch/exceptions.py -> build/lib/skorch
copying skorch/scoring.py -> build/lib/skorch
copying skorch/helper.py -> build/lib/skorch
copying skorch/hf.py -> build/lib/skorch
copying skorch/regressor.py -> build/lib/skorch
copying skorch/utils.py -> build/lib/skorch
copying skorch/dataset.py -> build/lib/skorch
copying skorch/net.py -> build/lib/skorch
creating build/lib/skorch/llm
copying skorch/llm/classifier.py -> build/lib/skorch/llm
copying skorch/llm/prompts.py -> build/lib/skorch/llm
copying skorch/llm/__init__.py -> build/lib/skorch/llm
creating build/lib/skorch/callbacks
copying skorch/callbacks/__init__.py -> build/lib/skorch/callbacks
copying skorch/callbacks/regularization.py -> build/lib/skorch/callbacks
copying skorch/callbacks/base.py -> build/lib/skorch/callbacks
copying skorch/callbacks/training.py -> build/lib/skorch/callbacks
copying skorch/callbacks/logging.py -> build/lib/skorch/callbacks
copying skorch/callbacks/lr_scheduler.py -> build/lib/skorch/callbacks
copying skorch/callbacks/scoring.py -> build/lib/skorch/callbacks
creating build/lib/skorch/tests
copying skorch/tests/test_utils.py -> build/lib/skorch/tests
copying skorch/tests/test_dataset.py -> build/lib/skorch/tests
copying skorch/tests/test_doctor.py -> build/lib/skorch/tests
copying skorch/tests/test_regressor.py -> build/lib/skorch/tests
copying skorch/tests/__init__.py -> build/lib/skorch/tests
copying skorch/tests/test_setter.py -> build/lib/skorch/tests
copying skorch/tests/test_net.py -> build/lib/skorch/tests
copying skorch/tests/test_scoring.py -> build/lib/skorch/tests
copying skorch/tests/test_helper.py -> build/lib/skorch/tests
copying skorch/tests/test_probabilistic.py -> build/lib/skorch/tests
copying skorch/tests/test_history.py -> build/lib/skorch/tests
copying skorch/tests/test_classifier.py -> build/lib/skorch/tests
copying skorch/tests/test_cli.py -> build/lib/skorch/tests
copying skorch/tests/test_hf.py -> build/lib/skorch/tests
copying skorch/tests/conftest.py -> build/lib/skorch/tests
copying skorch/tests/test_toy.py -> build/lib/skorch/tests
running egg_info
writing skorch.egg-info/PKG-INFO
writing dependency_links to skorch.egg-info/dependency_links.txt
writing requirements to skorch.egg-info/requires.txt
writing top-level names to skorch.egg-info/top_level.txt
reading manifest file 'skorch.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'skorch.egg-info/SOURCES.txt'
/nix/store/lm2fgfw9iqs5wy45g2nc4anbfm2zz5zf-python3.11-setuptools-67.4.0/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/classifier.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/_doctor.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/history.py -> build/bdist.linux-x86_64/wheel/skorch
creating build/bdist.linux-x86_64/wheel/skorch/llm
copying build/lib/skorch/llm/classifier.py -> build/bdist.linux-x86_64/wheel/skorch/llm
copying build/lib/skorch/llm/prompts.py -> build/bdist.linux-x86_64/wheel/skorch/llm
copying build/lib/skorch/llm/__init__.py -> build/bdist.linux-x86_64/wheel/skorch/llm
creating build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/__init__.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/regularization.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/base.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/training.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/logging.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/lr_scheduler.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/callbacks/scoring.py -> build/bdist.linux-x86_64/wheel/skorch/callbacks
copying build/lib/skorch/__init__.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/setter.py -> build/bdist.linux-x86_64/wheel/skorch
creating build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_utils.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_dataset.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_doctor.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_regressor.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/__init__.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_setter.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_net.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_scoring.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_helper.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_probabilistic.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_history.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_classifier.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_cli.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_hf.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/conftest.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/tests/test_toy.py -> build/bdist.linux-x86_64/wheel/skorch/tests
copying build/lib/skorch/_version.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/probabilistic.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/toy.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/cli.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/exceptions.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/scoring.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/helper.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/hf.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/regressor.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/utils.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/dataset.py -> build/bdist.linux-x86_64/wheel/skorch
copying build/lib/skorch/net.py -> build/bdist.linux-x86_64/wheel/skorch
running install_egg_info
Copying skorch.egg-info to build/bdist.linux-x86_64/wheel/skorch-0.14.0-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/skorch-0.14.0.dist-info/WHEEL
creating 'dist/skorch-0.14.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'skorch/__init__.py'
adding 'skorch/_doctor.py'
adding 'skorch/_version.py'
adding 'skorch/classifier.py'
adding 'skorch/cli.py'
adding 'skorch/dataset.py'
adding 'skorch/exceptions.py'
adding 'skorch/helper.py'
adding 'skorch/hf.py'
adding 'skorch/history.py'
adding 'skorch/net.py'
adding 'skorch/probabilistic.py'
adding 'skorch/regressor.py'
adding 'skorch/scoring.py'
adding 'skorch/setter.py'
adding 'skorch/toy.py'
adding 'skorch/utils.py'
adding 'skorch/callbacks/__init__.py'
adding 'skorch/callbacks/base.py'
adding 'skorch/callbacks/logging.py'
adding 'skorch/callbacks/lr_scheduler.py'
adding 'skorch/callbacks/regularization.py'
adding 'skorch/callbacks/scoring.py'
adding 'skorch/callbacks/training.py'
adding 'skorch/llm/__init__.py'
adding 'skorch/llm/classifier.py'
adding 'skorch/llm/prompts.py'
adding 'skorch/tests/__init__.py'
adding 'skorch/tests/conftest.py'
adding 'skorch/tests/test_classifier.py'
adding 'skorch/tests/test_cli.py'
adding 'skorch/tests/test_dataset.py'
adding 'skorch/tests/test_doctor.py'
adding 'skorch/tests/test_helper.py'
adding 'skorch/tests/test_hf.py'
adding 'skorch/tests/test_history.py'
adding 'skorch/tests/test_net.py'
adding 'skorch/tests/test_probabilistic.py'
adding 'skorch/tests/test_regressor.py'
adding 'skorch/tests/test_scoring.py'
adding 'skorch/tests/test_setter.py'
adding 'skorch/tests/test_toy.py'
adding 'skorch/tests/test_utils.py'
adding 'skorch-0.14.0.dist-info/LICENSE'
adding 'skorch-0.14.0.dist-info/METADATA'
adding 'skorch-0.14.0.dist-info/WHEEL'
adding 'skorch-0.14.0.dist-info/top_level.txt'
adding 'skorch-0.14.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pipInstallPhase
/build/skorch-0.14.0/dist /build/skorch-0.14.0
Processing ./skorch-0.14.0-py3-none-any.whl
Requirement already satisfied: numpy>=1.13.3 in /nix/store/1hwymyhafpll583mli5avr6qnlas4747-python3.11-numpy-1.24.2/lib/python3.11/site-packages (from skorch==0.14.0) (1.24.2)
Requirement already satisfied: scikit-learn>=0.22.0 in /nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages (from skorch==0.14.0) (1.2.1)
Requirement already satisfied: scipy>=1.1.0 in /nix/store/64n0wgp2mjwmgg2hm50zg889hpaizp8y-python3.11-scipy-1.10.1/lib/python3.11/site-packages (from skorch==0.14.0) (1.10.1)
Requirement already satisfied: tabulate>=0.7.7 in /nix/store/ajffg24g1g12qpn3y2qa2jngb9yzwjid-python3.11-tabulate-0.9.0/lib/python3.11/site-packages (from skorch==0.14.0) (0.9.0)
Requirement already satisfied: tqdm>=4.14.0 in /nix/store/djvavwp3f4af5f3flfrgvc983hghj6vh-python3.11-tqdm-4.64.1/lib/python3.11/site-packages (from skorch==0.14.0) (4.64.1)
Requirement already satisfied: joblib>=1.1.1 in /nix/store/rq2am5hxxzrjqzz2hck0gkj9mfjvmc1x-python3.11-joblib-1.2.0/lib/python3.11/site-packages (from scikit-learn>=0.22.0->skorch==0.14.0) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /nix/store/b646q0y6g99qbs4fc0spb8i5xllrfzvd-python3.11-threadpoolctl-3.1.0/lib/python3.11/site-packages (from scikit-learn>=0.22.0->skorch==0.14.0) (3.1.0)
Installing collected packages: skorch
Successfully installed skorch-0.14.0
/build/skorch-0.14.0
Finished executing pipInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/7vdhclillilnz3y9ww2417pdnmxxhjm5-python3.11-skorch-0.14.0
checking for references to /build/ in /nix/store/7vdhclillilnz3y9ww2417pdnmxxhjm5-python3.11-skorch-0.14.0...
patching script interpreter paths in /nix/store/7vdhclillilnz3y9ww2417pdnmxxhjm5-python3.11-skorch-0.14.0
stripping (with command strip and flags -S -p) in /nix/store/7vdhclillilnz3y9ww2417pdnmxxhjm5-python3.11-skorch-0.14.0/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/k8vbjz02ifw0w64vwlm5m39d384z8bd5-python3.11-skorch-0.14.0-dist
checking for references to /build/ in /nix/store/k8vbjz02ifw0w64vwlm5m39d384z8bd5-python3.11-skorch-0.14.0-dist...
patching script interpreter paths in /nix/store/k8vbjz02ifw0w64vwlm5m39d384z8bd5-python3.11-skorch-0.14.0-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: skorch
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.11.4, pytest-7.2.1, pluggy-1.0.0
rootdir: /build/skorch-0.14.0, configfile: setup.cfg
plugins: flaky-3.7.0
collecting ...  collecting 220 items  collecting 738 items  collected 930 items / 3 deselected / 1 skipped / 927 selected 
skorch/tests/test_classifier.py ........................................ [ 4%]
 [ 4%]
skorch/tests/test_cli.py ssssssssssssssssssssssssssssssssssssssssss [ 8%]
skorch/tests/test_dataset.py .......................s................... [ 13%]
s........................................................ [ 19%]
skorch/tests/test_doctor.py ...................sssssssssssssssssss.... [ 24%]
skorch/tests/test_helper.py ............................................ [ 28%]
........................................................................ [ 36%]
........................................................................ [ 44%]
....... [ 45%]
skorch/tests/test_history.py ........................................... [ 49%]
.............ss......s........... [ 53%]
skorch/tests/test_net.py .......................s......sssss............ [ 58%]
...........ssss..........................................ss...........s. [ 66%]
.................s.x.....................s.............................. [ 74%]
..................................................s..................... [ 81%]
..F [ 82%]
skorch/tests/test_regressor.py .............. [ 83%]
skorch/tests/test_scoring.py ................ [ 85%]
skorch/tests/test_setter.py ...... [ 85%]
skorch/tests/test_toy.py ............. [ 87%]
skorch/tests/test_utils.py s.........s.s........s.sss..sss..sss..sss..ss [ 92%]
s....................................................................... [100%]
=================================== FAILURES ===================================
______________ TestTorchCompile.test_fit_and_predict_with_compile ______________
self = <skorch.tests.test_net.TestTorchCompile object at 0x7ffd9d6fbe10>
net_cls = <class 'skorch.classifier.NeuralNetClassifier'>
module_cls = functools.partial(<class 'skorch.toy.MLPModule'>, output_nonlin=Softmax(dim=-1), input_units=20, hidden_units=10, num_hidden=2, dropout=0.5)
data = (array([[-0.9658346 , -2.1890705 , 0.16985609, ..., -0.89645284,
0.3759244 , -1.0849651 ],
[-0.454767..., 0, 1,
1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0,
0, 1, 1, 0, 1, 0, 1, 0, 1, 0]))
def test_fit_and_predict_with_compile(self, net_cls, module_cls, data):
if not hasattr(torch, 'compile'):
pytest.skip(reason="torch.compile not available")
# use real torch.compile, not mocked, can be a bit slow
X, y = data
> net = net_cls(module_cls, max_epochs=1, compile=True).initialize()
skorch/tests/test_net.py:4116:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
skorch/net.py:886: in initialize
self._initialize_module()
skorch/net.py:737: in _initialize_module
module = self.torch_compile(module, name=name)
skorch/net.py:790: in torch_compile
module_compiled = torch.compile(module, **params)
/nix/store/fbrhsbafgfpxwj1p4vaj7ic72f5ffiif-python3.11-torch-2.0.1/lib/python3.11/site-packages/torch/__init__.py:1441: in compile
return torch._dynamo.optimize(backend=backend, nopython=fullgraph, dynamic=dynamic, disable=disable)(model)
/nix/store/fbrhsbafgfpxwj1p4vaj7ic72f5ffiif-python3.11-torch-2.0.1/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py:413: in optimize
check_if_dynamo_supported()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def check_if_dynamo_supported():
if sys.platform == "win32":
raise RuntimeError("Windows not yet supported for torch.compile")
if sys.version_info >= (3, 11):
> raise RuntimeError("Python 3.11+ not yet supported for torch.compile")
E RuntimeError: Python 3.11+ not yet supported for torch.compile
/nix/store/fbrhsbafgfpxwj1p4vaj7ic72f5ffiif-python3.11-torch-2.0.1/lib/python3.11/site-packages/torch/_dynamo/eval_frame.py:377: RuntimeError
=============================== warnings summary ===============================
skorch/dataset.py:109
/build/skorch-0.14.0/skorch/dataset.py:109: DeprecationWarning: invalid escape sequence '\s'
"""General dataset wrapper that can be used in conjunction with
skorch/dataset.py:172
/build/skorch-0.14.0/skorch/dataset.py:172: DeprecationWarning: invalid escape sequence '\s'
"""Additional transformations on ``X`` and ``y``.
skorch/tests/test_classifier.py::TestNeuralNetBinaryClassifier::test_grid_search_with_roc_auc
skorch/tests/test_classifier.py::TestNeuralNetBinaryClassifier::test_grid_search_with_roc_auc
skorch/tests/test_classifier.py::TestNeuralNetBinaryClassifier::test_grid_search_with_roc_auc
skorch/tests/test_classifier.py::TestNeuralNetBinaryClassifier::test_grid_search_with_roc_auc
skorch/tests/test_classifier.py::TestNeuralNetBinaryClassifier::test_grid_search_with_roc_auc
skorch/tests/test_classifier.py::TestNeuralNetBinaryClassifier::test_grid_search_with_roc_auc
/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/model_selection/_validation.py:778: UserWarning: Scoring failed. The score on this train-test partition for these parameters will be set to nan. Details:
Traceback (most recent call last):
File "/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/metrics/_scorer.py", line 373, in _score
y_pred = method_caller(clf, "decision_function", X)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/metrics/_scorer.py", line 73, in _cached_call
return getattr(estimator, method)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NeuralNetBinaryClassifier' object has no attribute 'decision_function'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/model_selection/_validation.py", line 767, in _score
scores = scorer(estimator, X_test, y_test)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/metrics/_scorer.py", line 234, in __call__
return self._score(
^^^^^^^^^^^^
File "/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/metrics/_scorer.py", line 390, in _score
y_pred = self._select_proba_binary(y_pred, clf.classes_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/metrics/_scorer.py", line 190, in _select_proba_binary
col_idx = np.flatnonzero(classes == pos_label)[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: index 0 is out of bounds for axis 0 with size 0
warnings.warn(
skorch/tests/test_classifier.py::TestNeuralNetBinaryClassifier::test_grid_search_with_roc_auc
/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/model_selection/_search.py:952: UserWarning: One or more of the test scores are non-finite: [nan nan]
warnings.warn(
skorch/tests/test_net.py: 10 warnings
/build/skorch-0.14.0/skorch/callbacks/training.py:201: UserWarning: Checkpoint monitor parameter is set to 'epoch_3_scorer' and the history contains 'epoch_3_scorer_best'. Perhaps you meant to set the parameter to 'epoch_3_scorer_best'
warnings.warn(
skorch/tests/test_net.py::TestNeuralNet::test_reinitializing_module_optimizer_message[kwargs3-Re-initializing criterion because the following parameters were re-set: criterion__reduce, criterion__size_average.\nRe-initializing optimizer.]
skorch/tests/test_net.py::TestNeuralNet::test_set_params_on_custom_criterion_triggers_reinit_of_optimizer
skorch/tests/test_net.py::TestNeuralNet::test_set_params_on_custom_criterion_with_default_criterion_params_msg
/nix/store/fbrhsbafgfpxwj1p4vaj7ic72f5ffiif-python3.11-torch-2.0.1/lib/python3.11/site-packages/torch/nn/_reduction.py:42: UserWarning: size_average and reduce args will be deprecated, please use reduction='none' instead.
warnings.warn(warning.format(ret))
skorch/tests/test_net.py::TestNeuralNet::test_reinitializing_module_optimizer_message[kwargs4-Re-initializing module because the following parameters were re-set: module__input_units.\nRe-initializing criterion.\nRe-initializing optimizer.]
skorch/tests/test_net.py::TestNeuralNet::test_set_params_on_custom_criterion_triggers_reinit_of_optimizer
/nix/store/fbrhsbafgfpxwj1p4vaj7ic72f5ffiif-python3.11-torch-2.0.1/lib/python3.11/site-packages/torch/nn/_reduction.py:42: UserWarning: size_average and reduce args will be deprecated, please use reduction='mean' instead.
warnings.warn(warning.format(ret))
skorch/tests/test_net.py::TestNeuralNet::test_custom_criterion_attribute_name_predict_works
skorch/tests/test_net.py::TestNeuralNet::test_predict_nonlinearity_is_identity_with_multiple_criteria
/nix/store/fl5xmpkij4vi9h0gxqd3as97k4f5gviy-python3.11-scikit-learn-1.2.1/lib/python3.11/site-packages/sklearn/model_selection/_split.py:700: UserWarning: The least populated class in y has only 3 members, which is less than n_splits=5.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
===Flaky Test Report===
test_fit_lbfgs_optimizer failed (4 runs remaining out of 5).
<class 'AssertionError'>
assert 7.572632312774658 < 1.0
[<TracebackEntry /build/skorch-0.14.0/skorch/tests/test_net.py:2459>]
test_fit_lbfgs_optimizer failed (3 runs remaining out of 5).
<class 'AssertionError'>
assert 7.572632312774658 < 1.0
[<TracebackEntry /build/skorch-0.14.0/skorch/tests/test_net.py:2459>]
test_fit_lbfgs_optimizer failed (2 runs remaining out of 5).
<class 'AssertionError'>
assert 7.572632312774658 < 1.0
[<TracebackEntry /build/skorch-0.14.0/skorch/tests/test_net.py:2459>]
test_fit_lbfgs_optimizer passed 1 out of the required 1 times. Success!
===End Flaky Test Report===
=========================== short test summary info ============================
FAILED skorch/tests/test_net.py::TestTorchCompile::test_fit_and_predict_with_compile - RuntimeError: Python 3.11+ not yet supported for torch.compile
= 1 failed, 824 passed, 102 skipped, 3 deselected, 1 xfailed, 26 warnings in 202.72s (0:03:22) =
/nix/store/7aprjn0yf6p06krg4087sxvilfp4c8yy-stdenv-linux/setup: line 1596: pop_var_context: head of shell_variables not a function context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment