File size: 39,880 Bytes
dee9fba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 | Latest changes
==============
In development
--------------
- Try to cast ``n_jobs`` to int in parallel and raise an error if
it fails. This means that ``n_jobs=2.3`` will now result in
``effective_n_jobs=2`` instead of failing.
https://github.com/joblib/joblib/pull/1539
- Ensure that errors in the task generator given to Parallel's call
are raised in the results consumming thread.
https://github.com/joblib/joblib/pull/1491
- Adjust codebase to NumPy 2.0 by changing ``np.NaN`` to ``np.nan``
and importing ``byte_bounds`` from ``np.lib.array_utils``.
https://github.com/joblib/joblib/pull/1501
- The parameter ``return_as`` in ``joblib.Parallel`` can now be set to
``generator_unordered``. In this case the results will be returned in the
order of task completion rather than the order of submission.
https://github.com/joblib/joblib/pull/1463
- dask backend now supports ``return_as=generator`` and
``return_as=generator_unordered``.
https://github.com/joblib/joblib/pull/1520
- Vendor cloudpickle 3.0.0 and end support for Python 3.7 which has
reached end of life.
https://github.com/joblib/joblib/pull/1487
https://github.com/joblib/joblib/pull/1515
Release 1.3.2 -- 2023/08/08
---------------------------
- Fix a regression in ``joblib.Parallel`` introduced in 1.3.0 where
explicitly setting ``n_jobs=None`` was not interpreted as "unset".
https://github.com/joblib/joblib/pull/1475
- Fix a regression in ``joblib.Parallel`` introduced in 1.3.0 where
``joblib.Parallel`` logging methods exposed from inheritance to
``joblib.Logger`` didn't work because of missing logger
initialization.
https://github.com/joblib/joblib/pull/1494
- Various maintenance updates to the doc, the ci and the test.
https://github.com/joblib/joblib/pull/1480,
https://github.com/joblib/joblib/pull/1481,
https://github.com/joblib/joblib/pull/1476,
https://github.com/joblib/joblib/pull/1492
Release 1.3.1 -- 2023/06/29
---------------------------
- Fix compatibility with python 3.7 by vendor loky 3.4.1
which is compatible with this version.
https://github.com/joblib/joblib/pull/1472
Release 1.3.0 -- 2023/06/28
---------------------------
- Ensure native byte order for memmap arrays in ``joblib.load``.
https://github.com/joblib/joblib/issues/1353
- Add ability to change default Parallel backend in tests by setting the
``JOBLIB_TESTS_DEFAULT_PARALLEL_BACKEND`` environment variable.
https://github.com/joblib/joblib/pull/1356
- Fix temporary folder creation in `joblib.Parallel` on Linux subsystems on Windows
which do have `/dev/shm` but don't have the `os.statvfs` function
https://github.com/joblib/joblib/issues/1353
- Drop runtime dependency on ``distutils``. ``distutils`` is going away
in Python 3.12 and is deprecated from Python 3.10 onwards. This import
was kept around to avoid breaking scikit-learn, however it's now been
long enough since scikit-learn deployed a fixed (verion 1.1 was released
in May 2022) that it should be safe to remove this.
https://github.com/joblib/joblib/pull/1361
- A warning is raised when a pickling error occurs during caching operations.
In version 1.5, this warning will be turned into an error. For all other
errors, a new warning has been introduced: ``joblib.memory.CacheWarning``.
https://github.com/joblib/joblib/pull/1359
- Avoid (module, name) collisions when caching nested functions. This fix
changes the module name of nested functions, invalidating caches from
previous versions of Joblib.
https://github.com/joblib/joblib/pull/1374
- Add ``cache_validation_callback`` in :meth:`joblib.Memory.cache`, to allow
custom cache invalidation based on the metadata of the function call.
https://github.com/joblib/joblib/pull/1149
- Add a ``return_as`` parameter for ``Parallel``, that enables consuming
results asynchronously.
https://github.com/joblib/joblib/pull/1393,
https://github.com/joblib/joblib/pull/1458
- Improve the behavior of ``joblib`` for ``n_jobs=1``, with simplified
tracebacks and more efficient running time.
https://github.com/joblib/joblib/pull/1393
- Add the ``parallel_config`` context manager to allow for more fine-grained
control over the backend configuration. It should be used in place of the
``parallel_backend`` context manager. In particular, it has the advantage
of not requiring to set a specific backend in the context manager.
https://github.com/joblib/joblib/pull/1392,
https://github.com/joblib/joblib/pull/1457
- Add ``items_limit`` and ``age_limit`` in :meth:`joblib.Memory.reduce_size`
to make it easy to limit the number of items and remove items that have
not been accessed for a long time in the cache.
https://github.com/joblib/joblib/pull/1200
- Deprecate ``bytes_limit`` in ``Memory`` as this is not automatically enforced,
the limit can be directly passed to :meth:`joblib.Memory.reduce_size` which
needs to be called to actually enforce the limit.
https://github.com/joblib/joblib/pull/1447
- Vendor ``loky`` 3.4.0 which includes various fixes.
https://github.com/joblib/joblib/pull/1422
- Various updates to the documentation and to benchmarking tools.
https://github.com/joblib/joblib/pull/1343,
https://github.com/joblib/joblib/pull/1348,
https://github.com/joblib/joblib/pull/1411,
https://github.com/joblib/joblib/pull/1451,
https://github.com/joblib/joblib/pull/1427,
https://github.com/joblib/joblib/pull/1400
- Move project metadata to ``pyproject.toml``.
https://github.com/joblib/joblib/pull/1382,
https://github.com/joblib/joblib/pull/1433
- Add more tests to improve python ``nogil`` support.
https://github.com/joblib/joblib/pull/1394,
https://github.com/joblib/joblib/pull/1395
Release 1.2.0
-------------
- Fix a security issue where ``eval(pre_dispatch)`` could potentially run
arbitrary code. Now only basic numerics are supported.
https://github.com/joblib/joblib/pull/1327
- Make sure that joblib works even when multiprocessing is not available,
for instance with Pyodide
https://github.com/joblib/joblib/pull/1256
- Avoid unnecessary warnings when workers and main process delete
the temporary memmap folder contents concurrently.
https://github.com/joblib/joblib/pull/1263
- Fix memory alignment bug for pickles containing numpy arrays.
This is especially important when loading the pickle with
``mmap_mode != None`` as the resulting ``numpy.memmap`` object
would not be able to correct the misalignment without performing
a memory copy.
This bug would cause invalid computation and segmentation faults
with native code that would directly access the underlying data
buffer of a numpy array, for instance C/C++/Cython code compiled
with older GCC versions or some old OpenBLAS written in platform
specific assembly.
https://github.com/joblib/joblib/pull/1254
- Vendor cloudpickle 2.2.0 which adds support for PyPy 3.8+.
- Vendor loky 3.3.0 which fixes several bugs including:
- robustly forcibly terminating worker processes in case of a crash
(https://github.com/joblib/joblib/pull/1269);
- avoiding leaking worker processes in case of nested loky parallel
calls;
- reliability spawn the correct number of reusable workers.
Release 1.1.1
-------------
- Fix a security issue where ``eval(pre_dispatch)`` could potentially run
arbitrary code. Now only basic numerics are supported.
https://github.com/joblib/joblib/pull/1327
Release 1.1.0
--------------
- Fix byte order inconsistency issue during deserialization using joblib.load
in cross-endian environment: the numpy arrays are now always loaded to
use the system byte order, independently of the byte order of the system
that serialized the pickle.
https://github.com/joblib/joblib/pull/1181
- Fix joblib.Memory bug with the ``ignore`` parameter when the cached function
is a decorated function.
https://github.com/joblib/joblib/pull/1165
- Fix `joblib.Memory` to properly handle caching for functions defined
interactively in a IPython session or in Jupyter notebook cell.
https://github.com/joblib/joblib/pull/1214
- Update vendored loky (from version 2.9 to 3.0) and cloudpickle (from
version 1.6 to 2.0)
https://github.com/joblib/joblib/pull/1218
Release 1.0.1
-------------
- Add check_call_in_cache method to check cache without calling function.
https://github.com/joblib/joblib/pull/820
- dask: avoid redundant scattering of large arguments to make a more
efficient use of the network resources and avoid crashing dask with
"OSError: [Errno 55] No buffer space available"
or "ConnectionResetError: [Errno 104] connection reset by peer".
https://github.com/joblib/joblib/pull/1133
Release 1.0.0
-------------
- Make `joblib.hash` and `joblib.Memory` caching system compatible with `numpy
>= 1.20.0`. Also make it explicit in the documentation that users should now
expect to have their `joblib.Memory` cache invalidated when either `joblib`
or a third party library involved in the cached values definition is
upgraded. In particular, users updating `joblib` to a release that includes
this fix will see their previous cache invalidated if they contained
reference to `numpy` objects.
https://github.com/joblib/joblib/pull/1136
- Remove deprecated `check_pickle` argument in `delayed`.
https://github.com/joblib/joblib/pull/903
Release 0.17.0
--------------
- Fix a spurious invalidation of `Memory.cache`'d functions called with
`Parallel` under Jupyter or IPython.
https://github.com/joblib/joblib/pull/1093
- Bump vendored loky to 2.9.0 and cloudpickle to 1.6.0. In particular
this fixes a problem to add compat for Python 3.9.
Release 0.16.0
--------------
- Fix a problem in the constructors of Parallel backends classes that
inherit from the `AutoBatchingMixin` that prevented the dask backend to
properly batch short tasks.
https://github.com/joblib/joblib/pull/1062
- Fix a problem in the way the joblib dask backend batches calls that would
badly interact with the dask callable pickling cache and lead to wrong
results or errors.
https://github.com/joblib/joblib/pull/1055
- Prevent a dask.distributed bug from surfacing in joblib's dask backend
during nested Parallel calls (due to joblib's auto-scattering feature)
https://github.com/joblib/joblib/pull/1061
- Workaround for a race condition after Parallel calls with the dask backend
that would cause low level warnings from asyncio coroutines:
https://github.com/joblib/joblib/pull/1078
Release 0.15.1
--------------
- Make joblib work on Python 3 installation that do not ship with the lzma
package in their standard library.
Release 0.15.0
--------------
- Drop support for Python 2 and Python 3.5. All objects in
``joblib.my_exceptions`` and ``joblib.format_stack`` are now deprecated and
will be removed in joblib 0.16. Note that no deprecation warning will be
raised for these objects Python < 3.7.
https://github.com/joblib/joblib/pull/1018
- Fix many bugs related to the temporary files and folder generated when
automatically memory mapping large numpy arrays for efficient inter-process
communication. In particular, this would cause `PermissionError` exceptions
to be raised under Windows and large leaked files in `/dev/shm` under Linux
in case of crash.
https://github.com/joblib/joblib/pull/966
- Make the dask backend collect results as soon as they complete
leading to a performance improvement:
https://github.com/joblib/joblib/pull/1025
- Fix the number of jobs reported by ``effective_n_jobs`` when ``n_jobs=None``
called in a parallel backend context.
https://github.com/joblib/joblib/pull/985
- Upgraded vendored cloupickle to 1.4.1 and loky to 2.8.0. This allows for
Parallel calls of dynamically defined functions with type annotations
in particular.
Release 0.14.1
--------------
- Configure the loky workers' environment to mitigate oversubsription with
nested multi-threaded code in the following case:
- allow for a suitable number of threads for numba (``NUMBA_NUM_THREADS``);
- enable Interprocess Communication for scheduler coordination when the
nested code uses Threading Building Blocks (TBB) (``ENABLE_IPC=1``)
https://github.com/joblib/joblib/pull/951
- Fix a regression where the loky backend was not reusing previously
spawned workers.
https://github.com/joblib/joblib/pull/968
- Revert https://github.com/joblib/joblib/pull/847 to avoid using
`pkg_resources` that introduced a performance regression under Windows:
https://github.com/joblib/joblib/issues/965
Release 0.14.0
--------------
- Improved the load balancing between workers to avoid stranglers caused by an
excessively large batch size when the task duration is varying significantly
(because of the combined use of ``joblib.Parallel`` and ``joblib.Memory``
with a partially warmed cache for instance).
https://github.com/joblib/joblib/pull/899
- Add official support for Python 3.8: fixed protocol number in `Hasher`
and updated tests.
- Fix a deadlock when using the dask backend (when scattering large numpy
arrays).
https://github.com/joblib/joblib/pull/914
- Warn users that they should never use `joblib.load` with files from
untrusted sources. Fix security related API change introduced in numpy
1.6.3 that would prevent using joblib with recent numpy versions.
https://github.com/joblib/joblib/pull/879
- Upgrade to cloudpickle 1.1.1 that add supports for the upcoming
Python 3.8 release among other things.
https://github.com/joblib/joblib/pull/878
- Fix semaphore availability checker to avoid spawning resource trackers
on module import.
https://github.com/joblib/joblib/pull/893
- Fix the oversubscription protection to only protect against nested
`Parallel` calls. This allows `joblib` to be run in background threads.
https://github.com/joblib/joblib/pull/934
- Fix `ValueError` (negative dimensions) when pickling large numpy arrays on
Windows.
https://github.com/joblib/joblib/pull/920
- Upgrade to loky 2.6.0 that add supports for the setting environment variables
in child before loading any module.
https://github.com/joblib/joblib/pull/940
- Fix the oversubscription protection for native libraries using threadpools
(OpenBLAS, MKL, Blis and OpenMP runtimes).
The maximal number of threads is can now be set in children using the
``inner_max_num_threads`` in ``parallel_backend``. It defaults to
``cpu_count() // n_jobs``.
https://github.com/joblib/joblib/pull/940
Release 0.13.2
--------------
Pierre Glaser
Upgrade to cloudpickle 0.8.0
Add a non-regression test related to joblib issues #836 and #833, reporting
that cloudpickle versions between 0.5.4 and 0.7 introduced a bug where
global variables changes in a parent process between two calls to
joblib.Parallel would not be propagated into the workers
Release 0.13.1
--------------
Pierre Glaser
Memory now accepts pathlib.Path objects as ``location`` parameter.
Also, a warning is raised if the returned backend is None while
``location`` is not None.
Olivier Grisel
Make ``Parallel`` raise an informative ``RuntimeError`` when the
active parallel backend has zero worker.
Make the ``DaskDistributedBackend`` wait for workers before trying to
schedule work. This is useful in particular when the workers are
provisionned dynamically but provisionning is not immediate (for
instance using Kubernetes, Yarn or an HPC job queue).
Release 0.13.0
--------------
Thomas Moreau
Include loky 2.4.2 with default serialization with ``cloudpickle``.
This can be tweaked with the environment variable ``LOKY_PICKLER``.
Thomas Moreau
Fix nested backend in SequentialBackend to avoid changing the default
backend to Sequential. (#792)
Thomas Moreau, Olivier Grisel
Fix nested_backend behavior to avoid setting the default number of
workers to -1 when the backend is not dask. (#784)
Release 0.12.5
--------------
Thomas Moreau, Olivier Grisel
Include loky 2.3.1 with better error reporting when a worker is
abruptly terminated. Also fixes spurious debug output.
Pierre Glaser
Include cloudpickle 0.5.6. Fix a bug with the handling of global
variables by locally defined functions.
Release 0.12.4
--------------
Thomas Moreau, Pierre Glaser, Olivier Grisel
Include loky 2.3.0 with many bugfixes, notably w.r.t. when setting
non-default multiprocessing contexts. Also include improvement on
memory management of long running worker processes and fixed issues
when using the loky backend under PyPy.
Maxime Weyl
Raises a more explicit exception when a corrupted MemorizedResult is loaded.
Maxime Weyl
Loading a corrupted cached file with mmap mode enabled would
recompute the results and return them without memory mapping.
Release 0.12.3
--------------
Thomas Moreau
Fix joblib import setting the global start_method for multiprocessing.
Alexandre Abadie
Fix MemorizedResult not picklable (#747).
Loïc Estève
Fix Memory, MemorizedFunc and MemorizedResult round-trip pickling +
unpickling (#746).
James Collins
Fixed a regression in Memory when positional arguments are called as
kwargs several times with different values (#751).
Thomas Moreau and Olivier Grisel
Integration of loky 2.2.2 that fixes issues with the selection of the
default start method and improve the reporting when calling functions
with arguments that raise an exception when unpickling.
Maxime Weyl
Prevent MemorizedFunc.call_and_shelve from loading cached results to
RAM when not necessary. Results in big performance improvements
Release 0.12.2
--------------
Olivier Grisel
Integrate loky 2.2.0 to fix regression with unpicklable arguments and
functions reported by users (#723, #643).
Loky 2.2.0 also provides a protection against memory leaks long running
applications when psutil is installed (reported as #721).
Joblib now includes the code for the dask backend which has been updated
to properly handle nested parallelism and data scattering at the same
time (#722).
Alexandre Abadie and Olivier Grisel
Restored some private API attribute and arguments
(`MemorizedResult.argument_hash` and `BatchedCalls.__init__`'s
`pickle_cache`) for backward compat. (#716, #732).
Joris Van den Bossche
Fix a deprecation warning message (for `Memory`'s `cachedir`) (#720).
Release 0.12.1
--------------
Thomas Moreau
Make sure that any exception triggered when serializing jobs in the queue
will be wrapped as a PicklingError as in past versions of joblib.
Noam Hershtig
Fix kwonlydefaults key error in filter_args (#715)
Release 0.12
------------
Thomas Moreau
Implement the ``'loky'`` backend with @ogrisel. This backend relies on
a robust implementation of ``concurrent.futures.ProcessPoolExecutor``
with spawned processes that can be reused across the ``Parallel``
calls. This fixes the bad integration with third paty libraries relying on
thread pools, described in https://pythonhosted.org/joblib/parallel.html#bad-interaction-of-multiprocessing-and-third-party-libraries
Limit the number of threads used in worker processes by C-libraries that
relies on threadpools. This functionality works for MKL, OpenBLAS, OpenMP
and Accelerated.
Elizabeth Sander
Prevent numpy arrays with the same shape and data from hashing to
the same memmap, to prevent jobs with preallocated arrays from
writing over each other.
Olivier Grisel
Reduce overhead of automatic memmap by removing the need to hash the
array.
Make ``Memory.cache`` robust to ``PermissionError (errno 13)`` under
Windows when run in combination with ``Parallel``.
The automatic array memory mapping feature of ``Parallel`` does no longer
use ``/dev/shm`` if it is too small (less than 2 GB). In particular in
docker containers ``/dev/shm`` is only 64 MB by default which would cause
frequent failures when running joblib in Docker containers.
Make it possible to hint for thread-based parallelism with
``prefer='threads'`` or enforce shared-memory semantics with
``require='sharedmem'``.
Rely on the built-in exception nesting system of Python 3 to preserve
traceback information when an exception is raised on a remote worker
process. This avoid verbose and redundant exception reports under
Python 3.
Preserve exception type information when doing nested Parallel calls
instead of mapping the exception to the generic ``JoblibException`` type.
Alexandre Abadie
Introduce the concept of 'store' and refactor the ``Memory`` internal
storage implementation to make it accept extra store backends for caching
results. ``backend`` and ``backend_options`` are the new options added to
``Memory`` to specify and configure a store backend.
Add the ``register_store_backend`` function to extend the store backend
used by default with Memory. This default store backend is named 'local'
and corresponds to the local filesystem.
The store backend API is experimental and thus is subject to change in the
future without deprecation.
The ``cachedir`` parameter of ``Memory`` is now marked as deprecated, use
``location`` instead.
Add support for LZ4 compression if ``lz4`` package is installed.
Add ``register_compressor`` function for extending available compressors.
Allow passing a string to ``compress`` parameter in ``dump`` function. This
string should correspond to the compressor used (e.g. zlib, gzip, lz4,
etc). The default compression level is used in this case.
Matthew Rocklin
Allow ``parallel_backend`` to be used globally instead of only as a context
manager.
Support lazy registration of external parallel backends
Release 0.11
------------
Alexandre Abadie
Remove support for python 2.6
Alexandre Abadie
Remove deprecated `format_signature`, `format_call` and `load_output`
functions from Memory API.
Loïc Estève
Add initial implementation of LRU cache cleaning. You can specify
the size limit of a ``Memory`` object via the ``bytes_limit``
parameter and then need to clean explicitly the cache via the
``Memory.reduce_size`` method.
Olivier Grisel
Make the multiprocessing backend work even when the name of the main
thread is not the Python default. Thanks to Roman Yurchak for the
suggestion.
Karan Desai
pytest is used to run the tests instead of nosetests.
``python setup.py test`` or ``python setup.py nosetests`` do not work
anymore, run ``pytest joblib`` instead.
Loïc Estève
An instance of ``joblib.ParallelBackendBase`` can be passed into
the ``parallel`` argument in ``joblib.Parallel``.
Loïc Estève
Fix handling of memmap objects with offsets greater than
mmap.ALLOCATIONGRANULARITY in ``joblib.Parallel``. See
https://github.com/joblib/joblib/issues/451 for more details.
Loïc Estève
Fix performance regression in ``joblib.Parallel`` with
n_jobs=1. See https://github.com/joblib/joblib/issues/483 for more
details.
Loïc Estève
Fix race condition when a function cached with
``joblib.Memory.cache`` was used inside a ``joblib.Parallel``. See
https://github.com/joblib/joblib/issues/490 for more details.
Release 0.10.3
--------------
Loïc Estève
Fix tests when multiprocessing is disabled via the
JOBLIB_MULTIPROCESSING environment variable.
harishmk
Remove warnings in nested Parallel objects when the inner Parallel
has n_jobs=1. See https://github.com/joblib/joblib/pull/406 for
more details.
Release 0.10.2
--------------
Loïc Estève
FIX a bug in stack formatting when the error happens in a compiled
extension. See https://github.com/joblib/joblib/pull/382 for more
details.
Vincent Latrouite
FIX a bug in the constructor of BinaryZlibFile that would throw an
exception when passing unicode filename (Python 2 only).
See https://github.com/joblib/joblib/pull/384 for more details.
Olivier Grisel
Expose :class:`joblib.parallel.ParallelBackendBase` and
:class:`joblib.parallel.AutoBatchingMixin` in the public API to
make them officially re-usable by backend implementers.
Release 0.10.0
--------------
Alexandre Abadie
ENH: joblib.dump/load now accept file-like objects besides filenames.
https://github.com/joblib/joblib/pull/351 for more details.
Niels Zeilemaker and Olivier Grisel
Refactored joblib.Parallel to enable the registration of custom
computational backends.
https://github.com/joblib/joblib/pull/306
Note the API to register custom backends is considered experimental
and subject to change without deprecation.
Alexandre Abadie
Joblib pickle format change: joblib.dump always create a single pickle file
and joblib.dump/joblib.save never do any memory copy when writing/reading
pickle files. Reading pickle files generated with joblib versions prior
to 0.10 will be supported for a limited amount of time, we advise to
regenerate them from scratch when convenient.
joblib.dump and joblib.load also support pickle files compressed using
various strategies: zlib, gzip, bz2, lzma and xz. Note that lzma and xz are
only available with python >= 3.3.
https://github.com/joblib/joblib/pull/260 for more details.
Antony Lee
ENH: joblib.dump/load now accept pathlib.Path objects as filenames.
https://github.com/joblib/joblib/pull/316 for more details.
Olivier Grisel
Workaround for "WindowsError: [Error 5] Access is denied" when trying to
terminate a multiprocessing pool under Windows:
https://github.com/joblib/joblib/issues/354
Release 0.9.4
-------------
Olivier Grisel
FIX a race condition that could cause a joblib.Parallel to hang
when collecting the result of a job that triggers an exception.
https://github.com/joblib/joblib/pull/296
Olivier Grisel
FIX a bug that caused joblib.Parallel to wrongly reuse previously
memmapped arrays instead of creating new temporary files.
https://github.com/joblib/joblib/pull/294 for more details.
Loïc Estève
FIX for raising non inheritable exceptions in a Parallel call. See
https://github.com/joblib/joblib/issues/269 for more details.
Alexandre Abadie
FIX joblib.hash error with mixed types sets and dicts containing mixed
types keys when using Python 3.
see https://github.com/joblib/joblib/issues/254
Loïc Estève
FIX joblib.dump/load for big numpy arrays with dtype=object. See
https://github.com/joblib/joblib/issues/220 for more details.
Loïc Estève
FIX joblib.Parallel hanging when used with an exhausted
iterator. See https://github.com/joblib/joblib/issues/292 for more
details.
Release 0.9.3
-------------
Olivier Grisel
Revert back to the ``fork`` start method (instead of
``forkserver``) as the latter was found to cause crashes in
interactive Python sessions.
Release 0.9.2
-------------
Loïc Estève
Joblib hashing now uses the default pickle protocol (2 for Python
2 and 3 for Python 3). This makes it very unlikely to get the same
hash for a given object under Python 2 and Python 3.
In particular, for Python 3 users, this means that the output of
joblib.hash changes when switching from joblib 0.8.4 to 0.9.2 . We
strive to ensure that the output of joblib.hash does not change
needlessly in future versions of joblib but this is not officially
guaranteed.
Loïc Estève
Joblib pickles generated with Python 2 can not be loaded with
Python 3 and the same applies for joblib pickles generated with
Python 3 and loaded with Python 2.
During the beta period 0.9.0b2 to 0.9.0b4, we experimented with
a joblib serialization that aimed to make pickles serialized with
Python 3 loadable under Python 2. Unfortunately this serialization
strategy proved to be too fragile as far as the long-term
maintenance was concerned (For example see
https://github.com/joblib/joblib/pull/243). That means that joblib
pickles generated with joblib 0.9.0bN can not be loaded under
joblib 0.9.2. Joblib beta testers, who are the only ones likely to
be affected by this, are advised to delete their joblib cache when
they upgrade from 0.9.0bN to 0.9.2.
Arthur Mensch
Fixed a bug with ``joblib.hash`` that used to return unstable values for
strings and numpy.dtype instances depending on interning states.
Olivier Grisel
Make joblib use the 'forkserver' start method by default under Python 3.4+
to avoid causing crash with 3rd party libraries (such as Apple vecLib /
Accelerate or the GCC OpenMP runtime) that use an internal thread pool that
is not reinitialized when a ``fork`` system call happens.
Olivier Grisel
New context manager based API (``with`` block) to re-use
the same pool of workers across consecutive parallel calls.
Vlad Niculae and Olivier Grisel
Automated batching of fast tasks into longer running jobs to
hide multiprocessing dispatching overhead when possible.
Olivier Grisel
FIX make it possible to call ``joblib.load(filename, mmap_mode='r')``
on pickled objects that include a mix of arrays of both
memory memmapable dtypes and object dtype.
Release 0.8.4
-------------
2014-11-20
Olivier Grisel
OPTIM use the C-optimized pickler under Python 3
This makes it possible to efficiently process parallel jobs that deal with
numerous Python objects such as large dictionaries.
Release 0.8.3
-------------
2014-08-19
Olivier Grisel
FIX disable memmapping for object arrays
2014-08-07
Lars Buitinck
MAINT NumPy 1.10-safe version comparisons
2014-07-11
Olivier Grisel
FIX #146: Heisen test failure caused by thread-unsafe Python lists
This fix uses a queue.Queue datastructure in the failing test. This
datastructure is thread-safe thanks to an internal Lock. This Lock instance
not picklable hence cause the picklability check of delayed to check fail.
When using the threading backend, picklability is no longer required, hence
this PRs give the user the ability to disable it on a case by case basis.
Release 0.8.2
-------------
2014-06-30
Olivier Grisel
BUG: use mmap_mode='r' by default in Parallel and MemmappingPool
The former default of mmap_mode='c' (copy-on-write) caused
problematic use of the paging file under Windows.
2014-06-27
Olivier Grisel
BUG: fix usage of the /dev/shm folder under Linux
Release 0.8.1
-------------
2014-05-29
Gael Varoquaux
BUG: fix crash with high verbosity
Release 0.8.0
-------------
2014-05-14
Olivier Grisel
Fix a bug in exception reporting under Python 3
2014-05-10
Olivier Grisel
Fixed a potential segfault when passing non-contiguous memmap
instances.
2014-04-22
Gael Varoquaux
ENH: Make memory robust to modification of source files while the
interpreter is running. Should lead to less spurious cache flushes
and recomputations.
2014-02-24
Philippe Gervais
New ``Memory.call_and_shelve`` API to handle memoized results by
reference instead of by value.
Release 0.8.0a3
---------------
2014-01-10
Olivier Grisel & Gael Varoquaux
FIX #105: Race condition in task iterable consumption when
pre_dispatch != 'all' that could cause crash with error messages "Pools
seems closed" and "ValueError: generator already executing".
2014-01-12
Olivier Grisel
FIX #72: joblib cannot persist "output_dir" keyword argument.
Release 0.8.0a2
---------------
2013-12-23
Olivier Grisel
ENH: set default value of Parallel's max_nbytes to 100MB
Motivation: avoid introducing disk latency on medium sized
parallel workload where memory usage is not an issue.
FIX: properly handle the JOBLIB_MULTIPROCESSING env variable
FIX: timeout test failures under windows
Release 0.8.0a
--------------
2013-12-19
Olivier Grisel
FIX: support the new Python 3.4 multiprocessing API
2013-12-05
Olivier Grisel
ENH: make Memory respect mmap_mode at first call too
ENH: add a threading based backend to Parallel
This is low overhead alternative backend to the default multiprocessing
backend that is suitable when calling compiled extensions that release
the GIL.
Author: Dan Stahlke <dan@stahlke.org>
Date: 2013-11-08
FIX: use safe_repr to print arg vals in trace
This fixes a problem in which extremely long (and slow) stack traces would
be produced when function parameters are large numpy arrays.
2013-09-10
Olivier Grisel
ENH: limit memory copy with Parallel by leveraging numpy.memmap when
possible
Release 0.7.1
---------------
2013-07-25
Gael Varoquaux
MISC: capture meaningless argument (n_jobs=0) in Parallel
2013-07-09
Lars Buitinck
ENH Handles tuples, sets and Python 3's dict_keys type the same as
lists. in pre_dispatch
2013-05-23
Martin Luessi
ENH: fix function caching for IPython
Release 0.7.0
---------------
**This release drops support for Python 2.5 in favor of support for
Python 3.0**
2013-02-13
Gael Varoquaux
BUG: fix nasty hash collisions
2012-11-19
Gael Varoquaux
ENH: Parallel: Turn of pre-dispatch for already expanded lists
Gael Varoquaux
2012-11-19
ENH: detect recursive sub-process spawning, as when people do not
protect the __main__ in scripts under Windows, and raise a useful
error.
Gael Varoquaux
2012-11-16
ENH: Full python 3 support
Release 0.6.5
---------------
2012-09-15
Yannick Schwartz
BUG: make sure that sets and dictionaries give reproducible hashes
2012-07-18
Marek Rudnicki
BUG: make sure that object-dtype numpy array hash correctly
2012-07-12
GaelVaroquaux
BUG: Bad default n_jobs for Parallel
Release 0.6.4
---------------
2012-05-07
Vlad Niculae
ENH: controlled randomness in tests and doctest fix
2012-02-21
GaelVaroquaux
ENH: add verbosity in memory
2012-02-21
GaelVaroquaux
BUG: non-reproducible hashing: order of kwargs
The ordering of a dictionary is random. As a result the function hashing
was not reproducible. Pretty hard to test
Release 0.6.3
---------------
2012-02-14
GaelVaroquaux
BUG: fix joblib Memory pickling
2012-02-11
GaelVaroquaux
BUG: fix hasher with Python 3
2012-02-09
GaelVaroquaux
API: filter_args: `*args, **kwargs -> args, kwargs`
Release 0.6.2
---------------
2012-02-06
Gael Varoquaux
BUG: make sure Memory pickles even if cachedir=None
Release 0.6.1
---------------
Bugfix release because of a merge error in release 0.6.0
Release 0.6.0
---------------
**Beta 3**
2012-01-11
Gael Varoquaux
BUG: ensure compatibility with old numpy
DOC: update installation instructions
BUG: file semantic to work under Windows
2012-01-10
Yaroslav Halchenko
BUG: a fix toward 2.5 compatibility
**Beta 2**
2012-01-07
Gael Varoquaux
ENH: hash: bugware to be able to hash objects defined interactively
in IPython
2012-01-07
Gael Varoquaux
ENH: Parallel: warn and not fail for nested loops
ENH: Parallel: n_jobs=-2 now uses all CPUs but one
2012-01-01
Juan Manuel Caicedo Carvajal and Gael Varoquaux
ENH: add verbosity levels in Parallel
Release 0.5.7
---------------
2011-12-28
Gael varoquaux
API: zipped -> compress
2011-12-26
Gael varoquaux
ENH: Add a zipped option to Memory
API: Memory no longer accepts save_npy
2011-12-22
Kenneth C. Arnold and Gael varoquaux
BUG: fix numpy_pickle for array subclasses
2011-12-21
Gael varoquaux
ENH: add zip-based pickling
2011-12-19
Fabian Pedregosa
Py3k: compatibility fixes.
This makes run fine the tests test_disk and test_parallel
Release 0.5.6
---------------
2011-12-11
Lars Buitinck
ENH: Replace os.path.exists before makedirs with exception check
New disk.mkdirp will fail with other errnos than EEXIST.
2011-12-10
Bala Subrahmanyam Varanasi
MISC: pep8 compliant
Release 0.5.5
---------------
2011-19-10
Fabian Pedregosa
ENH: Make joblib installable under Python 3.X
Release 0.5.4
---------------
2011-09-29
Jon Olav Vik
BUG: Make mangling path to filename work on Windows
2011-09-25
Olivier Grisel
FIX: doctest heisenfailure on execution time
2011-08-24
Ralf Gommers
STY: PEP8 cleanup.
Release 0.5.3
---------------
2011-06-25
Gael varoquaux
API: All the useful symbols in the __init__
Release 0.5.2
---------------
2011-06-25
Gael varoquaux
ENH: Add cpu_count
2011-06-06
Gael varoquaux
ENH: Make sure memory hash in a reproducible way
Release 0.5.1
---------------
2011-04-12
Gael varoquaux
TEST: Better testing of parallel and pre_dispatch
Yaroslav Halchenko
2011-04-12
DOC: quick pass over docs -- trailing spaces/spelling
Yaroslav Halchenko
2011-04-11
ENH: JOBLIB_MULTIPROCESSING env var to disable multiprocessing from the
environment
Alexandre Gramfort
2011-04-08
ENH : adding log message to know how long it takes to load from disk the
cache
Release 0.5.0
---------------
2011-04-01
Gael varoquaux
BUG: pickling MemoizeFunc does not store timestamp
2011-03-31
Nicolas Pinto
TEST: expose hashing bug with cached method
2011-03-26...2011-03-27
Pietro Berkes
BUG: fix error management in rm_subdirs
BUG: fix for race condition during tests in mem.clear()
Gael varoquaux
2011-03-22...2011-03-26
TEST: Improve test coverage and robustness
Gael varoquaux
2011-03-19
BUG: hashing functions with only \*var \**kwargs
Gael varoquaux
2011-02-01... 2011-03-22
BUG: Many fixes to capture interprocess race condition when mem.cache
is used by several processes on the same cache.
Fabian Pedregosa
2011-02-28
First work on Py3K compatibility
Gael varoquaux
2011-02-27
ENH: pre_dispatch in parallel: lazy generation of jobs in parallel
for to avoid drowning memory.
GaelVaroquaux
2011-02-24
ENH: Add the option of overloading the arguments of the mother
'Memory' object in the cache method that is doing the decoration.
Gael varoquaux
2010-11-21
ENH: Add a verbosity level for more verbosity
Release 0.4.6
----------------
Gael varoquaux
2010-11-15
ENH: Deal with interruption in parallel
Gael varoquaux
2010-11-13
BUG: Exceptions raised by Parallel when n_job=1 are no longer captured.
Gael varoquaux
2010-11-13
BUG: Capture wrong arguments properly (better error message)
Release 0.4.5
----------------
Pietro Berkes
2010-09-04
BUG: Fix Windows peculiarities with path separators and file names
BUG: Fix more windows locking bugs
Gael varoquaux
2010-09-03
ENH: Make sure that exceptions raised in Parallel also inherit from
the original exception class
ENH: Add a shadow set of exceptions
Fabian Pedregosa
2010-09-01
ENH: Clean up the code for parallel. Thanks to Fabian Pedregosa for
the patch.
Release 0.4.4
----------------
Gael varoquaux
2010-08-23
BUG: Fix Parallel on computers with only one CPU, for n_jobs=-1.
Gael varoquaux
2010-08-02
BUG: Fix setup.py for extra setuptools args.
Gael varoquaux
2010-07-29
MISC: Silence tests (and hopefully Yaroslav :P)
Release 0.4.3
----------------
Gael Varoquaux
2010-07-22
BUG: Fix hashing for function with a side effect modifying their input
argument. Thanks to Pietro Berkes for reporting the bug and proving the
patch.
Release 0.4.2
----------------
Gael Varoquaux
2010-07-16
BUG: Make sure that joblib still works with Python2.5. => release 0.4.2
Release 0.4.1
----------------
|