Add files using upload-large-folder tool
Browse files- .cache/pip/http-v2/0/4/4/7/c/0447ce2249fdae0f8cf52a43e01f215eacdf7c35d89a248bd4b4ebaa.body +0 -0
- .cache/pip/http-v2/3/3/2/7/a/3327a46f678846be6cb46f3352e6fba668d9664c70a79484c770e358 +0 -0
- .cache/pip/http-v2/3/8/6/0/e/3860e4de9ae53c79d2fd61419e9049df314ccc8b640782c02c6e2e2d +0 -0
- .cache/pip/http-v2/3/9/b/0/3/39b032291f3825af700bccccb41d7507c739ba2f89c5bbbc5b7b490d.body +0 -0
- .cache/pip/http-v2/4/3/e/a/8/43ea803ef69b1ff6bb6a759b6d0891ba2677cfcc307a77ebf42098b6 +0 -0
- .cache/pip/http-v2/4/3/e/a/8/43ea803ef69b1ff6bb6a759b6d0891ba2677cfcc307a77ebf42098b6.body +1383 -0
- .cache/pip/http-v2/4/5/2/4/1/45241d61b1606b84c3825a9119b750e7cd16e5fac504d31f79203a8e.body +84 -0
- .cache/pip/http-v2/4/7/a/1/f/47a1fcfcda9889c5e9fc07f976129358dec689ce97437905232762a1.body +0 -0
- .cache/pip/http-v2/4/a/5/b/6/4a5b6f0d76201de4cfd4884f5e95617a1848cf81c8357be4d12cbf6a +0 -0
- .cache/pip/http-v2/4/d/c/8/d/4dc8d567db4bc55c0684404c85a6b4572f87a99306be24cab65fbfae +0 -0
- .cache/pip/http-v2/4/d/c/8/d/4dc8d567db4bc55c0684404c85a6b4572f87a99306be24cab65fbfae.body +0 -0
- .cache/pip/http-v2/6/4/6/7/b/6467bdd236eabb4648139f514441e5510842fbc90755e4738c64fcf3.body +341 -0
- .cache/pip/http-v2/8/f/0/a/d/8f0ad583652318494c12da41e4d30ff6225ec73d448a0754a0a7e898 +0 -0
- .cache/pip/http-v2/9/0/6/7/9/906797ab7b3f56fdd856b186be66ce1ad5fb99862a404c1091a707b6 +0 -0
- .cache/pip/http-v2/9/0/6/7/9/906797ab7b3f56fdd856b186be66ce1ad5fb99862a404c1091a707b6.body +0 -0
- .cache/pip/http-v2/9/0/f/6/e/90f6e704e426d3e4b799bd86b309263491ea7f0afc8f3ceaab5d10eb +0 -0
- .cache/pip/http-v2/9/6/7/8/5/967857dd3681a1bb83c9632aad9815556f1da84934ad6aa3be0d7700 +0 -0
- .cache/pip/http-v2/9/6/7/8/5/967857dd3681a1bb83c9632aad9815556f1da84934ad6aa3be0d7700.body +0 -0
- .cache/pip/http-v2/9/6/e/6/8/96e68fa7e813913744eed43fc3c671900cf7eb7d5088536270636acf +0 -0
- .cache/pip/http-v2/9/b/0/a/e/9b0ae3352e0682a4ded5c6f53d9053328ff974179c7dcd6dac96d2a9 +0 -0
- .cache/pip/http-v2/9/b/0/c/d/9b0cd65992ff5b9edd0441126311787aa8872587ece580196906a213 +0 -0
- .cache/pip/http-v2/9/b/c/f/c/9bcfc39a5bcc4f49a5aca18ef0b4567e959c4b71251fb90ea1371fe7.body +1600 -0
- .cache/pip/http-v2/c/1/6/c/6/c16c6c635e568e65136b95a15ea17f91b43799aeb0a7e80b55d7a898 +0 -0
- .cache/pip/http-v2/c/d/5/d/e/cd5de44b899cbe1869765c21b55cffc53c0c0ffa9d3c6f1fd40a42a2 +0 -0
- BUSI_with_classes/.DS_Store +0 -0
- BUSI_with_classes/pipeline_check.json +0 -0
- MODEL_RUN_COMMANDS.md +121 -0
- foldsrunner_simplified_after_ablation.py +0 -0
- model_stats_s2_vs_s3.py +392 -0
- params/models_manifest.json +50 -0
- plot_s2_vs_s3.py +216 -0
- requirements_runpod.txt +13 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/experiment_state.sqlite3 +0 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/exports/aggregated_metrics_by_percent_strategy.csv +3 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/exports/aggregated_metrics_by_percent_strategy.json +60 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/exports/raw_run_metrics.csv +11 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/exports/raw_run_metrics.json +282 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/norm_stats_BUSI_with_classes_stratified_80_10_10_100pct_phase010_repeat01.json +526 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/evaluation.json +824 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/evaluation_results.xlsx +0 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/evaluation_summary.json +4 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/history.json +0 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/low_iou_samples.csv +2 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/run_config.json +112 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/summary.json +34 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/timing.csv +2 -0
- runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_timing_summary.json +155 -0
- runs/_plots/summary_s2_vs_s3.csv +13 -0
- runs/_stats/ALL_MODELS_summary.csv +15 -0
- runs/_stats/ALL_MODELS_summary.xlsx +0 -0
.cache/pip/http-v2/0/4/4/7/c/0447ce2249fdae0f8cf52a43e01f215eacdf7c35d89a248bd4b4ebaa.body
ADDED
|
Binary file (21.3 kB). View file
|
|
|
.cache/pip/http-v2/3/3/2/7/a/3327a46f678846be6cb46f3352e6fba668d9664c70a79484c770e358
ADDED
|
Binary file (1.23 kB). View file
|
|
|
.cache/pip/http-v2/3/8/6/0/e/3860e4de9ae53c79d2fd61419e9049df314ccc8b640782c02c6e2e2d
ADDED
|
Binary file (1.89 kB). View file
|
|
|
.cache/pip/http-v2/3/9/b/0/3/39b032291f3825af700bccccb41d7507c739ba2f89c5bbbc5b7b490d.body
ADDED
|
Binary file (12.2 kB). View file
|
|
|
.cache/pip/http-v2/4/3/e/a/8/43ea803ef69b1ff6bb6a759b6d0891ba2677cfcc307a77ebf42098b6
ADDED
|
Binary file (1.29 kB). View file
|
|
|
.cache/pip/http-v2/4/3/e/a/8/43ea803ef69b1ff6bb6a759b6d0891ba2677cfcc307a77ebf42098b6.body
ADDED
|
@@ -0,0 +1,1383 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: pandas
|
| 3 |
+
Version: 3.0.5
|
| 4 |
+
Summary: Powerful data structures for data analysis, time series, and statistics
|
| 5 |
+
Author-Email: The Pandas Development Team <pandas-dev@python.org>
|
| 6 |
+
License: BSD 3-Clause License
|
| 7 |
+
|
| 8 |
+
Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
|
| 9 |
+
All rights reserved.
|
| 10 |
+
|
| 11 |
+
Copyright (c) 2011-2026, Open source contributors.
|
| 12 |
+
|
| 13 |
+
Redistribution and use in source and binary forms, with or without
|
| 14 |
+
modification, are permitted provided that the following conditions are met:
|
| 15 |
+
|
| 16 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 17 |
+
list of conditions and the following disclaimer.
|
| 18 |
+
|
| 19 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 20 |
+
this list of conditions and the following disclaimer in the documentation
|
| 21 |
+
and/or other materials provided with the distribution.
|
| 22 |
+
|
| 23 |
+
* Neither the name of the copyright holder nor the names of its
|
| 24 |
+
contributors may be used to endorse or promote products derived from
|
| 25 |
+
this software without specific prior written permission.
|
| 26 |
+
|
| 27 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 28 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 29 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 30 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 31 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 32 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 33 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 34 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 35 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 36 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 37 |
+
Copyright (c) 2010-2019 Keith Goodman
|
| 38 |
+
Copyright (c) 2019 Bottleneck Developers
|
| 39 |
+
All rights reserved.
|
| 40 |
+
|
| 41 |
+
Redistribution and use in source and binary forms, with or without
|
| 42 |
+
modification, are permitted provided that the following conditions are met:
|
| 43 |
+
|
| 44 |
+
* Redistributions of source code must retain the above copyright notice,
|
| 45 |
+
this list of conditions and the following disclaimer.
|
| 46 |
+
|
| 47 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 48 |
+
notice, this list of conditions and the following disclaimer in the
|
| 49 |
+
documentation and/or other materials provided with the distribution.
|
| 50 |
+
|
| 51 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 52 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 53 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 54 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
| 55 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
| 56 |
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 57 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 58 |
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
| 59 |
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 60 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 61 |
+
POSSIBILITY OF SUCH DAMAGE.Copyright 2017- Paul Ganssle <paul@ganssle.io>
|
| 62 |
+
Copyright 2017- dateutil contributors (see AUTHORS file)
|
| 63 |
+
|
| 64 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 65 |
+
you may not use this file except in compliance with the License.
|
| 66 |
+
You may obtain a copy of the License at
|
| 67 |
+
|
| 68 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 69 |
+
|
| 70 |
+
Unless required by applicable law or agreed to in writing, software
|
| 71 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 72 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 73 |
+
See the License for the specific language governing permissions and
|
| 74 |
+
limitations under the License.
|
| 75 |
+
|
| 76 |
+
The above license applies to all contributions after 2017-12-01, as well as
|
| 77 |
+
all contributions that have been re-licensed (see AUTHORS file for the list of
|
| 78 |
+
contributors who have re-licensed their code).
|
| 79 |
+
--------------------------------------------------------------------------------
|
| 80 |
+
dateutil - Extensions to the standard Python datetime module.
|
| 81 |
+
|
| 82 |
+
Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
|
| 83 |
+
Copyright (c) 2012-2014 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
|
| 84 |
+
Copyright (c) 2014-2016 - Yaron de Leeuw <me@jarondl.net>
|
| 85 |
+
Copyright (c) 2015- - Paul Ganssle <paul@ganssle.io>
|
| 86 |
+
Copyright (c) 2015- - dateutil contributors (see AUTHORS file)
|
| 87 |
+
|
| 88 |
+
All rights reserved.
|
| 89 |
+
|
| 90 |
+
Redistribution and use in source and binary forms, with or without
|
| 91 |
+
modification, are permitted provided that the following conditions are met:
|
| 92 |
+
|
| 93 |
+
* Redistributions of source code must retain the above copyright notice,
|
| 94 |
+
this list of conditions and the following disclaimer.
|
| 95 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 96 |
+
this list of conditions and the following disclaimer in the documentation
|
| 97 |
+
and/or other materials provided with the distribution.
|
| 98 |
+
* Neither the name of the copyright holder nor the names of its
|
| 99 |
+
contributors may be used to endorse or promote products derived from
|
| 100 |
+
this software without specific prior written permission.
|
| 101 |
+
|
| 102 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 103 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 104 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 105 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 106 |
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 107 |
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 108 |
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 109 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
| 110 |
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
| 111 |
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 112 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 113 |
+
|
| 114 |
+
The above BSD License Applies to all code, even that also covered by Apache 2.0.# MIT License
|
| 115 |
+
|
| 116 |
+
Copyright (c) 2019 Hadley Wickham; RStudio; and Evan Miller
|
| 117 |
+
|
| 118 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 119 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 120 |
+
in the Software without restriction, including without limitation the rights
|
| 121 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 122 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 123 |
+
furnished to do so, subject to the following conditions:
|
| 124 |
+
|
| 125 |
+
The above copyright notice and this permission notice shall be included in all
|
| 126 |
+
copies or substantial portions of the Software.
|
| 127 |
+
|
| 128 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 129 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 130 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 131 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 132 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 133 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 134 |
+
SOFTWARE.
|
| 135 |
+
Based on http://opensource.org/licenses/MIT
|
| 136 |
+
|
| 137 |
+
This is a template. Complete and ship as file LICENSE the following 2
|
| 138 |
+
lines (only)
|
| 139 |
+
|
| 140 |
+
YEAR:
|
| 141 |
+
COPYRIGHT HOLDER:
|
| 142 |
+
|
| 143 |
+
and specify as
|
| 144 |
+
|
| 145 |
+
License: MIT + file LICENSE
|
| 146 |
+
|
| 147 |
+
Copyright (c) <YEAR>, <COPYRIGHT HOLDER>
|
| 148 |
+
|
| 149 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 150 |
+
a copy of this software and associated documentation files (the
|
| 151 |
+
"Software"), to deal in the Software without restriction, including
|
| 152 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 153 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 154 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 155 |
+
the following conditions:
|
| 156 |
+
|
| 157 |
+
The above copyright notice and this permission notice shall be
|
| 158 |
+
included in all copies or substantial portions of the Software.
|
| 159 |
+
|
| 160 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 161 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 162 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 163 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 164 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 165 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 166 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 167 |
+
The MIT License
|
| 168 |
+
|
| 169 |
+
Copyright (c) 2008- Attractive Chaos <attractor@live.co.uk>
|
| 170 |
+
|
| 171 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 172 |
+
a copy of this software and associated documentation files (the
|
| 173 |
+
"Software"), to deal in the Software without restriction, including
|
| 174 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 175 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 176 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 177 |
+
the following conditions:
|
| 178 |
+
|
| 179 |
+
The above copyright notice and this permission notice shall be
|
| 180 |
+
included in all copies or substantial portions of the Software.
|
| 181 |
+
|
| 182 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 183 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 184 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 185 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 186 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 187 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 188 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 189 |
+
SOFTWARE.musl as a whole is licensed under the following standard MIT license:
|
| 190 |
+
|
| 191 |
+
----------------------------------------------------------------------
|
| 192 |
+
Copyright © 2005-2020 Rich Felker, et al.
|
| 193 |
+
|
| 194 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 195 |
+
a copy of this software and associated documentation files (the
|
| 196 |
+
"Software"), to deal in the Software without restriction, including
|
| 197 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 198 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 199 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 200 |
+
the following conditions:
|
| 201 |
+
|
| 202 |
+
The above copyright notice and this permission notice shall be
|
| 203 |
+
included in all copies or substantial portions of the Software.
|
| 204 |
+
|
| 205 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 206 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 207 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 208 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 209 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 210 |
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 211 |
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 212 |
+
----------------------------------------------------------------------
|
| 213 |
+
|
| 214 |
+
Authors/contributors include:
|
| 215 |
+
|
| 216 |
+
A. Wilcox
|
| 217 |
+
Ada Worcester
|
| 218 |
+
Alex Dowad
|
| 219 |
+
Alex Suykov
|
| 220 |
+
Alexander Monakov
|
| 221 |
+
Andre McCurdy
|
| 222 |
+
Andrew Kelley
|
| 223 |
+
Anthony G. Basile
|
| 224 |
+
Aric Belsito
|
| 225 |
+
Arvid Picciani
|
| 226 |
+
Bartosz Brachaczek
|
| 227 |
+
Benjamin Peterson
|
| 228 |
+
Bobby Bingham
|
| 229 |
+
Boris Brezillon
|
| 230 |
+
Brent Cook
|
| 231 |
+
Chris Spiegel
|
| 232 |
+
Clément Vasseur
|
| 233 |
+
Daniel Micay
|
| 234 |
+
Daniel Sabogal
|
| 235 |
+
Daurnimator
|
| 236 |
+
David Carlier
|
| 237 |
+
David Edelsohn
|
| 238 |
+
Denys Vlasenko
|
| 239 |
+
Dmitry Ivanov
|
| 240 |
+
Dmitry V. Levin
|
| 241 |
+
Drew DeVault
|
| 242 |
+
Emil Renner Berthing
|
| 243 |
+
Fangrui Song
|
| 244 |
+
Felix Fietkau
|
| 245 |
+
Felix Janda
|
| 246 |
+
Gianluca Anzolin
|
| 247 |
+
Hauke Mehrtens
|
| 248 |
+
He X
|
| 249 |
+
Hiltjo Posthuma
|
| 250 |
+
Isaac Dunham
|
| 251 |
+
Jaydeep Patil
|
| 252 |
+
Jens Gustedt
|
| 253 |
+
Jeremy Huntwork
|
| 254 |
+
Jo-Philipp Wich
|
| 255 |
+
Joakim Sindholt
|
| 256 |
+
John Spencer
|
| 257 |
+
Julien Ramseier
|
| 258 |
+
Justin Cormack
|
| 259 |
+
Kaarle Ritvanen
|
| 260 |
+
Khem Raj
|
| 261 |
+
Kylie McClain
|
| 262 |
+
Leah Neukirchen
|
| 263 |
+
Luca Barbato
|
| 264 |
+
Luka Perkov
|
| 265 |
+
M Farkas-Dyck (Strake)
|
| 266 |
+
Mahesh Bodapati
|
| 267 |
+
Markus Wichmann
|
| 268 |
+
Masanori Ogino
|
| 269 |
+
Michael Clark
|
| 270 |
+
Michael Forney
|
| 271 |
+
Mikhail Kremnyov
|
| 272 |
+
Natanael Copa
|
| 273 |
+
Nicholas J. Kain
|
| 274 |
+
orc
|
| 275 |
+
Pascal Cuoq
|
| 276 |
+
Patrick Oppenlander
|
| 277 |
+
Petr Hosek
|
| 278 |
+
Petr Skocik
|
| 279 |
+
Pierre Carrier
|
| 280 |
+
Reini Urban
|
| 281 |
+
Rich Felker
|
| 282 |
+
Richard Pennington
|
| 283 |
+
Ryan Fairfax
|
| 284 |
+
Samuel Holland
|
| 285 |
+
Segev Finer
|
| 286 |
+
Shiz
|
| 287 |
+
sin
|
| 288 |
+
Solar Designer
|
| 289 |
+
Stefan Kristiansson
|
| 290 |
+
Stefan O'Rear
|
| 291 |
+
Szabolcs Nagy
|
| 292 |
+
Timo Teräs
|
| 293 |
+
Trutz Behn
|
| 294 |
+
Valentin Ochs
|
| 295 |
+
Will Dietz
|
| 296 |
+
William Haddon
|
| 297 |
+
William Pitcock
|
| 298 |
+
|
| 299 |
+
Portions of this software are derived from third-party works licensed
|
| 300 |
+
under terms compatible with the above MIT license:
|
| 301 |
+
|
| 302 |
+
The TRE regular expression implementation (src/regex/reg* and
|
| 303 |
+
src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed
|
| 304 |
+
under a 2-clause BSD license (license text in the source files). The
|
| 305 |
+
included version has been heavily modified by Rich Felker in 2012, in
|
| 306 |
+
the interests of size, simplicity, and namespace cleanliness.
|
| 307 |
+
|
| 308 |
+
Much of the math library code (src/math/* and src/complex/*) is
|
| 309 |
+
Copyright © 1993,2004 Sun Microsystems or
|
| 310 |
+
Copyright © 2003-2011 David Schultz or
|
| 311 |
+
Copyright © 2003-2009 Steven G. Kargl or
|
| 312 |
+
Copyright © 2003-2009 Bruce D. Evans or
|
| 313 |
+
Copyright © 2008 Stephen L. Moshier or
|
| 314 |
+
Copyright © 2017-2018 Arm Limited
|
| 315 |
+
and labelled as such in comments in the individual source files. All
|
| 316 |
+
have been licensed under extremely permissive terms.
|
| 317 |
+
|
| 318 |
+
The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008
|
| 319 |
+
The Android Open Source Project and is licensed under a two-clause BSD
|
| 320 |
+
license. It was taken from Bionic libc, used on Android.
|
| 321 |
+
|
| 322 |
+
The AArch64 memcpy and memset code (src/string/aarch64/*) are
|
| 323 |
+
Copyright © 1999-2019, Arm Limited.
|
| 324 |
+
|
| 325 |
+
The implementation of DES for crypt (src/crypt/crypt_des.c) is
|
| 326 |
+
Copyright © 1994 David Burren. It is licensed under a BSD license.
|
| 327 |
+
|
| 328 |
+
The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was
|
| 329 |
+
originally written by Solar Designer and placed into the public
|
| 330 |
+
domain. The code also comes with a fallback permissive license for use
|
| 331 |
+
in jurisdictions that may not recognize the public domain.
|
| 332 |
+
|
| 333 |
+
The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011
|
| 334 |
+
Valentin Ochs and is licensed under an MIT-style license.
|
| 335 |
+
|
| 336 |
+
The x86_64 port was written by Nicholas J. Kain and is licensed under
|
| 337 |
+
the standard MIT terms.
|
| 338 |
+
|
| 339 |
+
The mips and microblaze ports were originally written by Richard
|
| 340 |
+
Pennington for use in the ellcc project. The original code was adapted
|
| 341 |
+
by Rich Felker for build system and code conventions during upstream
|
| 342 |
+
integration. It is licensed under the standard MIT terms.
|
| 343 |
+
|
| 344 |
+
The mips64 port was contributed by Imagination Technologies and is
|
| 345 |
+
licensed under the standard MIT terms.
|
| 346 |
+
|
| 347 |
+
The powerpc port was also originally written by Richard Pennington,
|
| 348 |
+
and later supplemented and integrated by John Spencer. It is licensed
|
| 349 |
+
under the standard MIT terms.
|
| 350 |
+
|
| 351 |
+
All other files which have no copyright comments are original works
|
| 352 |
+
produced specifically for use as part of this library, written either
|
| 353 |
+
by Rich Felker, the main author of the library, or by one or more
|
| 354 |
+
contibutors listed above. Details on authorship of individual files
|
| 355 |
+
can be found in the git version control history of the project. The
|
| 356 |
+
omission of copyright and license comments in each file is in the
|
| 357 |
+
interest of source tree size.
|
| 358 |
+
|
| 359 |
+
In addition, permission is hereby granted for all public header files
|
| 360 |
+
(include/* and arch/*/bits/*) and crt files intended to be linked into
|
| 361 |
+
applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit
|
| 362 |
+
the copyright notice and permission notice otherwise required by the
|
| 363 |
+
license, and to use these files without any requirement of
|
| 364 |
+
attribution. These files include substantial contributions from:
|
| 365 |
+
|
| 366 |
+
Bobby Bingham
|
| 367 |
+
John Spencer
|
| 368 |
+
Nicholas J. Kain
|
| 369 |
+
Rich Felker
|
| 370 |
+
Richard Pennington
|
| 371 |
+
Stefan Kristiansson
|
| 372 |
+
Szabolcs Nagy
|
| 373 |
+
|
| 374 |
+
all of whom have explicitly granted such permission.
|
| 375 |
+
|
| 376 |
+
This file previously contained text expressing a belief that most of
|
| 377 |
+
the files covered by the above exception were sufficiently trivial not
|
| 378 |
+
to be subject to copyright, resulting in confusion over whether it
|
| 379 |
+
negated the permissions granted in the license. In the spirit of
|
| 380 |
+
permissive licensing, and of not having licensing issues being an
|
| 381 |
+
obstacle to adoption, that text has been removed.Copyright (c) 2005-2023, NumPy Developers.
|
| 382 |
+
All rights reserved.
|
| 383 |
+
|
| 384 |
+
Redistribution and use in source and binary forms, with or without
|
| 385 |
+
modification, are permitted provided that the following conditions are
|
| 386 |
+
met:
|
| 387 |
+
|
| 388 |
+
* Redistributions of source code must retain the above copyright
|
| 389 |
+
notice, this list of conditions and the following disclaimer.
|
| 390 |
+
|
| 391 |
+
* Redistributions in binary form must reproduce the above
|
| 392 |
+
copyright notice, this list of conditions and the following
|
| 393 |
+
disclaimer in the documentation and/or other materials provided
|
| 394 |
+
with the distribution.
|
| 395 |
+
|
| 396 |
+
* Neither the name of the NumPy Developers nor the names of any
|
| 397 |
+
contributors may be used to endorse or promote products derived
|
| 398 |
+
from this software without specific prior written permission.
|
| 399 |
+
|
| 400 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 401 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 402 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 403 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 404 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 405 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 406 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 407 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 408 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 409 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 410 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 411 |
+
Apache License
|
| 412 |
+
Version 2.0, January 2004
|
| 413 |
+
http://www.apache.org/licenses/
|
| 414 |
+
|
| 415 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 416 |
+
|
| 417 |
+
1. Definitions.
|
| 418 |
+
|
| 419 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 420 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 421 |
+
|
| 422 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 423 |
+
the copyright owner that is granting the License.
|
| 424 |
+
|
| 425 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 426 |
+
other entities that control, are controlled by, or are under common
|
| 427 |
+
control with that entity. For the purposes of this definition,
|
| 428 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 429 |
+
direction or management of such entity, whether by contract or
|
| 430 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 431 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 432 |
+
|
| 433 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 434 |
+
exercising permissions granted by this License.
|
| 435 |
+
|
| 436 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 437 |
+
including but not limited to software source code, documentation
|
| 438 |
+
source, and configuration files.
|
| 439 |
+
|
| 440 |
+
"Object" form shall mean any form resulting from mechanical
|
| 441 |
+
transformation or translation of a Source form, including but
|
| 442 |
+
not limited to compiled object code, generated documentation,
|
| 443 |
+
and conversions to other media types.
|
| 444 |
+
|
| 445 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 446 |
+
Object form, made available under the License, as indicated by a
|
| 447 |
+
copyright notice that is included in or attached to the work
|
| 448 |
+
(an example is provided in the Appendix below).
|
| 449 |
+
|
| 450 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 451 |
+
form, that is based on (or derived from) the Work and for which the
|
| 452 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 453 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 454 |
+
of this License, Derivative Works shall not include works that remain
|
| 455 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 456 |
+
the Work and Derivative Works thereof.
|
| 457 |
+
|
| 458 |
+
"Contribution" shall mean any work of authorship, including
|
| 459 |
+
the original version of the Work and any modifications or additions
|
| 460 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 461 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 462 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 463 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 464 |
+
means any form of electronic, verbal, or written communication sent
|
| 465 |
+
to the Licensor or its representatives, including but not limited to
|
| 466 |
+
communication on electronic mailing lists, source code control systems,
|
| 467 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 468 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 469 |
+
excluding communication that is conspicuously marked or otherwise
|
| 470 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 471 |
+
|
| 472 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 473 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 474 |
+
subsequently incorporated within the Work.
|
| 475 |
+
|
| 476 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 477 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 478 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 479 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 480 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 481 |
+
Work and such Derivative Works in Source or Object form.
|
| 482 |
+
|
| 483 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 484 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 485 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 486 |
+
(except as stated in this section) patent license to make, have made,
|
| 487 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 488 |
+
where such license applies only to those patent claims licensable
|
| 489 |
+
by such Contributor that are necessarily infringed by their
|
| 490 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 491 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 492 |
+
institute patent litigation against any entity (including a
|
| 493 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 494 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 495 |
+
or contributory patent infringement, then any patent licenses
|
| 496 |
+
granted to You under this License for that Work shall terminate
|
| 497 |
+
as of the date such litigation is filed.
|
| 498 |
+
|
| 499 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 500 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 501 |
+
modifications, and in Source or Object form, provided that You
|
| 502 |
+
meet the following conditions:
|
| 503 |
+
|
| 504 |
+
(a) You must give any other recipients of the Work or
|
| 505 |
+
Derivative Works a copy of this License; and
|
| 506 |
+
|
| 507 |
+
(b) You must cause any modified files to carry prominent notices
|
| 508 |
+
stating that You changed the files; and
|
| 509 |
+
|
| 510 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 511 |
+
that You distribute, all copyright, patent, trademark, and
|
| 512 |
+
attribution notices from the Source form of the Work,
|
| 513 |
+
excluding those notices that do not pertain to any part of
|
| 514 |
+
the Derivative Works; and
|
| 515 |
+
|
| 516 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 517 |
+
distribution, then any Derivative Works that You distribute must
|
| 518 |
+
include a readable copy of the attribution notices contained
|
| 519 |
+
within such NOTICE file, excluding those notices that do not
|
| 520 |
+
pertain to any part of the Derivative Works, in at least one
|
| 521 |
+
of the following places: within a NOTICE text file distributed
|
| 522 |
+
as part of the Derivative Works; within the Source form or
|
| 523 |
+
documentation, if provided along with the Derivative Works; or,
|
| 524 |
+
within a display generated by the Derivative Works, if and
|
| 525 |
+
wherever such third-party notices normally appear. The contents
|
| 526 |
+
of the NOTICE file are for informational purposes only and
|
| 527 |
+
do not modify the License. You may add Your own attribution
|
| 528 |
+
notices within Derivative Works that You distribute, alongside
|
| 529 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 530 |
+
that such additional attribution notices cannot be construed
|
| 531 |
+
as modifying the License.
|
| 532 |
+
|
| 533 |
+
You may add Your own copyright statement to Your modifications and
|
| 534 |
+
may provide additional or different license terms and conditions
|
| 535 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 536 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 537 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 538 |
+
the conditions stated in this License.
|
| 539 |
+
|
| 540 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 541 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 542 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 543 |
+
this License, without any additional terms or conditions.
|
| 544 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 545 |
+
the terms of any separate license agreement you may have executed
|
| 546 |
+
with Licensor regarding such Contributions.
|
| 547 |
+
|
| 548 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 549 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 550 |
+
except as required for reasonable and customary use in describing the
|
| 551 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 552 |
+
|
| 553 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 554 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 555 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 556 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 557 |
+
implied, including, without limitation, any warranties or conditions
|
| 558 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 559 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 560 |
+
appropriateness of using or redistributing the Work and assume any
|
| 561 |
+
risks associated with Your exercise of permissions under this License.
|
| 562 |
+
|
| 563 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 564 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 565 |
+
unless required by applicable law (such as deliberate and grossly
|
| 566 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 567 |
+
liable to You for damages, including any direct, indirect, special,
|
| 568 |
+
incidental, or consequential damages of any character arising as a
|
| 569 |
+
result of this License or out of the use or inability to use the
|
| 570 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 571 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 572 |
+
other commercial damages or losses), even if such Contributor
|
| 573 |
+
has been advised of the possibility of such damages.
|
| 574 |
+
|
| 575 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 576 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 577 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 578 |
+
or other liability obligations and/or rights consistent with this
|
| 579 |
+
License. However, in accepting such obligations, You may act only
|
| 580 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 581 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 582 |
+
defend, and hold each Contributor harmless for any liability
|
| 583 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 584 |
+
of your accepting any such warranty or additional liability.
|
| 585 |
+
|
| 586 |
+
END OF TERMS AND CONDITIONS
|
| 587 |
+
|
| 588 |
+
|
| 589 |
+
Copyright (c) Donald Stufft and individual contributors.
|
| 590 |
+
All rights reserved.
|
| 591 |
+
|
| 592 |
+
Redistribution and use in source and binary forms, with or without
|
| 593 |
+
modification, are permitted provided that the following conditions are met:
|
| 594 |
+
|
| 595 |
+
1. Redistributions of source code must retain the above copyright notice,
|
| 596 |
+
this list of conditions and the following disclaimer.
|
| 597 |
+
|
| 598 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 599 |
+
notice, this list of conditions and the following disclaimer in the
|
| 600 |
+
documentation and/or other materials provided with the distribution.
|
| 601 |
+
|
| 602 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 603 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 604 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 605 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 606 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 607 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 608 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 609 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 610 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 611 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.A. HISTORY OF THE SOFTWARE
|
| 612 |
+
==========================
|
| 613 |
+
|
| 614 |
+
Python was created in the early 1990s by Guido van Rossum at Stichting
|
| 615 |
+
Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands
|
| 616 |
+
as a successor of a language called ABC. Guido remains Python's
|
| 617 |
+
principal author, although it includes many contributions from others.
|
| 618 |
+
|
| 619 |
+
In 1995, Guido continued his work on Python at the Corporation for
|
| 620 |
+
National Research Initiatives (CNRI, see https://www.cnri.reston.va.us)
|
| 621 |
+
in Reston, Virginia where he released several versions of the
|
| 622 |
+
software.
|
| 623 |
+
|
| 624 |
+
In May 2000, Guido and the Python core development team moved to
|
| 625 |
+
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
|
| 626 |
+
year, the PythonLabs team moved to Digital Creations, which became
|
| 627 |
+
Zope Corporation. In 2001, the Python Software Foundation (PSF, see
|
| 628 |
+
https://www.python.org/psf/) was formed, a non-profit organization
|
| 629 |
+
created specifically to own Python-related Intellectual Property.
|
| 630 |
+
Zope Corporation was a sponsoring member of the PSF.
|
| 631 |
+
|
| 632 |
+
All Python releases are Open Source (see https://opensource.org for
|
| 633 |
+
the Open Source Definition). Historically, most, but not all, Python
|
| 634 |
+
releases have also been GPL-compatible; the table below summarizes
|
| 635 |
+
the various releases.
|
| 636 |
+
|
| 637 |
+
Release Derived Year Owner GPL-
|
| 638 |
+
from compatible? (1)
|
| 639 |
+
|
| 640 |
+
0.9.0 thru 1.2 1991-1995 CWI yes
|
| 641 |
+
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
|
| 642 |
+
1.6 1.5.2 2000 CNRI no
|
| 643 |
+
2.0 1.6 2000 BeOpen.com no
|
| 644 |
+
1.6.1 1.6 2001 CNRI yes (2)
|
| 645 |
+
2.1 2.0+1.6.1 2001 PSF no
|
| 646 |
+
2.0.1 2.0+1.6.1 2001 PSF yes
|
| 647 |
+
2.1.1 2.1+2.0.1 2001 PSF yes
|
| 648 |
+
2.1.2 2.1.1 2002 PSF yes
|
| 649 |
+
2.1.3 2.1.2 2002 PSF yes
|
| 650 |
+
2.2 and above 2.1.1 2001-now PSF yes
|
| 651 |
+
|
| 652 |
+
Footnotes:
|
| 653 |
+
|
| 654 |
+
(1) GPL-compatible doesn't mean that we're distributing Python under
|
| 655 |
+
the GPL. All Python licenses, unlike the GPL, let you distribute
|
| 656 |
+
a modified version without making your changes open source. The
|
| 657 |
+
GPL-compatible licenses make it possible to combine Python with
|
| 658 |
+
other software that is released under the GPL; the others don't.
|
| 659 |
+
|
| 660 |
+
(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
|
| 661 |
+
because its license has a choice of law clause. According to
|
| 662 |
+
CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
|
| 663 |
+
is "not incompatible" with the GPL.
|
| 664 |
+
|
| 665 |
+
Thanks to the many outside volunteers who have worked under Guido's
|
| 666 |
+
direction to make these releases possible.
|
| 667 |
+
|
| 668 |
+
|
| 669 |
+
B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
|
| 670 |
+
===============================================================
|
| 671 |
+
|
| 672 |
+
Python software and documentation are licensed under the
|
| 673 |
+
Python Software Foundation License Version 2.
|
| 674 |
+
|
| 675 |
+
Starting with Python 3.8.6, examples, recipes, and other code in
|
| 676 |
+
the documentation are dual licensed under the PSF License Version 2
|
| 677 |
+
and the Zero-Clause BSD license.
|
| 678 |
+
|
| 679 |
+
Some software incorporated into Python is under different licenses.
|
| 680 |
+
The licenses are listed with code falling under that license.
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
|
| 684 |
+
--------------------------------------------
|
| 685 |
+
|
| 686 |
+
1. This LICENSE AGREEMENT is between the Python Software Foundation
|
| 687 |
+
("PSF"), and the Individual or Organization ("Licensee") accessing and
|
| 688 |
+
otherwise using this software ("Python") in source or binary form and
|
| 689 |
+
its associated documentation.
|
| 690 |
+
|
| 691 |
+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
| 692 |
+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
|
| 693 |
+
analyze, test, perform and/or display publicly, prepare derivative works,
|
| 694 |
+
distribute, and otherwise use Python alone or in any derivative version,
|
| 695 |
+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
|
| 696 |
+
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
| 697 |
+
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Python Software Foundation;
|
| 698 |
+
All Rights Reserved" are retained in Python alone or in any derivative version
|
| 699 |
+
prepared by Licensee.
|
| 700 |
+
|
| 701 |
+
3. In the event Licensee prepares a derivative work that is based on
|
| 702 |
+
or incorporates Python or any part thereof, and wants to make
|
| 703 |
+
the derivative work available to others as provided herein, then
|
| 704 |
+
Licensee hereby agrees to include in any such work a brief summary of
|
| 705 |
+
the changes made to Python.
|
| 706 |
+
|
| 707 |
+
4. PSF is making Python available to Licensee on an "AS IS"
|
| 708 |
+
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 709 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
|
| 710 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 711 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
|
| 712 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 713 |
+
|
| 714 |
+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
| 715 |
+
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
| 716 |
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
|
| 717 |
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 718 |
+
|
| 719 |
+
6. This License Agreement will automatically terminate upon a material
|
| 720 |
+
breach of its terms and conditions.
|
| 721 |
+
|
| 722 |
+
7. Nothing in this License Agreement shall be deemed to create any
|
| 723 |
+
relationship of agency, partnership, or joint venture between PSF and
|
| 724 |
+
Licensee. This License Agreement does not grant permission to use PSF
|
| 725 |
+
trademarks or trade name in a trademark sense to endorse or promote
|
| 726 |
+
products or services of Licensee, or any third party.
|
| 727 |
+
|
| 728 |
+
8. By copying, installing or otherwise using Python, Licensee
|
| 729 |
+
agrees to be bound by the terms and conditions of this License
|
| 730 |
+
Agreement.
|
| 731 |
+
|
| 732 |
+
|
| 733 |
+
BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
|
| 734 |
+
-------------------------------------------
|
| 735 |
+
|
| 736 |
+
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
|
| 737 |
+
|
| 738 |
+
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
|
| 739 |
+
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
|
| 740 |
+
Individual or Organization ("Licensee") accessing and otherwise using
|
| 741 |
+
this software in source or binary form and its associated
|
| 742 |
+
documentation ("the Software").
|
| 743 |
+
|
| 744 |
+
2. Subject to the terms and conditions of this BeOpen Python License
|
| 745 |
+
Agreement, BeOpen hereby grants Licensee a non-exclusive,
|
| 746 |
+
royalty-free, world-wide license to reproduce, analyze, test, perform
|
| 747 |
+
and/or display publicly, prepare derivative works, distribute, and
|
| 748 |
+
otherwise use the Software alone or in any derivative version,
|
| 749 |
+
provided, however, that the BeOpen Python License is retained in the
|
| 750 |
+
Software, alone or in any derivative version prepared by Licensee.
|
| 751 |
+
|
| 752 |
+
3. BeOpen is making the Software available to Licensee on an "AS IS"
|
| 753 |
+
basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 754 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
|
| 755 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 756 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
|
| 757 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 758 |
+
|
| 759 |
+
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
|
| 760 |
+
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
|
| 761 |
+
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
|
| 762 |
+
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 763 |
+
|
| 764 |
+
5. This License Agreement will automatically terminate upon a material
|
| 765 |
+
breach of its terms and conditions.
|
| 766 |
+
|
| 767 |
+
6. This License Agreement shall be governed by and interpreted in all
|
| 768 |
+
respects by the law of the State of California, excluding conflict of
|
| 769 |
+
law provisions. Nothing in this License Agreement shall be deemed to
|
| 770 |
+
create any relationship of agency, partnership, or joint venture
|
| 771 |
+
between BeOpen and Licensee. This License Agreement does not grant
|
| 772 |
+
permission to use BeOpen trademarks or trade names in a trademark
|
| 773 |
+
sense to endorse or promote products or services of Licensee, or any
|
| 774 |
+
third party. As an exception, the "BeOpen Python" logos available at
|
| 775 |
+
http://www.pythonlabs.com/logos.html may be used according to the
|
| 776 |
+
permissions granted on that web page.
|
| 777 |
+
|
| 778 |
+
7. By copying, installing or otherwise using the software, Licensee
|
| 779 |
+
agrees to be bound by the terms and conditions of this License
|
| 780 |
+
Agreement.
|
| 781 |
+
|
| 782 |
+
|
| 783 |
+
CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
|
| 784 |
+
---------------------------------------
|
| 785 |
+
|
| 786 |
+
1. This LICENSE AGREEMENT is between the Corporation for National
|
| 787 |
+
Research Initiatives, having an office at 1895 Preston White Drive,
|
| 788 |
+
Reston, VA 20191 ("CNRI"), and the Individual or Organization
|
| 789 |
+
("Licensee") accessing and otherwise using Python 1.6.1 software in
|
| 790 |
+
source or binary form and its associated documentation.
|
| 791 |
+
|
| 792 |
+
2. Subject to the terms and conditions of this License Agreement, CNRI
|
| 793 |
+
hereby grants Licensee a nonexclusive, royalty-free, world-wide
|
| 794 |
+
license to reproduce, analyze, test, perform and/or display publicly,
|
| 795 |
+
prepare derivative works, distribute, and otherwise use Python 1.6.1
|
| 796 |
+
alone or in any derivative version, provided, however, that CNRI's
|
| 797 |
+
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
|
| 798 |
+
1995-2001 Corporation for National Research Initiatives; All Rights
|
| 799 |
+
Reserved" are retained in Python 1.6.1 alone or in any derivative
|
| 800 |
+
version prepared by Licensee. Alternately, in lieu of CNRI's License
|
| 801 |
+
Agreement, Licensee may substitute the following text (omitting the
|
| 802 |
+
quotes): "Python 1.6.1 is made available subject to the terms and
|
| 803 |
+
conditions in CNRI's License Agreement. This Agreement together with
|
| 804 |
+
Python 1.6.1 may be located on the internet using the following
|
| 805 |
+
unique, persistent identifier (known as a handle): 1895.22/1013. This
|
| 806 |
+
Agreement may also be obtained from a proxy server on the internet
|
| 807 |
+
using the following URL: http://hdl.handle.net/1895.22/1013".
|
| 808 |
+
|
| 809 |
+
3. In the event Licensee prepares a derivative work that is based on
|
| 810 |
+
or incorporates Python 1.6.1 or any part thereof, and wants to make
|
| 811 |
+
the derivative work available to others as provided herein, then
|
| 812 |
+
Licensee hereby agrees to include in any such work a brief summary of
|
| 813 |
+
the changes made to Python 1.6.1.
|
| 814 |
+
|
| 815 |
+
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
|
| 816 |
+
basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 817 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
|
| 818 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 819 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
|
| 820 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 821 |
+
|
| 822 |
+
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
| 823 |
+
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
| 824 |
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
|
| 825 |
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 826 |
+
|
| 827 |
+
6. This License Agreement will automatically terminate upon a material
|
| 828 |
+
breach of its terms and conditions.
|
| 829 |
+
|
| 830 |
+
7. This License Agreement shall be governed by the federal
|
| 831 |
+
intellectual property law of the United States, including without
|
| 832 |
+
limitation the federal copyright law, and, to the extent such
|
| 833 |
+
U.S. federal law does not apply, by the law of the Commonwealth of
|
| 834 |
+
Virginia, excluding Virginia's conflict of law provisions.
|
| 835 |
+
Notwithstanding the foregoing, with regard to derivative works based
|
| 836 |
+
on Python 1.6.1 that incorporate non-separable material that was
|
| 837 |
+
previously distributed under the GNU General Public License (GPL), the
|
| 838 |
+
law of the Commonwealth of Virginia shall govern this License
|
| 839 |
+
Agreement only as to issues arising under or with respect to
|
| 840 |
+
Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
|
| 841 |
+
License Agreement shall be deemed to create any relationship of
|
| 842 |
+
agency, partnership, or joint venture between CNRI and Licensee. This
|
| 843 |
+
License Agreement does not grant permission to use CNRI trademarks or
|
| 844 |
+
trade name in a trademark sense to endorse or promote products or
|
| 845 |
+
services of Licensee, or any third party.
|
| 846 |
+
|
| 847 |
+
8. By clicking on the "ACCEPT" button where indicated, or by copying,
|
| 848 |
+
installing or otherwise using Python 1.6.1, Licensee agrees to be
|
| 849 |
+
bound by the terms and conditions of this License Agreement.
|
| 850 |
+
|
| 851 |
+
ACCEPT
|
| 852 |
+
|
| 853 |
+
|
| 854 |
+
CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
|
| 855 |
+
--------------------------------------------------
|
| 856 |
+
|
| 857 |
+
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
|
| 858 |
+
The Netherlands. All rights reserved.
|
| 859 |
+
|
| 860 |
+
Permission to use, copy, modify, and distribute this software and its
|
| 861 |
+
documentation for any purpose and without fee is hereby granted,
|
| 862 |
+
provided that the above copyright notice appear in all copies and that
|
| 863 |
+
both that copyright notice and this permission notice appear in
|
| 864 |
+
supporting documentation, and that the name of Stichting Mathematisch
|
| 865 |
+
Centrum or CWI not be used in advertising or publicity pertaining to
|
| 866 |
+
distribution of the software without specific, written prior
|
| 867 |
+
permission.
|
| 868 |
+
|
| 869 |
+
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
| 870 |
+
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
| 871 |
+
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
|
| 872 |
+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 873 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 874 |
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 875 |
+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 876 |
+
|
| 877 |
+
ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION
|
| 878 |
+
----------------------------------------------------------------------
|
| 879 |
+
|
| 880 |
+
Permission to use, copy, modify, and/or distribute this software for any
|
| 881 |
+
purpose with or without fee is hereby granted.
|
| 882 |
+
|
| 883 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
| 884 |
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
| 885 |
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
| 886 |
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
| 887 |
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
| 888 |
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
| 889 |
+
PERFORMANCE OF THIS SOFTWARE.
|
| 890 |
+
Copyright (c) 2014, Al Sweigart
|
| 891 |
+
All rights reserved.
|
| 892 |
+
|
| 893 |
+
Redistribution and use in source and binary forms, with or without
|
| 894 |
+
modification, are permitted provided that the following conditions are met:
|
| 895 |
+
|
| 896 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 897 |
+
list of conditions and the following disclaimer.
|
| 898 |
+
|
| 899 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 900 |
+
this list of conditions and the following disclaimer in the documentation
|
| 901 |
+
and/or other materials provided with the distribution.
|
| 902 |
+
|
| 903 |
+
* Neither the name of the {organization} nor the names of its
|
| 904 |
+
contributors may be used to endorse or promote products derived from
|
| 905 |
+
this software without specific prior written permission.
|
| 906 |
+
|
| 907 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 908 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 909 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 910 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 911 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 912 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 913 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 914 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 915 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 916 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Copyright (c) 2017 Anthony Sottile
|
| 917 |
+
|
| 918 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 919 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 920 |
+
in the Software without restriction, including without limitation the rights
|
| 921 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 922 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 923 |
+
furnished to do so, subject to the following conditions:
|
| 924 |
+
|
| 925 |
+
The above copyright notice and this permission notice shall be included in
|
| 926 |
+
all copies or substantial portions of the Software.
|
| 927 |
+
|
| 928 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 929 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 930 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 931 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 932 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 933 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 934 |
+
THE SOFTWARE.Copyright (c) 2015-2019 Jared Hobbs
|
| 935 |
+
|
| 936 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 937 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 938 |
+
the Software without restriction, including without limitation the rights to
|
| 939 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
| 940 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
| 941 |
+
so, subject to the following conditions:
|
| 942 |
+
|
| 943 |
+
The above copyright notice and this permission notice shall be included in all
|
| 944 |
+
copies or substantial portions of the Software.
|
| 945 |
+
|
| 946 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 947 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 948 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 949 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 950 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 951 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 952 |
+
SOFTWARE.Developed by ESN, an Electronic Arts Inc. studio.
|
| 953 |
+
Copyright (c) 2014, Electronic Arts Inc.
|
| 954 |
+
All rights reserved.
|
| 955 |
+
|
| 956 |
+
Redistribution and use in source and binary forms, with or without
|
| 957 |
+
modification, are permitted provided that the following conditions are met:
|
| 958 |
+
* Redistributions of source code must retain the above copyright
|
| 959 |
+
notice, this list of conditions and the following disclaimer.
|
| 960 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 961 |
+
notice, this list of conditions and the following disclaimer in the
|
| 962 |
+
documentation and/or other materials provided with the distribution.
|
| 963 |
+
* Neither the name of ESN, Electronic Arts Inc. nor the
|
| 964 |
+
names of its contributors may be used to endorse or promote products
|
| 965 |
+
derived from this software without specific prior written permission.
|
| 966 |
+
|
| 967 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 968 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 969 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 970 |
+
DISCLAIMED. IN NO EVENT SHALL ELECTRONIC ARTS INC. BE LIABLE
|
| 971 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 972 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 973 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
| 974 |
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 975 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 976 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 977 |
+
|
| 978 |
+
----
|
| 979 |
+
|
| 980 |
+
Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
|
| 981 |
+
https://github.com/client9/stringencoders
|
| 982 |
+
|
| 983 |
+
Copyright 2005, 2006, 2007
|
| 984 |
+
Nick Galbreath -- nickg [at] modp [dot] com
|
| 985 |
+
All rights reserved.
|
| 986 |
+
|
| 987 |
+
Redistribution and use in source and binary forms, with or without
|
| 988 |
+
modification, are permitted provided that the following conditions are
|
| 989 |
+
met:
|
| 990 |
+
|
| 991 |
+
Redistributions of source code must retain the above copyright
|
| 992 |
+
notice, this list of conditions and the following disclaimer.
|
| 993 |
+
|
| 994 |
+
Redistributions in binary form must reproduce the above copyright
|
| 995 |
+
notice, this list of conditions and the following disclaimer in the
|
| 996 |
+
documentation and/or other materials provided with the distribution.
|
| 997 |
+
|
| 998 |
+
Neither the name of the modp.com nor the names of its
|
| 999 |
+
contributors may be used to endorse or promote products derived from
|
| 1000 |
+
this software without specific prior written permission.
|
| 1001 |
+
|
| 1002 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 1003 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 1004 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 1005 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 1006 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 1007 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 1008 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 1009 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 1010 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 1011 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 1012 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 1013 |
+
|
| 1014 |
+
This is the standard "new" BSD license:
|
| 1015 |
+
http://www.opensource.org/licenses/bsd-license.php
|
| 1016 |
+
|
| 1017 |
+
https://github.com/client9/stringencoders/blob/cfd5c1507325ae497ea9bacdacba12c0ffd79d30/COPYING
|
| 1018 |
+
|
| 1019 |
+
----
|
| 1020 |
+
|
| 1021 |
+
Numeric decoder derived from from TCL library
|
| 1022 |
+
https://opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
|
| 1023 |
+
* Copyright (c) 1988-1993 The Regents of the University of California.
|
| 1024 |
+
* Copyright (c) 1994 Sun Microsystems, Inc.
|
| 1025 |
+
|
| 1026 |
+
This software is copyrighted by the Regents of the University of
|
| 1027 |
+
California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState
|
| 1028 |
+
Corporation and other parties. The following terms apply to all files
|
| 1029 |
+
associated with the software unless explicitly disclaimed in
|
| 1030 |
+
individual files.
|
| 1031 |
+
|
| 1032 |
+
The authors hereby grant permission to use, copy, modify, distribute,
|
| 1033 |
+
and license this software and its documentation for any purpose, provided
|
| 1034 |
+
that existing copyright notices are retained in all copies and that this
|
| 1035 |
+
notice is included verbatim in any distributions. No written agreement,
|
| 1036 |
+
license, or royalty fee is required for any of the authorized uses.
|
| 1037 |
+
Modifications to this software may be copyrighted by their authors
|
| 1038 |
+
and need not follow the licensing terms described here, provided that
|
| 1039 |
+
the new terms are clearly indicated on the first page of each file where
|
| 1040 |
+
they apply.
|
| 1041 |
+
|
| 1042 |
+
IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
|
| 1043 |
+
FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
| 1044 |
+
ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
|
| 1045 |
+
DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
|
| 1046 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 1047 |
+
|
| 1048 |
+
THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
|
| 1049 |
+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 1050 |
+
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
|
| 1051 |
+
IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
|
| 1052 |
+
NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
|
| 1053 |
+
MODIFICATIONS.
|
| 1054 |
+
|
| 1055 |
+
GOVERNMENT USE: If you are acquiring this software on behalf of the
|
| 1056 |
+
U.S. government, the Government shall have only "Restricted Rights"
|
| 1057 |
+
in the software and related documentation as defined in the Federal
|
| 1058 |
+
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
|
| 1059 |
+
are acquiring the software on behalf of the Department of Defense, the
|
| 1060 |
+
software shall be classified as "Commercial Computer Software" and the
|
| 1061 |
+
Government shall have only "Restricted Rights" as defined in Clause
|
| 1062 |
+
252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
|
| 1063 |
+
authors grant the U.S. Government and others acting in its behalf
|
| 1064 |
+
permission to use and distribute the software in accordance with the
|
| 1065 |
+
terms specified in this license.
|
| 1066 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 1067 |
+
Classifier: Environment :: Console
|
| 1068 |
+
Classifier: Intended Audience :: Science/Research
|
| 1069 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 1070 |
+
Classifier: Operating System :: OS Independent
|
| 1071 |
+
Classifier: Programming Language :: Cython
|
| 1072 |
+
Classifier: Programming Language :: Python
|
| 1073 |
+
Classifier: Programming Language :: Python :: 3
|
| 1074 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 1075 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 1076 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 1077 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 1078 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 1079 |
+
Classifier: Topic :: Scientific/Engineering
|
| 1080 |
+
Project-URL: homepage, https://pandas.pydata.org
|
| 1081 |
+
Project-URL: documentation, https://pandas.pydata.org/docs/
|
| 1082 |
+
Project-URL: repository, https://github.com/pandas-dev/pandas
|
| 1083 |
+
Requires-Python: >=3.11
|
| 1084 |
+
Requires-Dist: numpy>=1.26.0; python_version < "3.14"
|
| 1085 |
+
Requires-Dist: numpy>=2.3.3; python_version >= "3.14"
|
| 1086 |
+
Requires-Dist: python-dateutil>=2.8.2
|
| 1087 |
+
Requires-Dist: tzdata; sys_platform == "win32"
|
| 1088 |
+
Requires-Dist: tzdata; sys_platform == "emscripten"
|
| 1089 |
+
Provides-Extra: test
|
| 1090 |
+
Requires-Dist: hypothesis>=6.116.0; extra == "test"
|
| 1091 |
+
Requires-Dist: pytest<9.1,>=8.3.4; extra == "test"
|
| 1092 |
+
Requires-Dist: pytest-xdist>=3.6.1; extra == "test"
|
| 1093 |
+
Provides-Extra: pyarrow
|
| 1094 |
+
Requires-Dist: pyarrow>=13.0.0; extra == "pyarrow"
|
| 1095 |
+
Provides-Extra: performance
|
| 1096 |
+
Requires-Dist: bottleneck>=1.4.2; extra == "performance"
|
| 1097 |
+
Requires-Dist: numba>=0.60.0; extra == "performance"
|
| 1098 |
+
Requires-Dist: numexpr>=2.10.2; extra == "performance"
|
| 1099 |
+
Provides-Extra: computation
|
| 1100 |
+
Requires-Dist: scipy>=1.14.1; extra == "computation"
|
| 1101 |
+
Requires-Dist: xarray>=2024.10.0; extra == "computation"
|
| 1102 |
+
Provides-Extra: fss
|
| 1103 |
+
Requires-Dist: fsspec>=2024.10.0; extra == "fss"
|
| 1104 |
+
Provides-Extra: aws
|
| 1105 |
+
Requires-Dist: s3fs>=2024.10.0; extra == "aws"
|
| 1106 |
+
Provides-Extra: gcp
|
| 1107 |
+
Requires-Dist: gcsfs>=2024.10.0; extra == "gcp"
|
| 1108 |
+
Provides-Extra: excel
|
| 1109 |
+
Requires-Dist: odfpy>=1.4.1; extra == "excel"
|
| 1110 |
+
Requires-Dist: openpyxl>=3.1.5; extra == "excel"
|
| 1111 |
+
Requires-Dist: python-calamine>=0.3.0; extra == "excel"
|
| 1112 |
+
Requires-Dist: pyxlsb>=1.0.10; extra == "excel"
|
| 1113 |
+
Requires-Dist: xlrd>=2.0.1; extra == "excel"
|
| 1114 |
+
Requires-Dist: xlsxwriter>=3.2.0; extra == "excel"
|
| 1115 |
+
Provides-Extra: parquet
|
| 1116 |
+
Requires-Dist: pyarrow>=13.0.0; extra == "parquet"
|
| 1117 |
+
Provides-Extra: feather
|
| 1118 |
+
Requires-Dist: pyarrow>=13.0.0; extra == "feather"
|
| 1119 |
+
Provides-Extra: iceberg
|
| 1120 |
+
Requires-Dist: pyiceberg>=0.8.1; extra == "iceberg"
|
| 1121 |
+
Provides-Extra: hdf5
|
| 1122 |
+
Requires-Dist: tables>=3.10.1; extra == "hdf5"
|
| 1123 |
+
Provides-Extra: spss
|
| 1124 |
+
Requires-Dist: pyreadstat>=1.2.8; extra == "spss"
|
| 1125 |
+
Provides-Extra: postgresql
|
| 1126 |
+
Requires-Dist: SQLAlchemy>=2.0.36; extra == "postgresql"
|
| 1127 |
+
Requires-Dist: psycopg2>=2.9.10; extra == "postgresql"
|
| 1128 |
+
Requires-Dist: adbc-driver-postgresql>=1.2.0; extra == "postgresql"
|
| 1129 |
+
Provides-Extra: mysql
|
| 1130 |
+
Requires-Dist: SQLAlchemy>=2.0.36; extra == "mysql"
|
| 1131 |
+
Requires-Dist: pymysql>=1.1.1; extra == "mysql"
|
| 1132 |
+
Provides-Extra: sql-other
|
| 1133 |
+
Requires-Dist: SQLAlchemy>=2.0.36; extra == "sql-other"
|
| 1134 |
+
Requires-Dist: adbc-driver-postgresql>=1.2.0; extra == "sql-other"
|
| 1135 |
+
Requires-Dist: adbc-driver-sqlite>=1.2.0; extra == "sql-other"
|
| 1136 |
+
Provides-Extra: html
|
| 1137 |
+
Requires-Dist: beautifulsoup4>=4.12.3; extra == "html"
|
| 1138 |
+
Requires-Dist: html5lib>=1.1; extra == "html"
|
| 1139 |
+
Requires-Dist: lxml>=5.3.0; extra == "html"
|
| 1140 |
+
Provides-Extra: xml
|
| 1141 |
+
Requires-Dist: lxml>=5.3.0; extra == "xml"
|
| 1142 |
+
Provides-Extra: plot
|
| 1143 |
+
Requires-Dist: matplotlib>=3.9.3; extra == "plot"
|
| 1144 |
+
Provides-Extra: output-formatting
|
| 1145 |
+
Requires-Dist: jinja2>=3.1.5; extra == "output-formatting"
|
| 1146 |
+
Requires-Dist: tabulate>=0.9.0; extra == "output-formatting"
|
| 1147 |
+
Provides-Extra: clipboard
|
| 1148 |
+
Requires-Dist: PyQt5>=5.15.9; extra == "clipboard"
|
| 1149 |
+
Requires-Dist: qtpy>=2.4.2; extra == "clipboard"
|
| 1150 |
+
Provides-Extra: compression
|
| 1151 |
+
Requires-Dist: zstandard>=0.23.0; extra == "compression"
|
| 1152 |
+
Provides-Extra: timezone
|
| 1153 |
+
Requires-Dist: pytz>=2020.1; extra == "timezone"
|
| 1154 |
+
Provides-Extra: all
|
| 1155 |
+
Requires-Dist: adbc-driver-postgresql>=1.2.0; extra == "all"
|
| 1156 |
+
Requires-Dist: adbc-driver-sqlite>=1.2.0; extra == "all"
|
| 1157 |
+
Requires-Dist: beautifulsoup4>=4.12.3; extra == "all"
|
| 1158 |
+
Requires-Dist: bottleneck>=1.4.2; extra == "all"
|
| 1159 |
+
Requires-Dist: fastparquet>=2024.11.0; extra == "all"
|
| 1160 |
+
Requires-Dist: fsspec>=2024.10.0; extra == "all"
|
| 1161 |
+
Requires-Dist: gcsfs>=2024.10.0; extra == "all"
|
| 1162 |
+
Requires-Dist: html5lib>=1.1; extra == "all"
|
| 1163 |
+
Requires-Dist: hypothesis>=6.116.0; extra == "all"
|
| 1164 |
+
Requires-Dist: jinja2>=3.1.5; extra == "all"
|
| 1165 |
+
Requires-Dist: lxml>=5.3.0; extra == "all"
|
| 1166 |
+
Requires-Dist: matplotlib>=3.9.3; extra == "all"
|
| 1167 |
+
Requires-Dist: numba>=0.60.0; extra == "all"
|
| 1168 |
+
Requires-Dist: numexpr>=2.10.2; extra == "all"
|
| 1169 |
+
Requires-Dist: odfpy>=1.4.1; extra == "all"
|
| 1170 |
+
Requires-Dist: openpyxl>=3.1.5; extra == "all"
|
| 1171 |
+
Requires-Dist: psycopg2>=2.9.10; extra == "all"
|
| 1172 |
+
Requires-Dist: pyarrow>=13.0.0; extra == "all"
|
| 1173 |
+
Requires-Dist: pyiceberg>=0.8.1; extra == "all"
|
| 1174 |
+
Requires-Dist: pymysql>=1.1.1; extra == "all"
|
| 1175 |
+
Requires-Dist: PyQt5>=5.15.9; extra == "all"
|
| 1176 |
+
Requires-Dist: pyreadstat>=1.2.8; extra == "all"
|
| 1177 |
+
Requires-Dist: pytest>=8.3.4; extra == "all"
|
| 1178 |
+
Requires-Dist: pytest-xdist>=3.6.1; extra == "all"
|
| 1179 |
+
Requires-Dist: python-calamine>=0.3.0; extra == "all"
|
| 1180 |
+
Requires-Dist: pytz>=2020.1; extra == "all"
|
| 1181 |
+
Requires-Dist: pyxlsb>=1.0.10; extra == "all"
|
| 1182 |
+
Requires-Dist: qtpy>=2.4.2; extra == "all"
|
| 1183 |
+
Requires-Dist: scipy>=1.14.1; extra == "all"
|
| 1184 |
+
Requires-Dist: s3fs>=2024.10.0; extra == "all"
|
| 1185 |
+
Requires-Dist: SQLAlchemy>=2.0.36; extra == "all"
|
| 1186 |
+
Requires-Dist: tables>=3.10.1; extra == "all"
|
| 1187 |
+
Requires-Dist: tabulate>=0.9.0; extra == "all"
|
| 1188 |
+
Requires-Dist: xarray>=2024.10.0; extra == "all"
|
| 1189 |
+
Requires-Dist: xlrd>=2.0.1; extra == "all"
|
| 1190 |
+
Requires-Dist: xlsxwriter>=3.2.0; extra == "all"
|
| 1191 |
+
Requires-Dist: zstandard>=0.23.0; extra == "all"
|
| 1192 |
+
Description-Content-Type: text/markdown
|
| 1193 |
+
|
| 1194 |
+
<picture align="center">
|
| 1195 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://pandas.pydata.org/static/img/pandas_white.svg">
|
| 1196 |
+
<img alt="Pandas Logo" src="https://pandas.pydata.org/static/img/pandas.svg">
|
| 1197 |
+
</picture>
|
| 1198 |
+
|
| 1199 |
+
-----------------
|
| 1200 |
+
|
| 1201 |
+
# pandas: A Powerful Python Data Analysis Toolkit
|
| 1202 |
+
|
| 1203 |
+
| | |
|
| 1204 |
+
| --- | --- |
|
| 1205 |
+
| Testing | [](https://github.com/pandas-dev/pandas/actions/workflows/unit-tests.yml) [](https://codecov.io/gh/pandas-dev/pandas) |
|
| 1206 |
+
| Package | [](https://pypi.org/project/pandas/) [](https://pypi.org/project/pandas/) [](https://anaconda.org/conda-forge/pandas) [](https://anaconda.org/conda-forge/pandas) |
|
| 1207 |
+
| Meta | [](https://numfocus.org) [](https://doi.org/10.5281/zenodo.3509134) [](https://github.com/pandas-dev/pandas/blob/main/LICENSE) [](https://pandas.pydata.org/docs/dev/development/community.html?highlight=slack#community-slack) [](https://insights.linuxfoundation.org/project/pandas-dev-pandas) |
|
| 1208 |
+
|
| 1209 |
+
|
| 1210 |
+
## What is it?
|
| 1211 |
+
|
| 1212 |
+
**pandas** is a Python package that provides fast, flexible, and expressive data
|
| 1213 |
+
structures designed to make working with "relational" or "labeled" data both
|
| 1214 |
+
easy and intuitive. It aims to be the fundamental high-level building block for
|
| 1215 |
+
doing practical, **real-world** data analysis in Python. Additionally, it has
|
| 1216 |
+
the broader goal of becoming **the most powerful and flexible open-source data
|
| 1217 |
+
analysis/manipulation tool available in any language**. It is already well on
|
| 1218 |
+
its way towards this goal.
|
| 1219 |
+
|
| 1220 |
+
## Table of Contents
|
| 1221 |
+
|
| 1222 |
+
- [Main Features](#main-features)
|
| 1223 |
+
- [Where to get it](#where-to-get-it)
|
| 1224 |
+
- [Dependencies](#dependencies)
|
| 1225 |
+
- [Installation from sources](#installation-from-sources)
|
| 1226 |
+
- [License](#license)
|
| 1227 |
+
- [Documentation](#documentation)
|
| 1228 |
+
- [Background](#background)
|
| 1229 |
+
- [Getting Help](#getting-help)
|
| 1230 |
+
- [Discussion and Development](#discussion-and-development)
|
| 1231 |
+
- [Contributing to pandas](#contributing-to-pandas)
|
| 1232 |
+
|
| 1233 |
+
## Main Features
|
| 1234 |
+
Here are just a few of the things that pandas does well:
|
| 1235 |
+
|
| 1236 |
+
- Easy handling of [**missing data**][missing-data] (represented as
|
| 1237 |
+
`NaN`, `NA`, or `NaT`) in floating point as well as non-floating point data
|
| 1238 |
+
- Size mutability: columns can be [**inserted and
|
| 1239 |
+
deleted**][insertion-deletion] from DataFrame and higher dimensional
|
| 1240 |
+
objects
|
| 1241 |
+
- Automatic and explicit [**data alignment**][alignment]: objects can
|
| 1242 |
+
be explicitly aligned to a set of labels, or the user can simply
|
| 1243 |
+
ignore the labels and let `Series`, `DataFrame`, etc. automatically
|
| 1244 |
+
align the data for you in computations
|
| 1245 |
+
- Powerful, flexible [**group by**][groupby] functionality to perform
|
| 1246 |
+
split-apply-combine operations on data sets, for both aggregating
|
| 1247 |
+
and transforming data
|
| 1248 |
+
- Make it [**easy to convert**][conversion] ragged,
|
| 1249 |
+
differently-indexed data in other Python and NumPy data structures
|
| 1250 |
+
into DataFrame objects
|
| 1251 |
+
- Intelligent label-based [**slicing**][slicing], [**fancy
|
| 1252 |
+
indexing**][fancy-indexing], and [**subsetting**][subsetting] of
|
| 1253 |
+
large data sets
|
| 1254 |
+
- Intuitive [**merging**][merging] and [**joining**][joining] data
|
| 1255 |
+
sets
|
| 1256 |
+
- Flexible [**reshaping**][reshape] and [**pivoting**][pivot-table] of
|
| 1257 |
+
data sets
|
| 1258 |
+
- [**Hierarchical**][mi] labeling of axes (possible to have multiple
|
| 1259 |
+
labels per tick)
|
| 1260 |
+
- Robust I/O tools for loading data from [**flat files**][flat-files]
|
| 1261 |
+
(CSV and delimited), [**Excel files**][excel], [**databases**][db],
|
| 1262 |
+
and saving/loading data from the ultrafast [**HDF5 format**][hdfstore]
|
| 1263 |
+
- [**Time series**][timeseries]-specific functionality: date range
|
| 1264 |
+
generation and frequency conversion, moving window statistics,
|
| 1265 |
+
date shifting and lagging
|
| 1266 |
+
|
| 1267 |
+
|
| 1268 |
+
[missing-data]: https://pandas.pydata.org/pandas-docs/stable/user_guide/missing_data.html
|
| 1269 |
+
[insertion-deletion]: https://pandas.pydata.org/pandas-docs/stable/user_guide/dsintro.html#column-selection-addition-deletion
|
| 1270 |
+
[alignment]: https://pandas.pydata.org/pandas-docs/stable/user_guide/dsintro.html?highlight=alignment#intro-to-data-structures
|
| 1271 |
+
[groupby]: https://pandas.pydata.org/pandas-docs/stable/user_guide/groupby.html#group-by-split-apply-combine
|
| 1272 |
+
[conversion]: https://pandas.pydata.org/pandas-docs/stable/user_guide/dsintro.html#dataframe
|
| 1273 |
+
[slicing]: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#slicing-ranges
|
| 1274 |
+
[fancy-indexing]: https://pandas.pydata.org/pandas-docs/stable/user_guide/advanced.html#advanced
|
| 1275 |
+
[subsetting]: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#boolean-indexing
|
| 1276 |
+
[merging]: https://pandas.pydata.org/pandas-docs/stable/user_guide/merging.html#database-style-dataframe-or-named-series-joining-merging
|
| 1277 |
+
[joining]: https://pandas.pydata.org/pandas-docs/stable/user_guide/merging.html#joining-on-index
|
| 1278 |
+
[reshape]: https://pandas.pydata.org/pandas-docs/stable/user_guide/reshaping.html
|
| 1279 |
+
[pivot-table]: https://pandas.pydata.org/pandas-docs/stable/user_guide/reshaping.html
|
| 1280 |
+
[mi]: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#hierarchical-indexing-multiindex
|
| 1281 |
+
[flat-files]: https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#csv-text-files
|
| 1282 |
+
[excel]: https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#excel-files
|
| 1283 |
+
[db]: https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#sql-queries
|
| 1284 |
+
[hdfstore]: https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#hdf5-pytables
|
| 1285 |
+
[timeseries]: https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#time-series-date-functionality
|
| 1286 |
+
|
| 1287 |
+
## Where to get it
|
| 1288 |
+
The source code is currently hosted on GitHub at:
|
| 1289 |
+
https://github.com/pandas-dev/pandas
|
| 1290 |
+
|
| 1291 |
+
Binary installers for the latest released version are available at the [Python
|
| 1292 |
+
Package Index (PyPI)](https://pypi.org/project/pandas) and on [Conda](https://anaconda.org/conda-forge/pandas).
|
| 1293 |
+
|
| 1294 |
+
```sh
|
| 1295 |
+
# conda
|
| 1296 |
+
conda install -c conda-forge pandas
|
| 1297 |
+
```
|
| 1298 |
+
|
| 1299 |
+
```sh
|
| 1300 |
+
# or PyPI
|
| 1301 |
+
pip install pandas
|
| 1302 |
+
```
|
| 1303 |
+
|
| 1304 |
+
The list of changes to pandas between each release can be found
|
| 1305 |
+
[here](https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html). For full
|
| 1306 |
+
details, see the commit logs at https://github.com/pandas-dev/pandas.
|
| 1307 |
+
|
| 1308 |
+
## Dependencies
|
| 1309 |
+
- [NumPy - Adds support for large, multi-dimensional arrays, matrices and high-level mathematical functions to operate on these arrays](https://www.numpy.org)
|
| 1310 |
+
- [python-dateutil - Provides powerful extensions to the standard datetime module](https://dateutil.readthedocs.io/en/stable/index.html)
|
| 1311 |
+
- [tzdata - Provides an IANA time zone database](https://tzdata.readthedocs.io/en/latest/) (Only required on Windows/Emscripten)
|
| 1312 |
+
|
| 1313 |
+
See the [full installation instructions](https://pandas.pydata.org/pandas-docs/stable/install.html#dependencies) for minimum supported versions of required, recommended and optional dependencies.
|
| 1314 |
+
|
| 1315 |
+
## Installation from sources
|
| 1316 |
+
To install pandas from source you need [Cython](https://cython.org/) in addition to the normal
|
| 1317 |
+
dependencies above. Cython can be installed from PyPI:
|
| 1318 |
+
|
| 1319 |
+
```sh
|
| 1320 |
+
pip install cython
|
| 1321 |
+
```
|
| 1322 |
+
|
| 1323 |
+
In the `pandas` directory (same one where you found this file after
|
| 1324 |
+
cloning the git repo), execute:
|
| 1325 |
+
|
| 1326 |
+
```sh
|
| 1327 |
+
pip install .
|
| 1328 |
+
```
|
| 1329 |
+
|
| 1330 |
+
or for installing in [development mode](https://pip.pypa.io/en/latest/cli/pip_install/#install-editable):
|
| 1331 |
+
|
| 1332 |
+
|
| 1333 |
+
```sh
|
| 1334 |
+
python -m pip install -ve . --no-build-isolation --config-settings editable-verbose=true
|
| 1335 |
+
```
|
| 1336 |
+
|
| 1337 |
+
See the full instructions for [installing from source](https://pandas.pydata.org/docs/dev/development/contributing_environment.html).
|
| 1338 |
+
|
| 1339 |
+
## License
|
| 1340 |
+
[BSD 3](LICENSE)
|
| 1341 |
+
|
| 1342 |
+
## Documentation
|
| 1343 |
+
The official documentation is hosted on [PyData.org](https://pandas.pydata.org/pandas-docs/stable/).
|
| 1344 |
+
|
| 1345 |
+
## Background
|
| 1346 |
+
Work on ``pandas`` started at [AQR](https://www.aqr.com/) (a quantitative hedge fund) in 2008 and
|
| 1347 |
+
has been under active development since then.
|
| 1348 |
+
|
| 1349 |
+
## Getting Help
|
| 1350 |
+
|
| 1351 |
+
For usage questions, the best place to go to is [Stack Overflow](https://stackoverflow.com/questions/tagged/pandas).
|
| 1352 |
+
Further, general questions and discussions can also take place on the [pydata mailing list](https://groups.google.com/forum/?fromgroups#!forum/pydata).
|
| 1353 |
+
|
| 1354 |
+
## Discussion and Development
|
| 1355 |
+
Most development discussions take place on GitHub in this repo, via the [GitHub issue tracker](https://github.com/pandas-dev/pandas/issues).
|
| 1356 |
+
|
| 1357 |
+
Further, the [pandas-dev mailing list](https://mail.python.org/mailman/listinfo/pandas-dev) can also be used for specialized discussions or design issues, and a [Slack channel](https://pandas.pydata.org/docs/dev/development/community.html?highlight=slack#community-slack) is available for quick development related questions.
|
| 1358 |
+
|
| 1359 |
+
There are also frequent [community meetings](https://pandas.pydata.org/docs/dev/development/community.html#community-meeting) for project maintainers open to the community as well as monthly [new contributor meetings](https://pandas.pydata.org/docs/dev/development/community.html#new-contributor-meeting) to help support new contributors.
|
| 1360 |
+
|
| 1361 |
+
Additional information on the communication channels can be found on the [contributor community](https://pandas.pydata.org/docs/development/community.html) page.
|
| 1362 |
+
|
| 1363 |
+
## Contributing to pandas
|
| 1364 |
+
|
| 1365 |
+
[](https://www.codetriage.com/pandas-dev/pandas)
|
| 1366 |
+
|
| 1367 |
+
All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.
|
| 1368 |
+
|
| 1369 |
+
A detailed overview on how to contribute can be found in the **[contributing guide](https://pandas.pydata.org/docs/dev/development/contributing.html)**.
|
| 1370 |
+
|
| 1371 |
+
If you are simply looking to start working with the pandas codebase, navigate to the [GitHub "issues" tab](https://github.com/pandas-dev/pandas/issues) and start looking through interesting issues. There are a number of issues listed under [Docs](https://github.com/pandas-dev/pandas/issues?q=is%3Aissue%20state%3Aopen%20label%3ADocs%20sort%3Aupdated-desc) and [good first issue](https://github.com/pandas-dev/pandas/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22%20sort%3Aupdated-desc) where you could start out.
|
| 1372 |
+
|
| 1373 |
+
You can also triage issues which may include reproducing bug reports, or asking for vital information such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to [subscribe to pandas on CodeTriage](https://www.codetriage.com/pandas-dev/pandas).
|
| 1374 |
+
|
| 1375 |
+
Or maybe through using pandas you have an idea of your own or are looking for something in the documentation and thinking ‘this can be improved’... you can do something about it!
|
| 1376 |
+
|
| 1377 |
+
Feel free to ask questions on the [mailing list](https://groups.google.com/forum/?fromgroups#!forum/pydata) or on [Slack](https://pandas.pydata.org/docs/dev/development/community.html?highlight=slack#community-slack).
|
| 1378 |
+
|
| 1379 |
+
As contributors and maintainers to this project, you are expected to abide by pandas' code of conduct. More information can be found at: [Contributor Code of Conduct](https://github.com/pandas-dev/.github/blob/master/CODE_OF_CONDUCT.md)
|
| 1380 |
+
|
| 1381 |
+
<hr>
|
| 1382 |
+
|
| 1383 |
+
[Go to Top](#table-of-contents)
|
.cache/pip/http-v2/4/5/2/4/1/45241d61b1606b84c3825a9119b750e7cd16e5fac504d31f79203a8e.body
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: click
|
| 3 |
+
Version: 8.4.2
|
| 4 |
+
Summary: Composable command line interface toolkit
|
| 5 |
+
Maintainer-email: Pallets <contact@palletsprojects.com>
|
| 6 |
+
Requires-Python: >=3.10
|
| 7 |
+
Description-Content-Type: text/markdown
|
| 8 |
+
License-Expression: BSD-3-Clause
|
| 9 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 10 |
+
Classifier: Intended Audience :: Developers
|
| 11 |
+
Classifier: Operating System :: OS Independent
|
| 12 |
+
Classifier: Programming Language :: Python
|
| 13 |
+
Classifier: Typing :: Typed
|
| 14 |
+
License-File: LICENSE.txt
|
| 15 |
+
Requires-Dist: colorama; platform_system == 'Windows'
|
| 16 |
+
Project-URL: Changes, https://click.palletsprojects.com/page/changes/
|
| 17 |
+
Project-URL: Chat, https://discord.gg/pallets
|
| 18 |
+
Project-URL: Documentation, https://click.palletsprojects.com/
|
| 19 |
+
Project-URL: Donate, https://palletsprojects.com/donate
|
| 20 |
+
Project-URL: Source, https://github.com/pallets/click/
|
| 21 |
+
|
| 22 |
+
<div align="center"><img src="https://raw.githubusercontent.com/pallets/click/refs/heads/stable/docs/_static/click-name.svg" alt="" height="150"></div>
|
| 23 |
+
|
| 24 |
+
# Click
|
| 25 |
+
|
| 26 |
+
Click is a Python package for creating beautiful command line interfaces
|
| 27 |
+
in a composable way with as little code as necessary. It's the "Command
|
| 28 |
+
Line Interface Creation Kit". It's highly configurable but comes with
|
| 29 |
+
sensible defaults out of the box.
|
| 30 |
+
|
| 31 |
+
It aims to make the process of writing command line tools quick and fun
|
| 32 |
+
while also preventing any frustration caused by the inability to
|
| 33 |
+
implement an intended CLI API.
|
| 34 |
+
|
| 35 |
+
Click in three points:
|
| 36 |
+
|
| 37 |
+
- Arbitrary nesting of commands
|
| 38 |
+
- Automatic help page generation
|
| 39 |
+
- Supports lazy loading of subcommands at runtime
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
## A Simple Example
|
| 43 |
+
|
| 44 |
+
```python
|
| 45 |
+
import click
|
| 46 |
+
|
| 47 |
+
@click.command()
|
| 48 |
+
@click.option("--count", default=1, help="Number of greetings.")
|
| 49 |
+
@click.option("--name", prompt="Your name", help="The person to greet.")
|
| 50 |
+
def hello(count, name):
|
| 51 |
+
"""Simple program that greets NAME for a total of COUNT times."""
|
| 52 |
+
for _ in range(count):
|
| 53 |
+
click.echo(f"Hello, {name}!")
|
| 54 |
+
|
| 55 |
+
if __name__ == '__main__':
|
| 56 |
+
hello()
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
```
|
| 60 |
+
$ python hello.py --count=3
|
| 61 |
+
Your name: Click
|
| 62 |
+
Hello, Click!
|
| 63 |
+
Hello, Click!
|
| 64 |
+
Hello, Click!
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
## Donate
|
| 69 |
+
|
| 70 |
+
The Pallets organization develops and supports Click and other popular
|
| 71 |
+
packages. In order to grow the community of contributors and users, and
|
| 72 |
+
allow the maintainers to devote more time to the projects, [please
|
| 73 |
+
donate today][].
|
| 74 |
+
|
| 75 |
+
[please donate today]: https://palletsprojects.com/donate
|
| 76 |
+
|
| 77 |
+
## Contributing
|
| 78 |
+
|
| 79 |
+
See our [detailed contributing documentation][contrib] for many ways to
|
| 80 |
+
contribute, including reporting issues, requesting features, asking or answering
|
| 81 |
+
questions, and making PRs.
|
| 82 |
+
|
| 83 |
+
[contrib]: https://palletsprojects.com/contributing/
|
| 84 |
+
|
.cache/pip/http-v2/4/7/a/1/f/47a1fcfcda9889c5e9fc07f976129358dec689ce97437905232762a1.body
ADDED
|
Binary file (80.2 kB). View file
|
|
|
.cache/pip/http-v2/4/a/5/b/6/4a5b6f0d76201de4cfd4884f5e95617a1848cf81c8357be4d12cbf6a
ADDED
|
Binary file (1.28 kB). View file
|
|
|
.cache/pip/http-v2/4/d/c/8/d/4dc8d567db4bc55c0684404c85a6b4572f87a99306be24cab65fbfae
ADDED
|
Binary file (1.89 kB). View file
|
|
|
.cache/pip/http-v2/4/d/c/8/d/4dc8d567db4bc55c0684404c85a6b4572f87a99306be24cab65fbfae.body
ADDED
|
Binary file (16.7 kB). View file
|
|
|
.cache/pip/http-v2/6/4/6/7/b/6467bdd236eabb4648139f514441e5510842fbc90755e4738c64fcf3.body
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: colorlog
|
| 3 |
+
Version: 6.12.0
|
| 4 |
+
Summary: Add colours to the output of Python's logging module.
|
| 5 |
+
Home-page: https://github.com/borntyping/python-colorlog
|
| 6 |
+
Author: Sam Clements
|
| 7 |
+
Author-email: sam@borntyping.co.uk
|
| 8 |
+
License: MIT License
|
| 9 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 10 |
+
Classifier: Environment :: Console
|
| 11 |
+
Classifier: Intended Audience :: Developers
|
| 12 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 13 |
+
Classifier: Operating System :: OS Independent
|
| 14 |
+
Classifier: Programming Language :: Python
|
| 15 |
+
Classifier: Programming Language :: Python :: 3
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.6
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 24 |
+
Classifier: Topic :: Terminals
|
| 25 |
+
Classifier: Topic :: Utilities
|
| 26 |
+
Requires-Python: >=3.6
|
| 27 |
+
Description-Content-Type: text/markdown
|
| 28 |
+
License-File: LICENSE
|
| 29 |
+
Requires-Dist: colorama; sys_platform == "win32"
|
| 30 |
+
Provides-Extra: development
|
| 31 |
+
Requires-Dist: black; extra == "development"
|
| 32 |
+
Requires-Dist: flake8; extra == "development"
|
| 33 |
+
Requires-Dist: mypy; extra == "development"
|
| 34 |
+
Requires-Dist: pytest; extra == "development"
|
| 35 |
+
Requires-Dist: types-colorama; extra == "development"
|
| 36 |
+
Dynamic: author
|
| 37 |
+
Dynamic: author-email
|
| 38 |
+
Dynamic: classifier
|
| 39 |
+
Dynamic: description
|
| 40 |
+
Dynamic: description-content-type
|
| 41 |
+
Dynamic: home-page
|
| 42 |
+
Dynamic: license
|
| 43 |
+
Dynamic: license-file
|
| 44 |
+
Dynamic: provides-extra
|
| 45 |
+
Dynamic: requires-python
|
| 46 |
+
Dynamic: summary
|
| 47 |
+
|
| 48 |
+
# Log formatting with colors!
|
| 49 |
+
|
| 50 |
+
[](https://pypi.org/project/colorlog/)
|
| 51 |
+
[](https://pypi.org/project/colorlog/)
|
| 52 |
+
|
| 53 |
+
Add colours to the output of Python's `logging` module.
|
| 54 |
+
|
| 55 |
+
- [Source on GitHub](https://github.com/borntyping/python-colorlog)
|
| 56 |
+
- [Package on PyPI](https://pypi.org/pypi/colorlog/)
|
| 57 |
+
|
| 58 |
+
## Status
|
| 59 |
+
|
| 60 |
+
colorlog currently requires Python 3.6 or higher. Older versions (below 5.x.x)
|
| 61 |
+
support Python 2.6 and above.
|
| 62 |
+
|
| 63 |
+
- colorlog 6.x requires Python 3.6 or higher.
|
| 64 |
+
- colorlog 5.x is an interim version that will warn Python 2 users to downgrade.
|
| 65 |
+
- colorlog 4.x is the final version supporting Python 2.
|
| 66 |
+
|
| 67 |
+
[colorama] is included as a dependency on Windows, where it is automatically
|
| 68 |
+
initialised to support colored output.
|
| 69 |
+
|
| 70 |
+
This library is over a decade old and supported a wide set of Python versions
|
| 71 |
+
for most of its life, which has made it a difficult library to add new features
|
| 72 |
+
to. colorlog 6 may break backwards compatibility so that newer features
|
| 73 |
+
can be added more easily, but may still not accept all changes or feature
|
| 74 |
+
requests. colorlog 4 might accept essential bugfixes but should not be
|
| 75 |
+
considered actively maintained and will not accept any major changes or new
|
| 76 |
+
features.
|
| 77 |
+
|
| 78 |
+
## Installation
|
| 79 |
+
|
| 80 |
+
Install from PyPI with:
|
| 81 |
+
|
| 82 |
+
```bash
|
| 83 |
+
pip install colorlog
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
Several Linux distributions provide official packages ([Debian], [Arch],
|
| 87 |
+
[Fedora], [Gentoo], [OpenSuse] and [Ubuntu]), and others have user provided
|
| 88 |
+
packages ([BSD ports], [Conda]).
|
| 89 |
+
|
| 90 |
+
## Usage
|
| 91 |
+
|
| 92 |
+
```python
|
| 93 |
+
import colorlog
|
| 94 |
+
|
| 95 |
+
handler = colorlog.StreamHandler()
|
| 96 |
+
handler.setFormatter(colorlog.ColoredFormatter())
|
| 97 |
+
|
| 98 |
+
logger = colorlog.getLogger('example')
|
| 99 |
+
logger.addHandler(handler)
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
### Arguments
|
| 103 |
+
|
| 104 |
+
`ColoredFormatter` extends [`logging.Formatter`][formatter] and accepts the
|
| 105 |
+
following arguments:
|
| 106 |
+
|
| 107 |
+
- `fmt` *(default=`None`)*: A format string used to output the message. If
|
| 108 |
+
`None`, a default format string is selected based on `style` (e.g.
|
| 109 |
+
`%(log_color)s%(levelname)s:%(name)s:%(message)s` for `%` style).
|
| 110 |
+
- `datefmt`, `style`, `validate`, `defaults`: see
|
| 111 |
+
[`logging.Formatter`][formatter].
|
| 112 |
+
- `reset` *(default=`True`)*: Implicitly adds a color reset code to the
|
| 113 |
+
message output, unless the output already ends with one.
|
| 114 |
+
- `log_colors` *(default=`None`)*: A mapping of record level names to color
|
| 115 |
+
names. If `None`, `colorlog.default_log_colors` is used.
|
| 116 |
+
- `secondary_log_colors` *(default=`None`)*: A mapping of names to `log_colors`
|
| 117 |
+
style mappings, defining additional colors that can be used in format strings.
|
| 118 |
+
If `None`, an empty mapping is used.
|
| 119 |
+
- `stream` *(default=`None`)*: The stream being written to (e.g. `sys.stderr`).
|
| 120 |
+
Used to detect whether the output is a TTY. Colors are disabled automatically
|
| 121 |
+
on non-TTY streams unless `force_color` is set.
|
| 122 |
+
- `no_color` *(default=`False`)*: Disable color output. Can also be set via the
|
| 123 |
+
`NO_COLOR` environment variable.
|
| 124 |
+
- `force_color` *(default=`False`)*: Force color output even on non-TTY streams.
|
| 125 |
+
Takes precedence over `no_color`. Can also be set via the `FORCE_COLOR`
|
| 126 |
+
environment variable.
|
| 127 |
+
|
| 128 |
+
### Color escape codes
|
| 129 |
+
|
| 130 |
+
Color escape codes can be selected based on the log records level, by adding
|
| 131 |
+
parameters to the format string:
|
| 132 |
+
|
| 133 |
+
- `log_color`: Return the color associated with the records level.
|
| 134 |
+
- `<name>_log_color`: Return another color based on the records level if the
|
| 135 |
+
formatter has secondary colors configured (see `secondary_log_colors` below).
|
| 136 |
+
|
| 137 |
+
Multiple escape codes can be used at once by joining them with commas when
|
| 138 |
+
configuring the color for a log level (but can't be used directly in the format
|
| 139 |
+
string). For example, `black,bg_white` would use the escape codes for black
|
| 140 |
+
text on a white background.
|
| 141 |
+
|
| 142 |
+
The following escape codes are made available for use in the format string:
|
| 143 |
+
|
| 144 |
+
- `{color}`, `fg_{color}`, `bg_{color}`: Foreground and background colors.
|
| 145 |
+
- `bold`, `bold_{color}`, `fg_bold_{color}`, `bg_bold_{color}`: Bold/bright
|
| 146 |
+
colors.
|
| 147 |
+
- `thin`, `thin_{color}`, `fg_thin_{color}`: Thin colors (terminal dependent).
|
| 148 |
+
- `reset`: Clear all formatting (both foreground and background colors).
|
| 149 |
+
|
| 150 |
+
The available color names are:
|
| 151 |
+
|
| 152 |
+
- `black`
|
| 153 |
+
- `red`
|
| 154 |
+
- `green`
|
| 155 |
+
- `yellow`
|
| 156 |
+
- `blue`
|
| 157 |
+
- `purple`
|
| 158 |
+
- `cyan`
|
| 159 |
+
- `white`
|
| 160 |
+
|
| 161 |
+
You can also use "bright" colors. These aren't standard ANSI codes, and
|
| 162 |
+
support for these varies wildly across different terminals.
|
| 163 |
+
|
| 164 |
+
- `light_black`
|
| 165 |
+
- `light_red`
|
| 166 |
+
- `light_green`
|
| 167 |
+
- `light_yellow`
|
| 168 |
+
- `light_blue`
|
| 169 |
+
- `light_purple`
|
| 170 |
+
- `light_cyan`
|
| 171 |
+
- `light_white`
|
| 172 |
+
|
| 173 |
+
In addition to pre-defined color names, you can use integers from 0 to 255 for
|
| 174 |
+
256-color support (e.g. `fg_196`, `bg_42`).
|
| 175 |
+
|
| 176 |
+
## Examples
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
|
| 180 |
+
The following snippet creates a `ColoredFormatter` for use in a logging setup,
|
| 181 |
+
with a custom format string and log colors:
|
| 182 |
+
|
| 183 |
+
```python
|
| 184 |
+
from colorlog import ColoredFormatter
|
| 185 |
+
|
| 186 |
+
formatter = ColoredFormatter(
|
| 187 |
+
"%(log_color)s%(levelname)-8s%(reset)s %(blue)s%(message)s",
|
| 188 |
+
log_colors={
|
| 189 |
+
"DEBUG": "cyan",
|
| 190 |
+
"INFO": "green",
|
| 191 |
+
"WARNING": "yellow",
|
| 192 |
+
"ERROR": "red",
|
| 193 |
+
"CRITICAL": "red,bg_white",
|
| 194 |
+
}
|
| 195 |
+
)
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
*See `docs/example.py` for full example script.*
|
| 199 |
+
|
| 200 |
+
### Using `secondary_log_colors`
|
| 201 |
+
|
| 202 |
+
Secondary log colors are a way to have more than one color that is selected
|
| 203 |
+
based on the log level. Each key in `secondary_log_colors` adds an attribute
|
| 204 |
+
that can be used in format strings (`message` becomes `message_log_color`), and
|
| 205 |
+
has a corresponding value that is identical in format to the `log_colors`
|
| 206 |
+
argument.
|
| 207 |
+
|
| 208 |
+
The following example highlights the level name using the default log colors,
|
| 209 |
+
and highlights the message in red for `error` and `critical` level log messages.
|
| 210 |
+
|
| 211 |
+
```python
|
| 212 |
+
from colorlog import ColoredFormatter
|
| 213 |
+
|
| 214 |
+
formatter = ColoredFormatter(
|
| 215 |
+
"%(log_color)s%(levelname)-8s%(reset)s %(message_log_color)s%(message)s",
|
| 216 |
+
secondary_log_colors={
|
| 217 |
+
'message': {
|
| 218 |
+
'ERROR': 'red',
|
| 219 |
+
'CRITICAL': 'red'
|
| 220 |
+
}
|
| 221 |
+
}
|
| 222 |
+
)
|
| 223 |
+
```
|
| 224 |
+
|
| 225 |
+
### With [`dictConfig`][dictconfig]
|
| 226 |
+
|
| 227 |
+
```python
|
| 228 |
+
logging.config.dictConfig({
|
| 229 |
+
'formatters': {
|
| 230 |
+
'colored': {
|
| 231 |
+
'()': 'colorlog.ColoredFormatter',
|
| 232 |
+
'format': "%(log_color)s%(levelname)-8s%(reset)s %(blue)s%(message)s"
|
| 233 |
+
}
|
| 234 |
+
}
|
| 235 |
+
})
|
| 236 |
+
```
|
| 237 |
+
|
| 238 |
+
A full example dictionary can be found in `tests/test_colorlog.py`.
|
| 239 |
+
|
| 240 |
+
### With [`fileConfig`][fileconfig]
|
| 241 |
+
|
| 242 |
+
```ini
|
| 243 |
+
...
|
| 244 |
+
|
| 245 |
+
[formatters]
|
| 246 |
+
keys=color
|
| 247 |
+
|
| 248 |
+
[formatter_color]
|
| 249 |
+
class=colorlog.ColoredFormatter
|
| 250 |
+
format=%(log_color)s%(levelname)-8s%(reset)s %(bg_blue)s[%(name)s]%(reset)s %(message)s from fileConfig
|
| 251 |
+
datefmt=%m-%d %H:%M:%S
|
| 252 |
+
```
|
| 253 |
+
|
| 254 |
+
An instance of ColoredFormatter created with those arguments will then be used
|
| 255 |
+
by any handlers that are configured to use the `color` formatter.
|
| 256 |
+
|
| 257 |
+
A full example configuration can be found in `tests/test_config.ini`.
|
| 258 |
+
|
| 259 |
+
### With custom log levels
|
| 260 |
+
|
| 261 |
+
ColoredFormatter will work with custom log levels added with
|
| 262 |
+
[`logging.addLevelName`][addlevelname]:
|
| 263 |
+
|
| 264 |
+
```python
|
| 265 |
+
import logging, colorlog
|
| 266 |
+
TRACE = 5
|
| 267 |
+
logging.addLevelName(TRACE, 'TRACE')
|
| 268 |
+
formatter = colorlog.ColoredFormatter(log_colors={'TRACE': 'yellow'})
|
| 269 |
+
handler = logging.StreamHandler()
|
| 270 |
+
handler.setFormatter(formatter)
|
| 271 |
+
logger = logging.getLogger('example')
|
| 272 |
+
logger.addHandler(handler)
|
| 273 |
+
logger.setLevel('TRACE')
|
| 274 |
+
logger.log(TRACE, 'a message using a custom level')
|
| 275 |
+
```
|
| 276 |
+
|
| 277 |
+
## Tests
|
| 278 |
+
|
| 279 |
+
Tests similar to the above examples are found in `tests/test_colorlog.py`.
|
| 280 |
+
|
| 281 |
+
## Status
|
| 282 |
+
|
| 283 |
+
colorlog is in maintenance mode. I try and ensure bugfixes are published,
|
| 284 |
+
but compatibility a wide set of Python versions makes this a difficult
|
| 285 |
+
codebase to add features to. Any changes that might break backwards
|
| 286 |
+
compatibility for existing users will not be considered.
|
| 287 |
+
|
| 288 |
+
## Alternatives
|
| 289 |
+
|
| 290 |
+
There are some more modern libraries for improving Python logging you may
|
| 291 |
+
find useful.
|
| 292 |
+
|
| 293 |
+
- [structlog]
|
| 294 |
+
- [jsonlog]
|
| 295 |
+
|
| 296 |
+
## Projects using colorlog
|
| 297 |
+
|
| 298 |
+
GitHub provides [a list of projects that depend on colorlog][dependents].
|
| 299 |
+
|
| 300 |
+
Some early adopters included [Errbot], [Pythran], and [zenlog].
|
| 301 |
+
|
| 302 |
+
## Licence
|
| 303 |
+
|
| 304 |
+
Copyright (c) 2012-2025 Sam Clements <sam@borntyping.co.uk>
|
| 305 |
+
|
| 306 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 307 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 308 |
+
the Software without restriction, including without limitation the rights to
|
| 309 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 310 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 311 |
+
subject to the following conditions:
|
| 312 |
+
|
| 313 |
+
The above copyright notice and this permission notice shall be included in all
|
| 314 |
+
copies or substantial portions of the Software.
|
| 315 |
+
|
| 316 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 317 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
| 318 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 319 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 320 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 321 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 322 |
+
|
| 323 |
+
[addlevelname]: https://docs.python.org/3/library/logging.html#logging.addLevelName
|
| 324 |
+
[arch]: https://archlinux.org/packages/extra/any/python-colorlog/
|
| 325 |
+
[bsd ports]: https://www.freshports.org/devel/py-colorlog/
|
| 326 |
+
[colorama]: https://pypi.python.org/pypi/colorama
|
| 327 |
+
[conda]: https://anaconda.org/conda-forge/colorlog
|
| 328 |
+
[debian]: https://packages.debian.org/trixie/python3-colorlog
|
| 329 |
+
[dependents]: https://github.com/borntyping/python-colorlog/network/dependents?package_id=UGFja2FnZS01MDk3NDcyMQ%3D%3D
|
| 330 |
+
[dictconfig]: http://docs.python.org/3/library/logging.config.html#logging.config.dictConfig
|
| 331 |
+
[errbot]: http://errbot.io/
|
| 332 |
+
[fedora]: https://src.fedoraproject.org/rpms/python-colorlog
|
| 333 |
+
[fileconfig]: http://docs.python.org/3/library/logging.config.html#logging.config.fileConfig
|
| 334 |
+
[formatter]: http://docs.python.org/3/library/logging.html#logging.Formatter
|
| 335 |
+
[gentoo]: https://packages.gentoo.org/packages/dev-python/colorlog
|
| 336 |
+
[jsonlog]: https://github.com/borntyping/jsonlog
|
| 337 |
+
[opensuse]: http://rpm.pbone.net/index.php3?stat=3&search=python-colorlog&srodzaj=3
|
| 338 |
+
[pythran]: https://github.com/serge-sans-paille/pythran
|
| 339 |
+
[structlog]: https://www.structlog.org/en/stable/
|
| 340 |
+
[ubuntu]: https://launchpad.net/python-colorlog
|
| 341 |
+
[zenlog]: https://github.com/ManufacturaInd/python-zenlog
|
.cache/pip/http-v2/8/f/0/a/d/8f0ad583652318494c12da41e4d30ff6225ec73d448a0754a0a7e898
ADDED
|
Binary file (1.89 kB). View file
|
|
|
.cache/pip/http-v2/9/0/6/7/9/906797ab7b3f56fdd856b186be66ce1ad5fb99862a404c1091a707b6
ADDED
|
Binary file (1.89 kB). View file
|
|
|
.cache/pip/http-v2/9/0/6/7/9/906797ab7b3f56fdd856b186be66ce1ad5fb99862a404c1091a707b6.body
ADDED
|
Binary file (81.9 kB). View file
|
|
|
.cache/pip/http-v2/9/0/f/6/e/90f6e704e426d3e4b799bd86b309263491ea7f0afc8f3ceaab5d10eb
ADDED
|
Binary file (1.25 kB). View file
|
|
|
.cache/pip/http-v2/9/6/7/8/5/967857dd3681a1bb83c9632aad9815556f1da84934ad6aa3be0d7700
ADDED
|
Binary file (1.89 kB). View file
|
|
|
.cache/pip/http-v2/9/6/7/8/5/967857dd3681a1bb83c9632aad9815556f1da84934ad6aa3be0d7700.body
ADDED
|
Binary file (1.08 kB). View file
|
|
|
.cache/pip/http-v2/9/6/e/6/8/96e68fa7e813913744eed43fc3c671900cf7eb7d5088536270636acf
ADDED
|
Binary file (1.2 kB). View file
|
|
|
.cache/pip/http-v2/9/b/0/a/e/9b0ae3352e0682a4ded5c6f53d9053328ff974179c7dcd6dac96d2a9
ADDED
|
Binary file (1.89 kB). View file
|
|
|
.cache/pip/http-v2/9/b/0/c/d/9b0cd65992ff5b9edd0441126311787aa8872587ece580196906a213
ADDED
|
Binary file (1.25 kB). View file
|
|
|
.cache/pip/http-v2/9/b/c/f/c/9bcfc39a5bcc4f49a5aca18ef0b4567e959c4b71251fb90ea1371fe7.body
ADDED
|
@@ -0,0 +1,1600 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
+
License: MPL-2.0 AND MIT
|
| 7 |
+
Project-URL: homepage, https://tqdm.github.io
|
| 8 |
+
Project-URL: repository, https://github.com/tqdm/tqdm
|
| 9 |
+
Project-URL: changelog, https://tqdm.github.io/releases
|
| 10 |
+
Project-URL: wiki, https://github.com/tqdm/tqdm/wiki
|
| 11 |
+
Keywords: progressbar,progressmeter,progress,bar,meter,rate,eta,console,terminal,time
|
| 12 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 13 |
+
Classifier: Environment :: Console
|
| 14 |
+
Classifier: Environment :: MacOS X
|
| 15 |
+
Classifier: Environment :: Other Environment
|
| 16 |
+
Classifier: Environment :: Win32 (MS Windows)
|
| 17 |
+
Classifier: Environment :: X11 Applications
|
| 18 |
+
Classifier: Framework :: IPython
|
| 19 |
+
Classifier: Framework :: Jupyter
|
| 20 |
+
Classifier: Intended Audience :: Developers
|
| 21 |
+
Classifier: Intended Audience :: Education
|
| 22 |
+
Classifier: Intended Audience :: End Users/Desktop
|
| 23 |
+
Classifier: Intended Audience :: Other Audience
|
| 24 |
+
Classifier: Intended Audience :: System Administrators
|
| 25 |
+
Classifier: Operating System :: MacOS
|
| 26 |
+
Classifier: Operating System :: MacOS :: MacOS X
|
| 27 |
+
Classifier: Operating System :: Microsoft
|
| 28 |
+
Classifier: Operating System :: Microsoft :: MS-DOS
|
| 29 |
+
Classifier: Operating System :: Microsoft :: Windows
|
| 30 |
+
Classifier: Operating System :: POSIX
|
| 31 |
+
Classifier: Operating System :: POSIX :: BSD
|
| 32 |
+
Classifier: Operating System :: POSIX :: BSD :: FreeBSD
|
| 33 |
+
Classifier: Operating System :: POSIX :: Linux
|
| 34 |
+
Classifier: Operating System :: POSIX :: SunOS/Solaris
|
| 35 |
+
Classifier: Operating System :: Unix
|
| 36 |
+
Classifier: Programming Language :: Python
|
| 37 |
+
Classifier: Programming Language :: Python :: 3
|
| 38 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 39 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 40 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 41 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 42 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 43 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 44 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 45 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 46 |
+
Classifier: Programming Language :: Python :: Implementation
|
| 47 |
+
Classifier: Programming Language :: Python :: Implementation :: IronPython
|
| 48 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 49 |
+
Classifier: Programming Language :: Unix Shell
|
| 50 |
+
Classifier: Topic :: Desktop Environment
|
| 51 |
+
Classifier: Topic :: Education :: Computer Aided Instruction (CAI)
|
| 52 |
+
Classifier: Topic :: Education :: Testing
|
| 53 |
+
Classifier: Topic :: Office/Business
|
| 54 |
+
Classifier: Topic :: Other/Nonlisted Topic
|
| 55 |
+
Classifier: Topic :: Software Development :: Build Tools
|
| 56 |
+
Classifier: Topic :: Software Development :: Libraries
|
| 57 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 58 |
+
Classifier: Topic :: Software Development :: Pre-processors
|
| 59 |
+
Classifier: Topic :: Software Development :: User Interfaces
|
| 60 |
+
Classifier: Topic :: System :: Installation/Setup
|
| 61 |
+
Classifier: Topic :: System :: Logging
|
| 62 |
+
Classifier: Topic :: System :: Monitoring
|
| 63 |
+
Classifier: Topic :: System :: Shells
|
| 64 |
+
Classifier: Topic :: Terminals
|
| 65 |
+
Classifier: Topic :: Utilities
|
| 66 |
+
Requires-Python: >=3.8
|
| 67 |
+
Description-Content-Type: text/x-rst
|
| 68 |
+
License-File: LICENCE
|
| 69 |
+
Requires-Dist: colorama; platform_system == "Windows"
|
| 70 |
+
Provides-Extra: discord
|
| 71 |
+
Requires-Dist: requests; extra == "discord"
|
| 72 |
+
Requires-Dist: envwrap; extra == "discord"
|
| 73 |
+
Provides-Extra: slack
|
| 74 |
+
Requires-Dist: slack-sdk; extra == "slack"
|
| 75 |
+
Requires-Dist: envwrap; extra == "slack"
|
| 76 |
+
Provides-Extra: telegram
|
| 77 |
+
Requires-Dist: requests; extra == "telegram"
|
| 78 |
+
Requires-Dist: envwrap; extra == "telegram"
|
| 79 |
+
Provides-Extra: notebook
|
| 80 |
+
Requires-Dist: ipywidgets>=6; extra == "notebook"
|
| 81 |
+
Dynamic: license-file
|
| 82 |
+
|
| 83 |
+
|Logo|
|
| 84 |
+
|
| 85 |
+
tqdm
|
| 86 |
+
====
|
| 87 |
+
|
| 88 |
+
|Py-Versions| |Versions| |Conda-Forge-Status| |Docker| |Snapcraft|
|
| 89 |
+
|
| 90 |
+
|Build-Status| |Coverage-Status| |Branch-Coverage-Status| |Codacy-Grade| |Libraries-Rank| |PyPI-Downloads|
|
| 91 |
+
|
| 92 |
+
|LICENCE| |OpenHub-Status| |colab-demo| |binder-demo| |awesome-python|
|
| 93 |
+
|
| 94 |
+
``tqdm`` derives from the Arabic word *taqaddum* (تقدّم) which can mean "progress,"
|
| 95 |
+
and is an abbreviation for "I love you so much" in Spanish (*te quiero demasiado*).
|
| 96 |
+
|
| 97 |
+
Instantly make your loops show a smart progress meter - just wrap any
|
| 98 |
+
iterable with ``tqdm(iterable)``, and you're done!
|
| 99 |
+
|
| 100 |
+
.. code:: python
|
| 101 |
+
|
| 102 |
+
from tqdm import tqdm
|
| 103 |
+
for i in tqdm(range(10000)):
|
| 104 |
+
...
|
| 105 |
+
|
| 106 |
+
``76%|████████████████████████ | 7568/10000 [00:33<00:10, 229.00it/s]``
|
| 107 |
+
|
| 108 |
+
``trange(N)`` can also be used as a convenient shortcut for
|
| 109 |
+
``tqdm(range(N))``.
|
| 110 |
+
|
| 111 |
+
|Screenshot|
|
| 112 |
+
|Video| |Slides| |Merch|
|
| 113 |
+
|
| 114 |
+
It can also be executed as a module with pipes:
|
| 115 |
+
|
| 116 |
+
.. code:: sh
|
| 117 |
+
|
| 118 |
+
$ seq 9999999 | tqdm --bytes | wc -l
|
| 119 |
+
75.2MB [00:00, 217MB/s]
|
| 120 |
+
9999999
|
| 121 |
+
|
| 122 |
+
$ tar -zcf - docs/ | tqdm --bytes --total `du -sb docs/ | cut -f1` \
|
| 123 |
+
> backup.tgz
|
| 124 |
+
32%|██████████▍ | 8.89G/27.9G [00:42<01:31, 223MB/s]
|
| 125 |
+
|
| 126 |
+
Overhead is low -- about 60ns per iteration (80ns with ``tqdm.gui``), and is
|
| 127 |
+
unit tested against performance regression.
|
| 128 |
+
By comparison, the well-established
|
| 129 |
+
`ProgressBar <https://github.com/niltonvolpato/python-progressbar>`__ has
|
| 130 |
+
an 800ns/iter overhead.
|
| 131 |
+
|
| 132 |
+
In addition to its low overhead, ``tqdm`` uses smart algorithms to predict
|
| 133 |
+
the remaining time and to skip unnecessary iteration displays, which allows
|
| 134 |
+
for a negligible overhead in most cases.
|
| 135 |
+
|
| 136 |
+
``tqdm`` works on any platform
|
| 137 |
+
(Linux, Windows, Mac, FreeBSD, NetBSD, Solaris/SunOS),
|
| 138 |
+
in any console or in a GUI, and is also friendly with IPython/Jupyter notebooks.
|
| 139 |
+
|
| 140 |
+
``tqdm`` does not require any dependencies (not even ``curses``!), just
|
| 141 |
+
Python and an environment supporting ``carriage return \r`` and
|
| 142 |
+
``line feed \n`` control characters.
|
| 143 |
+
|
| 144 |
+
**Featured Sponsors**
|
| 145 |
+
|
| 146 |
+
======== ================================================
|
| 147 |
+
|OpenAI| Your Logo Here
|
| 148 |
+
======== ================================================
|
| 149 |
+
OpenAI `Sponsors <https://github.com/sponsors/tqdm>`__
|
| 150 |
+
======== ================================================
|
| 151 |
+
|
| 152 |
+
.. |OpenAI| image:: https://avatars.githubusercontent.com/u/14957082?s=96
|
| 153 |
+
:target: https://openai.com
|
| 154 |
+
|
| 155 |
+
------------------------------------------
|
| 156 |
+
|
| 157 |
+
.. contents:: Table of contents
|
| 158 |
+
:backlinks: top
|
| 159 |
+
:local:
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
Installation
|
| 163 |
+
------------
|
| 164 |
+
|
| 165 |
+
Latest PyPI stable release
|
| 166 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 167 |
+
|
| 168 |
+
|Versions| |PyPI-Downloads| |Libraries-Dependents|
|
| 169 |
+
|
| 170 |
+
.. code:: sh
|
| 171 |
+
|
| 172 |
+
pip install tqdm
|
| 173 |
+
|
| 174 |
+
Latest development release on GitHub
|
| 175 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 176 |
+
|
| 177 |
+
|GitHub-Status| |GitHub-Stars| |GitHub-Commits| |GitHub-Forks| |GitHub-Updated|
|
| 178 |
+
|
| 179 |
+
Pull and install pre-release ``devel`` branch:
|
| 180 |
+
|
| 181 |
+
.. code:: sh
|
| 182 |
+
|
| 183 |
+
pip install "git+https://github.com/tqdm/tqdm.git@devel#egg=tqdm"
|
| 184 |
+
|
| 185 |
+
Latest Conda release
|
| 186 |
+
~~~~~~~~~~~~~~~~~~~~
|
| 187 |
+
|
| 188 |
+
|Conda-Forge-Status|
|
| 189 |
+
|
| 190 |
+
.. code:: sh
|
| 191 |
+
|
| 192 |
+
conda install -c conda-forge tqdm
|
| 193 |
+
|
| 194 |
+
Latest Snapcraft release
|
| 195 |
+
~~~~~~~~~~~~~~~~~~~~~~~~
|
| 196 |
+
|
| 197 |
+
|Snapcraft|
|
| 198 |
+
|
| 199 |
+
There are 3 channels to choose from:
|
| 200 |
+
|
| 201 |
+
.. code:: sh
|
| 202 |
+
|
| 203 |
+
snap install tqdm # implies --stable, i.e. latest tagged release
|
| 204 |
+
snap install tqdm --candidate # master branch
|
| 205 |
+
snap install tqdm --edge # devel branch
|
| 206 |
+
|
| 207 |
+
Note that ``snap`` binaries are purely for CLI use (not ``import``-able), and
|
| 208 |
+
automatically set up ``bash`` tab-completion.
|
| 209 |
+
|
| 210 |
+
Latest Docker release
|
| 211 |
+
~~~~~~~~~~~~~~~~~~~~~
|
| 212 |
+
|
| 213 |
+
|Docker|
|
| 214 |
+
|
| 215 |
+
.. code:: sh
|
| 216 |
+
|
| 217 |
+
docker pull tqdm/tqdm
|
| 218 |
+
docker run -i --rm tqdm/tqdm --help
|
| 219 |
+
|
| 220 |
+
Other
|
| 221 |
+
~~~~~
|
| 222 |
+
|
| 223 |
+
There are other (unofficial) places where ``tqdm`` may be downloaded, particularly for CLI use:
|
| 224 |
+
|
| 225 |
+
|Repology|
|
| 226 |
+
|
| 227 |
+
.. |Repology| image:: https://repology.org/badge/tiny-repos/python:tqdm.svg
|
| 228 |
+
:target: https://repology.org/project/python:tqdm/versions
|
| 229 |
+
|
| 230 |
+
Changelog
|
| 231 |
+
---------
|
| 232 |
+
|
| 233 |
+
The list of all changes is available either on GitHub's Releases:
|
| 234 |
+
|GitHub-Status|, on the
|
| 235 |
+
`wiki <https://github.com/tqdm/tqdm/wiki/Releases>`__, or on the
|
| 236 |
+
`website <https://tqdm.github.io/releases>`__.
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
Usage
|
| 240 |
+
-----
|
| 241 |
+
|
| 242 |
+
``tqdm`` is very versatile and can be used in a number of ways.
|
| 243 |
+
The three main ones are given below.
|
| 244 |
+
|
| 245 |
+
Iterable-based
|
| 246 |
+
~~~~~~~~~~~~~~
|
| 247 |
+
|
| 248 |
+
Wrap ``tqdm()`` around any iterable:
|
| 249 |
+
|
| 250 |
+
.. code:: python
|
| 251 |
+
|
| 252 |
+
from tqdm import tqdm
|
| 253 |
+
from time import sleep
|
| 254 |
+
|
| 255 |
+
text = ""
|
| 256 |
+
for char in tqdm(["a", "b", "c", "d"]):
|
| 257 |
+
sleep(0.25)
|
| 258 |
+
text = text + char
|
| 259 |
+
|
| 260 |
+
``trange(i)`` is a special optimised instance of ``tqdm(range(i))``:
|
| 261 |
+
|
| 262 |
+
.. code:: python
|
| 263 |
+
|
| 264 |
+
from tqdm import trange
|
| 265 |
+
|
| 266 |
+
for i in trange(100):
|
| 267 |
+
sleep(0.01)
|
| 268 |
+
|
| 269 |
+
Instantiation outside of the loop allows for manual control over ``tqdm()``:
|
| 270 |
+
|
| 271 |
+
.. code:: python
|
| 272 |
+
|
| 273 |
+
pbar = tqdm(["a", "b", "c", "d"])
|
| 274 |
+
for char in pbar:
|
| 275 |
+
sleep(0.25)
|
| 276 |
+
pbar.set_description("Processing %s" % char)
|
| 277 |
+
|
| 278 |
+
Manual
|
| 279 |
+
~~~~~~
|
| 280 |
+
|
| 281 |
+
Manual control of ``tqdm()`` updates using a ``with`` statement:
|
| 282 |
+
|
| 283 |
+
.. code:: python
|
| 284 |
+
|
| 285 |
+
with tqdm(total=100) as pbar:
|
| 286 |
+
for i in range(10):
|
| 287 |
+
sleep(0.1)
|
| 288 |
+
pbar.update(10)
|
| 289 |
+
|
| 290 |
+
If the optional variable ``total`` (or an iterable with ``len()``) is
|
| 291 |
+
provided, predictive stats are displayed.
|
| 292 |
+
|
| 293 |
+
``with`` is also optional (you can just assign ``tqdm()`` to a variable,
|
| 294 |
+
but in this case don't forget to ``del`` or ``close()`` at the end:
|
| 295 |
+
|
| 296 |
+
.. code:: python
|
| 297 |
+
|
| 298 |
+
pbar = tqdm(total=100)
|
| 299 |
+
for i in range(10):
|
| 300 |
+
sleep(0.1)
|
| 301 |
+
pbar.update(10)
|
| 302 |
+
pbar.close()
|
| 303 |
+
|
| 304 |
+
Module
|
| 305 |
+
~~~~~~
|
| 306 |
+
|
| 307 |
+
Perhaps the most wonderful use of ``tqdm`` is in a script or on the command
|
| 308 |
+
line. Simply inserting ``tqdm`` (or ``python -m tqdm``) between pipes will pass
|
| 309 |
+
through all ``stdin`` to ``stdout`` while printing progress to ``stderr``.
|
| 310 |
+
|
| 311 |
+
The example below demonstrate counting the number of lines in all Python files
|
| 312 |
+
in the current directory, with timing information included.
|
| 313 |
+
|
| 314 |
+
.. code:: sh
|
| 315 |
+
|
| 316 |
+
$ time find . -name '*.py' -type f -exec cat \{} \; | wc -l
|
| 317 |
+
857365
|
| 318 |
+
|
| 319 |
+
real 0m3.458s
|
| 320 |
+
user 0m0.274s
|
| 321 |
+
sys 0m3.325s
|
| 322 |
+
|
| 323 |
+
$ time find . -name '*.py' -type f -exec cat \{} \; | tqdm | wc -l
|
| 324 |
+
857366it [00:03, 246471.31it/s]
|
| 325 |
+
857365
|
| 326 |
+
|
| 327 |
+
real 0m3.585s
|
| 328 |
+
user 0m0.862s
|
| 329 |
+
sys 0m3.358s
|
| 330 |
+
|
| 331 |
+
Note that the usual arguments for ``tqdm`` can also be specified.
|
| 332 |
+
|
| 333 |
+
.. code:: sh
|
| 334 |
+
|
| 335 |
+
$ find . -name '*.py' -type f -exec cat \{} \; |
|
| 336 |
+
tqdm --unit loc --unit_scale --total 857366 >> /dev/null
|
| 337 |
+
100%|█████████████████████████████████| 857K/857K [00:04<00:00, 246Kloc/s]
|
| 338 |
+
|
| 339 |
+
Backing up a large directory?
|
| 340 |
+
|
| 341 |
+
.. code:: sh
|
| 342 |
+
|
| 343 |
+
$ tar -zcf - docs/ | tqdm --bytes --total `du -sb docs/ | cut -f1` \
|
| 344 |
+
> backup.tgz
|
| 345 |
+
44%|██████████████▊ | 153M/352M [00:14<00:18, 11.0MB/s]
|
| 346 |
+
|
| 347 |
+
This can be beautified further:
|
| 348 |
+
|
| 349 |
+
.. code:: sh
|
| 350 |
+
|
| 351 |
+
$ BYTES=$(du -sb docs/ | cut -f1)
|
| 352 |
+
$ tar -cf - docs/ \
|
| 353 |
+
| tqdm --bytes --total "$BYTES" --desc Processing | gzip \
|
| 354 |
+
| tqdm --bytes --total "$BYTES" --desc Compressed --position 1 \
|
| 355 |
+
> ~/backup.tgz
|
| 356 |
+
Processing: 100%|██████████████████████| 352M/352M [00:14<00:00, 30.2MB/s]
|
| 357 |
+
Compressed: 42%|█████████▎ | 148M/352M [00:14<00:19, 10.9MB/s]
|
| 358 |
+
|
| 359 |
+
Or done on a file level using 7-zip:
|
| 360 |
+
|
| 361 |
+
.. code:: sh
|
| 362 |
+
|
| 363 |
+
$ 7z a -bd -r backup.7z docs/ | grep Compressing \
|
| 364 |
+
| tqdm --total $(find docs/ -type f | wc -l) --unit files \
|
| 365 |
+
| grep -v Compressing
|
| 366 |
+
100%|██████████████████████████▉| 15327/15327 [01:00<00:00, 712.96files/s]
|
| 367 |
+
|
| 368 |
+
Pre-existing CLI programs already outputting basic progress information will
|
| 369 |
+
benefit from ``tqdm``'s ``--update`` and ``--update_to`` flags:
|
| 370 |
+
|
| 371 |
+
.. code:: sh
|
| 372 |
+
|
| 373 |
+
$ seq 3 0.1 5 | tqdm --total 5 --update_to --null
|
| 374 |
+
100%|████████████████████████████████████| 5.0/5 [00:00<00:00, 9673.21it/s]
|
| 375 |
+
$ seq 10 | tqdm --update --null # 1 + 2 + ... + 10 = 55 iterations
|
| 376 |
+
55it [00:00, 90006.52it/s]
|
| 377 |
+
|
| 378 |
+
FAQ and Known Issues
|
| 379 |
+
--------------------
|
| 380 |
+
|
| 381 |
+
|GitHub-Issues|
|
| 382 |
+
|
| 383 |
+
The most common issues relate to excessive output on multiple lines, instead
|
| 384 |
+
of a neat one-line progress bar.
|
| 385 |
+
|
| 386 |
+
- Consoles in general: require support for carriage return (``CR``, ``\r``).
|
| 387 |
+
|
| 388 |
+
* Some cloud logging consoles which don't support ``\r`` properly
|
| 389 |
+
(`cloudwatch <https://github.com/tqdm/tqdm/issues/966>`__,
|
| 390 |
+
`K8s <https://github.com/tqdm/tqdm/issues/1319>`__) may benefit from
|
| 391 |
+
``export TQDM_POSITION=-1``.
|
| 392 |
+
|
| 393 |
+
- Nested progress bars:
|
| 394 |
+
|
| 395 |
+
* Consoles in general: require support for moving cursors up to the
|
| 396 |
+
previous line. For example,
|
| 397 |
+
`IDLE <https://github.com/tqdm/tqdm/issues/191#issuecomment-230168030>`__,
|
| 398 |
+
`ConEmu <https://github.com/tqdm/tqdm/issues/254>`__ and
|
| 399 |
+
`PyCharm <https://github.com/tqdm/tqdm/issues/203>`__ (also
|
| 400 |
+
`here <https://github.com/tqdm/tqdm/issues/208>`__,
|
| 401 |
+
`here <https://github.com/tqdm/tqdm/issues/307>`__, and
|
| 402 |
+
`here <https://github.com/tqdm/tqdm/issues/454#issuecomment-335416815>`__)
|
| 403 |
+
lack full support.
|
| 404 |
+
* Windows: additionally may require the Python module ``colorama``
|
| 405 |
+
to ensure nested bars stay within their respective lines.
|
| 406 |
+
|
| 407 |
+
- Unicode:
|
| 408 |
+
|
| 409 |
+
* Environments which report that they support unicode will have solid smooth
|
| 410 |
+
progress bars. The fallback is an ``ascii``-only bar.
|
| 411 |
+
* Windows consoles often only partially support unicode and thus
|
| 412 |
+
`often require explicit ascii=True <https://github.com/tqdm/tqdm/issues/454#issuecomment-335416815>`__
|
| 413 |
+
(also `here <https://github.com/tqdm/tqdm/issues/499>`__). This is due to
|
| 414 |
+
either normal-width unicode characters being incorrectly displayed as
|
| 415 |
+
"wide", or some unicode characters not rendering.
|
| 416 |
+
|
| 417 |
+
- Wrapping generators:
|
| 418 |
+
|
| 419 |
+
* Generator wrapper functions tend to hide the length of iterables.
|
| 420 |
+
``tqdm`` does not.
|
| 421 |
+
* Replace ``tqdm(enumerate(...))`` with ``enumerate(tqdm(...))`` or
|
| 422 |
+
``tqdm(enumerate(x), total=len(x), ...)``.
|
| 423 |
+
The same applies to ``numpy.ndenumerate``.
|
| 424 |
+
* Replace ``tqdm(zip(a, b))`` with ``zip(tqdm(a), b)`` or even
|
| 425 |
+
``zip(tqdm(a), tqdm(b))``.
|
| 426 |
+
* The same applies to ``itertools``.
|
| 427 |
+
* Some useful convenience functions can be found under ``tqdm.contrib``.
|
| 428 |
+
|
| 429 |
+
- `No intermediate output in docker-compose <https://github.com/tqdm/tqdm/issues/771>`__:
|
| 430 |
+
use ``docker-compose run`` instead of ``docker-compose up`` and ``tty: true``.
|
| 431 |
+
|
| 432 |
+
- Overriding defaults via environment variables:
|
| 433 |
+
e.g. in CI/cloud jobs, ``export TQDM_MININTERVAL=5`` to avoid log spam.
|
| 434 |
+
This override logic is handled by the ``tqdm.utils.envwrap`` decorator
|
| 435 |
+
(useful independent of ``tqdm``).
|
| 436 |
+
|
| 437 |
+
If you come across any other difficulties, browse and file |GitHub-Issues|.
|
| 438 |
+
|
| 439 |
+
Documentation
|
| 440 |
+
-------------
|
| 441 |
+
|
| 442 |
+
|Py-Versions| |README-Hits| (Since 19 May 2016)
|
| 443 |
+
|
| 444 |
+
.. code:: python
|
| 445 |
+
|
| 446 |
+
class tqdm():
|
| 447 |
+
"""
|
| 448 |
+
Decorate an iterable object, returning an iterator which acts exactly
|
| 449 |
+
like the original iterable, but prints a dynamically updating
|
| 450 |
+
progress bar every time a value is requested.
|
| 451 |
+
"""
|
| 452 |
+
|
| 453 |
+
@envwrap("tqdm") # override defaults via env vars
|
| 454 |
+
def __init__(self, iterable=None, desc=None, total=None, leave=True,
|
| 455 |
+
file=None, ncols=None, mininterval=0.1,
|
| 456 |
+
maxinterval=10.0, miniters=None, ascii=None, disable=False,
|
| 457 |
+
unit='it', unit_scale=False, dynamic_ncols=False,
|
| 458 |
+
smoothing=0.3, bar_format=None, initial=0, position=None,
|
| 459 |
+
postfix=None, unit_divisor=1000, write_bytes=False,
|
| 460 |
+
lock_args=None, nrows=None, colour=None, delay=0):
|
| 461 |
+
|
| 462 |
+
Parameters
|
| 463 |
+
~~~~~~~~~~
|
| 464 |
+
|
| 465 |
+
* iterable : iterable, optional
|
| 466 |
+
Iterable to decorate with a progress bar.
|
| 467 |
+
Leave blank to manually manage the updates.
|
| 468 |
+
* desc : str, optional
|
| 469 |
+
Prefix for the progress bar.
|
| 470 |
+
* total : int or float, optional
|
| 471 |
+
The number of expected iterations. If unspecified,
|
| 472 |
+
len(iterable) is used if possible. If float("inf") or as a last
|
| 473 |
+
resort, only basic progress statistics are displayed
|
| 474 |
+
(no ETA, no progress bar).
|
| 475 |
+
If ``gui`` is True and this parameter needs subsequent updating,
|
| 476 |
+
specify an initial arbitrary large positive number,
|
| 477 |
+
e.g. 9e9.
|
| 478 |
+
* leave : bool, optional
|
| 479 |
+
If [default: True], keeps all traces of the progress bar
|
| 480 |
+
upon termination of iteration.
|
| 481 |
+
If ``None``, will leave only if ``position`` is ``0``.
|
| 482 |
+
* file : ``io.TextIOWrapper`` or ``io.StringIO``, optional
|
| 483 |
+
Specifies where to output the progress messages
|
| 484 |
+
(default: sys.stderr). Uses ``file.write(str)`` and ``file.flush()``
|
| 485 |
+
methods. For encoding, see ``write_bytes``.
|
| 486 |
+
* ncols : int, optional
|
| 487 |
+
The width of the entire output message. If specified,
|
| 488 |
+
dynamically resizes the progress bar to stay within this bound.
|
| 489 |
+
If unspecified, attempts to use environment width. The
|
| 490 |
+
fallback is a meter width of 10 and no limit for the counter and
|
| 491 |
+
statistics. If 0, will not print any meter (only stats).
|
| 492 |
+
* mininterval : float, optional
|
| 493 |
+
Minimum progress display update interval [default: 0.1] seconds.
|
| 494 |
+
* maxinterval : float, optional
|
| 495 |
+
Maximum progress display update interval [default: 10] seconds.
|
| 496 |
+
Automatically adjusts ``miniters`` to correspond to ``mininterval``
|
| 497 |
+
after long display update lag. Only works if ``dynamic_miniters``
|
| 498 |
+
or monitor thread is enabled.
|
| 499 |
+
* miniters : int or float, optional
|
| 500 |
+
Minimum progress display update interval, in iterations.
|
| 501 |
+
If 0 and ``dynamic_miniters``, will automatically adjust to equal
|
| 502 |
+
``mininterval`` (more CPU efficient, good for tight loops).
|
| 503 |
+
If > 0, will skip display of specified number of iterations.
|
| 504 |
+
Tweak this and ``mininterval`` to get very efficient loops.
|
| 505 |
+
If your progress is erratic with both fast and slow iterations
|
| 506 |
+
(network, skipping items, etc) you should set miniters=1.
|
| 507 |
+
* ascii : bool or str, optional
|
| 508 |
+
If unspecified or False, use unicode (smooth blocks) to fill
|
| 509 |
+
the meter. The fallback is to use ASCII characters " 123456789#".
|
| 510 |
+
* disable : bool, optional
|
| 511 |
+
Whether to disable the entire progress bar wrapper
|
| 512 |
+
[default: False]. If set to None, disable on non-TTY.
|
| 513 |
+
* unit : str, optional
|
| 514 |
+
String that will be used to define the unit of each iteration
|
| 515 |
+
[default: it].
|
| 516 |
+
* unit_scale : bool or int or float, optional
|
| 517 |
+
If 1 or True, the number of iterations will be reduced/scaled
|
| 518 |
+
automatically and a metric prefix following the
|
| 519 |
+
International System of Units standard will be added
|
| 520 |
+
(kilo, mega, etc.) [default: False]. If any other non-zero
|
| 521 |
+
number, will scale ``total`` and ``n``.
|
| 522 |
+
* dynamic_ncols : bool, optional
|
| 523 |
+
If set, constantly alters ``ncols`` and ``nrows`` to the
|
| 524 |
+
environment (allowing for window resizes) [default: False].
|
| 525 |
+
* smoothing : float, optional
|
| 526 |
+
Exponential moving average smoothing factor for speed estimates
|
| 527 |
+
(ignored in GUI mode). Ranges from 0 (average speed) to 1
|
| 528 |
+
(current/instantaneous speed) [default: 0.3].
|
| 529 |
+
* bar_format : str, optional
|
| 530 |
+
Specify a custom bar string formatting. May impact performance.
|
| 531 |
+
[default: '{l_bar}{bar}{r_bar}'], where
|
| 532 |
+
l_bar='{desc}: {percentage:3.0f}%|' and
|
| 533 |
+
r_bar='| {n_fmt}/{total_fmt} [{elapsed}<{remaining}, '
|
| 534 |
+
'{rate_fmt}{postfix}]'
|
| 535 |
+
Possible vars: l_bar, bar, r_bar, n, n_fmt, total, total_fmt,
|
| 536 |
+
percentage, elapsed, elapsed_s, ncols, nrows, desc, unit,
|
| 537 |
+
rate, rate_fmt, rate_noinv, rate_noinv_fmt,
|
| 538 |
+
rate_inv, rate_inv_fmt, postfix, unit_divisor,
|
| 539 |
+
remaining, remaining_s, eta.
|
| 540 |
+
Note that a trailing ": " is automatically removed after {desc}
|
| 541 |
+
if the latter is empty.
|
| 542 |
+
* initial : int or float, optional
|
| 543 |
+
The initial counter value. Useful when restarting a progress
|
| 544 |
+
bar [default: 0]. If using float, consider specifying ``{n:.3f}``
|
| 545 |
+
or similar in ``bar_format``, or specifying ``unit_scale``.
|
| 546 |
+
* position : int, optional
|
| 547 |
+
Specify the line offset to print this bar (starting from 0)
|
| 548 |
+
Automatic if unspecified.
|
| 549 |
+
Useful to manage multiple bars at once (eg, from threads).
|
| 550 |
+
* postfix : dict or ``*``, optional
|
| 551 |
+
Specify additional stats to display at the end of the bar.
|
| 552 |
+
Calls ``set_postfix(**postfix)`` if possible (dict).
|
| 553 |
+
* unit_divisor : float, optional
|
| 554 |
+
[default: 1000], ignored unless ``unit_scale`` is True.
|
| 555 |
+
* write_bytes : bool, optional
|
| 556 |
+
Whether to write bytes. If (default: False) will write unicode.
|
| 557 |
+
* lock_args : tuple, optional
|
| 558 |
+
Passed to ``refresh`` for intermediate output
|
| 559 |
+
(initialisation, iterating, and updating).
|
| 560 |
+
* nrows : int, optional
|
| 561 |
+
The screen height. If specified, hides nested bars outside this
|
| 562 |
+
bound. If unspecified, attempts to use environment height.
|
| 563 |
+
The fallback is 20.
|
| 564 |
+
* colour : str, optional
|
| 565 |
+
Bar colour (e.g. 'green', '#00ff00').
|
| 566 |
+
* delay : float, optional
|
| 567 |
+
Don't display until [default: 0] seconds have elapsed.
|
| 568 |
+
|
| 569 |
+
Extra CLI Options
|
| 570 |
+
~~~~~~~~~~~~~~~~~
|
| 571 |
+
|
| 572 |
+
* delim : chr, optional
|
| 573 |
+
Delimiting character [default: '\n']. Use '\0' for null.
|
| 574 |
+
N.B.: on Windows systems, Python converts '\n' to '\r\n'.
|
| 575 |
+
* buf_size : int, optional
|
| 576 |
+
String buffer size in bytes [default: 256]
|
| 577 |
+
used when ``delim`` is specified.
|
| 578 |
+
* bytes : bool, optional
|
| 579 |
+
If true, will count bytes, ignore ``delim``, and default
|
| 580 |
+
``unit_scale`` to True, ``unit_divisor`` to 1024, and ``unit`` to 'B'.
|
| 581 |
+
* tee : bool, optional
|
| 582 |
+
If true, passes ``stdin`` to both ``stderr`` and ``stdout``.
|
| 583 |
+
* update : bool, optional
|
| 584 |
+
If true, will treat input as newly elapsed iterations,
|
| 585 |
+
i.e. numbers to pass to ``update()``. Note that this is slow
|
| 586 |
+
(~2e5 it/s) since every input must be decoded as a number.
|
| 587 |
+
* update_to : bool, optional
|
| 588 |
+
If true, will treat input as total elapsed iterations,
|
| 589 |
+
i.e. numbers to assign to ``self.n``. Note that this is slow
|
| 590 |
+
(~2e5 it/s) since every input must be decoded as a number.
|
| 591 |
+
* null : bool, optional
|
| 592 |
+
If true, will discard input (no stdout).
|
| 593 |
+
* manpath : str, optional
|
| 594 |
+
Directory in which to install tqdm man pages.
|
| 595 |
+
* comppath : str, optional
|
| 596 |
+
Directory in which to place tqdm completion.
|
| 597 |
+
* log : str, optional
|
| 598 |
+
CRITICAL|FATAL|ERROR|WARN(ING)|[default: 'INFO']|DEBUG|NOTSET.
|
| 599 |
+
|
| 600 |
+
Returns
|
| 601 |
+
~~~~~~~
|
| 602 |
+
|
| 603 |
+
* out : decorated iterator.
|
| 604 |
+
|
| 605 |
+
.. code:: python
|
| 606 |
+
|
| 607 |
+
class tqdm():
|
| 608 |
+
def update(self, n=1):
|
| 609 |
+
"""
|
| 610 |
+
Manually update the progress bar, useful for streams
|
| 611 |
+
such as reading files.
|
| 612 |
+
E.g.:
|
| 613 |
+
>>> t = tqdm(total=filesize) # Initialise
|
| 614 |
+
>>> for current_buffer in stream:
|
| 615 |
+
... ...
|
| 616 |
+
... t.update(len(current_buffer))
|
| 617 |
+
>>> t.close()
|
| 618 |
+
The last line is highly recommended, but possibly not necessary if
|
| 619 |
+
`t.update()` will be called in such a way that `filesize` will be
|
| 620 |
+
exactly reached and printed.
|
| 621 |
+
|
| 622 |
+
Parameters
|
| 623 |
+
----------
|
| 624 |
+
n : int or float, optional
|
| 625 |
+
Increment to add to the internal counter of iterations
|
| 626 |
+
[default: 1]. If using float, consider specifying `{n:.3f}`
|
| 627 |
+
or similar in `bar_format`, or specifying `unit_scale`.
|
| 628 |
+
|
| 629 |
+
Returns
|
| 630 |
+
-------
|
| 631 |
+
out : bool or None
|
| 632 |
+
True if a `display()` was triggered.
|
| 633 |
+
"""
|
| 634 |
+
|
| 635 |
+
def close(self):
|
| 636 |
+
"""Cleanup and (if leave=False) close the progress bar."""
|
| 637 |
+
|
| 638 |
+
def clear(self, nomove=False):
|
| 639 |
+
"""Clear current bar display."""
|
| 640 |
+
|
| 641 |
+
def refresh(self):
|
| 642 |
+
"""
|
| 643 |
+
Force refresh the display of this bar.
|
| 644 |
+
|
| 645 |
+
Parameters
|
| 646 |
+
----------
|
| 647 |
+
nolock : bool, optional
|
| 648 |
+
If `True`, does not lock.
|
| 649 |
+
If [default: `False`]: calls `acquire()` on internal lock.
|
| 650 |
+
lock_args : tuple, optional
|
| 651 |
+
Passed to internal lock's `acquire()`.
|
| 652 |
+
If specified, will only `display()` if `acquire()` returns `True`.
|
| 653 |
+
"""
|
| 654 |
+
|
| 655 |
+
def unpause(self):
|
| 656 |
+
"""Restart tqdm timer from last print time."""
|
| 657 |
+
|
| 658 |
+
def reset(self, total=None):
|
| 659 |
+
"""
|
| 660 |
+
Resets to 0 iterations for repeated use.
|
| 661 |
+
|
| 662 |
+
Consider combining with `leave=True`.
|
| 663 |
+
|
| 664 |
+
Parameters
|
| 665 |
+
----------
|
| 666 |
+
total : int or float, optional. Total to use for the new bar.
|
| 667 |
+
"""
|
| 668 |
+
|
| 669 |
+
def set_description(self, desc=None, refresh=True):
|
| 670 |
+
"""
|
| 671 |
+
Set/modify description of the progress bar.
|
| 672 |
+
|
| 673 |
+
Parameters
|
| 674 |
+
----------
|
| 675 |
+
desc : str, optional
|
| 676 |
+
refresh : bool, optional
|
| 677 |
+
Forces refresh [default: True].
|
| 678 |
+
"""
|
| 679 |
+
|
| 680 |
+
def set_postfix(self, ordered_dict=None, refresh=True, **tqdm_kwargs):
|
| 681 |
+
"""
|
| 682 |
+
Set/modify postfix (additional stats)
|
| 683 |
+
with automatic formatting based on datatype.
|
| 684 |
+
|
| 685 |
+
Parameters
|
| 686 |
+
----------
|
| 687 |
+
ordered_dict : dict or OrderedDict, optional
|
| 688 |
+
refresh : bool, optional
|
| 689 |
+
Forces refresh [default: True].
|
| 690 |
+
kwargs : dict, optional
|
| 691 |
+
"""
|
| 692 |
+
|
| 693 |
+
@classmethod
|
| 694 |
+
def write(cls, s, file=sys.stdout, end="\n"):
|
| 695 |
+
"""Print a message via tqdm (without overlap with bars)."""
|
| 696 |
+
|
| 697 |
+
@property
|
| 698 |
+
def format_dict(self):
|
| 699 |
+
"""Public API for read-only member access."""
|
| 700 |
+
|
| 701 |
+
def display(self, msg=None, pos=None):
|
| 702 |
+
"""
|
| 703 |
+
Use `self.sp` to display `msg` in the specified `pos`.
|
| 704 |
+
|
| 705 |
+
Consider overloading this function when inheriting to use e.g.:
|
| 706 |
+
`self.some_frontend(**self.format_dict)` instead of `self.sp`.
|
| 707 |
+
|
| 708 |
+
Parameters
|
| 709 |
+
----------
|
| 710 |
+
msg : str, optional. What to display (default: `repr(self)`).
|
| 711 |
+
pos : int, optional. Position to `moveto`
|
| 712 |
+
(default: `abs(self.pos)`).
|
| 713 |
+
"""
|
| 714 |
+
|
| 715 |
+
@classmethod
|
| 716 |
+
@contextmanager
|
| 717 |
+
def wrapattr(cls, stream, method, total=None, bytes=True, **tqdm_kwargs):
|
| 718 |
+
"""
|
| 719 |
+
stream : file-like object.
|
| 720 |
+
method : str, "read" or "write". The result of `read()` and
|
| 721 |
+
the first argument of `write()` should have a `len()`.
|
| 722 |
+
|
| 723 |
+
>>> with tqdm.wrapattr(file_obj, "read", total=file_obj.size) as fobj:
|
| 724 |
+
... while True:
|
| 725 |
+
... chunk = fobj.read(chunk_size)
|
| 726 |
+
... if not chunk:
|
| 727 |
+
... break
|
| 728 |
+
"""
|
| 729 |
+
|
| 730 |
+
@classmethod
|
| 731 |
+
def pandas(cls, *targs, **tqdm_kwargs):
|
| 732 |
+
"""Registers the current `tqdm` class with `pandas`."""
|
| 733 |
+
|
| 734 |
+
def trange(*args, **tqdm_kwargs):
|
| 735 |
+
"""Shortcut for `tqdm(range(*args), **tqdm_kwargs)`."""
|
| 736 |
+
|
| 737 |
+
Convenience Functions
|
| 738 |
+
~~~~~~~~~~~~~~~~~~~~~
|
| 739 |
+
|
| 740 |
+
.. code:: python
|
| 741 |
+
|
| 742 |
+
def tqdm.contrib.tenumerate(iterable, start=0, total=None,
|
| 743 |
+
tqdm_class=tqdm.auto.tqdm, **tqdm_kwargs):
|
| 744 |
+
"""Equivalent of `numpy.ndenumerate` or builtin `enumerate`."""
|
| 745 |
+
|
| 746 |
+
def tqdm.contrib.tzip(iter1, *iter2plus, **tqdm_kwargs):
|
| 747 |
+
"""Equivalent of builtin `zip`."""
|
| 748 |
+
|
| 749 |
+
def tqdm.contrib.tmap(function, *sequences, **tqdm_kwargs):
|
| 750 |
+
"""Equivalent of builtin `map`."""
|
| 751 |
+
|
| 752 |
+
Submodules
|
| 753 |
+
~~~~~~~~~~
|
| 754 |
+
|
| 755 |
+
.. code:: python
|
| 756 |
+
|
| 757 |
+
class tqdm.notebook.tqdm(tqdm.tqdm):
|
| 758 |
+
"""IPython/Jupyter Notebook widget."""
|
| 759 |
+
|
| 760 |
+
class tqdm.auto.tqdm(tqdm.tqdm):
|
| 761 |
+
"""Automatically chooses between `tqdm.notebook` and `tqdm.tqdm`."""
|
| 762 |
+
|
| 763 |
+
class tqdm.asyncio.tqdm(tqdm.tqdm):
|
| 764 |
+
"""Asynchronous version."""
|
| 765 |
+
@classmethod
|
| 766 |
+
def as_completed(cls, fs, *, loop=None, timeout=None, total=None,
|
| 767 |
+
**tqdm_kwargs):
|
| 768 |
+
"""Wrapper for `asyncio.as_completed`."""
|
| 769 |
+
|
| 770 |
+
class tqdm.gui.tqdm(tqdm.tqdm):
|
| 771 |
+
"""Matplotlib GUI version."""
|
| 772 |
+
|
| 773 |
+
class tqdm.tk.tqdm(tqdm.tqdm):
|
| 774 |
+
"""Tkinter GUI version."""
|
| 775 |
+
|
| 776 |
+
class tqdm.rich.tqdm(tqdm.tqdm):
|
| 777 |
+
"""`rich.progress` version."""
|
| 778 |
+
|
| 779 |
+
class tqdm.keras.TqdmCallback(keras.callbacks.Callback):
|
| 780 |
+
"""Keras callback for epoch and batch progress."""
|
| 781 |
+
|
| 782 |
+
class tqdm.dask.TqdmCallback(dask.callbacks.Callback):
|
| 783 |
+
"""Dask callback for task progress."""
|
| 784 |
+
|
| 785 |
+
|
| 786 |
+
``contrib``
|
| 787 |
+
+++++++++++
|
| 788 |
+
|
| 789 |
+
The ``tqdm.contrib`` package also contains experimental modules:
|
| 790 |
+
|
| 791 |
+
- `tqdm.contrib.itertools <https://tqdm.github.io/docs/contrib.itertools/>`_: Thin wrappers around ``itertools``
|
| 792 |
+
- `tqdm.contrib.concurrent <https://tqdm.github.io/docs/contrib.concurrent/>`_: Thin wrappers around ``concurrent.futures``
|
| 793 |
+
- `tqdm.contrib.slack <https://tqdm.github.io/docs/contrib.slack/>`_: Posts to `Slack <https://slack.com>`__ bots
|
| 794 |
+
- `tqdm.contrib.discord <https://tqdm.github.io/docs/contrib.discord/>`_: Posts to `Discord <https://discord.com>`__ bots
|
| 795 |
+
- `tqdm.contrib.telegram <https://tqdm.github.io/docs/contrib.telegram/>`_: Posts to `Telegram <https://telegram.org>`__ bots
|
| 796 |
+
- `tqdm.contrib.bells <https://tqdm.github.io/docs/shortcuts/>`_: Automagically enables all optional features
|
| 797 |
+
|
| 798 |
+
* ``auto``, ``pandas``, ``slack``, ``discord``, ``telegram``
|
| 799 |
+
|
| 800 |
+
.. image:: https://tqdm.github.io/img/screenshot-discord.png
|
| 801 |
+
:alt: Screenshot of `tqdm.contrib.discord` in action
|
| 802 |
+
|
| 803 |
+
Examples and Advanced Usage
|
| 804 |
+
---------------------------
|
| 805 |
+
|
| 806 |
+
- See the `examples <https://github.com/tqdm/tqdm/tree/master/examples>`__
|
| 807 |
+
folder;
|
| 808 |
+
- import the module and run ``help()``;
|
| 809 |
+
- consult the `wiki <https://github.com/tqdm/tqdm/wiki>`__;
|
| 810 |
+
|
| 811 |
+
* this has an
|
| 812 |
+
`excellent article <https://github.com/tqdm/tqdm/wiki/How-to-make-a-great-Progress-Bar>`__
|
| 813 |
+
on how to make a **great** progress bar;
|
| 814 |
+
|
| 815 |
+
- check out the `slides from PyData London <https://tqdm.github.io/PyData2019/slides.html>`__, or
|
| 816 |
+
- run the |binder-demo|.
|
| 817 |
+
|
| 818 |
+
Description and additional stats
|
| 819 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 820 |
+
|
| 821 |
+
Custom information can be displayed and updated dynamically on ``tqdm`` bars
|
| 822 |
+
with the ``desc`` and ``postfix`` arguments:
|
| 823 |
+
|
| 824 |
+
.. code:: python
|
| 825 |
+
|
| 826 |
+
from tqdm import tqdm, trange
|
| 827 |
+
from random import random, randint
|
| 828 |
+
from time import sleep
|
| 829 |
+
|
| 830 |
+
with trange(10) as t:
|
| 831 |
+
for i in t:
|
| 832 |
+
# Description will be displayed on the left
|
| 833 |
+
t.set_description('GEN %i' % i)
|
| 834 |
+
# Postfix will be displayed on the right,
|
| 835 |
+
# formatted automatically based on argument's datatype
|
| 836 |
+
t.set_postfix(loss=random(), gen=randint(1,999), str='h',
|
| 837 |
+
lst=[1, 2])
|
| 838 |
+
sleep(0.1)
|
| 839 |
+
|
| 840 |
+
with tqdm(total=10, bar_format="{postfix[0]} {postfix[1][value]:>8.2g}",
|
| 841 |
+
postfix=["Batch", {"value": 0}]) as t:
|
| 842 |
+
for i in range(10):
|
| 843 |
+
sleep(0.1)
|
| 844 |
+
t.postfix[1]["value"] = i / 2
|
| 845 |
+
t.update()
|
| 846 |
+
|
| 847 |
+
Points to remember when using ``{postfix[...]}`` in the ``bar_format`` string:
|
| 848 |
+
|
| 849 |
+
- ``postfix`` also needs to be passed as an initial argument in a compatible
|
| 850 |
+
format, and
|
| 851 |
+
- ``postfix`` will be auto-converted to a string if it is a ``dict``-like
|
| 852 |
+
object. To prevent this behaviour, insert an extra item into the dictionary
|
| 853 |
+
where the key is not a string.
|
| 854 |
+
|
| 855 |
+
Additional ``bar_format`` parameters may also be defined by overriding
|
| 856 |
+
``format_dict``, and the bar itself may be modified using ``ascii``:
|
| 857 |
+
|
| 858 |
+
.. code:: python
|
| 859 |
+
|
| 860 |
+
from tqdm import tqdm
|
| 861 |
+
class TqdmExtraFormat(tqdm):
|
| 862 |
+
"""Provides a `total_time` format parameter"""
|
| 863 |
+
@property
|
| 864 |
+
def format_dict(self):
|
| 865 |
+
d = super().format_dict
|
| 866 |
+
total_time = d["elapsed"] * (d["total"] or 0) / max(d["n"], 1)
|
| 867 |
+
d.update(total_time=self.format_interval(total_time) + " in total")
|
| 868 |
+
return d
|
| 869 |
+
|
| 870 |
+
for i in TqdmExtraFormat(
|
| 871 |
+
range(9), ascii=" .oO0",
|
| 872 |
+
bar_format="{total_time}: {percentage:.0f}%|{bar}{r_bar}"):
|
| 873 |
+
if i == 4:
|
| 874 |
+
break
|
| 875 |
+
|
| 876 |
+
.. code::
|
| 877 |
+
|
| 878 |
+
00:00 in total: 44%|0000. | 4/9 [00:00<00:00, 962.93it/s]
|
| 879 |
+
|
| 880 |
+
Note that ``{bar}`` also supports a format specifier ``[width][type]``.
|
| 881 |
+
|
| 882 |
+
- ``width``
|
| 883 |
+
|
| 884 |
+
* unspecified (default): automatic to fill ``ncols``
|
| 885 |
+
* ``int >= 0``: fixed width overriding ``ncols`` logic
|
| 886 |
+
* ``int < 0``: subtract from the automatic default
|
| 887 |
+
|
| 888 |
+
- ``type``
|
| 889 |
+
|
| 890 |
+
* ``a``: ascii (``ascii=True`` override)
|
| 891 |
+
* ``u``: unicode (``ascii=False`` override)
|
| 892 |
+
* ``b``: blank (``ascii=" "`` override)
|
| 893 |
+
|
| 894 |
+
This means a fixed bar with right-justified text may be created by using:
|
| 895 |
+
``bar_format="{l_bar}{bar:10}|{bar:-10b}right-justified"``
|
| 896 |
+
|
| 897 |
+
Nested progress bars
|
| 898 |
+
~~~~~~~~~~~~~~~~~~~~
|
| 899 |
+
|
| 900 |
+
``tqdm`` supports nested progress bars. Here's an example:
|
| 901 |
+
|
| 902 |
+
.. code:: python
|
| 903 |
+
|
| 904 |
+
from tqdm.auto import trange
|
| 905 |
+
from time import sleep
|
| 906 |
+
|
| 907 |
+
for i in trange(4, desc='1st loop'):
|
| 908 |
+
for j in trange(5, desc='2nd loop'):
|
| 909 |
+
for k in trange(50, desc='3rd loop', leave=False):
|
| 910 |
+
sleep(0.01)
|
| 911 |
+
|
| 912 |
+
For manual control over positioning (e.g. for multi-processing use),
|
| 913 |
+
you may specify ``position=n`` where ``n=0`` for the outermost bar,
|
| 914 |
+
``n=1`` for the next, and so on.
|
| 915 |
+
However, it's best to check if ``tqdm`` can work without manual ``position``
|
| 916 |
+
first.
|
| 917 |
+
|
| 918 |
+
.. code:: python
|
| 919 |
+
|
| 920 |
+
from time import sleep
|
| 921 |
+
from tqdm import trange, tqdm
|
| 922 |
+
from multiprocessing import Pool, RLock, freeze_support
|
| 923 |
+
|
| 924 |
+
L = list(range(9))
|
| 925 |
+
|
| 926 |
+
def progresser(n):
|
| 927 |
+
interval = 0.001 / (n + 2)
|
| 928 |
+
total = 5000
|
| 929 |
+
text = f"#{n}, est. {interval * total:<04.2}s"
|
| 930 |
+
for _ in trange(total, desc=text, position=n):
|
| 931 |
+
sleep(interval)
|
| 932 |
+
|
| 933 |
+
if __name__ == '__main__':
|
| 934 |
+
freeze_support() # for Windows support
|
| 935 |
+
tqdm.set_lock(RLock()) # for managing output contention
|
| 936 |
+
p = Pool(initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),))
|
| 937 |
+
p.map(progresser, L)
|
| 938 |
+
|
| 939 |
+
Note that in Python 3, ``tqdm.write`` is thread-safe:
|
| 940 |
+
|
| 941 |
+
.. code:: python
|
| 942 |
+
|
| 943 |
+
from time import sleep
|
| 944 |
+
from tqdm import tqdm, trange
|
| 945 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 946 |
+
|
| 947 |
+
L = list(range(9))
|
| 948 |
+
|
| 949 |
+
def progresser(n):
|
| 950 |
+
interval = 0.001 / (n + 2)
|
| 951 |
+
total = 5000
|
| 952 |
+
text = f"#{n}, est. {interval * total:<04.2}s"
|
| 953 |
+
for _ in trange(total, desc=text):
|
| 954 |
+
sleep(interval)
|
| 955 |
+
if n == 6:
|
| 956 |
+
tqdm.write("n == 6 completed.")
|
| 957 |
+
tqdm.write("`tqdm.write()` is thread-safe in py3!")
|
| 958 |
+
|
| 959 |
+
if __name__ == '__main__':
|
| 960 |
+
with ThreadPoolExecutor() as p:
|
| 961 |
+
p.map(progresser, L)
|
| 962 |
+
|
| 963 |
+
Hooks and callbacks
|
| 964 |
+
~~~~~~~~~~~~~~~~~~~
|
| 965 |
+
|
| 966 |
+
``tqdm`` can easily support callbacks/hooks and manual updates.
|
| 967 |
+
Here's an example with ``urllib``:
|
| 968 |
+
|
| 969 |
+
**``urllib.urlretrieve`` documentation**
|
| 970 |
+
|
| 971 |
+
| [...]
|
| 972 |
+
| If present, the hook function will be called once
|
| 973 |
+
| on establishment of the network connection and once after each block read
|
| 974 |
+
| thereafter. The hook will be passed three arguments; a count of blocks
|
| 975 |
+
| transferred so far, a block size in bytes, and the total size of the file.
|
| 976 |
+
| [...]
|
| 977 |
+
|
| 978 |
+
.. code:: python
|
| 979 |
+
|
| 980 |
+
import urllib, os
|
| 981 |
+
from tqdm import tqdm
|
| 982 |
+
urllib = getattr(urllib, 'request', urllib)
|
| 983 |
+
|
| 984 |
+
class TqdmUpTo(tqdm):
|
| 985 |
+
"""Provides `update_to(n)` which uses `tqdm.update(delta_n)`."""
|
| 986 |
+
def update_to(self, b=1, bsize=1, tsize=None):
|
| 987 |
+
"""
|
| 988 |
+
b : int, optional
|
| 989 |
+
Number of blocks transferred so far [default: 1].
|
| 990 |
+
bsize : int, optional
|
| 991 |
+
Size of each block (in tqdm units) [default: 1].
|
| 992 |
+
tsize : int, optional
|
| 993 |
+
Total size (in tqdm units). If [default: None] remains unchanged.
|
| 994 |
+
"""
|
| 995 |
+
if tsize is not None:
|
| 996 |
+
self.total = tsize
|
| 997 |
+
return self.update(b * bsize - self.n) # also sets self.n = b * bsize
|
| 998 |
+
|
| 999 |
+
eg_link = "https://cgi.cdcl.ml/matryoshka.zip"
|
| 1000 |
+
with TqdmUpTo(unit='B', unit_scale=True, unit_divisor=1024, miniters=1,
|
| 1001 |
+
desc=eg_link.split('/')[-1]) as t: # all optional kwargs
|
| 1002 |
+
urllib.urlretrieve(eg_link, filename=os.devnull,
|
| 1003 |
+
reporthook=t.update_to, data=None)
|
| 1004 |
+
t.total = t.n
|
| 1005 |
+
|
| 1006 |
+
Inspired by `twine#242 <https://github.com/pypa/twine/pull/242>`__.
|
| 1007 |
+
Functional alternative in
|
| 1008 |
+
`examples/tqdm_wget.py <https://github.com/tqdm/tqdm/blob/master/examples/tqdm_wget.py>`__.
|
| 1009 |
+
|
| 1010 |
+
It is recommend to use ``miniters=1`` whenever there is potentially
|
| 1011 |
+
large differences in iteration speed (e.g. downloading a file over
|
| 1012 |
+
a patchy connection).
|
| 1013 |
+
|
| 1014 |
+
**Wrapping read/write methods**
|
| 1015 |
+
|
| 1016 |
+
To measure throughput through a file-like object's ``read`` or ``write``
|
| 1017 |
+
methods, use ``CallbackIOWrapper``:
|
| 1018 |
+
|
| 1019 |
+
.. code:: python
|
| 1020 |
+
|
| 1021 |
+
from tqdm.auto import tqdm
|
| 1022 |
+
from tqdm.utils import CallbackIOWrapper
|
| 1023 |
+
|
| 1024 |
+
with tqdm(total=file_obj.size,
|
| 1025 |
+
unit='B', unit_scale=True, unit_divisor=1024) as t:
|
| 1026 |
+
fobj = CallbackIOWrapper(t.update, file_obj, "read")
|
| 1027 |
+
while True:
|
| 1028 |
+
chunk = fobj.read(chunk_size)
|
| 1029 |
+
if not chunk:
|
| 1030 |
+
break
|
| 1031 |
+
t.reset()
|
| 1032 |
+
# ... continue to use `t` for something else
|
| 1033 |
+
|
| 1034 |
+
Alternatively, use the even simpler ``wrapattr`` convenience function,
|
| 1035 |
+
which would condense both the ``urllib`` and ``CallbackIOWrapper`` examples
|
| 1036 |
+
down to:
|
| 1037 |
+
|
| 1038 |
+
.. code:: python
|
| 1039 |
+
|
| 1040 |
+
import urllib, os
|
| 1041 |
+
from tqdm import tqdm
|
| 1042 |
+
|
| 1043 |
+
eg_link = "https://cgi.cdcl.ml/matryoshka.zip"
|
| 1044 |
+
response = getattr(urllib, 'request', urllib).urlopen(eg_link)
|
| 1045 |
+
with tqdm.wrapattr(open(os.devnull, "wb"), "write",
|
| 1046 |
+
miniters=1, desc=eg_link.split('/')[-1],
|
| 1047 |
+
total=getattr(response, 'length', None)) as fout:
|
| 1048 |
+
for chunk in response:
|
| 1049 |
+
fout.write(chunk)
|
| 1050 |
+
|
| 1051 |
+
The ``requests`` equivalent is nearly identical:
|
| 1052 |
+
|
| 1053 |
+
.. code:: python
|
| 1054 |
+
|
| 1055 |
+
import requests, os
|
| 1056 |
+
from tqdm import tqdm
|
| 1057 |
+
|
| 1058 |
+
eg_link = "https://cgi.cdcl.ml/matryoshka.zip"
|
| 1059 |
+
response = requests.get(eg_link, stream=True)
|
| 1060 |
+
with tqdm.wrapattr(open(os.devnull, "wb"), "write",
|
| 1061 |
+
miniters=1, desc=eg_link.split('/')[-1],
|
| 1062 |
+
total=int(response.headers.get('content-length', 0))) as fout:
|
| 1063 |
+
for chunk in response.iter_content(chunk_size=4096):
|
| 1064 |
+
fout.write(chunk)
|
| 1065 |
+
|
| 1066 |
+
**Custom callback**
|
| 1067 |
+
|
| 1068 |
+
``tqdm`` is known for intelligently skipping unnecessary displays. To make a
|
| 1069 |
+
custom callback take advantage of this, simply use the return value of
|
| 1070 |
+
``update()``. This is set to ``True`` if a ``display()`` was triggered.
|
| 1071 |
+
|
| 1072 |
+
.. code:: python
|
| 1073 |
+
|
| 1074 |
+
from tqdm.auto import tqdm as std_tqdm
|
| 1075 |
+
|
| 1076 |
+
def external_callback(*args, **kwargs):
|
| 1077 |
+
...
|
| 1078 |
+
|
| 1079 |
+
class TqdmExt(std_tqdm):
|
| 1080 |
+
def update(self, n=1):
|
| 1081 |
+
displayed = super().update(n)
|
| 1082 |
+
if displayed:
|
| 1083 |
+
external_callback(**self.format_dict)
|
| 1084 |
+
return displayed
|
| 1085 |
+
|
| 1086 |
+
``asyncio``
|
| 1087 |
+
~~~~~~~~~~~
|
| 1088 |
+
|
| 1089 |
+
Note that ``break`` isn't currently caught by asynchronous iterators.
|
| 1090 |
+
This means that ``tqdm`` cannot clean up after itself in this case:
|
| 1091 |
+
|
| 1092 |
+
.. code:: python
|
| 1093 |
+
|
| 1094 |
+
from tqdm.asyncio import tqdm
|
| 1095 |
+
|
| 1096 |
+
async for i in tqdm(range(9)):
|
| 1097 |
+
if i == 2:
|
| 1098 |
+
break
|
| 1099 |
+
|
| 1100 |
+
Instead, either call ``pbar.close()`` manually or use the context manager syntax:
|
| 1101 |
+
|
| 1102 |
+
.. code:: python
|
| 1103 |
+
|
| 1104 |
+
from tqdm.asyncio import tqdm
|
| 1105 |
+
|
| 1106 |
+
with tqdm(range(9)) as pbar:
|
| 1107 |
+
async for i in pbar:
|
| 1108 |
+
if i == 2:
|
| 1109 |
+
break
|
| 1110 |
+
|
| 1111 |
+
Pandas Integration
|
| 1112 |
+
~~~~~~~~~~~~~~~~~~
|
| 1113 |
+
|
| 1114 |
+
Due to popular demand we've added support for ``pandas`` -- here's an example
|
| 1115 |
+
for ``DataFrame.progress_apply`` and ``DataFrameGroupBy.progress_apply``:
|
| 1116 |
+
|
| 1117 |
+
.. code:: python
|
| 1118 |
+
|
| 1119 |
+
import pandas as pd
|
| 1120 |
+
import numpy as np
|
| 1121 |
+
from tqdm import tqdm
|
| 1122 |
+
|
| 1123 |
+
df = pd.DataFrame(np.random.randint(0, 100, (100000, 6)))
|
| 1124 |
+
|
| 1125 |
+
# Register `pandas.progress_apply` and `pandas.Series.map_apply` with `tqdm`
|
| 1126 |
+
# (can use `tqdm.gui.tqdm`, `tqdm.notebook.tqdm`, optional kwargs, etc.)
|
| 1127 |
+
tqdm.pandas(desc="my bar!")
|
| 1128 |
+
|
| 1129 |
+
# Now you can use `progress_apply` instead of `apply`
|
| 1130 |
+
# and `progress_map` instead of `map`
|
| 1131 |
+
df.progress_apply(lambda x: x**2)
|
| 1132 |
+
# can also groupby:
|
| 1133 |
+
# df.groupby(0).progress_apply(lambda x: x**2)
|
| 1134 |
+
|
| 1135 |
+
In case you're interested in how this works (and how to modify it for your
|
| 1136 |
+
own callbacks), see the
|
| 1137 |
+
`examples <https://github.com/tqdm/tqdm/tree/master/examples>`__
|
| 1138 |
+
folder or import the module and run ``help()``.
|
| 1139 |
+
|
| 1140 |
+
Keras Integration
|
| 1141 |
+
~~~~~~~~~~~~~~~~~
|
| 1142 |
+
|
| 1143 |
+
A ``keras`` callback is also available:
|
| 1144 |
+
|
| 1145 |
+
.. code:: python
|
| 1146 |
+
|
| 1147 |
+
from tqdm.keras import TqdmCallback
|
| 1148 |
+
|
| 1149 |
+
...
|
| 1150 |
+
|
| 1151 |
+
model.fit(..., verbose=0, callbacks=[TqdmCallback()])
|
| 1152 |
+
|
| 1153 |
+
Dask Integration
|
| 1154 |
+
~~~~~~~~~~~~~~~~
|
| 1155 |
+
|
| 1156 |
+
A ``dask`` callback is also available:
|
| 1157 |
+
|
| 1158 |
+
.. code:: python
|
| 1159 |
+
|
| 1160 |
+
from tqdm.dask import TqdmCallback
|
| 1161 |
+
|
| 1162 |
+
with TqdmCallback(desc="compute"):
|
| 1163 |
+
...
|
| 1164 |
+
arr.compute()
|
| 1165 |
+
|
| 1166 |
+
# or use callback globally
|
| 1167 |
+
cb = TqdmCallback(desc="global")
|
| 1168 |
+
cb.register()
|
| 1169 |
+
arr.compute()
|
| 1170 |
+
|
| 1171 |
+
IPython/Jupyter Integration
|
| 1172 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 1173 |
+
|
| 1174 |
+
IPython/Jupyter is supported via the ``tqdm.notebook`` submodule:
|
| 1175 |
+
|
| 1176 |
+
.. code:: python
|
| 1177 |
+
|
| 1178 |
+
from tqdm.notebook import trange, tqdm
|
| 1179 |
+
from time import sleep
|
| 1180 |
+
|
| 1181 |
+
for i in trange(3, desc='1st loop'):
|
| 1182 |
+
for j in tqdm(range(100), desc='2nd loop'):
|
| 1183 |
+
sleep(0.01)
|
| 1184 |
+
|
| 1185 |
+
In addition to ``tqdm`` features, the submodule provides a native Jupyter
|
| 1186 |
+
widget (compatible with IPython v1-v4 and Jupyter), fully working nested bars
|
| 1187 |
+
and colour hints (blue: normal, green: completed, red: error/interrupt,
|
| 1188 |
+
light blue: no ETA); as demonstrated below.
|
| 1189 |
+
|
| 1190 |
+
|Screenshot-Jupyter1|
|
| 1191 |
+
|Screenshot-Jupyter2|
|
| 1192 |
+
|Screenshot-Jupyter3|
|
| 1193 |
+
|
| 1194 |
+
The ``notebook`` version supports percentage or pixels for overall width
|
| 1195 |
+
(e.g.: ``ncols='100%'`` or ``ncols='480px'``).
|
| 1196 |
+
|
| 1197 |
+
It is also possible to let ``tqdm`` automatically choose between
|
| 1198 |
+
console or notebook versions by using the ``autonotebook`` submodule:
|
| 1199 |
+
|
| 1200 |
+
.. code:: python
|
| 1201 |
+
|
| 1202 |
+
from tqdm.autonotebook import tqdm
|
| 1203 |
+
tqdm.pandas()
|
| 1204 |
+
|
| 1205 |
+
Note that this will issue a ``TqdmExperimentalWarning`` if run in a notebook
|
| 1206 |
+
since it is not meant to be possible to distinguish between ``jupyter notebook``
|
| 1207 |
+
and ``jupyter console``. Use ``auto`` instead of ``autonotebook`` to suppress
|
| 1208 |
+
this warning.
|
| 1209 |
+
|
| 1210 |
+
Note that notebooks will display the bar in the cell where it was created.
|
| 1211 |
+
This may be a different cell from the one where it is used.
|
| 1212 |
+
If this is not desired, either
|
| 1213 |
+
|
| 1214 |
+
- delay the creation of the bar to the cell where it must be displayed, or
|
| 1215 |
+
- create the bar with ``display=False``, and in a later cell call
|
| 1216 |
+
``display(bar.container)``:
|
| 1217 |
+
|
| 1218 |
+
.. code:: python
|
| 1219 |
+
|
| 1220 |
+
from tqdm.notebook import tqdm
|
| 1221 |
+
pbar = tqdm(..., display=False)
|
| 1222 |
+
|
| 1223 |
+
.. code:: python
|
| 1224 |
+
|
| 1225 |
+
# different cell
|
| 1226 |
+
display(pbar.container)
|
| 1227 |
+
|
| 1228 |
+
The ``keras`` callback has a ``display()`` method which can be used likewise:
|
| 1229 |
+
|
| 1230 |
+
.. code:: python
|
| 1231 |
+
|
| 1232 |
+
from tqdm.keras import TqdmCallback
|
| 1233 |
+
cbk = TqdmCallback(display=False)
|
| 1234 |
+
|
| 1235 |
+
.. code:: python
|
| 1236 |
+
|
| 1237 |
+
# different cell
|
| 1238 |
+
cbk.display()
|
| 1239 |
+
model.fit(..., verbose=0, callbacks=[cbk])
|
| 1240 |
+
|
| 1241 |
+
Another possibility is to have a single bar (near the top of the notebook)
|
| 1242 |
+
which is constantly re-used (using ``reset()`` rather than ``close()``).
|
| 1243 |
+
For this reason, the notebook version (unlike the CLI version) does not
|
| 1244 |
+
automatically call ``close()`` upon ``Exception``.
|
| 1245 |
+
|
| 1246 |
+
.. code:: python
|
| 1247 |
+
|
| 1248 |
+
from tqdm.notebook import tqdm
|
| 1249 |
+
pbar = tqdm()
|
| 1250 |
+
|
| 1251 |
+
.. code:: python
|
| 1252 |
+
|
| 1253 |
+
# different cell
|
| 1254 |
+
iterable = range(100)
|
| 1255 |
+
pbar.reset(total=len(iterable)) # initialise with new `total`
|
| 1256 |
+
for i in iterable:
|
| 1257 |
+
pbar.update()
|
| 1258 |
+
pbar.refresh() # force print final status but don't `close()`
|
| 1259 |
+
|
| 1260 |
+
Custom Integration
|
| 1261 |
+
~~~~~~~~~~~~~~~~~~
|
| 1262 |
+
|
| 1263 |
+
To change the default arguments (such as making ``dynamic_ncols=True``),
|
| 1264 |
+
simply use built-in Python magic:
|
| 1265 |
+
|
| 1266 |
+
.. code:: python
|
| 1267 |
+
|
| 1268 |
+
from functools import partial
|
| 1269 |
+
from tqdm import tqdm as std_tqdm
|
| 1270 |
+
tqdm = partial(std_tqdm, dynamic_ncols=True)
|
| 1271 |
+
|
| 1272 |
+
For further customisation,
|
| 1273 |
+
``tqdm`` may be inherited from to create custom callbacks (as with the
|
| 1274 |
+
``TqdmUpTo`` example `above <#hooks-and-callbacks>`__) or for custom frontends
|
| 1275 |
+
(e.g. GUIs such as notebook or plotting packages). In the latter case:
|
| 1276 |
+
|
| 1277 |
+
1. ``def __init__()`` to call ``super().__init__(..., gui=True)`` to disable
|
| 1278 |
+
terminal ``status_printer`` creation.
|
| 1279 |
+
2. Redefine: ``close()``, ``clear()``, ``display()``.
|
| 1280 |
+
|
| 1281 |
+
Consider overloading ``display()`` to use e.g.
|
| 1282 |
+
``self.frontend(**self.format_dict)`` instead of ``self.sp(repr(self))``.
|
| 1283 |
+
|
| 1284 |
+
Some submodule examples of inheritance:
|
| 1285 |
+
|
| 1286 |
+
- `tqdm/notebook.py <https://github.com/tqdm/tqdm/blob/master/tqdm/notebook.py>`__
|
| 1287 |
+
- `tqdm/gui.py <https://github.com/tqdm/tqdm/blob/master/tqdm/gui.py>`__
|
| 1288 |
+
- `tqdm/tk.py <https://github.com/tqdm/tqdm/blob/master/tqdm/tk.py>`__
|
| 1289 |
+
- `tqdm/contrib/slack.py <https://github.com/tqdm/tqdm/blob/master/tqdm/contrib/slack.py>`__
|
| 1290 |
+
- `tqdm/contrib/discord.py <https://github.com/tqdm/tqdm/blob/master/tqdm/contrib/discord.py>`__
|
| 1291 |
+
- `tqdm/contrib/telegram.py <https://github.com/tqdm/tqdm/blob/master/tqdm/contrib/telegram.py>`__
|
| 1292 |
+
|
| 1293 |
+
Dynamic Monitor/Meter
|
| 1294 |
+
~~~~~~~~~~~~~~~~~~~~~
|
| 1295 |
+
|
| 1296 |
+
You can use a ``tqdm`` as a meter which is not monotonically increasing.
|
| 1297 |
+
This could be because ``n`` decreases (e.g. a CPU usage monitor) or ``total``
|
| 1298 |
+
changes.
|
| 1299 |
+
|
| 1300 |
+
One example would be recursively searching for files. The ``total`` is the
|
| 1301 |
+
number of objects found so far, while ``n`` is the number of those objects which
|
| 1302 |
+
are files (rather than folders):
|
| 1303 |
+
|
| 1304 |
+
.. code:: python
|
| 1305 |
+
|
| 1306 |
+
from tqdm import tqdm
|
| 1307 |
+
import os.path
|
| 1308 |
+
|
| 1309 |
+
def find_files_recursively(path, show_progress=True):
|
| 1310 |
+
files = []
|
| 1311 |
+
# total=1 assumes `path` is a file
|
| 1312 |
+
t = tqdm(total=1, unit="file", disable=not show_progress)
|
| 1313 |
+
if not os.path.exists(path):
|
| 1314 |
+
raise IOError("Cannot find:" + path)
|
| 1315 |
+
|
| 1316 |
+
def append_found_file(f):
|
| 1317 |
+
files.append(f)
|
| 1318 |
+
t.update()
|
| 1319 |
+
|
| 1320 |
+
def list_found_dir(path):
|
| 1321 |
+
"""returns os.listdir(path) assuming os.path.isdir(path)"""
|
| 1322 |
+
listing = os.listdir(path)
|
| 1323 |
+
# subtract 1 since a "file" we found was actually this directory
|
| 1324 |
+
t.total += len(listing) - 1
|
| 1325 |
+
# fancy way to give info without forcing a refresh
|
| 1326 |
+
t.set_postfix(dir=path[-10:], refresh=False)
|
| 1327 |
+
t.update(0) # may trigger a refresh
|
| 1328 |
+
return listing
|
| 1329 |
+
|
| 1330 |
+
def recursively_search(path):
|
| 1331 |
+
if os.path.isdir(path):
|
| 1332 |
+
for f in list_found_dir(path):
|
| 1333 |
+
recursively_search(os.path.join(path, f))
|
| 1334 |
+
else:
|
| 1335 |
+
append_found_file(path)
|
| 1336 |
+
|
| 1337 |
+
recursively_search(path)
|
| 1338 |
+
t.set_postfix(dir=path)
|
| 1339 |
+
t.close()
|
| 1340 |
+
return files
|
| 1341 |
+
|
| 1342 |
+
Using ``update(0)`` is a handy way to let ``tqdm`` decide when to trigger a
|
| 1343 |
+
display refresh to avoid console spamming.
|
| 1344 |
+
|
| 1345 |
+
Writing messages
|
| 1346 |
+
~~~~~~~~~~~~~~~~
|
| 1347 |
+
|
| 1348 |
+
This is a work in progress (see
|
| 1349 |
+
`#737 <https://github.com/tqdm/tqdm/issues/737>`__).
|
| 1350 |
+
|
| 1351 |
+
Since ``tqdm`` uses a simple printing mechanism to display progress bars,
|
| 1352 |
+
you should not write any message in the terminal using ``print()`` while
|
| 1353 |
+
a progress bar is open.
|
| 1354 |
+
|
| 1355 |
+
To write messages in the terminal without any collision with ``tqdm`` bar
|
| 1356 |
+
display, a ``.write()`` method is provided:
|
| 1357 |
+
|
| 1358 |
+
.. code:: python
|
| 1359 |
+
|
| 1360 |
+
from tqdm.auto import tqdm, trange
|
| 1361 |
+
from time import sleep
|
| 1362 |
+
|
| 1363 |
+
bar = trange(10)
|
| 1364 |
+
for i in bar:
|
| 1365 |
+
# Print using tqdm class method .write()
|
| 1366 |
+
sleep(0.1)
|
| 1367 |
+
if not (i % 3):
|
| 1368 |
+
tqdm.write("Done task %i" % i)
|
| 1369 |
+
# Can also use bar.write()
|
| 1370 |
+
|
| 1371 |
+
By default, this will print to standard output ``sys.stdout``. but you can
|
| 1372 |
+
specify any file-like object using the ``file`` argument. For example, this
|
| 1373 |
+
can be used to redirect the messages writing to a log file or class.
|
| 1374 |
+
|
| 1375 |
+
Redirecting writing
|
| 1376 |
+
~~~~~~~~~~~~~~~~~~~
|
| 1377 |
+
|
| 1378 |
+
If using a library that can print messages to the console, editing the library
|
| 1379 |
+
by replacing ``print()`` with ``tqdm.write()`` may not be desirable.
|
| 1380 |
+
In that case, redirecting ``sys.stdout`` to ``tqdm.write()`` is an option.
|
| 1381 |
+
|
| 1382 |
+
To redirect ``sys.stdout``, create a file-like class that will write
|
| 1383 |
+
any input string to ``tqdm.write()``, and supply the arguments
|
| 1384 |
+
``file=sys.stdout, dynamic_ncols=True``.
|
| 1385 |
+
|
| 1386 |
+
A reusable canonical example is given below:
|
| 1387 |
+
|
| 1388 |
+
.. code:: python
|
| 1389 |
+
|
| 1390 |
+
from time import sleep
|
| 1391 |
+
import contextlib
|
| 1392 |
+
import sys
|
| 1393 |
+
from tqdm import tqdm
|
| 1394 |
+
from tqdm.contrib import DummyTqdmFile
|
| 1395 |
+
|
| 1396 |
+
|
| 1397 |
+
@contextlib.contextmanager
|
| 1398 |
+
def std_out_err_redirect_tqdm():
|
| 1399 |
+
orig_out_err = sys.stdout, sys.stderr
|
| 1400 |
+
try:
|
| 1401 |
+
sys.stdout, sys.stderr = map(DummyTqdmFile, orig_out_err)
|
| 1402 |
+
yield orig_out_err[0]
|
| 1403 |
+
# Relay exceptions
|
| 1404 |
+
except Exception as exc:
|
| 1405 |
+
raise exc
|
| 1406 |
+
# Always restore sys.stdout/err if necessary
|
| 1407 |
+
finally:
|
| 1408 |
+
sys.stdout, sys.stderr = orig_out_err
|
| 1409 |
+
|
| 1410 |
+
def some_fun(i):
|
| 1411 |
+
print("Fee, fi, fo,".split()[i])
|
| 1412 |
+
|
| 1413 |
+
# Redirect stdout to tqdm.write() (don't forget the `as save_stdout`)
|
| 1414 |
+
with std_out_err_redirect_tqdm() as orig_stdout:
|
| 1415 |
+
# tqdm needs the original stdout
|
| 1416 |
+
# and dynamic_ncols=True to autodetect console width
|
| 1417 |
+
for i in tqdm(range(3), file=orig_stdout, dynamic_ncols=True):
|
| 1418 |
+
sleep(.5)
|
| 1419 |
+
some_fun(i)
|
| 1420 |
+
|
| 1421 |
+
# After the `with`, printing is restored
|
| 1422 |
+
print("Done!")
|
| 1423 |
+
|
| 1424 |
+
Redirecting ``logging``
|
| 1425 |
+
~~~~~~~~~~~~~~~~~~~~~~~
|
| 1426 |
+
|
| 1427 |
+
Similar to ``sys.stdout``/``sys.stderr`` as detailed above, console ``logging``
|
| 1428 |
+
may also be redirected to ``tqdm.write()``.
|
| 1429 |
+
|
| 1430 |
+
Warning: if also redirecting ``sys.stdout``/``sys.stderr``, make sure to
|
| 1431 |
+
redirect ``logging`` first if needed.
|
| 1432 |
+
|
| 1433 |
+
Helper methods are available in ``tqdm.contrib.logging``. For example:
|
| 1434 |
+
|
| 1435 |
+
.. code:: python
|
| 1436 |
+
|
| 1437 |
+
import logging
|
| 1438 |
+
from tqdm import trange
|
| 1439 |
+
from tqdm.contrib.logging import logging_redirect_tqdm
|
| 1440 |
+
|
| 1441 |
+
LOG = logging.getLogger(__name__)
|
| 1442 |
+
|
| 1443 |
+
if __name__ == '__main__':
|
| 1444 |
+
logging.basicConfig(level=logging.INFO)
|
| 1445 |
+
with logging_redirect_tqdm():
|
| 1446 |
+
for i in trange(9):
|
| 1447 |
+
if i == 4:
|
| 1448 |
+
LOG.info("console logging redirected to `tqdm.write()`")
|
| 1449 |
+
# logging restored
|
| 1450 |
+
|
| 1451 |
+
Monitoring thread, intervals and miniters
|
| 1452 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 1453 |
+
|
| 1454 |
+
``tqdm`` implements a few tricks to increase efficiency and reduce overhead.
|
| 1455 |
+
|
| 1456 |
+
- Avoid unnecessary frequent bar refreshing: ``mininterval`` defines how long
|
| 1457 |
+
to wait between each refresh. ``tqdm`` always gets updated in the background,
|
| 1458 |
+
but it will display only every ``mininterval``.
|
| 1459 |
+
- Reduce number of calls to check system clock/time.
|
| 1460 |
+
- ``mininterval`` is more intuitive to configure than ``miniters``.
|
| 1461 |
+
A clever adjustment system ``dynamic_miniters`` will automatically adjust
|
| 1462 |
+
``miniters`` to the amount of iterations that fit into time ``mininterval``.
|
| 1463 |
+
Essentially, ``tqdm`` will check if it's time to print without actually
|
| 1464 |
+
checking time. This behaviour can be still be bypassed by manually setting
|
| 1465 |
+
``miniters``.
|
| 1466 |
+
|
| 1467 |
+
However, consider a case with a combination of fast and slow iterations.
|
| 1468 |
+
After a few fast iterations, ``dynamic_miniters`` will set ``miniters`` to a
|
| 1469 |
+
large number. When iteration rate subsequently slows, ``miniters`` will
|
| 1470 |
+
remain large and thus reduce display update frequency. To address this:
|
| 1471 |
+
|
| 1472 |
+
- ``maxinterval`` defines the maximum time between display refreshes.
|
| 1473 |
+
A concurrent monitoring thread checks for overdue updates and forces one
|
| 1474 |
+
where necessary.
|
| 1475 |
+
|
| 1476 |
+
The monitoring thread should not have a noticeable overhead, and guarantees
|
| 1477 |
+
updates at least every 10 seconds by default.
|
| 1478 |
+
This value can be directly changed by setting the ``monitor_interval`` of
|
| 1479 |
+
any ``tqdm`` instance (i.e. ``t = tqdm.tqdm(...); t.monitor_interval = 2``).
|
| 1480 |
+
The monitor thread may be disabled application-wide by setting
|
| 1481 |
+
``tqdm.tqdm.monitor_interval = 0`` before instantiation of any ``tqdm`` bar.
|
| 1482 |
+
|
| 1483 |
+
|
| 1484 |
+
Merch
|
| 1485 |
+
-----
|
| 1486 |
+
|
| 1487 |
+
You can buy `tqdm branded merch <https://tqdm.github.io/merch>`__ now!
|
| 1488 |
+
|
| 1489 |
+
Contributions
|
| 1490 |
+
-------------
|
| 1491 |
+
|
| 1492 |
+
|GitHub-Commits| |GitHub-Issues| |GitHub-PRs| |OpenHub-Status| |GitHub-Contributions| |CII Best Practices|
|
| 1493 |
+
|
| 1494 |
+
All source code is hosted on `GitHub <https://github.com/tqdm/tqdm>`__.
|
| 1495 |
+
Contributions are welcome.
|
| 1496 |
+
|
| 1497 |
+
See the
|
| 1498 |
+
`CONTRIBUTING <https://github.com/tqdm/tqdm/blob/master/CONTRIBUTING.md>`__
|
| 1499 |
+
file for more information.
|
| 1500 |
+
|
| 1501 |
+
Developers who have contributed more that 5 *loc* (surviving lines of code):
|
| 1502 |
+
|
| 1503 |
+
|git-fame|
|
| 1504 |
+
|
| 1505 |
+
Honourable mentions:
|
| 1506 |
+
|
| 1507 |
+
- Casper da Costa-Luis `casperdcl <https://github.com/casperdcl>`__ primary maintainer |Gift-Casper|
|
| 1508 |
+
- Stephen Larroque `lrq3000 <https://github.com/lrq3000>`__ maintainer
|
| 1509 |
+
- Hadrien Mary `hadim <https://github.com/hadim>`__ maintainer
|
| 1510 |
+
- Mikhail Korobov `kmike <https://github.com/kmike>`__ maintainer
|
| 1511 |
+
- Noam Yorav-Raphael `noamraph <https://github.com/noamraph>`__ original author
|
| 1512 |
+
|
| 1513 |
+
Ports to Other Languages
|
| 1514 |
+
~~~~~~~~~~~~~~~~~~~~~~~~
|
| 1515 |
+
|
| 1516 |
+
A list is available on
|
| 1517 |
+
`this wiki page <https://github.com/tqdm/tqdm/wiki/tqdm-ports>`__.
|
| 1518 |
+
|
| 1519 |
+
|
| 1520 |
+
LICENCE
|
| 1521 |
+
-------
|
| 1522 |
+
|
| 1523 |
+
Open Source (OSI approved): |LICENCE|
|
| 1524 |
+
|
| 1525 |
+
Citation information: |DOI|
|
| 1526 |
+
|
| 1527 |
+
|README-Hits| (Since 19 May 2016)
|
| 1528 |
+
|
| 1529 |
+
.. |Logo| image:: https://tqdm.github.io/img/logo.gif
|
| 1530 |
+
.. |Screenshot| image:: https://tqdm.github.io/img/tqdm.gif
|
| 1531 |
+
.. |Video| image:: https://tqdm.github.io/img/video.jpg
|
| 1532 |
+
:target: https://tqdm.github.io/video
|
| 1533 |
+
.. |Slides| image:: https://tqdm.github.io/img/slides.jpg
|
| 1534 |
+
:target: https://tqdm.github.io/PyData2019/slides.html
|
| 1535 |
+
.. |Merch| image:: https://tqdm.github.io/img/merch.jpg
|
| 1536 |
+
:target: https://tqdm.github.io/merch
|
| 1537 |
+
.. |Build-Status| image:: https://img.shields.io/github/actions/workflow/status/tqdm/tqdm/test.yml?branch=master&label=tqdm&logo=GitHub
|
| 1538 |
+
:target: https://github.com/tqdm/tqdm/actions/workflows/test.yml
|
| 1539 |
+
.. |Coverage-Status| image:: https://img.shields.io/coveralls/github/tqdm/tqdm/master?logo=coveralls
|
| 1540 |
+
:target: https://coveralls.io/github/tqdm/tqdm
|
| 1541 |
+
.. |Branch-Coverage-Status| image:: https://codecov.io/gh/tqdm/tqdm/branch/master/graph/badge.svg
|
| 1542 |
+
:target: https://codecov.io/gh/tqdm/tqdm
|
| 1543 |
+
.. |Codacy-Grade| image:: https://app.codacy.com/project/badge/Grade/3f965571598f44549c7818f29cdcf177
|
| 1544 |
+
:target: https://app.codacy.com/gh/tqdm/tqdm/dashboard
|
| 1545 |
+
.. |CII Best Practices| image:: https://bestpractices.coreinfrastructure.org/projects/3264/badge
|
| 1546 |
+
:target: https://bestpractices.coreinfrastructure.org/projects/3264
|
| 1547 |
+
.. |GitHub-Status| image:: https://img.shields.io/github/tag/tqdm/tqdm.svg?maxAge=86400&logo=github&logoColor=white
|
| 1548 |
+
:target: https://github.com/tqdm/tqdm/releases
|
| 1549 |
+
.. |GitHub-Forks| image:: https://img.shields.io/github/forks/tqdm/tqdm.svg?logo=github&logoColor=white
|
| 1550 |
+
:target: https://github.com/tqdm/tqdm/network
|
| 1551 |
+
.. |GitHub-Stars| image:: https://img.shields.io/github/stars/tqdm/tqdm.svg?logo=github&logoColor=white
|
| 1552 |
+
:target: https://github.com/tqdm/tqdm/stargazers
|
| 1553 |
+
.. |GitHub-Commits| image:: https://img.shields.io/github/commit-activity/y/tqdm/tqdm.svg?logo=git&logoColor=white
|
| 1554 |
+
:target: https://github.com/tqdm/tqdm/graphs/commit-activity
|
| 1555 |
+
.. |GitHub-Issues| image:: https://img.shields.io/github/issues-closed/tqdm/tqdm.svg?logo=github&logoColor=white
|
| 1556 |
+
:target: https://github.com/tqdm/tqdm/issues?q=
|
| 1557 |
+
.. |GitHub-PRs| image:: https://img.shields.io/github/issues-pr-closed/tqdm/tqdm.svg?logo=github&logoColor=white
|
| 1558 |
+
:target: https://github.com/tqdm/tqdm/pulls
|
| 1559 |
+
.. |GitHub-Contributions| image:: https://img.shields.io/github/contributors/tqdm/tqdm.svg?logo=github&logoColor=white
|
| 1560 |
+
:target: https://github.com/tqdm/tqdm/graphs/contributors
|
| 1561 |
+
.. |GitHub-Updated| image:: https://img.shields.io/github/last-commit/tqdm/tqdm/master.svg?logo=github&logoColor=white&label=pushed
|
| 1562 |
+
:target: https://github.com/tqdm/tqdm/pulse
|
| 1563 |
+
.. |git-fame| image:: https://git-fame.cdcl.ml/gh/tqdm/tqdm?min=5&w=1&M=1&C=1&excl=(png|gif|jpg)$&enum=1
|
| 1564 |
+
:alt: git-fame.cdcl.ml/gh/tqdm/tqdm
|
| 1565 |
+
:target: https://git-fame.cdcl.ml/gh/tqdm/tqdm?w=1&M=1&C=1&excl=(png|gif|jpg)$&enum=1
|
| 1566 |
+
.. |Gift-Casper| image:: https://img.shields.io/badge/sponsor-casper-ff69b4.svg
|
| 1567 |
+
:target: https://cdcl.ml/sponsor
|
| 1568 |
+
.. |Versions| image:: https://img.shields.io/pypi/v/tqdm.svg
|
| 1569 |
+
:target: https://tqdm.github.io/releases
|
| 1570 |
+
.. |PyPI-Downloads| image:: https://static.pepy.tech/personalized-badge/tqdm?left_text=downloads%2Fmonth
|
| 1571 |
+
:target: https://pepy.tech/project/tqdm
|
| 1572 |
+
.. |Py-Versions| image:: https://img.shields.io/pypi/pyversions/tqdm.svg?logo=python&logoColor=white
|
| 1573 |
+
:target: https://pypi.org/project/tqdm
|
| 1574 |
+
.. |Conda-Forge-Status| image:: https://img.shields.io/conda/v/conda-forge/tqdm.svg?label=conda-forge&logo=conda-forge
|
| 1575 |
+
:target: https://anaconda.org/conda-forge/tqdm
|
| 1576 |
+
.. |Snapcraft| image:: https://img.shields.io/badge/snap-install-82BEA0.svg?logo=snapcraft
|
| 1577 |
+
:target: https://snapcraft.io/tqdm
|
| 1578 |
+
.. |Docker| image:: https://img.shields.io/badge/docker-pull-blue.svg?logo=docker&logoColor=white
|
| 1579 |
+
:target: https://hub.docker.com/r/tqdm/tqdm
|
| 1580 |
+
.. |Libraries-Rank| image:: https://img.shields.io/librariesio/sourcerank/pypi/tqdm.svg?logo=koding&logoColor=white
|
| 1581 |
+
:target: https://libraries.io/pypi/tqdm
|
| 1582 |
+
.. |Libraries-Dependents| image:: https://img.shields.io/librariesio/dependent-repos/pypi/tqdm.svg?logo=koding&logoColor=white
|
| 1583 |
+
:target: https://github.com/tqdm/tqdm/network/dependents
|
| 1584 |
+
.. |OpenHub-Status| image:: https://www.openhub.net/p/tqdm/widgets/project_thin_badge?format=gif
|
| 1585 |
+
:target: https://www.openhub.net/p/tqdm?ref=Thin+badge
|
| 1586 |
+
.. |awesome-python| image:: https://awesome.re/mentioned-badge.svg
|
| 1587 |
+
:target: https://github.com/vinta/awesome-python
|
| 1588 |
+
.. |LICENCE| image:: https://img.shields.io/pypi/l/tqdm.svg
|
| 1589 |
+
:target: https://raw.githubusercontent.com/tqdm/tqdm/master/LICENCE
|
| 1590 |
+
.. |DOI| image:: https://img.shields.io/badge/DOI-10.5281/zenodo.595120-blue.svg
|
| 1591 |
+
:target: https://doi.org/10.5281/zenodo.595120
|
| 1592 |
+
.. |colab-demo| image:: https://colab.research.google.com/assets/colab-badge.svg
|
| 1593 |
+
:target: https://colab.research.google.com/github/tqdm/tqdm/blob/master/DEMO.ipynb
|
| 1594 |
+
.. |binder-demo| image:: https://mybinder.org/badge_logo.svg
|
| 1595 |
+
:target: https://mybinder.org/v2/gh/tqdm/tqdm/master?filepath=DEMO.ipynb
|
| 1596 |
+
.. |Screenshot-Jupyter1| image:: https://tqdm.github.io/img/jupyter-1.gif
|
| 1597 |
+
.. |Screenshot-Jupyter2| image:: https://tqdm.github.io/img/jupyter-2.gif
|
| 1598 |
+
.. |Screenshot-Jupyter3| image:: https://tqdm.github.io/img/jupyter-3.gif
|
| 1599 |
+
.. |README-Hits| image:: https://cgi.cdcl.ml/hits?q=tqdm&style=social&r=https://github.com/tqdm/tqdm&l=https://tqdm.github.io/img/favicon.png&f=https://tqdm.github.io/img/logo.gif
|
| 1600 |
+
:target: https://cgi.cdcl.ml/hits?q=tqdm&a=plot&r=https://github.com/tqdm/tqdm&l=https://tqdm.github.io/img/favicon.png&f=https://tqdm.github.io/img/logo.gif&style=social
|
.cache/pip/http-v2/c/1/6/c/6/c16c6c635e568e65136b95a15ea17f91b43799aeb0a7e80b55d7a898
ADDED
|
Binary file (1.25 kB). View file
|
|
|
.cache/pip/http-v2/c/d/5/d/e/cd5de44b899cbe1869765c21b55cffc53c0c0ffa9d3c6f1fd40a42a2
ADDED
|
Binary file (1.9 kB). View file
|
|
|
BUSI_with_classes/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
BUSI_with_classes/pipeline_check.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MODEL_RUN_COMMANDS.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Per-model run commands — `foldsrunner_simplified_after_ablation.py`
|
| 2 |
+
|
| 3 |
+
Base config is already set in the file: `STRATEGIES=[2,3]`, 10 phases (`PHASE_EXECUTION_MODE="auto"`),
|
| 4 |
+
100% data, `BATCH_SIZE=48`, `NUM_WORKERS=12`, `STRATEGY_2_MAX_EPOCHS=100`, `STRATEGY_3_MAX_EPOCHS=120`,
|
| 5 |
+
`RUN_OPTUNA=False`, `STRATEGY2_CHECKPOINT_MODE="best"` (strategy 3 uses the strategy-2 base trained in
|
| 6 |
+
the same run — no checkpoint wiring needed).
|
| 7 |
+
|
| 8 |
+
**Validated at 128px:** DPT+ViT-tiny and UPerNet+Swin-tiny were dropped (weights locked to 224px) and
|
| 9 |
+
replaced with **PVTv2 + UPerNet** (b1 and b2), which run natively at 128px. Re-run
|
| 10 |
+
`python validate_models.py` to confirm all 6 pass on your box before launching.
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## 1. SegFormer-B0 (transformer → SegFormer params, proj 192)
|
| 15 |
+
|
| 16 |
+
```bash
|
| 17 |
+
cd /workspace
|
| 18 |
+
sed -i -E \
|
| 19 |
+
-e 's/^SMP_ENCODER_NAME = .*/SMP_ENCODER_NAME = "mit_b0"/' \
|
| 20 |
+
-e 's/^SMP_DECODER_TYPE = .*/SMP_DECODER_TYPE = "Segformer"/' \
|
| 21 |
+
-e 's/^SMP_ENCODER_PROJ_DIM = .*/SMP_ENCODER_PROJ_DIM = 192/' \
|
| 22 |
+
-e 's/^SMP_ENCODER_DEPTH = .*/SMP_ENCODER_DEPTH = 5/' \
|
| 23 |
+
-e 's/^MODEL_NAME = .*/MODEL_NAME = "Segformer_B0"/' \
|
| 24 |
+
-e 's#"2:100": "[^"]*"#"2:100": "params/segformer_b0/best_params_strat2.json"#' \
|
| 25 |
+
-e 's#"3:100": "[^"]*"#"3:100": "params/segformer_b0/best_params_strat3.json"#' \
|
| 26 |
+
foldsrunner_simplified_after_ablation.py
|
| 27 |
+
python foldsrunner_simplified_after_ablation.py
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## 2. U-Net + EfficientNet-B0 (CNN → U-Net params, proj 256)
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
cd /workspace
|
| 34 |
+
sed -i -E \
|
| 35 |
+
-e 's/^SMP_ENCODER_NAME = .*/SMP_ENCODER_NAME = "efficientnet-b0"/' \
|
| 36 |
+
-e 's/^SMP_DECODER_TYPE = .*/SMP_DECODER_TYPE = "Unet"/' \
|
| 37 |
+
-e 's/^SMP_ENCODER_PROJ_DIM = .*/SMP_ENCODER_PROJ_DIM = 256/' \
|
| 38 |
+
-e 's/^SMP_ENCODER_DEPTH = .*/SMP_ENCODER_DEPTH = 5/' \
|
| 39 |
+
-e 's/^MODEL_NAME = .*/MODEL_NAME = "Unet_EffB0"/' \
|
| 40 |
+
-e 's#"2:100": "[^"]*"#"2:100": "params/unet_effb0/best_params_strat2.json"#' \
|
| 41 |
+
-e 's#"3:100": "[^"]*"#"3:100": "params/unet_effb0/best_params_strat3.json"#' \
|
| 42 |
+
foldsrunner_simplified_after_ablation.py
|
| 43 |
+
python foldsrunner_simplified_after_ablation.py
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## 3. DeepLabV3+ + ResNet34 (CNN → U-Net params, proj 256)
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
cd /workspace
|
| 50 |
+
sed -i -E \
|
| 51 |
+
-e 's/^SMP_ENCODER_NAME = .*/SMP_ENCODER_NAME = "resnet34"/' \
|
| 52 |
+
-e 's/^SMP_DECODER_TYPE = .*/SMP_DECODER_TYPE = "DeepLabV3Plus"/' \
|
| 53 |
+
-e 's/^SMP_ENCODER_PROJ_DIM = .*/SMP_ENCODER_PROJ_DIM = 256/' \
|
| 54 |
+
-e 's/^SMP_ENCODER_DEPTH = .*/SMP_ENCODER_DEPTH = 5/' \
|
| 55 |
+
-e 's/^MODEL_NAME = .*/MODEL_NAME = "DeepLabV3Plus_ResNet34"/' \
|
| 56 |
+
-e 's#"2:100": "[^"]*"#"2:100": "params/deeplabv3plus_r34/best_params_strat2.json"#' \
|
| 57 |
+
-e 's#"3:100": "[^"]*"#"3:100": "params/deeplabv3plus_r34/best_params_strat3.json"#' \
|
| 58 |
+
foldsrunner_simplified_after_ablation.py
|
| 59 |
+
python foldsrunner_simplified_after_ablation.py
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## 4. LinkNet + MobileNetV3-Large (CNN → U-Net params, proj 256)
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
cd /workspace
|
| 66 |
+
sed -i -E \
|
| 67 |
+
-e 's/^SMP_ENCODER_NAME = .*/SMP_ENCODER_NAME = "timm-mobilenetv3_large_100"/' \
|
| 68 |
+
-e 's/^SMP_DECODER_TYPE = .*/SMP_DECODER_TYPE = "Linknet"/' \
|
| 69 |
+
-e 's/^SMP_ENCODER_PROJ_DIM = .*/SMP_ENCODER_PROJ_DIM = 256/' \
|
| 70 |
+
-e 's/^SMP_ENCODER_DEPTH = .*/SMP_ENCODER_DEPTH = 5/' \
|
| 71 |
+
-e 's/^MODEL_NAME = .*/MODEL_NAME = "Linknet_MobileNetV3"/' \
|
| 72 |
+
-e 's#"2:100": "[^"]*"#"2:100": "params/linknet_mbv3/best_params_strat2.json"#' \
|
| 73 |
+
-e 's#"3:100": "[^"]*"#"3:100": "params/linknet_mbv3/best_params_strat3.json"#' \
|
| 74 |
+
foldsrunner_simplified_after_ablation.py
|
| 75 |
+
python foldsrunner_simplified_after_ablation.py
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## 5. UPerNet + PVTv2-b1 (transformer → SegFormer params, proj 192)
|
| 79 |
+
|
| 80 |
+
```bash
|
| 81 |
+
cd /workspace
|
| 82 |
+
sed -i -E \
|
| 83 |
+
-e 's/^SMP_ENCODER_NAME = .*/SMP_ENCODER_NAME = "tu-pvt_v2_b1"/' \
|
| 84 |
+
-e 's/^SMP_DECODER_TYPE = .*/SMP_DECODER_TYPE = "UPerNet"/' \
|
| 85 |
+
-e 's/^SMP_ENCODER_PROJ_DIM = .*/SMP_ENCODER_PROJ_DIM = 192/' \
|
| 86 |
+
-e 's/^SMP_ENCODER_DEPTH = .*/SMP_ENCODER_DEPTH = 5/' \
|
| 87 |
+
-e 's/^MODEL_NAME = .*/MODEL_NAME = "UPerNet_PVTv2_b1"/' \
|
| 88 |
+
-e 's#"2:100": "[^"]*"#"2:100": "params/upernet_pvtv2_b1/best_params_strat2.json"#' \
|
| 89 |
+
-e 's#"3:100": "[^"]*"#"3:100": "params/upernet_pvtv2_b1/best_params_strat3.json"#' \
|
| 90 |
+
foldsrunner_simplified_after_ablation.py
|
| 91 |
+
python foldsrunner_simplified_after_ablation.py
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
## 6. UPerNet + PVTv2-b2 (transformer → SegFormer params, proj 192)
|
| 95 |
+
|
| 96 |
+
```bash
|
| 97 |
+
cd /workspace
|
| 98 |
+
sed -i -E \
|
| 99 |
+
-e 's/^SMP_ENCODER_NAME = .*/SMP_ENCODER_NAME = "tu-pvt_v2_b2"/' \
|
| 100 |
+
-e 's/^SMP_DECODER_TYPE = .*/SMP_DECODER_TYPE = "UPerNet"/' \
|
| 101 |
+
-e 's/^SMP_ENCODER_PROJ_DIM = .*/SMP_ENCODER_PROJ_DIM = 192/' \
|
| 102 |
+
-e 's/^SMP_ENCODER_DEPTH = .*/SMP_ENCODER_DEPTH = 5/' \
|
| 103 |
+
-e 's/^MODEL_NAME = .*/MODEL_NAME = "UPerNet_PVTv2_b2"/' \
|
| 104 |
+
-e 's#"2:100": "[^"]*"#"2:100": "params/upernet_pvtv2_b2/best_params_strat2.json"#' \
|
| 105 |
+
-e 's#"3:100": "[^"]*"#"3:100": "params/upernet_pvtv2_b2/best_params_strat3.json"#' \
|
| 106 |
+
foldsrunner_simplified_after_ablation.py
|
| 107 |
+
python foldsrunner_simplified_after_ablation.py
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## After the runs — plots
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
cd /workspace
|
| 116 |
+
python plot_s2_vs_s3.py
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
One titled figure per model → `runs/_plots/<MODEL_NAME>__s2_vs_s3.png` (6 panels: BIoU band, BIoU
|
| 120 |
+
contour, inference time, total training time, time per epoch, time to best checkpoint — S2 vs S3,
|
| 121 |
+
mean ± std across the 10 phases, Δ annotated), plus `runs/_plots/summary_s2_vs_s3.csv`.
|
foldsrunner_simplified_after_ablation.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model_stats_s2_vs_s3.py
ADDED
|
@@ -0,0 +1,392 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Paired S3-vs-S2 statistics for each model under runs/, at TWO levels:
|
| 2 |
+
|
| 3 |
+
* per_image (Method 1) -- pool every test image across all phases, pair
|
| 4 |
+
S3 vs S2 by (phase, sample_id).
|
| 5 |
+
* phase_level (Method 2) -- one paired value per phase = the phase-mean of
|
| 6 |
+
the metric; pair S3-mean vs S2-mean across phases.
|
| 7 |
+
|
| 8 |
+
Same paired machinery as ablation_stats.py: paired t-test, Wilcoxon signed-rank
|
| 9 |
+
(zero_method="wilcox"), sign-flip permutation, bootstrap CI for the mean delta,
|
| 10 |
+
Hodges-Lehmann estimate + CI, Cohen's dz, rank-biserial r, Shapiro-Wilk on the
|
| 11 |
+
diffs, Holm correction. HD95 is the only lower-is-better metric.
|
| 12 |
+
|
| 13 |
+
Auto-discovers every model folder directly under runs/ (each distinct MODEL_NAME).
|
| 14 |
+
One .xlsx per model + a combined cross-model summary.
|
| 15 |
+
|
| 16 |
+
Usage:
|
| 17 |
+
python model_stats_s2_vs_s3.py # scans ./runs
|
| 18 |
+
python model_stats_s2_vs_s3.py --runs-root X
|
| 19 |
+
"""
|
| 20 |
+
from __future__ import annotations
|
| 21 |
+
|
| 22 |
+
import argparse
|
| 23 |
+
import json
|
| 24 |
+
import pathlib
|
| 25 |
+
import re
|
| 26 |
+
from collections import defaultdict
|
| 27 |
+
|
| 28 |
+
import numpy as np
|
| 29 |
+
import pandas as pd
|
| 30 |
+
from scipy import stats
|
| 31 |
+
|
| 32 |
+
# metric -> higher_is_better
|
| 33 |
+
METRICS = {
|
| 34 |
+
"biou_contour": True, # manuscript's reported "BIoU" (1-px contour)
|
| 35 |
+
"biou": True, # Cheng et al. CVPR 2021 d-pixel band Boundary IoU
|
| 36 |
+
"dice": True,
|
| 37 |
+
"iou": True,
|
| 38 |
+
"ppv": True,
|
| 39 |
+
"sen": True,
|
| 40 |
+
"hd95": False, # lower is better
|
| 41 |
+
}
|
| 42 |
+
PRIMARY = "biou_contour"
|
| 43 |
+
ALPHA = 0.05
|
| 44 |
+
N_BOOT = 20000
|
| 45 |
+
N_BOOT_HL = 4000
|
| 46 |
+
N_PERM = 20000
|
| 47 |
+
SEED = 20260709
|
| 48 |
+
|
| 49 |
+
# S3 is the first arm, S2 the second: Mean_delta = S3 - S2, positive favours S3
|
| 50 |
+
LABEL = {2: "S2 (baseline)", 3: "S3 (refinement)"}
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
# ---------------------------------------------------------------- stats helpers
|
| 54 |
+
def holm(pvals):
|
| 55 |
+
pvals = np.asarray(pvals, dtype=float)
|
| 56 |
+
order = np.argsort(pvals)
|
| 57 |
+
m = len(pvals)
|
| 58 |
+
adj = np.empty(m)
|
| 59 |
+
running = 0.0
|
| 60 |
+
for rank, idx in enumerate(order):
|
| 61 |
+
running = max(running, (m - rank) * pvals[idx])
|
| 62 |
+
adj[idx] = min(running, 1.0)
|
| 63 |
+
return adj
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def boot_ci_mean(d, rng):
|
| 67 |
+
idx = rng.integers(0, len(d), size=(N_BOOT, len(d)))
|
| 68 |
+
return np.percentile(d[idx].mean(axis=1), [2.5, 97.5])
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
def hodges_lehmann(d):
|
| 72 |
+
i, j = np.triu_indices(len(d), k=0)
|
| 73 |
+
return float(np.median((d[i] + d[j]) / 2.0))
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
def boot_ci_hl(d, rng):
|
| 77 |
+
idx = rng.integers(0, len(d), size=(N_BOOT_HL, len(d)))
|
| 78 |
+
return np.percentile([hodges_lehmann(d[r]) for r in idx], [2.5, 97.5])
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def sign_flip_perm_p(d, rng):
|
| 82 |
+
obs = abs(d.mean())
|
| 83 |
+
signs = rng.choice([-1.0, 1.0], size=(N_PERM, len(d)))
|
| 84 |
+
null = np.abs((signs * d).mean(axis=1))
|
| 85 |
+
return (np.sum(null >= obs - 1e-15) + 1) / (N_PERM + 1)
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
def rank_biserial(d):
|
| 89 |
+
nz = d[d != 0]
|
| 90 |
+
if len(nz) == 0:
|
| 91 |
+
return 0.0
|
| 92 |
+
r = stats.rankdata(np.abs(nz))
|
| 93 |
+
rp, rm = r[nz > 0].sum(), r[nz < 0].sum()
|
| 94 |
+
return float((rp - rm) / (rp + rm))
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
def analyse(x, y, metric, higher_better, level, rng):
|
| 98 |
+
"""x = S3 vector, y = S2 vector (paired). Returns (rows, delta)."""
|
| 99 |
+
d = np.asarray(x, float) - np.asarray(y, float)
|
| 100 |
+
n = len(d)
|
| 101 |
+
mean_d, sd_d = float(d.mean()), float(d.std(ddof=1)) if n > 1 else float("nan")
|
| 102 |
+
se = sd_d / np.sqrt(n) if n > 1 else float("nan")
|
| 103 |
+
|
| 104 |
+
if n >= 2:
|
| 105 |
+
t_stat, p_t = stats.ttest_rel(x, y)
|
| 106 |
+
crit = stats.t.ppf(1 - ALPHA / 2, df=n - 1)
|
| 107 |
+
t_ci = (mean_d - crit * se, mean_d + crit * se)
|
| 108 |
+
else:
|
| 109 |
+
t_stat, p_t, t_ci = np.nan, 1.0, (np.nan, np.nan)
|
| 110 |
+
|
| 111 |
+
if n >= 1 and not np.allclose(d, 0):
|
| 112 |
+
try:
|
| 113 |
+
w_stat, p_w = stats.wilcoxon(x, y, zero_method="wilcox", alternative="two-sided")
|
| 114 |
+
except ValueError:
|
| 115 |
+
w_stat, p_w = np.nan, 1.0
|
| 116 |
+
else:
|
| 117 |
+
w_stat, p_w = np.nan, 1.0
|
| 118 |
+
|
| 119 |
+
p_perm = sign_flip_perm_p(d, rng) if n >= 1 else 1.0
|
| 120 |
+
b_lo, b_hi = boot_ci_mean(d, rng) if n >= 2 else (np.nan, np.nan)
|
| 121 |
+
hl = hodges_lehmann(d) if n >= 1 else np.nan
|
| 122 |
+
hl_lo, hl_hi = boot_ci_hl(d, rng) if n >= 2 else (np.nan, np.nan)
|
| 123 |
+
shapiro_p = float(stats.shapiro(d).pvalue) if (n >= 3 and not np.allclose(d, 0)) else np.nan
|
| 124 |
+
p_holm_c = holm([p_t, p_w, p_perm])
|
| 125 |
+
|
| 126 |
+
better = (mean_d > 0) == higher_better
|
| 127 |
+
winner = LABEL[3] if better else LABEL[2]
|
| 128 |
+
|
| 129 |
+
rows = []
|
| 130 |
+
for name, stat, p_raw, p_adj in [
|
| 131 |
+
("Paired t-test", float(t_stat), float(p_t), p_holm_c[0]),
|
| 132 |
+
("Wilcoxon signed-rank", float(w_stat), float(p_w), p_holm_c[1]),
|
| 133 |
+
("Sign-flip permutation", mean_d, float(p_perm), p_holm_c[2]),
|
| 134 |
+
]:
|
| 135 |
+
rows.append({
|
| 136 |
+
"Level": level, "Metric": metric, "Higher_is_better": higher_better,
|
| 137 |
+
"Contrast": "S3 - S2", "Test": name, "n_pairs": n,
|
| 138 |
+
"n_zero_diff": int(np.sum(d == 0)), "Statistic": stat,
|
| 139 |
+
"Mean_delta": mean_d, "SD_delta": sd_d, "p_raw": p_raw,
|
| 140 |
+
"p_Holm_within_metric_level": p_adj,
|
| 141 |
+
"Sig_within_metric_level": "Yes" if p_adj < ALPHA else "No",
|
| 142 |
+
"Better_arm": winner if p_adj < ALPHA else "n.s.",
|
| 143 |
+
"t_CI_low": t_ci[0], "t_CI_high": t_ci[1],
|
| 144 |
+
"boot_CI_low": b_lo, "boot_CI_high": b_hi,
|
| 145 |
+
"CI_excludes_zero": "Yes" if (b_lo > 0) or (b_hi < 0) else "No",
|
| 146 |
+
"HodgesLehmann_delta": hl, "HL_CI_low": hl_lo, "HL_CI_high": hl_hi,
|
| 147 |
+
"Cohens_dz": mean_d / sd_d if (sd_d and sd_d > 0) else np.nan,
|
| 148 |
+
"Rank_biserial_r": rank_biserial(d),
|
| 149 |
+
"Shapiro_p_on_diffs": shapiro_p,
|
| 150 |
+
"Diffs_normal_at_0.05": "n/a" if np.isnan(shapiro_p) else ("No" if shapiro_p < ALPHA else "Yes"),
|
| 151 |
+
})
|
| 152 |
+
return rows, d
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
# ---------------------------------------------------------------- discovery
|
| 156 |
+
def read_threshold(final_dir: pathlib.Path):
|
| 157 |
+
rc = final_dir / "run_config.json"
|
| 158 |
+
if rc.exists():
|
| 159 |
+
try:
|
| 160 |
+
return json.loads(rc.read_text()).get("threshold")
|
| 161 |
+
except Exception:
|
| 162 |
+
return None
|
| 163 |
+
return None
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
def discover(runs_root: pathlib.Path):
|
| 167 |
+
"""model -> phase -> strategy -> {'per_sample': {sid: row}, 'threshold': float}"""
|
| 168 |
+
data: dict[str, dict[int, dict[int, dict]]] = defaultdict(lambda: defaultdict(dict))
|
| 169 |
+
for ev in runs_root.glob("*/**/strategy_*/final/evaluation.json"):
|
| 170 |
+
final_dir = ev.parent
|
| 171 |
+
ms = re.search(r"strategy_(\d+)", final_dir.parent.name)
|
| 172 |
+
if not ms:
|
| 173 |
+
continue
|
| 174 |
+
s = int(ms.group(1))
|
| 175 |
+
if s not in (2, 3):
|
| 176 |
+
continue
|
| 177 |
+
try:
|
| 178 |
+
model = ev.relative_to(runs_root).parts[0]
|
| 179 |
+
except ValueError:
|
| 180 |
+
continue
|
| 181 |
+
pm = re.search(r"phase_(\d+)", str(ev))
|
| 182 |
+
phase = int(pm.group(1)) if pm else 1
|
| 183 |
+
try:
|
| 184 |
+
payload = json.loads(ev.read_text())
|
| 185 |
+
except Exception:
|
| 186 |
+
continue
|
| 187 |
+
data[model][phase][s] = {
|
| 188 |
+
"per_sample": {row["sample_id"]: row for row in payload.get("per_sample", [])},
|
| 189 |
+
"threshold": read_threshold(final_dir),
|
| 190 |
+
}
|
| 191 |
+
return data
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
# ---------------------------------------------------------------- per model
|
| 195 |
+
def analyse_model(model, phase_map, rng):
|
| 196 |
+
phases = sorted(p for p in phase_map if 2 in phase_map[p] and 3 in phase_map[p])
|
| 197 |
+
if not phases:
|
| 198 |
+
return None
|
| 199 |
+
|
| 200 |
+
# per-image pooled arrays + per-phase means
|
| 201 |
+
img = {m: {2: [], 3: []} for m in METRICS}
|
| 202 |
+
phase_mean = {m: {2: [], 3: []} for m in METRICS}
|
| 203 |
+
phase_used, n_img_per_phase, split_warnings = [], [], []
|
| 204 |
+
thr = {2: None, 3: None}
|
| 205 |
+
|
| 206 |
+
for p in phases:
|
| 207 |
+
s2, s3 = phase_map[p][2], phase_map[p][3]
|
| 208 |
+
thr[2] = thr[2] or s2.get("threshold")
|
| 209 |
+
thr[3] = thr[3] or s3.get("threshold")
|
| 210 |
+
set2, set3 = set(s2["per_sample"]), set(s3["per_sample"])
|
| 211 |
+
if set2 != set3:
|
| 212 |
+
split_warnings.append(f"phase {p}: S2/S3 sample_id sets differ "
|
| 213 |
+
f"(|S2|={len(set2)}, |S3|={len(set3)}, common={len(set2 & set3)})")
|
| 214 |
+
ids = sorted(set2 & set3)
|
| 215 |
+
if not ids:
|
| 216 |
+
continue
|
| 217 |
+
phase_used.append(p)
|
| 218 |
+
n_img_per_phase.append(len(ids))
|
| 219 |
+
for m in METRICS:
|
| 220 |
+
v2 = np.array([s2["per_sample"][i][m] for i in ids], float)
|
| 221 |
+
v3 = np.array([s3["per_sample"][i][m] for i in ids], float)
|
| 222 |
+
img[m][2].append(v2)
|
| 223 |
+
img[m][3].append(v3)
|
| 224 |
+
phase_mean[m][2].append(float(v2.mean()))
|
| 225 |
+
phase_mean[m][3].append(float(v3.mean()))
|
| 226 |
+
|
| 227 |
+
test_rows, desc_rows = [], []
|
| 228 |
+
per_image = {"phase": np.concatenate([[p] * n for p, n in zip(phase_used, n_img_per_phase)]).astype(int)}
|
| 229 |
+
per_phase = {"phase": np.array(phase_used, int)}
|
| 230 |
+
|
| 231 |
+
for m, hib in METRICS.items():
|
| 232 |
+
x_img = np.concatenate(img[m][3]) if img[m][3] else np.array([])
|
| 233 |
+
y_img = np.concatenate(img[m][2]) if img[m][2] else np.array([])
|
| 234 |
+
pm2 = np.array(phase_mean[m][2], float)
|
| 235 |
+
pm3 = np.array(phase_mean[m][3], float)
|
| 236 |
+
|
| 237 |
+
# descriptives, both levels
|
| 238 |
+
for s, arr_img, arr_ph in [(2, y_img, pm2), (3, x_img, pm3)]:
|
| 239 |
+
desc_rows.append({
|
| 240 |
+
"Metric": m, "Higher_is_better": hib, "Arm": LABEL[s],
|
| 241 |
+
"n_images": len(arr_img), "img_Mean": arr_img.mean() if len(arr_img) else np.nan,
|
| 242 |
+
"img_SD": arr_img.std(ddof=1) if len(arr_img) > 1 else np.nan,
|
| 243 |
+
"img_Median": np.median(arr_img) if len(arr_img) else np.nan,
|
| 244 |
+
"n_phases": len(arr_ph), "phase_Mean": arr_ph.mean() if len(arr_ph) else np.nan,
|
| 245 |
+
"phase_SD": arr_ph.std(ddof=1) if len(arr_ph) > 1 else np.nan,
|
| 246 |
+
})
|
| 247 |
+
|
| 248 |
+
# per_image tests
|
| 249 |
+
rows, d_img = analyse(x_img, y_img, m, hib, "per_image", rng)
|
| 250 |
+
test_rows.extend(rows)
|
| 251 |
+
per_image[f"{m}__S2"] = y_img
|
| 252 |
+
per_image[f"{m}__S3"] = x_img
|
| 253 |
+
per_image[f"{m}__delta_S3_minus_S2"] = d_img
|
| 254 |
+
|
| 255 |
+
# phase_level tests
|
| 256 |
+
rows_ph, d_ph = analyse(pm3, pm2, m, hib, "phase_level", rng)
|
| 257 |
+
test_rows.extend(rows_ph)
|
| 258 |
+
per_phase[f"{m}__S2_phase_mean"] = pm2
|
| 259 |
+
per_phase[f"{m}__S3_phase_mean"] = pm3
|
| 260 |
+
per_phase[f"{m}__delta_S3_minus_S2"] = d_ph
|
| 261 |
+
|
| 262 |
+
tests_df = pd.DataFrame(test_rows)
|
| 263 |
+
# global Holm across this model's whole workbook (metrics x 2 levels x 3 tests)
|
| 264 |
+
tests_df["p_Holm_global"] = holm(tests_df["p_raw"].values)
|
| 265 |
+
tests_df["Sig_global"] = np.where(tests_df["p_Holm_global"] < ALPHA, "Yes", "No")
|
| 266 |
+
|
| 267 |
+
return {
|
| 268 |
+
"phases": phase_used,
|
| 269 |
+
"thr": thr,
|
| 270 |
+
"split_warnings": split_warnings,
|
| 271 |
+
"tests": tests_df,
|
| 272 |
+
"descriptives": pd.DataFrame(desc_rows),
|
| 273 |
+
"per_image": pd.DataFrame(per_image),
|
| 274 |
+
"per_phase": pd.DataFrame(per_phase),
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
def readme_frame(model, res):
|
| 279 |
+
return pd.DataFrame({"Field": [
|
| 280 |
+
"Model", "Contrast", "Phases used", "n phases", "S2 threshold", "S3 threshold",
|
| 281 |
+
"per_image level", "phase_level level", "Metrics", "PRIMARY", "hd95 direction",
|
| 282 |
+
"Wilcoxon zero handling", "Bootstrap", "Permutation", "Holm scope",
|
| 283 |
+
"Split check", "Split warnings", "Seed",
|
| 284 |
+
], "Value": [
|
| 285 |
+
model, "S3 (refinement) - S2 (baseline); positive delta favours S3",
|
| 286 |
+
", ".join(map(str, res["phases"])), len(res["phases"]),
|
| 287 |
+
str(res["thr"][2]), str(res["thr"][3]),
|
| 288 |
+
"pool all test images across phases, paired by (phase, sample_id) [manuscript Method 1]",
|
| 289 |
+
"one paired value per phase = phase-mean of the metric, paired across phases [manuscript Method 2]",
|
| 290 |
+
", ".join(METRICS), PRIMARY, "LOWER is better; direction handled in Better_arm",
|
| 291 |
+
"zero_method='wilcox' (zero diffs dropped)",
|
| 292 |
+
f"{N_BOOT} resamples for mean-delta CI; {N_BOOT_HL} for Hodges-Lehmann",
|
| 293 |
+
f"{N_PERM} sign flips; p floor ~= 1/{N_PERM + 1}",
|
| 294 |
+
"Holm across every test in this workbook (metrics x 2 levels x 3 tests) = p_Holm_global",
|
| 295 |
+
"asserted S2 and S3 test sample_id sets identical within each phase",
|
| 296 |
+
"; ".join(res["split_warnings"]) if res["split_warnings"] else "none",
|
| 297 |
+
f"numpy default_rng({SEED})",
|
| 298 |
+
]})
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
def write_workbook(model, res, out_dir):
|
| 302 |
+
out = out_dir / f"{model}__s2_vs_s3_stats.xlsx"
|
| 303 |
+
try:
|
| 304 |
+
with pd.ExcelWriter(out, engine="openpyxl") as xl:
|
| 305 |
+
readme_frame(model, res).to_excel(xl, sheet_name="README", index=False)
|
| 306 |
+
res["descriptives"].to_excel(xl, sheet_name="Descriptives", index=False)
|
| 307 |
+
res["tests"].to_excel(xl, sheet_name="Tests", index=False)
|
| 308 |
+
res["per_phase"].to_excel(xl, sheet_name="PerPhase", index=False)
|
| 309 |
+
res["per_image"].to_excel(xl, sheet_name="PerImage", index=False)
|
| 310 |
+
for sh in xl.book.worksheets:
|
| 311 |
+
for col in sh.columns:
|
| 312 |
+
w = max((len(str(c.value)) if c.value is not None else 0) for c in col)
|
| 313 |
+
sh.column_dimensions[col[0].column_letter].width = min(max(w + 2, 12), 62)
|
| 314 |
+
sh.freeze_panes = "A2"
|
| 315 |
+
return out
|
| 316 |
+
except Exception as exc: # openpyxl missing -> CSV fallback
|
| 317 |
+
print(f"[stats] xlsx failed for {model} ({exc}); writing CSVs instead")
|
| 318 |
+
res["tests"].to_csv(out_dir / f"{model}__tests.csv", index=False)
|
| 319 |
+
res["descriptives"].to_csv(out_dir / f"{model}__descriptives.csv", index=False)
|
| 320 |
+
res["per_phase"].to_csv(out_dir / f"{model}__per_phase.csv", index=False)
|
| 321 |
+
return None
|
| 322 |
+
|
| 323 |
+
|
| 324 |
+
def main() -> int:
|
| 325 |
+
ap = argparse.ArgumentParser()
|
| 326 |
+
ap.add_argument("--runs-root", default="runs")
|
| 327 |
+
args = ap.parse_args()
|
| 328 |
+
|
| 329 |
+
runs_root = pathlib.Path(args.runs_root).resolve()
|
| 330 |
+
if not runs_root.is_dir():
|
| 331 |
+
print(f"[stats] runs root not found: {runs_root}")
|
| 332 |
+
return 1
|
| 333 |
+
|
| 334 |
+
data = discover(runs_root)
|
| 335 |
+
if not data:
|
| 336 |
+
print(f"[stats] no evaluation.json found under {runs_root}")
|
| 337 |
+
return 1
|
| 338 |
+
|
| 339 |
+
out_dir = runs_root / "_stats"
|
| 340 |
+
out_dir.mkdir(parents=True, exist_ok=True)
|
| 341 |
+
rng = np.random.default_rng(SEED)
|
| 342 |
+
|
| 343 |
+
summary_rows = []
|
| 344 |
+
for model in sorted(data):
|
| 345 |
+
res = analyse_model(model, data[model], rng)
|
| 346 |
+
if res is None:
|
| 347 |
+
print(f"[stats] {model}: no phase has both S2 and S3 -- skipped")
|
| 348 |
+
continue
|
| 349 |
+
wb = write_workbook(model, res, out_dir)
|
| 350 |
+
print(f"[stats] {model:28s} phases={len(res['phases'])} -> {wb.name if wb else '(csv)'}"
|
| 351 |
+
+ (" [SPLIT WARNINGS]" if res["split_warnings"] else ""))
|
| 352 |
+
|
| 353 |
+
# headline: Wilcoxon row per metric per level for the cross-model summary
|
| 354 |
+
t = res["tests"]
|
| 355 |
+
for m in METRICS:
|
| 356 |
+
for level in ("per_image", "phase_level"):
|
| 357 |
+
r = t[(t.Metric == m) & (t.Level == level) & (t.Test == "Wilcoxon signed-rank")]
|
| 358 |
+
if r.empty:
|
| 359 |
+
continue
|
| 360 |
+
r = r.iloc[0]
|
| 361 |
+
summary_rows.append({
|
| 362 |
+
"Model": model, "Metric": m, "Level": level, "n_pairs": int(r.n_pairs),
|
| 363 |
+
"S3_minus_S2": r.Mean_delta, "Wilcoxon_p_raw": r.p_raw,
|
| 364 |
+
"p_Holm_global": r.p_Holm_global, "Sig_global": r.Sig_global,
|
| 365 |
+
"Better_arm": r.Better_arm, "Cohens_dz": r.Cohens_dz,
|
| 366 |
+
"boot_CI_low": r.boot_CI_low, "boot_CI_high": r.boot_CI_high,
|
| 367 |
+
})
|
| 368 |
+
|
| 369 |
+
summary_df = pd.DataFrame(summary_rows)
|
| 370 |
+
summary_df.to_csv(out_dir / "ALL_MODELS_summary.csv", index=False)
|
| 371 |
+
try:
|
| 372 |
+
with pd.ExcelWriter(out_dir / "ALL_MODELS_summary.xlsx", engine="openpyxl") as xl:
|
| 373 |
+
summary_df.to_excel(xl, sheet_name="Summary", index=False)
|
| 374 |
+
for sh in xl.book.worksheets:
|
| 375 |
+
for col in sh.columns:
|
| 376 |
+
w = max((len(str(c.value)) if c.value is not None else 0) for c in col)
|
| 377 |
+
sh.column_dimensions[col[0].column_letter].width = min(max(w + 2, 12), 40)
|
| 378 |
+
sh.freeze_panes = "A2"
|
| 379 |
+
except Exception:
|
| 380 |
+
pass
|
| 381 |
+
|
| 382 |
+
print(f"\n[stats] wrote per-model workbooks + ALL_MODELS_summary to {out_dir}")
|
| 383 |
+
if not summary_df.empty:
|
| 384 |
+
pd.set_option("display.width", 240, "display.max_columns", 40)
|
| 385 |
+
prim = summary_df[summary_df.Metric == PRIMARY]
|
| 386 |
+
print(f"\n=== PRIMARY ({PRIMARY}) S3-vs-S2, both levels ===")
|
| 387 |
+
print(prim.to_string(index=False, float_format=lambda v: f"{v:.4g}"))
|
| 388 |
+
return 0
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
if __name__ == "__main__":
|
| 392 |
+
raise SystemExit(main())
|
params/models_manifest.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"segformer_b0": {
|
| 3 |
+
"family": "transformer",
|
| 4 |
+
"model_name": "Segformer_B0",
|
| 5 |
+
"arch": "Segformer",
|
| 6 |
+
"encoder": "mit_b0",
|
| 7 |
+
"proj_dim": 192,
|
| 8 |
+
"params_dir": "params/segformer_b0"
|
| 9 |
+
},
|
| 10 |
+
"unet_effb0": {
|
| 11 |
+
"family": "cnn",
|
| 12 |
+
"model_name": "Unet_EffB0",
|
| 13 |
+
"arch": "Unet",
|
| 14 |
+
"encoder": "efficientnet-b0",
|
| 15 |
+
"proj_dim": 256,
|
| 16 |
+
"params_dir": "params/unet_effb0"
|
| 17 |
+
},
|
| 18 |
+
"deeplabv3plus_r34": {
|
| 19 |
+
"family": "cnn",
|
| 20 |
+
"model_name": "DeepLabV3Plus_ResNet34",
|
| 21 |
+
"arch": "DeepLabV3Plus",
|
| 22 |
+
"encoder": "resnet34",
|
| 23 |
+
"proj_dim": 256,
|
| 24 |
+
"params_dir": "params/deeplabv3plus_r34"
|
| 25 |
+
},
|
| 26 |
+
"linknet_mbv3": {
|
| 27 |
+
"family": "cnn",
|
| 28 |
+
"model_name": "Linknet_MobileNetV3",
|
| 29 |
+
"arch": "Linknet",
|
| 30 |
+
"encoder": "timm-mobilenetv3_large_100",
|
| 31 |
+
"proj_dim": 256,
|
| 32 |
+
"params_dir": "params/linknet_mbv3"
|
| 33 |
+
},
|
| 34 |
+
"upernet_pvtv2_b1": {
|
| 35 |
+
"family": "transformer",
|
| 36 |
+
"model_name": "UPerNet_PVTv2_b1",
|
| 37 |
+
"arch": "UPerNet",
|
| 38 |
+
"encoder": "tu-pvt_v2_b1",
|
| 39 |
+
"proj_dim": 192,
|
| 40 |
+
"params_dir": "params/upernet_pvtv2_b1"
|
| 41 |
+
},
|
| 42 |
+
"upernet_pvtv2_b2": {
|
| 43 |
+
"family": "transformer",
|
| 44 |
+
"model_name": "UPerNet_PVTv2_b2",
|
| 45 |
+
"arch": "UPerNet",
|
| 46 |
+
"encoder": "tu-pvt_v2_b2",
|
| 47 |
+
"proj_dim": 192,
|
| 48 |
+
"params_dir": "params/upernet_pvtv2_b2"
|
| 49 |
+
}
|
| 50 |
+
}
|
plot_s2_vs_s3.py
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Scan runs/ and, for every model, plot Strategy 2 (supervised baseline) vs
|
| 2 |
+
Strategy 3 (refinement), AVERAGED ACROSS ALL PHASES found for that model.
|
| 3 |
+
|
| 4 |
+
Six measures per model (mean across phases, error bars = std across phases):
|
| 5 |
+
|
| 6 |
+
* BIoU (band, d-pixel) evaluation.json -> metrics.biou.mean
|
| 7 |
+
* BIoU (contour, 1-pixel) evaluation.json -> metrics.biou_contour.mean
|
| 8 |
+
* Total training time (min) summary.json -> elapsed_seconds
|
| 9 |
+
* Inference time (ms/image) evaluation.json -> timing.mean_per_image_inference_ms
|
| 10 |
+
* Time per epoch (s) summary.json -> seconds_per_epoch
|
| 11 |
+
* Time to best ckpt (min) best.pt.meta.json -> epoch x seconds_per_epoch
|
| 12 |
+
(falls back to argmax of selection_metric_value in history.json)
|
| 13 |
+
|
| 14 |
+
Usage:
|
| 15 |
+
python plot_s2_vs_s3.py # scans ./runs
|
| 16 |
+
python plot_s2_vs_s3.py --runs-root X
|
| 17 |
+
"""
|
| 18 |
+
from __future__ import annotations
|
| 19 |
+
|
| 20 |
+
import argparse
|
| 21 |
+
import json
|
| 22 |
+
import pathlib
|
| 23 |
+
import re
|
| 24 |
+
from collections import defaultdict
|
| 25 |
+
|
| 26 |
+
import matplotlib
|
| 27 |
+
matplotlib.use("Agg")
|
| 28 |
+
import matplotlib.pyplot as plt
|
| 29 |
+
import numpy as np
|
| 30 |
+
|
| 31 |
+
STRATEGY_LABEL = {2: "S2 (baseline)", 3: "S3 (refinement)"}
|
| 32 |
+
BAR_COLORS = {2: "#4C78A8", 3: "#F58518"}
|
| 33 |
+
|
| 34 |
+
# key, title, ylabel, higher_is_better, value format
|
| 35 |
+
PANELS = [
|
| 36 |
+
("biou", "Boundary IoU (band)", "BIoU", True, "{:.4f}"),
|
| 37 |
+
("biou_contour", "Boundary IoU (contour)", "BIoU contour", True, "{:.4f}"),
|
| 38 |
+
("infer_ms", "Inference time", "ms / image", False, "{:.2f}"),
|
| 39 |
+
("train_min", "Total training time", "minutes", False, "{:.1f}"),
|
| 40 |
+
("epoch_sec", "Time per epoch", "seconds", False, "{:.1f}"),
|
| 41 |
+
("time_to_best_min", "Time to best checkpoint", "minutes", False, "{:.1f}"),
|
| 42 |
+
]
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def load_json(path: pathlib.Path):
|
| 46 |
+
try:
|
| 47 |
+
return json.loads(path.read_text(encoding="utf-8"))
|
| 48 |
+
except Exception:
|
| 49 |
+
return None
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def best_epoch_for(final_dir: pathlib.Path) -> int | None:
|
| 53 |
+
"""Epoch at which the best checkpoint was saved."""
|
| 54 |
+
meta = load_json(final_dir / "checkpoints" / "best.pt.meta.json")
|
| 55 |
+
if meta and meta.get("epoch") is not None:
|
| 56 |
+
return int(meta["epoch"])
|
| 57 |
+
|
| 58 |
+
# fallback: argmax of the selection metric recorded in history
|
| 59 |
+
hist = load_json(final_dir / "history.json")
|
| 60 |
+
if isinstance(hist, list) and hist:
|
| 61 |
+
best_ep, best_val = None, None
|
| 62 |
+
for row in hist:
|
| 63 |
+
val = row.get("selection_metric_value")
|
| 64 |
+
if val is None:
|
| 65 |
+
continue
|
| 66 |
+
if best_val is None or float(val) > float(best_val):
|
| 67 |
+
best_val, best_ep = float(val), int(row.get("epoch", 0))
|
| 68 |
+
return best_ep
|
| 69 |
+
return None
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def collect(runs_root: pathlib.Path) -> dict[str, dict[int, dict[str, list[float]]]]:
|
| 73 |
+
"""model -> strategy -> metric -> [one value per phase]"""
|
| 74 |
+
data: dict[str, dict[int, dict[str, list[float]]]] = defaultdict(
|
| 75 |
+
lambda: defaultdict(lambda: defaultdict(list))
|
| 76 |
+
)
|
| 77 |
+
for eval_path in runs_root.glob("*/**/strategy_*/final/evaluation.json"):
|
| 78 |
+
final_dir = eval_path.parent
|
| 79 |
+
m = re.search(r"strategy_(\d+)", final_dir.parent.name)
|
| 80 |
+
if not m:
|
| 81 |
+
continue
|
| 82 |
+
strategy = int(m.group(1))
|
| 83 |
+
if strategy not in (2, 3):
|
| 84 |
+
continue
|
| 85 |
+
try:
|
| 86 |
+
model = eval_path.relative_to(runs_root).parts[0]
|
| 87 |
+
except ValueError:
|
| 88 |
+
continue
|
| 89 |
+
|
| 90 |
+
ev = load_json(eval_path)
|
| 91 |
+
if not ev:
|
| 92 |
+
continue
|
| 93 |
+
bucket = data[model][strategy]
|
| 94 |
+
metrics = ev.get("metrics", {}) or {}
|
| 95 |
+
|
| 96 |
+
for key in ("biou", "biou_contour"):
|
| 97 |
+
val = (metrics.get(key) or {}).get("mean")
|
| 98 |
+
if val is not None:
|
| 99 |
+
bucket[key].append(float(val))
|
| 100 |
+
|
| 101 |
+
infer = (ev.get("timing", {}) or {}).get("mean_per_image_inference_ms")
|
| 102 |
+
if infer is not None:
|
| 103 |
+
bucket["infer_ms"].append(float(infer))
|
| 104 |
+
|
| 105 |
+
summary = load_json(final_dir / "summary.json")
|
| 106 |
+
if summary:
|
| 107 |
+
if summary.get("elapsed_seconds") is not None:
|
| 108 |
+
bucket["train_min"].append(float(summary["elapsed_seconds"]) / 60.0)
|
| 109 |
+
spe = summary.get("seconds_per_epoch")
|
| 110 |
+
if spe is not None:
|
| 111 |
+
bucket["epoch_sec"].append(float(spe))
|
| 112 |
+
be = best_epoch_for(final_dir)
|
| 113 |
+
if be:
|
| 114 |
+
bucket["time_to_best_min"].append(be * float(spe) / 60.0)
|
| 115 |
+
|
| 116 |
+
return data
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def plot_model(model: str, per_strategy: dict[int, dict[str, list[float]]],
|
| 120 |
+
out_dir: pathlib.Path) -> pathlib.Path | None:
|
| 121 |
+
strategies = [s for s in (2, 3) if per_strategy.get(s)]
|
| 122 |
+
if not strategies:
|
| 123 |
+
return None
|
| 124 |
+
|
| 125 |
+
n_phases = max((len(v.get("biou", [])) for v in per_strategy.values()), default=0)
|
| 126 |
+
fig, axes = plt.subplots(2, 3, figsize=(16, 8.5))
|
| 127 |
+
fig.suptitle(f"{model} — Strategy 2 vs Strategy 3\n"
|
| 128 |
+
f"mean across {n_phases} phase(s), error bars = std across phases",
|
| 129 |
+
fontsize=14, fontweight="bold")
|
| 130 |
+
|
| 131 |
+
for ax, (key, title, ylabel, higher_better, fmt) in zip(axes.ravel(), PANELS):
|
| 132 |
+
xs, means, stds, labels, colors = [], [], [], [], []
|
| 133 |
+
for i, s in enumerate(strategies):
|
| 134 |
+
vals = per_strategy[s].get(key, [])
|
| 135 |
+
if not vals:
|
| 136 |
+
continue
|
| 137 |
+
xs.append(i)
|
| 138 |
+
means.append(float(np.mean(vals)))
|
| 139 |
+
stds.append(float(np.std(vals)) if len(vals) > 1 else 0.0)
|
| 140 |
+
labels.append(STRATEGY_LABEL[s])
|
| 141 |
+
colors.append(BAR_COLORS[s])
|
| 142 |
+
|
| 143 |
+
if not means:
|
| 144 |
+
ax.set_title(f"{title} (no data)")
|
| 145 |
+
ax.axis("off")
|
| 146 |
+
continue
|
| 147 |
+
|
| 148 |
+
bars = ax.bar(xs, means, yerr=stds, capsize=5, color=colors, width=0.55)
|
| 149 |
+
ax.set_xticks(xs)
|
| 150 |
+
ax.set_xticklabels(labels, fontsize=9)
|
| 151 |
+
ax.set_ylabel(ylabel)
|
| 152 |
+
ax.set_title(f"{title} ({'higher' if higher_better else 'lower'} is better)", fontsize=11)
|
| 153 |
+
ax.grid(axis="y", alpha=0.3, linestyle="--")
|
| 154 |
+
ax.margins(y=0.18)
|
| 155 |
+
|
| 156 |
+
for b, mval in zip(bars, means):
|
| 157 |
+
ax.annotate(fmt.format(mval), (b.get_x() + b.get_width() / 2, b.get_height()),
|
| 158 |
+
textcoords="offset points", xytext=(0, 4), ha="center", fontsize=9)
|
| 159 |
+
|
| 160 |
+
if len(means) == 2:
|
| 161 |
+
delta = means[1] - means[0]
|
| 162 |
+
pct = (delta / means[0] * 100.0) if means[0] else 0.0
|
| 163 |
+
good = (delta > 0) if higher_better else (delta < 0)
|
| 164 |
+
ax.text(0.5, 0.02, f"Δ(S3−S2) = {delta:+.4g} ({pct:+.1f}%)",
|
| 165 |
+
transform=ax.transAxes, ha="center", fontsize=9,
|
| 166 |
+
color=("green" if good else "red"))
|
| 167 |
+
|
| 168 |
+
fig.tight_layout(rect=(0, 0, 1, 0.93))
|
| 169 |
+
out_dir.mkdir(parents=True, exist_ok=True)
|
| 170 |
+
out_path = out_dir / f"{model}__s2_vs_s3.png"
|
| 171 |
+
fig.savefig(out_path, dpi=150)
|
| 172 |
+
plt.close(fig)
|
| 173 |
+
return out_path
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
def main() -> int:
|
| 177 |
+
ap = argparse.ArgumentParser()
|
| 178 |
+
ap.add_argument("--runs-root", default="runs")
|
| 179 |
+
args = ap.parse_args()
|
| 180 |
+
|
| 181 |
+
runs_root = pathlib.Path(args.runs_root).resolve()
|
| 182 |
+
if not runs_root.is_dir():
|
| 183 |
+
print(f"[plot] runs root not found: {runs_root}")
|
| 184 |
+
return 1
|
| 185 |
+
|
| 186 |
+
data = collect(runs_root)
|
| 187 |
+
if not data:
|
| 188 |
+
print(f"[plot] no evaluation.json found under {runs_root}")
|
| 189 |
+
return 1
|
| 190 |
+
|
| 191 |
+
out_dir = runs_root / "_plots"
|
| 192 |
+
csv_rows = ["model,strategy,metric,mean,std,n_phases"]
|
| 193 |
+
made = []
|
| 194 |
+
|
| 195 |
+
for model in sorted(data):
|
| 196 |
+
p = plot_model(model, data[model], out_dir)
|
| 197 |
+
if p:
|
| 198 |
+
made.append(p)
|
| 199 |
+
n = max((len(v.get("biou", [])) for v in data[model].values()), default=0)
|
| 200 |
+
print(f"[plot] {model:34s} n_phases={n:<3d} -> {p.name}")
|
| 201 |
+
for s in sorted(data[model]):
|
| 202 |
+
for key, *_ in PANELS:
|
| 203 |
+
vals = data[model][s].get(key, [])
|
| 204 |
+
if vals:
|
| 205 |
+
csv_rows.append(
|
| 206 |
+
f"{model},{s},{key},{np.mean(vals):.6f},"
|
| 207 |
+
f"{(np.std(vals) if len(vals) > 1 else 0.0):.6f},{len(vals)}"
|
| 208 |
+
)
|
| 209 |
+
|
| 210 |
+
(out_dir / "summary_s2_vs_s3.csv").write_text("\n".join(csv_rows) + "\n", encoding="utf-8")
|
| 211 |
+
print(f"\n[plot] {len(made)} figure(s) + summary_s2_vs_s3.csv written to {out_dir}")
|
| 212 |
+
return 0
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
if __name__ == "__main__":
|
| 216 |
+
raise SystemExit(main())
|
requirements_runpod.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use this with a RunPod PyTorch image that already includes torch/torchvision + CUDA.
|
| 2 |
+
# This avoids wasting setup time reinstalling large GPU wheels.
|
| 3 |
+
|
| 4 |
+
numpy>=1.24.0
|
| 5 |
+
scipy>=1.10.0
|
| 6 |
+
pillow>=10.0.0
|
| 7 |
+
tqdm>=4.66.0
|
| 8 |
+
matplotlib>=3.8.0
|
| 9 |
+
pandas>=2.2.0
|
| 10 |
+
openpyxl>=3.1.0
|
| 11 |
+
optuna>=3.6.0
|
| 12 |
+
segmentation-models-pytorch>=0.5.0
|
| 13 |
+
timm>=1.0.0
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/experiment_state.sqlite3
ADDED
|
Binary file (90.1 kB). View file
|
|
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/exports/aggregated_metrics_by_percent_strategy.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
biou_contour_mean,biou_contour_std,biou_contour_within_run_std_mean,biou_mean,biou_std,biou_within_run_std_mean,completed_phase_count,completed_phases,dataset_percent,dice_mean,dice_std,dice_within_run_std_mean,hd95_mean,hd95_std,hd95_within_run_std_mean,iou_mean,iou_std,iou_within_run_std_mean,n_runs,ppv_mean,ppv_std,ppv_within_run_std_mean,sen_mean,sen_std,sen_within_run_std_mean,split_generation_mode,strategy
|
| 2 |
+
0.10658753663301468,0.007339854717964752,0.08429641127586365,0.38765804171562196,0.018165690360599084,0.21831948757171632,5,"2,3,4,9,10",100,0.779808759689331,0.014647414633594986,0.243904447555542,12.895025062561036,1.796037401561253,21.965408325195312,0.6889553785324096,0.011983966508109928,0.25024294555187226,5,0.8218204975128174,0.009422276608595955,0.23497852087020873,0.7984434843063355,0.024920658867602998,0.25239624083042145,fixed_stratified_phases_8_1_1,2
|
| 3 |
+
0.15978023707866668,0.021218451908610055,0.12744158655405044,0.45167040824890137,0.030927701615027236,0.24558151960372926,5,"2,3,4,9,10",100,0.8045141458511352,0.02037104769957007,0.2366455763578415,11.593777847290038,1.7023791352209379,18.272854232788085,0.7224233269691467,0.01810482451855519,0.2474461168050766,5,0.8372180461883545,0.008289385576892344,0.24025410711765288,0.8173958659172058,0.03127828085396388,0.23604983687400818,fixed_stratified_phases_8_1_1,3
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/exports/aggregated_metrics_by_percent_strategy.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"biou_contour_mean": 0.10658753663301468,
|
| 4 |
+
"biou_contour_std": 0.007339854717964752,
|
| 5 |
+
"biou_contour_within_run_std_mean": 0.08429641127586365,
|
| 6 |
+
"biou_mean": 0.38765804171562196,
|
| 7 |
+
"biou_std": 0.018165690360599084,
|
| 8 |
+
"biou_within_run_std_mean": 0.21831948757171632,
|
| 9 |
+
"completed_phase_count": 5,
|
| 10 |
+
"completed_phases": "2,3,4,9,10",
|
| 11 |
+
"dataset_percent": 100,
|
| 12 |
+
"dice_mean": 0.779808759689331,
|
| 13 |
+
"dice_std": 0.014647414633594986,
|
| 14 |
+
"dice_within_run_std_mean": 0.243904447555542,
|
| 15 |
+
"hd95_mean": 12.895025062561036,
|
| 16 |
+
"hd95_std": 1.796037401561253,
|
| 17 |
+
"hd95_within_run_std_mean": 21.965408325195312,
|
| 18 |
+
"iou_mean": 0.6889553785324096,
|
| 19 |
+
"iou_std": 0.011983966508109928,
|
| 20 |
+
"iou_within_run_std_mean": 0.25024294555187226,
|
| 21 |
+
"n_runs": 5,
|
| 22 |
+
"ppv_mean": 0.8218204975128174,
|
| 23 |
+
"ppv_std": 0.009422276608595955,
|
| 24 |
+
"ppv_within_run_std_mean": 0.23497852087020873,
|
| 25 |
+
"sen_mean": 0.7984434843063355,
|
| 26 |
+
"sen_std": 0.024920658867602998,
|
| 27 |
+
"sen_within_run_std_mean": 0.25239624083042145,
|
| 28 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 29 |
+
"strategy": 2
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"biou_contour_mean": 0.15978023707866668,
|
| 33 |
+
"biou_contour_std": 0.021218451908610055,
|
| 34 |
+
"biou_contour_within_run_std_mean": 0.12744158655405044,
|
| 35 |
+
"biou_mean": 0.45167040824890137,
|
| 36 |
+
"biou_std": 0.030927701615027236,
|
| 37 |
+
"biou_within_run_std_mean": 0.24558151960372926,
|
| 38 |
+
"completed_phase_count": 5,
|
| 39 |
+
"completed_phases": "2,3,4,9,10",
|
| 40 |
+
"dataset_percent": 100,
|
| 41 |
+
"dice_mean": 0.8045141458511352,
|
| 42 |
+
"dice_std": 0.02037104769957007,
|
| 43 |
+
"dice_within_run_std_mean": 0.2366455763578415,
|
| 44 |
+
"hd95_mean": 11.593777847290038,
|
| 45 |
+
"hd95_std": 1.7023791352209379,
|
| 46 |
+
"hd95_within_run_std_mean": 18.272854232788085,
|
| 47 |
+
"iou_mean": 0.7224233269691467,
|
| 48 |
+
"iou_std": 0.01810482451855519,
|
| 49 |
+
"iou_within_run_std_mean": 0.2474461168050766,
|
| 50 |
+
"n_runs": 5,
|
| 51 |
+
"ppv_mean": 0.8372180461883545,
|
| 52 |
+
"ppv_std": 0.008289385576892344,
|
| 53 |
+
"ppv_within_run_std_mean": 0.24025410711765288,
|
| 54 |
+
"sen_mean": 0.8173958659172058,
|
| 55 |
+
"sen_std": 0.03127828085396388,
|
| 56 |
+
"sen_within_run_std_mean": 0.23604983687400818,
|
| 57 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 58 |
+
"strategy": 3
|
| 59 |
+
}
|
| 60 |
+
]
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/exports/raw_run_metrics.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
biou_contour_mean,biou_contour_std,biou_mean,biou_std,dataset_percent,dice_mean,dice_std,evaluation_path,hd95_mean,hd95_std,iou_mean,iou_std,phase_index,phase_test_fold_index,phase_val_fold_index,ppv_mean,ppv_std,run_dir,sen_mean,sen_std,split_generation_mode,split_manifest_path,split_repeat_index,strategy,subset_manifest_path,subset_repeat_index
|
| 2 |
+
0.10553458333015442,0.07625986635684967,0.3781984746456146,0.2127406746149063,100,0.7896647453308105,0.2421818971633911,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_2/final/evaluation.json,15.18199348449707,27.79026985168457,0.7016277313232422,0.2495580017566681,2,2,3,0.824587881565094,0.23476456105709076,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_2/final,0.8144153952598572,0.24154168367385864,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_002.json,2,2,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_002_pct_100_repeat_01.json,1
|
| 3 |
+
0.1427242010831833,0.11678919941186905,0.42219021916389465,0.24058061838150024,100,0.8018195033073425,0.24565258622169495,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_3/final/evaluation.json,12.99763011932373,19.484420776367188,0.7207279205322266,0.25497370958328247,2,2,3,0.8248835206031799,0.26045703887939453,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_3/final,0.8218875527381897,0.23904001712799072,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_002.json,2,3,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_002_pct_100_repeat_01.json,1
|
| 4 |
+
0.10729717463254929,0.08857995271682739,0.3900618553161621,0.21769826114177704,100,0.7913828492164612,0.21163640916347504,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_2/final/evaluation.json,10.56818962097168,14.067215919494629,0.6934124827384949,0.22467739880084991,3,3,4,0.8115997314453125,0.23191630840301514,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_2/final,0.8230597376823425,0.22039473056793213,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_003.json,3,2,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_003_pct_100_repeat_01.json,1
|
| 5 |
+
0.1609937846660614,0.13421352207660675,0.4667215049266815,0.2397007793188095,100,0.8267476558685303,0.18645723164081573,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_3/final/evaluation.json,9.511301040649414,13.27614688873291,0.737328290939331,0.20944608747959137,3,3,4,0.8473854660987854,0.21131612360477448,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_3/final,0.8498467803001404,0.1796499490737915,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_003.json,3,3,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_003_pct_100_repeat_01.json,1
|
| 6 |
+
0.117262102663517,0.08725402504205704,0.4200691282749176,0.2263152003288269,100,0.7721100449562073,0.2689150869846344,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_2/final/evaluation.json,12.817033767700195,27.383140563964844,0.6858046054840088,0.2633354365825653,4,4,5,0.8098906874656677,0.2543603479862213,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_2/final,0.7863260507583618,0.2697471082210541,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_004.json,4,2,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_004_pct_100_repeat_01.json,1
|
| 7 |
+
0.20023024082183838,0.14912749826908112,0.5050680637359619,0.26369938254356384,100,0.8024692535400391,0.27068495750427246,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_3/final/evaluation.json,10.490487098693848,18.224517822265625,0.7308013439178467,0.2711138427257538,4,4,5,0.8311871290206909,0.2780493199825287,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_3/final,0.8009200692176819,0.26087698340415955,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_004.json,4,3,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_004_pct_100_repeat_01.json,1
|
| 8 |
+
0.10850856453180313,0.08922477811574936,0.38454005122184753,0.22500698268413544,100,0.7543946504592896,0.28128987550735474,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_2/final/evaluation.json,14.607939720153809,27.255828857421875,0.6673032641410828,0.2768732011318207,9,9,10,0.8306177854537964,0.2499452531337738,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_2/final,0.7551219463348389,0.29069170355796814,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_009.json,9,2,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_009_pct_100_repeat_01.json,1
|
| 9 |
+
0.1443328559398651,0.11686944216489792,0.4260050058364868,0.24544110894203186,100,0.769157886505127,0.2825092673301697,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_3/final/evaluation.json,14.124567985534668,27.15265655517578,0.6880638003349304,0.27892905473709106,9,9,10,0.844323456287384,0.250375360250473,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_3/final,0.7663120031356812,0.2920166254043579,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_009.json,9,3,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_009_pct_100_repeat_01.json,1
|
| 10 |
+
0.09433525800704956,0.08016343414783478,0.36542069911956787,0.20983631908893585,100,0.7914915084838867,0.21549896895885468,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_2/final/evaluation.json,11.299968719482422,13.330586433410645,0.6966288089752197,0.23677068948745728,10,10,1,0.8324064016342163,0.2039061337709427,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_2/final,0.8132942914962769,0.23960597813129425,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_010.json,10,2,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_010_pct_100_repeat_01.json,1
|
| 11 |
+
0.15062010288238525,0.1202082708477974,0.43836724758148193,0.23848570883274078,100,0.8223764300346375,0.19792383909225464,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/evaluation.json,10.844902992248535,13.226529121398926,0.7351952791213989,0.2227678894996643,10,10,1,0.8383106589317322,0.20107269287109375,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final,0.8480129241943359,0.2086656093597412,fixed_stratified_phases_8_1_1,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_010.json,10,3,/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_010_pct_100_repeat_01.json,1
|
runs/UPerNet_PVTv2_b2/repe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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"biou_contour_mean": 0.10553458333015442,
|
| 4 |
+
"biou_contour_std": 0.07625986635684967,
|
| 5 |
+
"biou_mean": 0.3781984746456146,
|
| 6 |
+
"biou_std": 0.2127406746149063,
|
| 7 |
+
"dataset_percent": 100,
|
| 8 |
+
"dice_mean": 0.7896647453308105,
|
| 9 |
+
"dice_std": 0.2421818971633911,
|
| 10 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_2/final/evaluation.json",
|
| 11 |
+
"hd95_mean": 15.18199348449707,
|
| 12 |
+
"hd95_std": 27.79026985168457,
|
| 13 |
+
"iou_mean": 0.7016277313232422,
|
| 14 |
+
"iou_std": 0.2495580017566681,
|
| 15 |
+
"phase_index": 2,
|
| 16 |
+
"phase_test_fold_index": 2,
|
| 17 |
+
"phase_val_fold_index": 3,
|
| 18 |
+
"ppv_mean": 0.824587881565094,
|
| 19 |
+
"ppv_std": 0.23476456105709076,
|
| 20 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_2/final",
|
| 21 |
+
"sen_mean": 0.8144153952598572,
|
| 22 |
+
"sen_std": 0.24154168367385864,
|
| 23 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 24 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_002.json",
|
| 25 |
+
"split_repeat_index": 2,
|
| 26 |
+
"strategy": 2,
|
| 27 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_002_pct_100_repeat_01.json",
|
| 28 |
+
"subset_repeat_index": 1
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"biou_contour_mean": 0.1427242010831833,
|
| 32 |
+
"biou_contour_std": 0.11678919941186905,
|
| 33 |
+
"biou_mean": 0.42219021916389465,
|
| 34 |
+
"biou_std": 0.24058061838150024,
|
| 35 |
+
"dataset_percent": 100,
|
| 36 |
+
"dice_mean": 0.8018195033073425,
|
| 37 |
+
"dice_std": 0.24565258622169495,
|
| 38 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_3/final/evaluation.json",
|
| 39 |
+
"hd95_mean": 12.99763011932373,
|
| 40 |
+
"hd95_std": 19.484420776367188,
|
| 41 |
+
"iou_mean": 0.7207279205322266,
|
| 42 |
+
"iou_std": 0.25497370958328247,
|
| 43 |
+
"phase_index": 2,
|
| 44 |
+
"phase_test_fold_index": 2,
|
| 45 |
+
"phase_val_fold_index": 3,
|
| 46 |
+
"ppv_mean": 0.8248835206031799,
|
| 47 |
+
"ppv_std": 0.26045703887939453,
|
| 48 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_3/final",
|
| 49 |
+
"sen_mean": 0.8218875527381897,
|
| 50 |
+
"sen_std": 0.23904001712799072,
|
| 51 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 52 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_002.json",
|
| 53 |
+
"split_repeat_index": 2,
|
| 54 |
+
"strategy": 3,
|
| 55 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_002_pct_100_repeat_01.json",
|
| 56 |
+
"subset_repeat_index": 1
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"biou_contour_mean": 0.10729717463254929,
|
| 60 |
+
"biou_contour_std": 0.08857995271682739,
|
| 61 |
+
"biou_mean": 0.3900618553161621,
|
| 62 |
+
"biou_std": 0.21769826114177704,
|
| 63 |
+
"dataset_percent": 100,
|
| 64 |
+
"dice_mean": 0.7913828492164612,
|
| 65 |
+
"dice_std": 0.21163640916347504,
|
| 66 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_2/final/evaluation.json",
|
| 67 |
+
"hd95_mean": 10.56818962097168,
|
| 68 |
+
"hd95_std": 14.067215919494629,
|
| 69 |
+
"iou_mean": 0.6934124827384949,
|
| 70 |
+
"iou_std": 0.22467739880084991,
|
| 71 |
+
"phase_index": 3,
|
| 72 |
+
"phase_test_fold_index": 3,
|
| 73 |
+
"phase_val_fold_index": 4,
|
| 74 |
+
"ppv_mean": 0.8115997314453125,
|
| 75 |
+
"ppv_std": 0.23191630840301514,
|
| 76 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_2/final",
|
| 77 |
+
"sen_mean": 0.8230597376823425,
|
| 78 |
+
"sen_std": 0.22039473056793213,
|
| 79 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 80 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_003.json",
|
| 81 |
+
"split_repeat_index": 3,
|
| 82 |
+
"strategy": 2,
|
| 83 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_003_pct_100_repeat_01.json",
|
| 84 |
+
"subset_repeat_index": 1
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"biou_contour_mean": 0.1609937846660614,
|
| 88 |
+
"biou_contour_std": 0.13421352207660675,
|
| 89 |
+
"biou_mean": 0.4667215049266815,
|
| 90 |
+
"biou_std": 0.2397007793188095,
|
| 91 |
+
"dataset_percent": 100,
|
| 92 |
+
"dice_mean": 0.8267476558685303,
|
| 93 |
+
"dice_std": 0.18645723164081573,
|
| 94 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_3/final/evaluation.json",
|
| 95 |
+
"hd95_mean": 9.511301040649414,
|
| 96 |
+
"hd95_std": 13.27614688873291,
|
| 97 |
+
"iou_mean": 0.737328290939331,
|
| 98 |
+
"iou_std": 0.20944608747959137,
|
| 99 |
+
"phase_index": 3,
|
| 100 |
+
"phase_test_fold_index": 3,
|
| 101 |
+
"phase_val_fold_index": 4,
|
| 102 |
+
"ppv_mean": 0.8473854660987854,
|
| 103 |
+
"ppv_std": 0.21131612360477448,
|
| 104 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_3/final",
|
| 105 |
+
"sen_mean": 0.8498467803001404,
|
| 106 |
+
"sen_std": 0.1796499490737915,
|
| 107 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 108 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_003.json",
|
| 109 |
+
"split_repeat_index": 3,
|
| 110 |
+
"strategy": 3,
|
| 111 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_003_pct_100_repeat_01.json",
|
| 112 |
+
"subset_repeat_index": 1
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"biou_contour_mean": 0.117262102663517,
|
| 116 |
+
"biou_contour_std": 0.08725402504205704,
|
| 117 |
+
"biou_mean": 0.4200691282749176,
|
| 118 |
+
"biou_std": 0.2263152003288269,
|
| 119 |
+
"dataset_percent": 100,
|
| 120 |
+
"dice_mean": 0.7721100449562073,
|
| 121 |
+
"dice_std": 0.2689150869846344,
|
| 122 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_2/final/evaluation.json",
|
| 123 |
+
"hd95_mean": 12.817033767700195,
|
| 124 |
+
"hd95_std": 27.383140563964844,
|
| 125 |
+
"iou_mean": 0.6858046054840088,
|
| 126 |
+
"iou_std": 0.2633354365825653,
|
| 127 |
+
"phase_index": 4,
|
| 128 |
+
"phase_test_fold_index": 4,
|
| 129 |
+
"phase_val_fold_index": 5,
|
| 130 |
+
"ppv_mean": 0.8098906874656677,
|
| 131 |
+
"ppv_std": 0.2543603479862213,
|
| 132 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_2/final",
|
| 133 |
+
"sen_mean": 0.7863260507583618,
|
| 134 |
+
"sen_std": 0.2697471082210541,
|
| 135 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 136 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_004.json",
|
| 137 |
+
"split_repeat_index": 4,
|
| 138 |
+
"strategy": 2,
|
| 139 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_004_pct_100_repeat_01.json",
|
| 140 |
+
"subset_repeat_index": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"biou_contour_mean": 0.20023024082183838,
|
| 144 |
+
"biou_contour_std": 0.14912749826908112,
|
| 145 |
+
"biou_mean": 0.5050680637359619,
|
| 146 |
+
"biou_std": 0.26369938254356384,
|
| 147 |
+
"dataset_percent": 100,
|
| 148 |
+
"dice_mean": 0.8024692535400391,
|
| 149 |
+
"dice_std": 0.27068495750427246,
|
| 150 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_3/final/evaluation.json",
|
| 151 |
+
"hd95_mean": 10.490487098693848,
|
| 152 |
+
"hd95_std": 18.224517822265625,
|
| 153 |
+
"iou_mean": 0.7308013439178467,
|
| 154 |
+
"iou_std": 0.2711138427257538,
|
| 155 |
+
"phase_index": 4,
|
| 156 |
+
"phase_test_fold_index": 4,
|
| 157 |
+
"phase_val_fold_index": 5,
|
| 158 |
+
"ppv_mean": 0.8311871290206909,
|
| 159 |
+
"ppv_std": 0.2780493199825287,
|
| 160 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_3/final",
|
| 161 |
+
"sen_mean": 0.8009200692176819,
|
| 162 |
+
"sen_std": 0.26087698340415955,
|
| 163 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 164 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_004.json",
|
| 165 |
+
"split_repeat_index": 4,
|
| 166 |
+
"strategy": 3,
|
| 167 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_004_pct_100_repeat_01.json",
|
| 168 |
+
"subset_repeat_index": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"biou_contour_mean": 0.10850856453180313,
|
| 172 |
+
"biou_contour_std": 0.08922477811574936,
|
| 173 |
+
"biou_mean": 0.38454005122184753,
|
| 174 |
+
"biou_std": 0.22500698268413544,
|
| 175 |
+
"dataset_percent": 100,
|
| 176 |
+
"dice_mean": 0.7543946504592896,
|
| 177 |
+
"dice_std": 0.28128987550735474,
|
| 178 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_2/final/evaluation.json",
|
| 179 |
+
"hd95_mean": 14.607939720153809,
|
| 180 |
+
"hd95_std": 27.255828857421875,
|
| 181 |
+
"iou_mean": 0.6673032641410828,
|
| 182 |
+
"iou_std": 0.2768732011318207,
|
| 183 |
+
"phase_index": 9,
|
| 184 |
+
"phase_test_fold_index": 9,
|
| 185 |
+
"phase_val_fold_index": 10,
|
| 186 |
+
"ppv_mean": 0.8306177854537964,
|
| 187 |
+
"ppv_std": 0.2499452531337738,
|
| 188 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_2/final",
|
| 189 |
+
"sen_mean": 0.7551219463348389,
|
| 190 |
+
"sen_std": 0.29069170355796814,
|
| 191 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 192 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_009.json",
|
| 193 |
+
"split_repeat_index": 9,
|
| 194 |
+
"strategy": 2,
|
| 195 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_009_pct_100_repeat_01.json",
|
| 196 |
+
"subset_repeat_index": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"biou_contour_mean": 0.1443328559398651,
|
| 200 |
+
"biou_contour_std": 0.11686944216489792,
|
| 201 |
+
"biou_mean": 0.4260050058364868,
|
| 202 |
+
"biou_std": 0.24544110894203186,
|
| 203 |
+
"dataset_percent": 100,
|
| 204 |
+
"dice_mean": 0.769157886505127,
|
| 205 |
+
"dice_std": 0.2825092673301697,
|
| 206 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_3/final/evaluation.json",
|
| 207 |
+
"hd95_mean": 14.124567985534668,
|
| 208 |
+
"hd95_std": 27.15265655517578,
|
| 209 |
+
"iou_mean": 0.6880638003349304,
|
| 210 |
+
"iou_std": 0.27892905473709106,
|
| 211 |
+
"phase_index": 9,
|
| 212 |
+
"phase_test_fold_index": 9,
|
| 213 |
+
"phase_val_fold_index": 10,
|
| 214 |
+
"ppv_mean": 0.844323456287384,
|
| 215 |
+
"ppv_std": 0.250375360250473,
|
| 216 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_3/final",
|
| 217 |
+
"sen_mean": 0.7663120031356812,
|
| 218 |
+
"sen_std": 0.2920166254043579,
|
| 219 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 220 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_009.json",
|
| 221 |
+
"split_repeat_index": 9,
|
| 222 |
+
"strategy": 3,
|
| 223 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_009_pct_100_repeat_01.json",
|
| 224 |
+
"subset_repeat_index": 1
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"biou_contour_mean": 0.09433525800704956,
|
| 228 |
+
"biou_contour_std": 0.08016343414783478,
|
| 229 |
+
"biou_mean": 0.36542069911956787,
|
| 230 |
+
"biou_std": 0.20983631908893585,
|
| 231 |
+
"dataset_percent": 100,
|
| 232 |
+
"dice_mean": 0.7914915084838867,
|
| 233 |
+
"dice_std": 0.21549896895885468,
|
| 234 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_2/final/evaluation.json",
|
| 235 |
+
"hd95_mean": 11.299968719482422,
|
| 236 |
+
"hd95_std": 13.330586433410645,
|
| 237 |
+
"iou_mean": 0.6966288089752197,
|
| 238 |
+
"iou_std": 0.23677068948745728,
|
| 239 |
+
"phase_index": 10,
|
| 240 |
+
"phase_test_fold_index": 10,
|
| 241 |
+
"phase_val_fold_index": 1,
|
| 242 |
+
"ppv_mean": 0.8324064016342163,
|
| 243 |
+
"ppv_std": 0.2039061337709427,
|
| 244 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_2/final",
|
| 245 |
+
"sen_mean": 0.8132942914962769,
|
| 246 |
+
"sen_std": 0.23960597813129425,
|
| 247 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 248 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_010.json",
|
| 249 |
+
"split_repeat_index": 10,
|
| 250 |
+
"strategy": 2,
|
| 251 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_010_pct_100_repeat_01.json",
|
| 252 |
+
"subset_repeat_index": 1
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"biou_contour_mean": 0.15062010288238525,
|
| 256 |
+
"biou_contour_std": 0.1202082708477974,
|
| 257 |
+
"biou_mean": 0.43836724758148193,
|
| 258 |
+
"biou_std": 0.23848570883274078,
|
| 259 |
+
"dataset_percent": 100,
|
| 260 |
+
"dice_mean": 0.8223764300346375,
|
| 261 |
+
"dice_std": 0.19792383909225464,
|
| 262 |
+
"evaluation_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/evaluation.json",
|
| 263 |
+
"hd95_mean": 10.844902992248535,
|
| 264 |
+
"hd95_std": 13.226529121398926,
|
| 265 |
+
"iou_mean": 0.7351952791213989,
|
| 266 |
+
"iou_std": 0.2227678894996643,
|
| 267 |
+
"phase_index": 10,
|
| 268 |
+
"phase_test_fold_index": 10,
|
| 269 |
+
"phase_val_fold_index": 1,
|
| 270 |
+
"ppv_mean": 0.8383106589317322,
|
| 271 |
+
"ppv_std": 0.20107269287109375,
|
| 272 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final",
|
| 273 |
+
"sen_mean": 0.8480129241943359,
|
| 274 |
+
"sen_std": 0.2086656093597412,
|
| 275 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 276 |
+
"split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_010.json",
|
| 277 |
+
"split_repeat_index": 10,
|
| 278 |
+
"strategy": 3,
|
| 279 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_010_pct_100_repeat_01.json",
|
| 280 |
+
"subset_repeat_index": 1
|
| 281 |
+
}
|
| 282 |
+
]
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/norm_stats_BUSI_with_classes_stratified_80_10_10_100pct_phase010_repeat01.json
ADDED
|
@@ -0,0 +1,526 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"filenames": [
|
| 3 |
+
"BUSI_0358_B.png",
|
| 4 |
+
"BUSI_0140_M.png",
|
| 5 |
+
"BUSI_0420_B.png",
|
| 6 |
+
"BUSI_0101_B.png",
|
| 7 |
+
"BUSI_0052_B.png",
|
| 8 |
+
"BUSI_0068_M.png",
|
| 9 |
+
"BUSI_0029_B.png",
|
| 10 |
+
"BUSI_0024_M.png",
|
| 11 |
+
"BUSI_0094_B.png",
|
| 12 |
+
"BUSI_0011_B.png",
|
| 13 |
+
"BUSI_0047_M.png",
|
| 14 |
+
"BUSI_0153_M.png",
|
| 15 |
+
"BUSI_0045_M.png",
|
| 16 |
+
"BUSI_0090_M.png",
|
| 17 |
+
"BUSI_0341_B.png",
|
| 18 |
+
"BUSI_0437_B.png",
|
| 19 |
+
"BUSI_0009_B.png",
|
| 20 |
+
"BUSI_0320_B.png",
|
| 21 |
+
"BUSI_0075_M.png",
|
| 22 |
+
"BUSI_0099_M.png",
|
| 23 |
+
"BUSI_0254_B.png",
|
| 24 |
+
"BUSI_0310_B.png",
|
| 25 |
+
"BUSI_0122_M.png",
|
| 26 |
+
"BUSI_0032_B.png",
|
| 27 |
+
"BUSI_0101_M.png",
|
| 28 |
+
"BUSI_0148_M.png",
|
| 29 |
+
"BUSI_0209_M.png",
|
| 30 |
+
"BUSI_0145_M.png",
|
| 31 |
+
"BUSI_0106_M.png",
|
| 32 |
+
"BUSI_0187_B.png",
|
| 33 |
+
"BUSI_0304_B.png",
|
| 34 |
+
"BUSI_0055_M.png",
|
| 35 |
+
"BUSI_0197_M.png",
|
| 36 |
+
"BUSI_0109_B.png",
|
| 37 |
+
"BUSI_0124_M.png",
|
| 38 |
+
"BUSI_0183_B.png",
|
| 39 |
+
"BUSI_0154_B.png",
|
| 40 |
+
"BUSI_0139_M.png",
|
| 41 |
+
"BUSI_0088_B.png",
|
| 42 |
+
"BUSI_0030_B.png",
|
| 43 |
+
"BUSI_0250_B.png",
|
| 44 |
+
"BUSI_0061_B.png",
|
| 45 |
+
"BUSI_0193_B.png",
|
| 46 |
+
"BUSI_0036_M.png",
|
| 47 |
+
"BUSI_0184_B.png",
|
| 48 |
+
"BUSI_0155_B.png",
|
| 49 |
+
"BUSI_0188_M.png",
|
| 50 |
+
"BUSI_0005_M.png",
|
| 51 |
+
"BUSI_0396_B.png",
|
| 52 |
+
"BUSI_0010_B.png",
|
| 53 |
+
"BUSI_0150_B.png",
|
| 54 |
+
"BUSI_0300_B.png",
|
| 55 |
+
"BUSI_0019_M.png",
|
| 56 |
+
"BUSI_0086_M.png",
|
| 57 |
+
"BUSI_0181_M.png",
|
| 58 |
+
"BUSI_0138_M.png",
|
| 59 |
+
"BUSI_0087_M.png",
|
| 60 |
+
"BUSI_0180_M.png",
|
| 61 |
+
"BUSI_0078_M.png",
|
| 62 |
+
"BUSI_0113_M.png",
|
| 63 |
+
"BUSI_0137_M.png",
|
| 64 |
+
"BUSI_0428_B.png",
|
| 65 |
+
"BUSI_0171_B.png",
|
| 66 |
+
"BUSI_0169_B.png",
|
| 67 |
+
"BUSI_0035_M.png",
|
| 68 |
+
"BUSI_0201_B.png",
|
| 69 |
+
"BUSI_0159_M.png",
|
| 70 |
+
"BUSI_0104_M.png",
|
| 71 |
+
"BUSI_0209_B.png",
|
| 72 |
+
"BUSI_0274_B.png",
|
| 73 |
+
"BUSI_0178_B.png",
|
| 74 |
+
"BUSI_0340_B.png",
|
| 75 |
+
"BUSI_0346_B.png",
|
| 76 |
+
"BUSI_0008_B.png",
|
| 77 |
+
"BUSI_0282_B.png",
|
| 78 |
+
"BUSI_0352_B.png",
|
| 79 |
+
"BUSI_0098_B.png",
|
| 80 |
+
"BUSI_0280_B.png",
|
| 81 |
+
"BUSI_0006_M.png",
|
| 82 |
+
"BUSI_0323_B.png",
|
| 83 |
+
"BUSI_0365_B.png",
|
| 84 |
+
"BUSI_0205_M.png",
|
| 85 |
+
"BUSI_0148_B.png",
|
| 86 |
+
"BUSI_0066_M.png",
|
| 87 |
+
"BUSI_0134_M.png",
|
| 88 |
+
"BUSI_0144_B.png",
|
| 89 |
+
"BUSI_0127_M.png",
|
| 90 |
+
"BUSI_0240_B.png",
|
| 91 |
+
"BUSI_0013_B.png",
|
| 92 |
+
"BUSI_0226_B.png",
|
| 93 |
+
"BUSI_0347_B.png",
|
| 94 |
+
"BUSI_0175_B.png",
|
| 95 |
+
"BUSI_0120_B.png",
|
| 96 |
+
"BUSI_0028_B.png",
|
| 97 |
+
"BUSI_0168_M.png",
|
| 98 |
+
"BUSI_0237_B.png",
|
| 99 |
+
"BUSI_0172_B.png",
|
| 100 |
+
"BUSI_0362_B.png",
|
| 101 |
+
"BUSI_0009_M.png",
|
| 102 |
+
"BUSI_0285_B.png",
|
| 103 |
+
"BUSI_0245_B.png",
|
| 104 |
+
"BUSI_0387_B.png",
|
| 105 |
+
"BUSI_0279_B.png",
|
| 106 |
+
"BUSI_0039_B.png",
|
| 107 |
+
"BUSI_0212_B.png",
|
| 108 |
+
"BUSI_0092_B.png",
|
| 109 |
+
"BUSI_0060_M.png",
|
| 110 |
+
"BUSI_0271_B.png",
|
| 111 |
+
"BUSI_0286_B.png",
|
| 112 |
+
"BUSI_0404_B.png",
|
| 113 |
+
"BUSI_0224_B.png",
|
| 114 |
+
"BUSI_0063_B.png",
|
| 115 |
+
"BUSI_0050_M.png",
|
| 116 |
+
"BUSI_0264_B.png",
|
| 117 |
+
"BUSI_0160_B.png",
|
| 118 |
+
"BUSI_0125_M.png",
|
| 119 |
+
"BUSI_0417_B.png",
|
| 120 |
+
"BUSI_0384_B.png",
|
| 121 |
+
"BUSI_0332_B.png",
|
| 122 |
+
"BUSI_0291_B.png",
|
| 123 |
+
"BUSI_0152_B.png",
|
| 124 |
+
"BUSI_0027_B.png",
|
| 125 |
+
"BUSI_0423_B.png",
|
| 126 |
+
"BUSI_0144_M.png",
|
| 127 |
+
"BUSI_0057_B.png",
|
| 128 |
+
"BUSI_0126_M.png",
|
| 129 |
+
"BUSI_0267_B.png",
|
| 130 |
+
"BUSI_0121_M.png",
|
| 131 |
+
"BUSI_0147_M.png",
|
| 132 |
+
"BUSI_0383_B.png",
|
| 133 |
+
"BUSI_0149_M.png",
|
| 134 |
+
"BUSI_0201_M.png",
|
| 135 |
+
"BUSI_0074_B.png",
|
| 136 |
+
"BUSI_0074_M.png",
|
| 137 |
+
"BUSI_0181_B.png",
|
| 138 |
+
"BUSI_0166_B.png",
|
| 139 |
+
"BUSI_0014_M.png",
|
| 140 |
+
"BUSI_0082_M.png",
|
| 141 |
+
"BUSI_0119_B.png",
|
| 142 |
+
"BUSI_0073_M.png",
|
| 143 |
+
"BUSI_0316_B.png",
|
| 144 |
+
"BUSI_0424_B.png",
|
| 145 |
+
"BUSI_0155_M.png",
|
| 146 |
+
"BUSI_0016_B.png",
|
| 147 |
+
"BUSI_0322_B.png",
|
| 148 |
+
"BUSI_0145_B.png",
|
| 149 |
+
"BUSI_0163_B.png",
|
| 150 |
+
"BUSI_0017_M.png",
|
| 151 |
+
"BUSI_0311_B.png",
|
| 152 |
+
"BUSI_0162_M.png",
|
| 153 |
+
"BUSI_0122_B.png",
|
| 154 |
+
"BUSI_0167_B.png",
|
| 155 |
+
"BUSI_0027_M.png",
|
| 156 |
+
"BUSI_0041_M.png",
|
| 157 |
+
"BUSI_0296_B.png",
|
| 158 |
+
"BUSI_0431_B.png",
|
| 159 |
+
"BUSI_0160_M.png",
|
| 160 |
+
"BUSI_0326_B.png",
|
| 161 |
+
"BUSI_0021_B.png",
|
| 162 |
+
"BUSI_0060_B.png",
|
| 163 |
+
"BUSI_0229_B.png",
|
| 164 |
+
"BUSI_0023_M.png",
|
| 165 |
+
"BUSI_0223_B.png",
|
| 166 |
+
"BUSI_0044_M.png",
|
| 167 |
+
"BUSI_0319_B.png",
|
| 168 |
+
"BUSI_0004_M.png",
|
| 169 |
+
"BUSI_0081_M.png",
|
| 170 |
+
"BUSI_0051_B.png",
|
| 171 |
+
"BUSI_0094_M.png",
|
| 172 |
+
"BUSI_0190_B.png",
|
| 173 |
+
"BUSI_0075_B.png",
|
| 174 |
+
"BUSI_0116_M.png",
|
| 175 |
+
"BUSI_0381_B.png",
|
| 176 |
+
"BUSI_0102_B.png",
|
| 177 |
+
"BUSI_0378_B.png",
|
| 178 |
+
"BUSI_0412_B.png",
|
| 179 |
+
"BUSI_0150_M.png",
|
| 180 |
+
"BUSI_0401_B.png",
|
| 181 |
+
"BUSI_0142_B.png",
|
| 182 |
+
"BUSI_0114_B.png",
|
| 183 |
+
"BUSI_0142_M.png",
|
| 184 |
+
"BUSI_0368_B.png",
|
| 185 |
+
"BUSI_0113_B.png",
|
| 186 |
+
"BUSI_0161_B.png",
|
| 187 |
+
"BUSI_0203_B.png",
|
| 188 |
+
"BUSI_0154_M.png",
|
| 189 |
+
"BUSI_0121_B.png",
|
| 190 |
+
"BUSI_0111_M.png",
|
| 191 |
+
"BUSI_0003_M.png",
|
| 192 |
+
"BUSI_0199_B.png",
|
| 193 |
+
"BUSI_0080_B.png",
|
| 194 |
+
"BUSI_0072_B.png",
|
| 195 |
+
"BUSI_0092_M.png",
|
| 196 |
+
"BUSI_0262_B.png",
|
| 197 |
+
"BUSI_0164_B.png",
|
| 198 |
+
"BUSI_0344_B.png",
|
| 199 |
+
"BUSI_0395_B.png",
|
| 200 |
+
"BUSI_0100_M.png",
|
| 201 |
+
"BUSI_0292_B.png",
|
| 202 |
+
"BUSI_0244_B.png",
|
| 203 |
+
"BUSI_0408_B.png",
|
| 204 |
+
"BUSI_0219_B.png",
|
| 205 |
+
"BUSI_0137_B.png",
|
| 206 |
+
"BUSI_0186_B.png",
|
| 207 |
+
"BUSI_0008_M.png",
|
| 208 |
+
"BUSI_0299_B.png",
|
| 209 |
+
"BUSI_0376_B.png",
|
| 210 |
+
"BUSI_0343_B.png",
|
| 211 |
+
"BUSI_0235_B.png",
|
| 212 |
+
"BUSI_0139_B.png",
|
| 213 |
+
"BUSI_0049_B.png",
|
| 214 |
+
"BUSI_0239_B.png",
|
| 215 |
+
"BUSI_0255_B.png",
|
| 216 |
+
"BUSI_0164_M.png",
|
| 217 |
+
"BUSI_0165_M.png",
|
| 218 |
+
"BUSI_0309_B.png",
|
| 219 |
+
"BUSI_0183_M.png",
|
| 220 |
+
"BUSI_0349_B.png",
|
| 221 |
+
"BUSI_0078_B.png",
|
| 222 |
+
"BUSI_0025_M.png",
|
| 223 |
+
"BUSI_0093_M.png",
|
| 224 |
+
"BUSI_0277_B.png",
|
| 225 |
+
"BUSI_0189_B.png",
|
| 226 |
+
"BUSI_0138_B.png",
|
| 227 |
+
"BUSI_0012_B.png",
|
| 228 |
+
"BUSI_0202_B.png",
|
| 229 |
+
"BUSI_0351_B.png",
|
| 230 |
+
"BUSI_0372_B.png",
|
| 231 |
+
"BUSI_0096_M.png",
|
| 232 |
+
"BUSI_0103_B.png",
|
| 233 |
+
"BUSI_0298_B.png",
|
| 234 |
+
"BUSI_0411_B.png",
|
| 235 |
+
"BUSI_0210_M.png",
|
| 236 |
+
"BUSI_0169_M.png",
|
| 237 |
+
"BUSI_0318_B.png",
|
| 238 |
+
"BUSI_0073_B.png",
|
| 239 |
+
"BUSI_0265_B.png",
|
| 240 |
+
"BUSI_0400_B.png",
|
| 241 |
+
"BUSI_0221_B.png",
|
| 242 |
+
"BUSI_0103_M.png",
|
| 243 |
+
"BUSI_0399_B.png",
|
| 244 |
+
"BUSI_0281_B.png",
|
| 245 |
+
"BUSI_0037_M.png",
|
| 246 |
+
"BUSI_0126_B.png",
|
| 247 |
+
"BUSI_0059_B.png",
|
| 248 |
+
"BUSI_0161_M.png",
|
| 249 |
+
"BUSI_0288_B.png",
|
| 250 |
+
"BUSI_0179_M.png",
|
| 251 |
+
"BUSI_0132_M.png",
|
| 252 |
+
"BUSI_0422_B.png",
|
| 253 |
+
"BUSI_0196_B.png",
|
| 254 |
+
"BUSI_0131_M.png",
|
| 255 |
+
"BUSI_0056_M.png",
|
| 256 |
+
"BUSI_0129_M.png",
|
| 257 |
+
"BUSI_0236_B.png",
|
| 258 |
+
"BUSI_0045_B.png",
|
| 259 |
+
"BUSI_0356_B.png",
|
| 260 |
+
"BUSI_0065_M.png",
|
| 261 |
+
"BUSI_0116_B.png",
|
| 262 |
+
"BUSI_0110_M.png",
|
| 263 |
+
"BUSI_0386_B.png",
|
| 264 |
+
"BUSI_0228_B.png",
|
| 265 |
+
"BUSI_0231_B.png",
|
| 266 |
+
"BUSI_0055_B.png",
|
| 267 |
+
"BUSI_0012_M.png",
|
| 268 |
+
"BUSI_0118_B.png",
|
| 269 |
+
"BUSI_0198_M.png",
|
| 270 |
+
"BUSI_0194_B.png",
|
| 271 |
+
"BUSI_0380_B.png",
|
| 272 |
+
"BUSI_0361_B.png",
|
| 273 |
+
"BUSI_0089_M.png",
|
| 274 |
+
"BUSI_0104_B.png",
|
| 275 |
+
"BUSI_0427_B.png",
|
| 276 |
+
"BUSI_0135_B.png",
|
| 277 |
+
"BUSI_0258_B.png",
|
| 278 |
+
"BUSI_0188_B.png",
|
| 279 |
+
"BUSI_0426_B.png",
|
| 280 |
+
"BUSI_0243_B.png",
|
| 281 |
+
"BUSI_0405_B.png",
|
| 282 |
+
"BUSI_0173_M.png",
|
| 283 |
+
"BUSI_0194_M.png",
|
| 284 |
+
"BUSI_0159_B.png",
|
| 285 |
+
"BUSI_0124_B.png",
|
| 286 |
+
"BUSI_0022_B.png",
|
| 287 |
+
"BUSI_0058_B.png",
|
| 288 |
+
"BUSI_0335_B.png",
|
| 289 |
+
"BUSI_0086_B.png",
|
| 290 |
+
"BUSI_0266_B.png",
|
| 291 |
+
"BUSI_0111_B.png",
|
| 292 |
+
"BUSI_0042_B.png",
|
| 293 |
+
"BUSI_0136_M.png",
|
| 294 |
+
"BUSI_0353_B.png",
|
| 295 |
+
"BUSI_0371_B.png",
|
| 296 |
+
"BUSI_0202_M.png",
|
| 297 |
+
"BUSI_0402_B.png",
|
| 298 |
+
"BUSI_0204_B.png",
|
| 299 |
+
"BUSI_0059_M.png",
|
| 300 |
+
"BUSI_0084_M.png",
|
| 301 |
+
"BUSI_0208_M.png",
|
| 302 |
+
"BUSI_0397_B.png",
|
| 303 |
+
"BUSI_0112_B.png",
|
| 304 |
+
"BUSI_0026_M.png",
|
| 305 |
+
"BUSI_0044_B.png",
|
| 306 |
+
"BUSI_0222_B.png",
|
| 307 |
+
"BUSI_0093_B.png",
|
| 308 |
+
"BUSI_0225_B.png",
|
| 309 |
+
"BUSI_0207_M.png",
|
| 310 |
+
"BUSI_0035_B.png",
|
| 311 |
+
"BUSI_0043_M.png",
|
| 312 |
+
"BUSI_0275_B.png",
|
| 313 |
+
"BUSI_0315_B.png",
|
| 314 |
+
"BUSI_0095_B.png",
|
| 315 |
+
"BUSI_0257_B.png",
|
| 316 |
+
"BUSI_0430_B.png",
|
| 317 |
+
"BUSI_0146_B.png",
|
| 318 |
+
"BUSI_0290_B.png",
|
| 319 |
+
"BUSI_0377_B.png",
|
| 320 |
+
"BUSI_0418_B.png",
|
| 321 |
+
"BUSI_0091_M.png",
|
| 322 |
+
"BUSI_0118_M.png",
|
| 323 |
+
"BUSI_0151_M.png",
|
| 324 |
+
"BUSI_0293_B.png",
|
| 325 |
+
"BUSI_0269_B.png",
|
| 326 |
+
"BUSI_0071_M.png",
|
| 327 |
+
"BUSI_0185_M.png",
|
| 328 |
+
"BUSI_0076_M.png",
|
| 329 |
+
"BUSI_0216_B.png",
|
| 330 |
+
"BUSI_0355_B.png",
|
| 331 |
+
"BUSI_0359_B.png",
|
| 332 |
+
"BUSI_0007_M.png",
|
| 333 |
+
"BUSI_0415_B.png",
|
| 334 |
+
"BUSI_0063_M.png",
|
| 335 |
+
"BUSI_0390_B.png",
|
| 336 |
+
"BUSI_0394_B.png",
|
| 337 |
+
"BUSI_0196_M.png",
|
| 338 |
+
"BUSI_0350_B.png",
|
| 339 |
+
"BUSI_0256_B.png",
|
| 340 |
+
"BUSI_0133_M.png",
|
| 341 |
+
"BUSI_0197_B.png",
|
| 342 |
+
"BUSI_0214_B.png",
|
| 343 |
+
"BUSI_0198_B.png",
|
| 344 |
+
"BUSI_0170_M.png",
|
| 345 |
+
"BUSI_0130_M.png",
|
| 346 |
+
"BUSI_0036_B.png",
|
| 347 |
+
"BUSI_0083_B.png",
|
| 348 |
+
"BUSI_0206_B.png",
|
| 349 |
+
"BUSI_0069_B.png",
|
| 350 |
+
"BUSI_0208_B.png",
|
| 351 |
+
"BUSI_0367_B.png",
|
| 352 |
+
"BUSI_0128_B.png",
|
| 353 |
+
"BUSI_0165_B.png",
|
| 354 |
+
"BUSI_0096_B.png",
|
| 355 |
+
"BUSI_0136_B.png",
|
| 356 |
+
"BUSI_0069_M.png",
|
| 357 |
+
"BUSI_0084_B.png",
|
| 358 |
+
"BUSI_0131_B.png",
|
| 359 |
+
"BUSI_0052_M.png",
|
| 360 |
+
"BUSI_0048_M.png",
|
| 361 |
+
"BUSI_0062_B.png",
|
| 362 |
+
"BUSI_0253_B.png",
|
| 363 |
+
"BUSI_0263_B.png",
|
| 364 |
+
"BUSI_0295_B.png",
|
| 365 |
+
"BUSI_0242_B.png",
|
| 366 |
+
"BUSI_0308_B.png",
|
| 367 |
+
"BUSI_0252_B.png",
|
| 368 |
+
"BUSI_0414_B.png",
|
| 369 |
+
"BUSI_0031_B.png",
|
| 370 |
+
"BUSI_0043_B.png",
|
| 371 |
+
"BUSI_0109_M.png",
|
| 372 |
+
"BUSI_0099_B.png",
|
| 373 |
+
"BUSI_0294_B.png",
|
| 374 |
+
"BUSI_0028_M.png",
|
| 375 |
+
"BUSI_0143_M.png",
|
| 376 |
+
"BUSI_0374_B.png",
|
| 377 |
+
"BUSI_0162_B.png",
|
| 378 |
+
"BUSI_0057_M.png",
|
| 379 |
+
"BUSI_0034_B.png",
|
| 380 |
+
"BUSI_0098_M.png",
|
| 381 |
+
"BUSI_0024_B.png",
|
| 382 |
+
"BUSI_0001_B.png",
|
| 383 |
+
"BUSI_0259_B.png",
|
| 384 |
+
"BUSI_0127_B.png",
|
| 385 |
+
"BUSI_0354_B.png",
|
| 386 |
+
"BUSI_0153_B.png",
|
| 387 |
+
"BUSI_0157_B.png",
|
| 388 |
+
"BUSI_0364_B.png",
|
| 389 |
+
"BUSI_0177_M.png",
|
| 390 |
+
"BUSI_0413_B.png",
|
| 391 |
+
"BUSI_0247_B.png",
|
| 392 |
+
"BUSI_0174_M.png",
|
| 393 |
+
"BUSI_0230_B.png",
|
| 394 |
+
"BUSI_0115_M.png",
|
| 395 |
+
"BUSI_0058_M.png",
|
| 396 |
+
"BUSI_0046_M.png",
|
| 397 |
+
"BUSI_0082_B.png",
|
| 398 |
+
"BUSI_0076_B.png",
|
| 399 |
+
"BUSI_0001_M.png",
|
| 400 |
+
"BUSI_0284_B.png",
|
| 401 |
+
"BUSI_0360_B.png",
|
| 402 |
+
"BUSI_0031_M.png",
|
| 403 |
+
"BUSI_0002_B.png",
|
| 404 |
+
"BUSI_0020_M.png",
|
| 405 |
+
"BUSI_0133_B.png",
|
| 406 |
+
"BUSI_0097_M.png",
|
| 407 |
+
"BUSI_0334_B.png",
|
| 408 |
+
"BUSI_0053_M.png",
|
| 409 |
+
"BUSI_0156_B.png",
|
| 410 |
+
"BUSI_0010_M.png",
|
| 411 |
+
"BUSI_0432_B.png",
|
| 412 |
+
"BUSI_0040_M.png",
|
| 413 |
+
"BUSI_0066_B.png",
|
| 414 |
+
"BUSI_0081_B.png",
|
| 415 |
+
"BUSI_0207_B.png",
|
| 416 |
+
"BUSI_0218_B.png",
|
| 417 |
+
"BUSI_0433_B.png",
|
| 418 |
+
"BUSI_0170_B.png",
|
| 419 |
+
"BUSI_0132_B.png",
|
| 420 |
+
"BUSI_0085_B.png",
|
| 421 |
+
"BUSI_0079_B.png",
|
| 422 |
+
"BUSI_0192_M.png",
|
| 423 |
+
"BUSI_0195_M.png",
|
| 424 |
+
"BUSI_0248_B.png",
|
| 425 |
+
"BUSI_0056_B.png",
|
| 426 |
+
"BUSI_0206_M.png",
|
| 427 |
+
"BUSI_0268_B.png",
|
| 428 |
+
"BUSI_0014_B.png",
|
| 429 |
+
"BUSI_0272_B.png",
|
| 430 |
+
"BUSI_0305_B.png",
|
| 431 |
+
"BUSI_0429_B.png",
|
| 432 |
+
"BUSI_0330_B.png",
|
| 433 |
+
"BUSI_0110_B.png",
|
| 434 |
+
"BUSI_0143_B.png",
|
| 435 |
+
"BUSI_0029_M.png",
|
| 436 |
+
"BUSI_0382_B.png",
|
| 437 |
+
"BUSI_0039_M.png",
|
| 438 |
+
"BUSI_0038_B.png",
|
| 439 |
+
"BUSI_0251_B.png",
|
| 440 |
+
"BUSI_0050_B.png",
|
| 441 |
+
"BUSI_0004_B.png",
|
| 442 |
+
"BUSI_0425_B.png",
|
| 443 |
+
"BUSI_0070_B.png",
|
| 444 |
+
"BUSI_0033_M.png",
|
| 445 |
+
"BUSI_0283_B.png",
|
| 446 |
+
"BUSI_0260_B.png",
|
| 447 |
+
"BUSI_0151_B.png",
|
| 448 |
+
"BUSI_0342_B.png",
|
| 449 |
+
"BUSI_0321_B.png",
|
| 450 |
+
"BUSI_0200_B.png",
|
| 451 |
+
"BUSI_0157_M.png",
|
| 452 |
+
"BUSI_0297_B.png",
|
| 453 |
+
"BUSI_0123_M.png",
|
| 454 |
+
"BUSI_0016_M.png",
|
| 455 |
+
"BUSI_0210_B.png",
|
| 456 |
+
"BUSI_0022_M.png",
|
| 457 |
+
"BUSI_0141_M.png",
|
| 458 |
+
"BUSI_0166_M.png",
|
| 459 |
+
"BUSI_0105_M.png",
|
| 460 |
+
"BUSI_0363_B.png",
|
| 461 |
+
"BUSI_0034_M.png",
|
| 462 |
+
"BUSI_0061_M.png",
|
| 463 |
+
"BUSI_0211_B.png",
|
| 464 |
+
"BUSI_0067_M.png",
|
| 465 |
+
"BUSI_0125_B.png",
|
| 466 |
+
"BUSI_0193_M.png",
|
| 467 |
+
"BUSI_0015_B.png",
|
| 468 |
+
"BUSI_0107_B.png",
|
| 469 |
+
"BUSI_0025_B.png",
|
| 470 |
+
"BUSI_0108_M.png",
|
| 471 |
+
"BUSI_0062_M.png",
|
| 472 |
+
"BUSI_0140_B.png",
|
| 473 |
+
"BUSI_0191_B.png",
|
| 474 |
+
"BUSI_0175_M.png",
|
| 475 |
+
"BUSI_0174_B.png",
|
| 476 |
+
"BUSI_0389_B.png",
|
| 477 |
+
"BUSI_0278_B.png",
|
| 478 |
+
"BUSI_0213_B.png",
|
| 479 |
+
"BUSI_0393_B.png",
|
| 480 |
+
"BUSI_0033_B.png",
|
| 481 |
+
"BUSI_0054_M.png",
|
| 482 |
+
"BUSI_0080_M.png",
|
| 483 |
+
"BUSI_0220_B.png",
|
| 484 |
+
"BUSI_0019_B.png",
|
| 485 |
+
"BUSI_0095_M.png",
|
| 486 |
+
"BUSI_0195_B.png",
|
| 487 |
+
"BUSI_0312_B.png",
|
| 488 |
+
"BUSI_0168_B.png",
|
| 489 |
+
"BUSI_0345_B.png",
|
| 490 |
+
"BUSI_0329_B.png",
|
| 491 |
+
"BUSI_0325_B.png",
|
| 492 |
+
"BUSI_0077_B.png",
|
| 493 |
+
"BUSI_0032_M.png",
|
| 494 |
+
"BUSI_0234_B.png",
|
| 495 |
+
"BUSI_0178_M.png",
|
| 496 |
+
"BUSI_0156_M.png",
|
| 497 |
+
"BUSI_0017_B.png",
|
| 498 |
+
"BUSI_0180_B.png",
|
| 499 |
+
"BUSI_0003_B.png",
|
| 500 |
+
"BUSI_0007_B.png",
|
| 501 |
+
"BUSI_0117_M.png",
|
| 502 |
+
"BUSI_0369_B.png",
|
| 503 |
+
"BUSI_0331_B.png",
|
| 504 |
+
"BUSI_0375_B.png",
|
| 505 |
+
"BUSI_0385_B.png",
|
| 506 |
+
"BUSI_0324_B.png",
|
| 507 |
+
"BUSI_0083_M.png",
|
| 508 |
+
"BUSI_0040_B.png",
|
| 509 |
+
"BUSI_0026_B.png",
|
| 510 |
+
"BUSI_0190_M.png",
|
| 511 |
+
"BUSI_0123_B.png",
|
| 512 |
+
"BUSI_0203_M.png",
|
| 513 |
+
"BUSI_0021_M.png",
|
| 514 |
+
"BUSI_0416_B.png",
|
| 515 |
+
"BUSI_0215_B.png",
|
| 516 |
+
"BUSI_0246_B.png",
|
| 517 |
+
"BUSI_0041_B.png",
|
| 518 |
+
"BUSI_0105_B.png",
|
| 519 |
+
"BUSI_0182_B.png",
|
| 520 |
+
"BUSI_0129_B.png"
|
| 521 |
+
],
|
| 522 |
+
"global_mean": 84.33389124297284,
|
| 523 |
+
"global_std": 56.715290540672065,
|
| 524 |
+
"num_images": 518,
|
| 525 |
+
"total_pixels": 477165084
|
| 526 |
+
}
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/evaluation.json
ADDED
|
@@ -0,0 +1,824 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric_name": "val_refine_score",
|
| 3 |
+
"best_metric_value": 0.5724109242210832,
|
| 4 |
+
"checkpoint_mode": "best",
|
| 5 |
+
"checkpoint_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/checkpoints/best.pt",
|
| 6 |
+
"metrics": {
|
| 7 |
+
"biou": {
|
| 8 |
+
"mean": 0.43836724758148193,
|
| 9 |
+
"std": 0.23848570883274078
|
| 10 |
+
},
|
| 11 |
+
"biou_contour": {
|
| 12 |
+
"mean": 0.15062010288238525,
|
| 13 |
+
"std": 0.1202082708477974
|
| 14 |
+
},
|
| 15 |
+
"dice": {
|
| 16 |
+
"mean": 0.8223764300346375,
|
| 17 |
+
"std": 0.19792383909225464
|
| 18 |
+
},
|
| 19 |
+
"hd95": {
|
| 20 |
+
"mean": 10.844902992248535,
|
| 21 |
+
"std": 13.226529121398926
|
| 22 |
+
},
|
| 23 |
+
"iou": {
|
| 24 |
+
"mean": 0.7351952791213989,
|
| 25 |
+
"std": 0.2227678894996643
|
| 26 |
+
},
|
| 27 |
+
"ppv": {
|
| 28 |
+
"mean": 0.8383106589317322,
|
| 29 |
+
"std": 0.20107269287109375
|
| 30 |
+
},
|
| 31 |
+
"sen": {
|
| 32 |
+
"mean": 0.8480129241943359,
|
| 33 |
+
"std": 0.2086656093597412
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"per_sample": [
|
| 37 |
+
{
|
| 38 |
+
"biou": 0.7423729686871293,
|
| 39 |
+
"biou_contour": 0.30275293325418967,
|
| 40 |
+
"dice": 0.9531737821879519,
|
| 41 |
+
"hd95": 1.4142135381698608,
|
| 42 |
+
"inference_time_ms": 9.397693705977872,
|
| 43 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 44 |
+
"iou": 0.9105367971099807,
|
| 45 |
+
"ppv": 0.9252525403530222,
|
| 46 |
+
"sample_id": "BUSI_0006_B",
|
| 47 |
+
"sen": 0.9828326217097378
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"biou": 0.3491865645573761,
|
| 51 |
+
"biou_contour": 0.1309527258124104,
|
| 52 |
+
"dice": 0.9028815394108447,
|
| 53 |
+
"hd95": 6.324555397033691,
|
| 54 |
+
"inference_time_ms": 9.397693705977872,
|
| 55 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 56 |
+
"iou": 0.8229572070546105,
|
| 57 |
+
"ppv": 0.8840125452449036,
|
| 58 |
+
"sample_id": "BUSI_0077_M",
|
| 59 |
+
"sen": 0.9225736138182327
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"biou": 0.6187053102839495,
|
| 63 |
+
"biou_contour": 0.2000013333311111,
|
| 64 |
+
"dice": 0.8503937596874962,
|
| 65 |
+
"hd95": 2.2360680103302,
|
| 66 |
+
"inference_time_ms": 9.397693705977872,
|
| 67 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 68 |
+
"iou": 0.7397262056669824,
|
| 69 |
+
"ppv": 0.9818181983470924,
|
| 70 |
+
"sample_id": "BUSI_0071_B",
|
| 71 |
+
"sen": 0.7500001736109906
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"biou": 0.8209877648223673,
|
| 75 |
+
"biou_contour": 0.4126993449216747,
|
| 76 |
+
"dice": 0.942779307144603,
|
| 77 |
+
"hd95": 1.0,
|
| 78 |
+
"inference_time_ms": 9.397693705977872,
|
| 79 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 80 |
+
"iou": 0.8917526331171994,
|
| 81 |
+
"ppv": 0.8917526331171994,
|
| 82 |
+
"sample_id": "BUSI_0338_B",
|
| 83 |
+
"sen": 1.0
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"biou": 0.851063909008559,
|
| 87 |
+
"biou_contour": 0.47826162570778885,
|
| 88 |
+
"dice": 0.9639468759114087,
|
| 89 |
+
"hd95": 1.0,
|
| 90 |
+
"inference_time_ms": 9.397693705977872,
|
| 91 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 92 |
+
"iou": 0.9304029558963532,
|
| 93 |
+
"ppv": 0.9513108796588466,
|
| 94 |
+
"sample_id": "BUSI_0089_B",
|
| 95 |
+
"sen": 0.9769230857988133
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"biou": 0.4732621025050665,
|
| 99 |
+
"biou_contour": 0.13779561504109644,
|
| 100 |
+
"dice": 0.9453244776360634,
|
| 101 |
+
"hd95": 3.0,
|
| 102 |
+
"inference_time_ms": 9.397693705977872,
|
| 103 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 104 |
+
"iou": 0.896317834480725,
|
| 105 |
+
"ppv": 0.9259259296333369,
|
| 106 |
+
"sample_id": "BUSI_0276_B",
|
| 107 |
+
"sen": 0.9655532377059897
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"biou": 0.6546276174655491,
|
| 111 |
+
"biou_contour": 0.1939398824606773,
|
| 112 |
+
"dice": 0.942701231739343,
|
| 113 |
+
"hd95": 2.0,
|
| 114 |
+
"inference_time_ms": 9.397693705977872,
|
| 115 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 116 |
+
"iou": 0.8916129172112365,
|
| 117 |
+
"ppv": 0.9531034547443511,
|
| 118 |
+
"sample_id": "BUSI_0241_B",
|
| 119 |
+
"sen": 0.9325236258402664
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"biou": 0.34142125798591716,
|
| 123 |
+
"biou_contour": 0.06632700697601684,
|
| 124 |
+
"dice": 0.8681842314354562,
|
| 125 |
+
"hd95": 5.932379245758057,
|
| 126 |
+
"inference_time_ms": 9.397693705977872,
|
| 127 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 128 |
+
"iou": 0.7670720517238492,
|
| 129 |
+
"ppv": 0.7735849270202899,
|
| 130 |
+
"sample_id": "BUSI_0303_B",
|
| 131 |
+
"sen": 0.9891435477510799
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"biou": 0.21366381690128486,
|
| 135 |
+
"biou_contour": 0.07517105349178738,
|
| 136 |
+
"dice": 0.8375499355852206,
|
| 137 |
+
"hd95": 15.078046798706055,
|
| 138 |
+
"inference_time_ms": 9.397693705977872,
|
| 139 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 140 |
+
"iou": 0.7205040155669183,
|
| 141 |
+
"ppv": 0.9794456561991387,
|
| 142 |
+
"sample_id": "BUSI_0015_M",
|
| 143 |
+
"sen": 0.7315654865883814
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"biou": 0.7098215581153758,
|
| 147 |
+
"biou_contour": 0.23595591465627566,
|
| 148 |
+
"dice": 0.9290780267592151,
|
| 149 |
+
"hd95": 1.4142135381698608,
|
| 150 |
+
"inference_time_ms": 9.397693705977872,
|
| 151 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 152 |
+
"iou": 0.8675497127318832,
|
| 153 |
+
"ppv": 0.8972603091574284,
|
| 154 |
+
"sample_id": "BUSI_0115_B",
|
| 155 |
+
"sen": 0.963235307634078
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"biou": 0.0830357961575182,
|
| 159 |
+
"biou_contour": 0.023952388038207175,
|
| 160 |
+
"dice": 0.4373688090493768,
|
| 161 |
+
"hd95": 19.40743064880371,
|
| 162 |
+
"inference_time_ms": 9.397693705977872,
|
| 163 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 164 |
+
"iou": 0.27989255352026177,
|
| 165 |
+
"ppv": 0.7284382600887809,
|
| 166 |
+
"sample_id": "BUSI_0187_M",
|
| 167 |
+
"sen": 0.3125000343749983
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"biou": 0.7351779702853872,
|
| 171 |
+
"biou_contour": 0.33695724243777997,
|
| 172 |
+
"dice": 0.9445843898508325,
|
| 173 |
+
"hd95": 2.0,
|
| 174 |
+
"inference_time_ms": 9.397693705977872,
|
| 175 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 176 |
+
"iou": 0.8949880918882835,
|
| 177 |
+
"ppv": 0.9640102920282025,
|
| 178 |
+
"sample_id": "BUSI_0117_B",
|
| 179 |
+
"sen": 0.9259259442158162
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"biou": 0.5608466382986529,
|
| 183 |
+
"biou_contour": 0.14077711612761354,
|
| 184 |
+
"dice": 0.943476415491865,
|
| 185 |
+
"hd95": 2.0,
|
| 186 |
+
"inference_time_ms": 9.397693705977872,
|
| 187 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 188 |
+
"iou": 0.8930008131133699,
|
| 189 |
+
"ppv": 0.9351305867623768,
|
| 190 |
+
"sample_id": "BUSI_0366_B",
|
| 191 |
+
"sen": 0.9519725598651321
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"biou": 0.386571781630541,
|
| 195 |
+
"biou_contour": 0.10979254902298251,
|
| 196 |
+
"dice": 0.8315757809106423,
|
| 197 |
+
"hd95": 30.668222427368164,
|
| 198 |
+
"inference_time_ms": 9.397693705977872,
|
| 199 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 200 |
+
"iou": 0.711707080365803,
|
| 201 |
+
"ppv": 0.7528641706020638,
|
| 202 |
+
"sample_id": "BUSI_0171_M",
|
| 203 |
+
"sen": 0.9286675687303116
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"biou": 0.07697418201896603,
|
| 207 |
+
"biou_contour": 0.0364965847940183,
|
| 208 |
+
"dice": 0.4015067047780873,
|
| 209 |
+
"hd95": 49.91731262207031,
|
| 210 |
+
"inference_time_ms": 9.397693705977872,
|
| 211 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 212 |
+
"iou": 0.25117822916428295,
|
| 213 |
+
"ppv": 0.2653023734273161,
|
| 214 |
+
"sample_id": "BUSI_0176_M",
|
| 215 |
+
"sen": 0.8251146889269101
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"biou": 0.1461001661175689,
|
| 219 |
+
"biou_contour": 0.038306645502692444,
|
| 220 |
+
"dice": 0.7579896597534855,
|
| 221 |
+
"hd95": 18.812192916870117,
|
| 222 |
+
"inference_time_ms": 9.397693705977872,
|
| 223 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 224 |
+
"iou": 0.6102925558340262,
|
| 225 |
+
"ppv": 0.8834621365235815,
|
| 226 |
+
"sample_id": "BUSI_0030_M",
|
| 227 |
+
"sen": 0.6637250426445648
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"biou": 0.44420834811813514,
|
| 231 |
+
"biou_contour": 0.10802496665896093,
|
| 232 |
+
"dice": 0.9427007309726144,
|
| 233 |
+
"hd95": 4.265591621398926,
|
| 234 |
+
"inference_time_ms": 9.397693705977872,
|
| 235 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 236 |
+
"iou": 0.8916120161680353,
|
| 237 |
+
"ppv": 0.9612951261148074,
|
| 238 |
+
"sample_id": "BUSI_0120_M",
|
| 239 |
+
"sen": 0.9248120327672026
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"biou": 0.3795067002365559,
|
| 243 |
+
"biou_contour": 0.12427770974632668,
|
| 244 |
+
"dice": 0.8685331750294225,
|
| 245 |
+
"hd95": 6.227839946746826,
|
| 246 |
+
"inference_time_ms": 9.397693705977872,
|
| 247 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 248 |
+
"iou": 0.7676170108866589,
|
| 249 |
+
"ppv": 0.807126707741702,
|
| 250 |
+
"sample_id": "BUSI_0204_M",
|
| 251 |
+
"sen": 0.9400527048713633
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"biou": 0.5719426000206476,
|
| 255 |
+
"biou_contour": 0.12844116656773708,
|
| 256 |
+
"dice": 0.8965517396474153,
|
| 257 |
+
"hd95": 2.0,
|
| 258 |
+
"inference_time_ms": 9.397693705977872,
|
| 259 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 260 |
+
"iou": 0.8125000509510731,
|
| 261 |
+
"ppv": 0.8147139469444286,
|
| 262 |
+
"sample_id": "BUSI_0388_B",
|
| 263 |
+
"sen": 0.9966666677777775
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"biou": 0.17371942239869584,
|
| 267 |
+
"biou_contour": 0.03984837953541186,
|
| 268 |
+
"dice": 0.8872085706435451,
|
| 269 |
+
"hd95": 10.1461763381958,
|
| 270 |
+
"inference_time_ms": 9.397693705977872,
|
| 271 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 272 |
+
"iou": 0.7972819964846789,
|
| 273 |
+
"ppv": 0.9649500692196971,
|
| 274 |
+
"sample_id": "BUSI_0409_B",
|
| 275 |
+
"sen": 0.8210596497657506
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"biou": 0.19631910058086907,
|
| 279 |
+
"biou_contour": 0.05387237243354464,
|
| 280 |
+
"dice": 0.5136087251486159,
|
| 281 |
+
"hd95": 37.96839904785156,
|
| 282 |
+
"inference_time_ms": 9.397693705977872,
|
| 283 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 284 |
+
"iou": 0.34554074340625834,
|
| 285 |
+
"ppv": 0.3923679357941323,
|
| 286 |
+
"sample_id": "BUSI_0172_M",
|
| 287 |
+
"sen": 0.7432808393622947
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"biou": 0.7187502197263909,
|
| 291 |
+
"biou_contour": 0.34615510354787776,
|
| 292 |
+
"dice": 0.8906883033650593,
|
| 293 |
+
"hd95": 2.4556310176849365,
|
| 294 |
+
"inference_time_ms": 9.397693705977872,
|
| 295 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 296 |
+
"iou": 0.8029198518833198,
|
| 297 |
+
"ppv": 0.8661418376835924,
|
| 298 |
+
"sample_id": "BUSI_0185_B",
|
| 299 |
+
"sen": 0.9166667361110532
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"biou": 0.7216497714950809,
|
| 303 |
+
"biou_contour": 0.2391320888432851,
|
| 304 |
+
"dice": 0.8914286334693523,
|
| 305 |
+
"hd95": 1.0,
|
| 306 |
+
"inference_time_ms": 9.397693705977872,
|
| 307 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 308 |
+
"iou": 0.8041239132743162,
|
| 309 |
+
"ppv": 0.876404633253221,
|
| 310 |
+
"sample_id": "BUSI_0301_B",
|
| 311 |
+
"sen": 0.9069768523524973
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"biou": 0.25207992911148674,
|
| 315 |
+
"biou_contour": 0.034301046358562966,
|
| 316 |
+
"dice": 0.9223482141187281,
|
| 317 |
+
"hd95": 6.324555397033691,
|
| 318 |
+
"inference_time_ms": 9.397693705977872,
|
| 319 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 320 |
+
"iou": 0.8558870576481871,
|
| 321 |
+
"ppv": 0.8660377394598993,
|
| 322 |
+
"sample_id": "BUSI_0018_B",
|
| 323 |
+
"sen": 0.9864906359689704
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"biou": 0.032660995901921626,
|
| 327 |
+
"biou_contour": 0.003533921012748759,
|
| 328 |
+
"dice": 0.2672811258530462,
|
| 329 |
+
"hd95": 38.8508415222168,
|
| 330 |
+
"inference_time_ms": 9.397693705977872,
|
| 331 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 332 |
+
"iou": 0.15425534561153484,
|
| 333 |
+
"ppv": 0.5005076649230797,
|
| 334 |
+
"sample_id": "BUSI_0233_B",
|
| 335 |
+
"sen": 0.1823225154466525
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"biou": 0.7258065400624065,
|
| 339 |
+
"biou_contour": 0.26890817738808626,
|
| 340 |
+
"dice": 0.9356435723213401,
|
| 341 |
+
"hd95": 1.4142135381698608,
|
| 342 |
+
"inference_time_ms": 9.397693705977872,
|
| 343 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 344 |
+
"iou": 0.8790697955651638,
|
| 345 |
+
"ppv": 0.908653868112051,
|
| 346 |
+
"sample_id": "BUSI_0419_B",
|
| 347 |
+
"sen": 0.9642857233964991
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"biou": 0.29379574930734503,
|
| 351 |
+
"biou_contour": 0.037433669821566935,
|
| 352 |
+
"dice": 0.8280442931332624,
|
| 353 |
+
"hd95": 5.099019527435303,
|
| 354 |
+
"inference_time_ms": 9.397693705977872,
|
| 355 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 356 |
+
"iou": 0.706549155346454,
|
| 357 |
+
"ppv": 0.7946175928303693,
|
| 358 |
+
"sample_id": "BUSI_0336_B",
|
| 359 |
+
"sen": 0.8644068005536517
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"biou": 0.794029912229877,
|
| 363 |
+
"biou_contour": 0.36666719444400464,
|
| 364 |
+
"dice": 0.9697908621385855,
|
| 365 |
+
"hd95": 1.0,
|
| 366 |
+
"inference_time_ms": 9.397693705977872,
|
| 367 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 368 |
+
"iou": 0.9413533922776853,
|
| 369 |
+
"ppv": 0.9952305254005523,
|
| 370 |
+
"sample_id": "BUSI_0373_B",
|
| 371 |
+
"sen": 0.9456193435620327
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"biou": 0.1683850226142573,
|
| 375 |
+
"biou_contour": 0.056180305516682294,
|
| 376 |
+
"dice": 0.2592087817729344,
|
| 377 |
+
"hd95": 30.12056541442871,
|
| 378 |
+
"inference_time_ms": 9.397693705977872,
|
| 379 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 380 |
+
"iou": 0.14890288801701504,
|
| 381 |
+
"ppv": 0.8370044770905387,
|
| 382 |
+
"sample_id": "BUSI_0018_M",
|
| 383 |
+
"sen": 0.15334954371674386
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"biou": 0.2668681503657452,
|
| 387 |
+
"biou_contour": 0.05405433812182039,
|
| 388 |
+
"dice": 0.851167847605436,
|
| 389 |
+
"hd95": 7.713011741638184,
|
| 390 |
+
"inference_time_ms": 9.397693705977872,
|
| 391 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 392 |
+
"iou": 0.7408983574043329,
|
| 393 |
+
"ppv": 0.9738968319517196,
|
| 394 |
+
"sample_id": "BUSI_0102_M",
|
| 395 |
+
"sen": 0.7559093219532406
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"biou": 0.5462557064952835,
|
| 399 |
+
"biou_contour": 0.1428580847713354,
|
| 400 |
+
"dice": 0.8616071737483987,
|
| 401 |
+
"hd95": 2.2360680103302,
|
| 402 |
+
"inference_time_ms": 9.397693705977872,
|
| 403 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 404 |
+
"iou": 0.7568628404459449,
|
| 405 |
+
"ppv": 0.9146919835583016,
|
| 406 |
+
"sample_id": "BUSI_0176_B",
|
| 407 |
+
"sen": 0.8143460698961731
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"biou": 0.3086681491894134,
|
| 411 |
+
"biou_contour": 0.06885276431056908,
|
| 412 |
+
"dice": 0.9060092474060286,
|
| 413 |
+
"hd95": 4.8680338859558105,
|
| 414 |
+
"inference_time_ms": 9.397693705977872,
|
| 415 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 416 |
+
"iou": 0.828169022151689,
|
| 417 |
+
"ppv": 0.9323467266201518,
|
| 418 |
+
"sample_id": "BUSI_0410_B",
|
| 419 |
+
"sen": 0.8811188870569987
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"biou": 0.2802850926140069,
|
| 423 |
+
"biou_contour": 0.06716441115313156,
|
| 424 |
+
"dice": 0.7682753767161927,
|
| 425 |
+
"hd95": 21.123292922973633,
|
| 426 |
+
"inference_time_ms": 9.397693705977872,
|
| 427 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 428 |
+
"iou": 0.6237395671639422,
|
| 429 |
+
"ppv": 0.6339677998838126,
|
| 430 |
+
"sample_id": "BUSI_0184_M",
|
| 431 |
+
"sen": 0.9747861335080534
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"biou": 0.45420565848545247,
|
| 435 |
+
"biou_contour": 0.1906160731331164,
|
| 436 |
+
"dice": 0.9346557769157559,
|
| 437 |
+
"hd95": 8.485280990600586,
|
| 438 |
+
"inference_time_ms": 9.397693705977872,
|
| 439 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 440 |
+
"iou": 0.8773274951443731,
|
| 441 |
+
"ppv": 0.9981308411797246,
|
| 442 |
+
"sample_id": "BUSI_0167_M",
|
| 443 |
+
"sen": 0.8787712594961257
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"biou": 0.5055556929011965,
|
| 447 |
+
"biou_contour": 0.06206961236578457,
|
| 448 |
+
"dice": 0.8650065707724023,
|
| 449 |
+
"hd95": 2.2360680103302,
|
| 450 |
+
"inference_time_ms": 9.397693705977872,
|
| 451 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 452 |
+
"iou": 0.7621247662529408,
|
| 453 |
+
"ppv": 0.7621247662529408,
|
| 454 |
+
"sample_id": "BUSI_0087_B",
|
| 455 |
+
"sen": 1.0
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"biou": 0.6502347828362931,
|
| 459 |
+
"biou_contour": 0.22818817846034284,
|
| 460 |
+
"dice": 0.9763876115242623,
|
| 461 |
+
"hd95": 2.0,
|
| 462 |
+
"inference_time_ms": 9.397693705977872,
|
| 463 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 464 |
+
"iou": 0.9538645909567228,
|
| 465 |
+
"ppv": 0.9686644366089311,
|
| 466 |
+
"sample_id": "BUSI_0068_B",
|
| 467 |
+
"sen": 0.9842349309355508
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"biou": 0.38957073939547876,
|
| 471 |
+
"biou_contour": 0.14285790816258198,
|
| 472 |
+
"dice": 0.7811271584368076,
|
| 473 |
+
"hd95": 7.071067810058594,
|
| 474 |
+
"inference_time_ms": 9.397693705977872,
|
| 475 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 476 |
+
"iou": 0.6408602922881091,
|
| 477 |
+
"ppv": 0.677272800619818,
|
| 478 |
+
"sample_id": "BUSI_0112_M",
|
| 479 |
+
"sen": 0.9226006431576956
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"biou": 0.3316953864295343,
|
| 483 |
+
"biou_contour": 0.09487202695589055,
|
| 484 |
+
"dice": 0.8961695208448326,
|
| 485 |
+
"hd95": 7.943071365356445,
|
| 486 |
+
"inference_time_ms": 9.397693705977872,
|
| 487 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 488 |
+
"iou": 0.8118724213859296,
|
| 489 |
+
"ppv": 0.8980725286483983,
|
| 490 |
+
"sample_id": "BUSI_0114_M",
|
| 491 |
+
"sen": 0.8942745642721351
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"biou": 0.05033565013962667,
|
| 495 |
+
"biou_contour": 0.006116511890974958,
|
| 496 |
+
"dice": 0.5626535760855781,
|
| 497 |
+
"hd95": 17.481412887573242,
|
| 498 |
+
"inference_time_ms": 9.397693705977872,
|
| 499 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 500 |
+
"iou": 0.3914530174592727,
|
| 501 |
+
"ppv": 0.3914530174592727,
|
| 502 |
+
"sample_id": "BUSI_0306_B",
|
| 503 |
+
"sen": 1.0
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"biou": 0.3650486053350868,
|
| 507 |
+
"biou_contour": 0.09467482406070296,
|
| 508 |
+
"dice": 0.9284951987105088,
|
| 509 |
+
"hd95": 5.0,
|
| 510 |
+
"inference_time_ms": 9.397693705977872,
|
| 511 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 512 |
+
"iou": 0.8665338689729791,
|
| 513 |
+
"ppv": 0.9371633774806687,
|
| 514 |
+
"sample_id": "BUSI_0097_B",
|
| 515 |
+
"sen": 0.9199859034196016
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"biou": 0.8500000937499415,
|
| 519 |
+
"biou_contour": 0.466667555554074,
|
| 520 |
+
"dice": 0.9554455555827833,
|
| 521 |
+
"hd95": 1.0,
|
| 522 |
+
"inference_time_ms": 9.397693705977872,
|
| 523 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 524 |
+
"iou": 0.9146919835583016,
|
| 525 |
+
"ppv": 0.9747474875012689,
|
| 526 |
+
"sample_id": "BUSI_0005_B",
|
| 527 |
+
"sen": 0.9368932345178473
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"biou": 0.48387130072819307,
|
| 531 |
+
"biou_contour": 0.07246511236940235,
|
| 532 |
+
"dice": 0.7649403326930946,
|
| 533 |
+
"hd95": 2.888477325439453,
|
| 534 |
+
"inference_time_ms": 9.397693705977872,
|
| 535 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 536 |
+
"iou": 0.6193550842870424,
|
| 537 |
+
"ppv": 0.6193550842870424,
|
| 538 |
+
"sample_id": "BUSI_0091_B",
|
| 539 |
+
"sen": 1.0
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"biou": 0.1424017458872611,
|
| 543 |
+
"biou_contour": 0.040892371581343574,
|
| 544 |
+
"dice": 0.7673977816824823,
|
| 545 |
+
"hd95": 28.28603744506836,
|
| 546 |
+
"inference_time_ms": 9.397693705977872,
|
| 547 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 548 |
+
"iou": 0.6225834853165864,
|
| 549 |
+
"ppv": 0.8966462793367164,
|
| 550 |
+
"sample_id": "BUSI_0072_M",
|
| 551 |
+
"sen": 0.670716319490118
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"biou": 0.5909094628095792,
|
| 555 |
+
"biou_contour": 0.14492877546554278,
|
| 556 |
+
"dice": 0.7428572897958344,
|
| 557 |
+
"hd95": 28.0585994720459,
|
| 558 |
+
"inference_time_ms": 9.397693705977872,
|
| 559 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 560 |
+
"iou": 0.5909094628095792,
|
| 561 |
+
"ppv": 0.6914896899045853,
|
| 562 |
+
"sample_id": "BUSI_0179_B",
|
| 563 |
+
"sen": 0.8024693796674325
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"biou": 0.28957063931648597,
|
| 567 |
+
"biou_contour": 0.06666701234555099,
|
| 568 |
+
"dice": 0.7122785759145647,
|
| 569 |
+
"hd95": 26.309659957885742,
|
| 570 |
+
"inference_time_ms": 9.397693705977872,
|
| 571 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 572 |
+
"iou": 0.5531309721887123,
|
| 573 |
+
"ppv": 0.9526143868277146,
|
| 574 |
+
"sample_id": "BUSI_0200_M",
|
| 575 |
+
"sen": 0.5687805298750702
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"biou": 0.3143382983144946,
|
| 579 |
+
"biou_contour": 0.09117673788919474,
|
| 580 |
+
"dice": 0.891268834792724,
|
| 581 |
+
"hd95": 10.0,
|
| 582 |
+
"inference_time_ms": 9.397693705977872,
|
| 583 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 584 |
+
"iou": 0.8038637916220107,
|
| 585 |
+
"ppv": 0.9835737186068222,
|
| 586 |
+
"sample_id": "BUSI_0067_B",
|
| 587 |
+
"sen": 0.8148025285495344
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"biou": 0.34362947034180114,
|
| 591 |
+
"biou_contour": 0.13772506723049865,
|
| 592 |
+
"dice": 0.7608163460558085,
|
| 593 |
+
"hd95": 10.131365776062012,
|
| 594 |
+
"inference_time_ms": 9.397693705977872,
|
| 595 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 596 |
+
"iou": 0.6139657952614236,
|
| 597 |
+
"ppv": 0.6436464580598815,
|
| 598 |
+
"sample_id": "BUSI_0379_B",
|
| 599 |
+
"sen": 0.930139734503047
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"biou": 0.5395189530906125,
|
| 603 |
+
"biou_contour": 0.23674938630763737,
|
| 604 |
+
"dice": 0.9532275142174071,
|
| 605 |
+
"hd95": 3.822493314743042,
|
| 606 |
+
"inference_time_ms": 9.397693705977872,
|
| 607 |
+
"inference_time_seconds": 0.009397693705977872,
|
| 608 |
+
"iou": 0.9106348600632891,
|
| 609 |
+
"ppv": 0.9352159495342214,
|
| 610 |
+
"sample_id": "BUSI_0158_B",
|
| 611 |
+
"sen": 0.9719464837312696
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"biou": 0.3329533257749913,
|
| 615 |
+
"biou_contour": 0.08965548632569438,
|
| 616 |
+
"dice": 0.888097663069744,
|
| 617 |
+
"hd95": 9.054885864257812,
|
| 618 |
+
"inference_time_ms": 10.765331448055804,
|
| 619 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 620 |
+
"iou": 0.798719130891165,
|
| 621 |
+
"ppv": 0.8151260590510709,
|
| 622 |
+
"sample_id": "BUSI_0119_M",
|
| 623 |
+
"sen": 0.9754189957866483
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"biou": 0.0617783451629131,
|
| 627 |
+
"biou_contour": 0.010593429959019077,
|
| 628 |
+
"dice": 0.6281086056569861,
|
| 629 |
+
"hd95": 32.0,
|
| 630 |
+
"inference_time_ms": 10.765331448055804,
|
| 631 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 632 |
+
"iou": 0.4578413527716389,
|
| 633 |
+
"ppv": 0.9542461021058544,
|
| 634 |
+
"sample_id": "BUSI_0407_B",
|
| 635 |
+
"sen": 0.46811767610750427
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"biou": 0.7490842950395064,
|
| 639 |
+
"biou_contour": 0.28934046226372473,
|
| 640 |
+
"dice": 0.9722116493257842,
|
| 641 |
+
"hd95": 1.0,
|
| 642 |
+
"inference_time_ms": 10.765331448055804,
|
| 643 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 644 |
+
"iou": 0.9459259299314126,
|
| 645 |
+
"ppv": 0.9845798007263068,
|
| 646 |
+
"sample_id": "BUSI_0173_B",
|
| 647 |
+
"sen": 0.9601503789360617
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"biou": 0.463959445283305,
|
| 651 |
+
"biou_contour": 0.14024416455970595,
|
| 652 |
+
"dice": 0.9335612062900832,
|
| 653 |
+
"hd95": 4.4721360206604,
|
| 654 |
+
"inference_time_ms": 10.765331448055804,
|
| 655 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 656 |
+
"iou": 0.8754006460176024,
|
| 657 |
+
"ppv": 0.9771914142579868,
|
| 658 |
+
"sample_id": "BUSI_0421_B",
|
| 659 |
+
"sen": 0.8936605360466039
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"biou": 0.7783784981737848,
|
| 663 |
+
"biou_contour": 0.31506943141173777,
|
| 664 |
+
"dice": 0.9333333481481448,
|
| 665 |
+
"hd95": 1.4142135381698608,
|
| 666 |
+
"inference_time_ms": 10.765331448055804,
|
| 667 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 668 |
+
"iou": 0.8750000520833117,
|
| 669 |
+
"ppv": 0.9502262668659426,
|
| 670 |
+
"sample_id": "BUSI_0348_B",
|
| 671 |
+
"sen": 0.9170306039167668
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"biou": 0.7138729150656316,
|
| 675 |
+
"biou_contour": 0.4051729265750633,
|
| 676 |
+
"dice": 0.9563909807224826,
|
| 677 |
+
"hd95": 2.2124598026275635,
|
| 678 |
+
"inference_time_ms": 10.765331448055804,
|
| 679 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 680 |
+
"iou": 0.9164265250105872,
|
| 681 |
+
"ppv": 0.9891135320196685,
|
| 682 |
+
"sample_id": "BUSI_0023_B",
|
| 683 |
+
"sen": 0.9257642029455309
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"biou": 0.525266020576327,
|
| 687 |
+
"biou_contour": 0.16731549909902763,
|
| 688 |
+
"dice": 0.9496611822444051,
|
| 689 |
+
"hd95": 4.123105525970459,
|
| 690 |
+
"inference_time_ms": 10.765331448055804,
|
| 691 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 692 |
+
"iou": 0.9041474698549552,
|
| 693 |
+
"ppv": 0.9129827867388186,
|
| 694 |
+
"sample_id": "BUSI_0261_B",
|
| 695 |
+
"sen": 0.989409985405447
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"biou": 1.5772868174626472e-07,
|
| 699 |
+
"biou_contour": 5.208330620661135e-07,
|
| 700 |
+
"dice": 1.1587484172945056e-07,
|
| 701 |
+
"hd95": 58.1602668762207,
|
| 702 |
+
"inference_time_ms": 10.765331448055804,
|
| 703 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 704 |
+
"iou": 1.1587484172945056e-07,
|
| 705 |
+
"ppv": 1.626015995769757e-07,
|
| 706 |
+
"sample_id": "BUSI_0302_B",
|
| 707 |
+
"sen": 4.0322564386062747e-07
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"biou": 0.1505263604986126,
|
| 711 |
+
"biou_contour": 0.03963981267751123,
|
| 712 |
+
"dice": 0.8559771536518038,
|
| 713 |
+
"hd95": 12.008319854736328,
|
| 714 |
+
"inference_time_ms": 10.765331448055804,
|
| 715 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 716 |
+
"iou": 0.7482168375852918,
|
| 717 |
+
"ppv": 0.9945484713309203,
|
| 718 |
+
"sample_id": "BUSI_0002_M",
|
| 719 |
+
"sen": 0.7512981244172224
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"biou": 0.7492113960234391,
|
| 723 |
+
"biou_contour": 0.32876742978656176,
|
| 724 |
+
"dice": 0.973445987524261,
|
| 725 |
+
"hd95": 1.4142135381698608,
|
| 726 |
+
"inference_time_ms": 10.765331448055804,
|
| 727 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 728 |
+
"iou": 0.9482657290849071,
|
| 729 |
+
"ppv": 0.9877526033219471,
|
| 730 |
+
"sample_id": "BUSI_0289_B",
|
| 731 |
+
"sen": 0.9595478905682397
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"biou": 0.6188437647015493,
|
| 735 |
+
"biou_contour": 0.190751912860166,
|
| 736 |
+
"dice": 0.9331568541921341,
|
| 737 |
+
"hd95": 2.177051067352295,
|
| 738 |
+
"inference_time_ms": 10.765331448055804,
|
| 739 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 740 |
+
"iou": 0.8746898418498955,
|
| 741 |
+
"ppv": 0.8801498276966507,
|
| 742 |
+
"sample_id": "BUSI_0020_B",
|
| 743 |
+
"sen": 0.9929577474707398
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"biou": 0.22093029295114006,
|
| 747 |
+
"biou_contour": 0.07329867191134244,
|
| 748 |
+
"dice": 0.9058869611553718,
|
| 749 |
+
"hd95": 8.377696990966797,
|
| 750 |
+
"inference_time_ms": 10.765331448055804,
|
| 751 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 752 |
+
"iou": 0.8279646903372777,
|
| 753 |
+
"ppv": 0.9954102124093456,
|
| 754 |
+
"sample_id": "BUSI_0392_B",
|
| 755 |
+
"sen": 0.8311377285955035
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"biou": 0.44683264176101334,
|
| 759 |
+
"biou_contour": 0.10963484729739295,
|
| 760 |
+
"dice": 0.9374375387280124,
|
| 761 |
+
"hd95": 5.656854152679443,
|
| 762 |
+
"inference_time_ms": 10.765331448055804,
|
| 763 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 764 |
+
"iou": 0.8822422918644736,
|
| 765 |
+
"ppv": 0.9606718574079534,
|
| 766 |
+
"sample_id": "BUSI_0370_B",
|
| 767 |
+
"sen": 0.9153005497540769
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"biou": 0.6372203018586217,
|
| 771 |
+
"biou_contour": 0.16774220395412778,
|
| 772 |
+
"dice": 0.9702609018379693,
|
| 773 |
+
"hd95": 2.0,
|
| 774 |
+
"inference_time_ms": 10.765331448055804,
|
| 775 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 776 |
+
"iou": 0.9422395484677694,
|
| 777 |
+
"ppv": 0.9479500909821714,
|
| 778 |
+
"sample_id": "BUSI_0434_B",
|
| 779 |
+
"sen": 0.9936472349160226
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"biou": 0.06320354431138145,
|
| 783 |
+
"biou_contour": 0.006135274191633685,
|
| 784 |
+
"dice": 0.43993392872471254,
|
| 785 |
+
"hd95": 42.035099029541016,
|
| 786 |
+
"inference_time_ms": 10.765331448055804,
|
| 787 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 788 |
+
"iou": 0.2819969960061423,
|
| 789 |
+
"ppv": 0.29634342459957314,
|
| 790 |
+
"sample_id": "BUSI_0199_M",
|
| 791 |
+
"sen": 0.853479866897448
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"biou": 0.6038062969193257,
|
| 795 |
+
"biou_contour": 0.16981171235296588,
|
| 796 |
+
"dice": 0.9492900629091252,
|
| 797 |
+
"hd95": 2.2360680103302,
|
| 798 |
+
"inference_time_ms": 10.765331448055804,
|
| 799 |
+
"inference_time_seconds": 0.010765331448055804,
|
| 800 |
+
"iou": 0.9034749109285783,
|
| 801 |
+
"ppv": 0.9427880787439098,
|
| 802 |
+
"sample_id": "BUSI_0088_M",
|
| 803 |
+
"sen": 0.9558823565455591
|
| 804 |
+
}
|
| 805 |
+
],
|
| 806 |
+
"strategy": 3,
|
| 807 |
+
"timing": {
|
| 808 |
+
"avg_batch_inference_ms": 311.66730052791536,
|
| 809 |
+
"avg_sample_inference_ms": 9.739603141497355,
|
| 810 |
+
"device": "cuda",
|
| 811 |
+
"mean_per_image_inference_ms": 9.739603141497355,
|
| 812 |
+
"mean_per_image_inference_seconds": 0.009739603141497355,
|
| 813 |
+
"num_batches": 2,
|
| 814 |
+
"num_samples": 64,
|
| 815 |
+
"scope": "test_set_evaluation",
|
| 816 |
+
"std_batch_inference_ms": 139.4219973590225,
|
| 817 |
+
"std_per_image_inference_ms": 0.5922045139069394,
|
| 818 |
+
"std_per_image_inference_seconds": 0.0005922045139069394,
|
| 819 |
+
"std_sample_inference_ms": 0.5922045139069394,
|
| 820 |
+
"strategy": 3,
|
| 821 |
+
"tmax": 8,
|
| 822 |
+
"total_inference_ms": 623.3346010558307
|
| 823 |
+
}
|
| 824 |
+
}
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/evaluation_results.xlsx
ADDED
|
Binary file (69.9 kB). View file
|
|
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/evaluation_summary.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"mean_dice": 0.8223764300346375,
|
| 3 |
+
"mean_iou": 0.7351952791213989
|
| 4 |
+
}
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/history.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/low_iou_samples.csv
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
sample_id
|
| 2 |
+
BUSI_0302_B
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/run_config.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"a3c_entropy_coeff": 0.0,
|
| 3 |
+
"aux_action_ce_mix": 0.8726103361457451,
|
| 4 |
+
"backbone_family": "smp",
|
| 5 |
+
"base_split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_010.json",
|
| 6 |
+
"best_checkpoint_metric_name": "val_refine_score",
|
| 7 |
+
"best_checkpoint_metrics": {
|
| 8 |
+
"2": "val_iou",
|
| 9 |
+
"3": "val_refine_score"
|
| 10 |
+
},
|
| 11 |
+
"biou_reward_weight": 1.0,
|
| 12 |
+
"boundary_reward_weight": 0.5,
|
| 13 |
+
"critic_loss_weight": 1.4015767132796022,
|
| 14 |
+
"data_root": "/workspace/BUSI_with_classes",
|
| 15 |
+
"dataset_name": "BUSI_with_classes",
|
| 16 |
+
"dataset_percent": 1.0,
|
| 17 |
+
"dataset_split_policy": "stratified",
|
| 18 |
+
"dataset_splits_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/splits/phase_010.json",
|
| 19 |
+
"decoder_lr": 0.0,
|
| 20 |
+
"dropout_p": 0.015714592843367126,
|
| 21 |
+
"early_stopping_min_delta": 0.0,
|
| 22 |
+
"early_stopping_mode": "auto",
|
| 23 |
+
"early_stopping_monitor": "val_refine_score",
|
| 24 |
+
"early_stopping_patience": 30,
|
| 25 |
+
"early_stopping_start_epoch": 30,
|
| 26 |
+
"elastic_aug_prob": 0.4303652916281717,
|
| 27 |
+
"encoder_lr": 0.0,
|
| 28 |
+
"entropy_alpha_init": 0.005,
|
| 29 |
+
"entropy_lr": 6.618595597183474e-05,
|
| 30 |
+
"entropy_target_ratio": 0.2,
|
| 31 |
+
"epoch_probe_mode": "rolling_random",
|
| 32 |
+
"evaluation_checkpoint_mode": "best",
|
| 33 |
+
"execution_mode": "train_eval",
|
| 34 |
+
"folds_experiment_name": "stratified_holdout_v1",
|
| 35 |
+
"gae_lambda": 0.8306320445782609,
|
| 36 |
+
"gamma": 0.95,
|
| 37 |
+
"grad_clip_norm": 6.0,
|
| 38 |
+
"head_lr": 0.0001971844222061614,
|
| 39 |
+
"iou_reward_weight": 1.0,
|
| 40 |
+
"keep_correct_reward_weight": 0.05,
|
| 41 |
+
"max_epochs": 120,
|
| 42 |
+
"min_alpha": 0.00017019223026554014,
|
| 43 |
+
"normalization_cache_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/norm_stats_BUSI_with_classes_stratified_80_10_10_100pct_phase010_repeat01.json",
|
| 44 |
+
"num_actions": 3,
|
| 45 |
+
"percent_sampling_mode": "incremental",
|
| 46 |
+
"phase_count": 10,
|
| 47 |
+
"phase_index": 10,
|
| 48 |
+
"phase_test_fold_index": 10,
|
| 49 |
+
"phase_val_fold_index": 1,
|
| 50 |
+
"project_dir": "/workspace",
|
| 51 |
+
"refine_delta_large": 0.08,
|
| 52 |
+
"refine_delta_small": 0.03,
|
| 53 |
+
"rl_lr": 0.0001971844222061614,
|
| 54 |
+
"run_name": "phase=010 | repeat=01 | strategy=3 | pct=100%",
|
| 55 |
+
"run_type": "final",
|
| 56 |
+
"save_history_incrementally": false,
|
| 57 |
+
"scheduler_factor": 0.5,
|
| 58 |
+
"scheduler_min_lr": 1e-05,
|
| 59 |
+
"scheduler_patience": 5,
|
| 60 |
+
"scheduler_threshold": 0.001,
|
| 61 |
+
"selected_split_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_010_pct_100_repeat_01.json",
|
| 62 |
+
"smp_decoder_type": "UPerNet",
|
| 63 |
+
"smp_encoder_depth": 5,
|
| 64 |
+
"smp_encoder_name": "tu-pvt_v2_b2",
|
| 65 |
+
"smp_encoder_proj_dim": 192,
|
| 66 |
+
"smp_encoder_weights": "imagenet",
|
| 67 |
+
"split_generation_mode": "fixed_stratified_phases_8_1_1",
|
| 68 |
+
"split_repeat_index": 10,
|
| 69 |
+
"split_seed": 723450912,
|
| 70 |
+
"split_type": "80_10_10",
|
| 71 |
+
"strategy": 3,
|
| 72 |
+
"strategy2_checkpoint_mode": "best",
|
| 73 |
+
"strategy2_checkpoint_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_2/final/checkpoints/best.pt",
|
| 74 |
+
"strategy3_advantage_normalize": false,
|
| 75 |
+
"strategy3_aux_boundary_dice_weight": 0.6979509040767587,
|
| 76 |
+
"strategy3_aux_ce_anneal_epochs": 15,
|
| 77 |
+
"strategy3_aux_ce_anneal_start_epoch": 25,
|
| 78 |
+
"strategy3_aux_ce_floor_fraction": 0.1,
|
| 79 |
+
"strategy3_aux_ce_weight": 0.4,
|
| 80 |
+
"strategy3_decoder_ce_weight": 0.0,
|
| 81 |
+
"strategy3_decoder_dice_weight": 0.0,
|
| 82 |
+
"strategy3_delta_max": 0.1,
|
| 83 |
+
"strategy3_exploration_eps": 0.1,
|
| 84 |
+
"strategy3_exploration_eps_epochs": 20,
|
| 85 |
+
"strategy3_freeze_bootstrapped_segmentation": true,
|
| 86 |
+
"strategy3_mc_disk_cache_enabled": true,
|
| 87 |
+
"strategy3_mc_disk_cache_read": true,
|
| 88 |
+
"strategy3_mc_disk_cache_write": true,
|
| 89 |
+
"strategy3_mc_dropout_enabled": true,
|
| 90 |
+
"strategy3_mc_dropout_p": 0.2,
|
| 91 |
+
"strategy3_mc_dropout_samples": 5,
|
| 92 |
+
"strategy3_r1_progress_weight": 1.0,
|
| 93 |
+
"strategy3_rl_grad_clip_norm": 0.25,
|
| 94 |
+
"strategy3_rl_loss_scale": 10.0,
|
| 95 |
+
"strategy3_sam_attention_grid": 64,
|
| 96 |
+
"strategy3_variant": "lite",
|
| 97 |
+
"subset_manifest_path": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/manifests/subsets/phase_010_pct_100_repeat_01.json",
|
| 98 |
+
"subset_repeat_index": 1,
|
| 99 |
+
"subset_sampling_source": "incremental_chain",
|
| 100 |
+
"subset_seed": 1653428179,
|
| 101 |
+
"threshold": 0.5922320465492188,
|
| 102 |
+
"tmax": 8,
|
| 103 |
+
"train_resume_mode": "off",
|
| 104 |
+
"train_resume_specific_checkpoint": "",
|
| 105 |
+
"train_subset_key": "100",
|
| 106 |
+
"train_subset_source": "incremental_chain",
|
| 107 |
+
"train_subset_variant": 1,
|
| 108 |
+
"vgg_feature_dilation": 1,
|
| 109 |
+
"vgg_feature_scales": 4,
|
| 110 |
+
"weight_decay": 2.7012557725439094e-06,
|
| 111 |
+
"write_epoch_diagnostic": false
|
| 112 |
+
}
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/summary.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_epoch": 72,
|
| 3 |
+
"best_model_metric": 0.5724109242210832,
|
| 4 |
+
"best_model_metric_name": "val_refine_score",
|
| 5 |
+
"best_val_biou": 0.437004029666552,
|
| 6 |
+
"best_val_biou_gain": 0.05234464183570231,
|
| 7 |
+
"best_val_dice": 0.7927068797303527,
|
| 8 |
+
"best_val_iou": 0.708380159951118,
|
| 9 |
+
"best_val_iou_gain": 0.02820180307914244,
|
| 10 |
+
"device_used": "cuda",
|
| 11 |
+
"early_stopping_best_value": 0.5724109242210832,
|
| 12 |
+
"early_stopping_min_delta": 0.0,
|
| 13 |
+
"early_stopping_monitor_mode": "max",
|
| 14 |
+
"early_stopping_monitor_name": "val_refine_score",
|
| 15 |
+
"early_stopping_patience": 30,
|
| 16 |
+
"early_stopping_start_epoch": 30,
|
| 17 |
+
"elapsed_seconds": 1276.2680625915527,
|
| 18 |
+
"epochs_to_best_checkpoint": 72,
|
| 19 |
+
"final_epoch": 102,
|
| 20 |
+
"gpu_name": "NVIDIA A100 80GB PCIe",
|
| 21 |
+
"resumed": false,
|
| 22 |
+
"run_type": "final",
|
| 23 |
+
"seconds_per_epoch": 12.512431986191693,
|
| 24 |
+
"seconds_per_epoch_measured_mean": 12.408194299632063,
|
| 25 |
+
"seconds_per_epoch_measured_std": 0.8456643552471369,
|
| 26 |
+
"strategy": 3,
|
| 27 |
+
"strategy3_bootstrap_loaded": true,
|
| 28 |
+
"strategy3_decoder_state": "frozen",
|
| 29 |
+
"strategy3_encoder_state": "frozen",
|
| 30 |
+
"strategy3_freeze_active": true,
|
| 31 |
+
"strategy3_freeze_requested": true,
|
| 32 |
+
"strategy3_segmentation_head_state": "frozen",
|
| 33 |
+
"time_to_best_seconds": 894.9727710350417
|
| 34 |
+
}
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final/timing.csv
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
scope,strategy,tmax,device,num_batches,num_samples,total_inference_ms,avg_batch_inference_ms,std_batch_inference_ms,avg_sample_inference_ms,std_sample_inference_ms,mean_per_image_inference_ms,std_per_image_inference_ms,mean_per_image_inference_seconds,std_per_image_inference_seconds
|
| 2 |
+
test_set_evaluation,3,8,cuda,2,64,623.334601,311.667301,139.421997,9.739603,0.592205,9.739603,0.592205,0.009739603,0.000592205
|
runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_timing_summary.json
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
+
"completed_strategies": [
|
| 7 |
+
2,
|
| 8 |
+
3
|
| 9 |
+
],
|
| 10 |
+
"completed_strategy_count": 2,
|
| 11 |
+
"phase_index": 2,
|
| 12 |
+
"runs": [
|
| 13 |
+
{
|
| 14 |
+
"dataset_percent": 100,
|
| 15 |
+
"phase_index": 2,
|
| 16 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_2/final",
|
| 17 |
+
"strategy": 2,
|
| 18 |
+
"subset_repeat_index": 1,
|
| 19 |
+
"training_elapsed_seconds": 377.0015754699707
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"dataset_percent": 100,
|
| 23 |
+
"phase_index": 2,
|
| 24 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_002/pct_100/repeat_01/strategy_3/final",
|
| 25 |
+
"strategy": 3,
|
| 26 |
+
"subset_repeat_index": 1,
|
| 27 |
+
"training_elapsed_seconds": 1512.7809295654297
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"training_elapsed_seconds_mean": 944.8912525177002,
|
| 31 |
+
"training_elapsed_seconds_std": 567.8896770477295,
|
| 32 |
+
"updated_at": "2026-08-03T14:08:36.540222+00:00"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"completed_strategies": [
|
| 36 |
+
2,
|
| 37 |
+
3
|
| 38 |
+
],
|
| 39 |
+
"completed_strategy_count": 2,
|
| 40 |
+
"phase_index": 3,
|
| 41 |
+
"runs": [
|
| 42 |
+
{
|
| 43 |
+
"dataset_percent": 100,
|
| 44 |
+
"phase_index": 3,
|
| 45 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_2/final",
|
| 46 |
+
"strategy": 2,
|
| 47 |
+
"subset_repeat_index": 1,
|
| 48 |
+
"training_elapsed_seconds": 123.31218004226685
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"dataset_percent": 100,
|
| 52 |
+
"phase_index": 3,
|
| 53 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_003/pct_100/repeat_01/strategy_3/final",
|
| 54 |
+
"strategy": 3,
|
| 55 |
+
"subset_repeat_index": 1,
|
| 56 |
+
"training_elapsed_seconds": 1497.953530550003
|
| 57 |
+
}
|
| 58 |
+
],
|
| 59 |
+
"training_elapsed_seconds_mean": 810.632855296135,
|
| 60 |
+
"training_elapsed_seconds_std": 687.3206752538681,
|
| 61 |
+
"updated_at": "2026-08-03T14:39:36.867555+00:00"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"completed_strategies": [
|
| 65 |
+
2,
|
| 66 |
+
3
|
| 67 |
+
],
|
| 68 |
+
"completed_strategy_count": 2,
|
| 69 |
+
"phase_index": 4,
|
| 70 |
+
"runs": [
|
| 71 |
+
{
|
| 72 |
+
"dataset_percent": 100,
|
| 73 |
+
"phase_index": 4,
|
| 74 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_2/final",
|
| 75 |
+
"strategy": 2,
|
| 76 |
+
"subset_repeat_index": 1,
|
| 77 |
+
"training_elapsed_seconds": 125.54964017868042
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"dataset_percent": 100,
|
| 81 |
+
"phase_index": 4,
|
| 82 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_004/pct_100/repeat_01/strategy_3/final",
|
| 83 |
+
"strategy": 3,
|
| 84 |
+
"subset_repeat_index": 1,
|
| 85 |
+
"training_elapsed_seconds": 1488.3410377502441
|
| 86 |
+
}
|
| 87 |
+
],
|
| 88 |
+
"training_elapsed_seconds_mean": 806.9453389644623,
|
| 89 |
+
"training_elapsed_seconds_std": 681.3956987857819,
|
| 90 |
+
"updated_at": "2026-08-03T15:10:30.882697+00:00"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"completed_strategies": [
|
| 94 |
+
2,
|
| 95 |
+
3
|
| 96 |
+
],
|
| 97 |
+
"completed_strategy_count": 2,
|
| 98 |
+
"phase_index": 9,
|
| 99 |
+
"runs": [
|
| 100 |
+
{
|
| 101 |
+
"dataset_percent": 100,
|
| 102 |
+
"phase_index": 9,
|
| 103 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_2/final",
|
| 104 |
+
"strategy": 2,
|
| 105 |
+
"subset_repeat_index": 1,
|
| 106 |
+
"training_elapsed_seconds": 155.30842065811157
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"dataset_percent": 100,
|
| 110 |
+
"phase_index": 9,
|
| 111 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_009/pct_100/repeat_01/strategy_3/final",
|
| 112 |
+
"strategy": 3,
|
| 113 |
+
"subset_repeat_index": 1,
|
| 114 |
+
"training_elapsed_seconds": 1512.5201861858368
|
| 115 |
+
}
|
| 116 |
+
],
|
| 117 |
+
"training_elapsed_seconds_mean": 833.9143034219742,
|
| 118 |
+
"training_elapsed_seconds_std": 678.6058827638626,
|
| 119 |
+
"updated_at": "2026-08-03T15:42:04.569624+00:00"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"completed_strategies": [
|
| 123 |
+
2,
|
| 124 |
+
3
|
| 125 |
+
],
|
| 126 |
+
"completed_strategy_count": 2,
|
| 127 |
+
"phase_index": 10,
|
| 128 |
+
"runs": [
|
| 129 |
+
{
|
| 130 |
+
"dataset_percent": 100,
|
| 131 |
+
"phase_index": 10,
|
| 132 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_2/final",
|
| 133 |
+
"strategy": 2,
|
| 134 |
+
"subset_repeat_index": 1,
|
| 135 |
+
"training_elapsed_seconds": 127.74087882041931
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"dataset_percent": 100,
|
| 139 |
+
"phase_index": 10,
|
| 140 |
+
"run_dir": "/workspace/runs/UPerNet_PVTv2_b2/repeated_holdout/stratified_holdout_v1/phase_010/pct_100/repeat_01/strategy_3/final",
|
| 141 |
+
"strategy": 3,
|
| 142 |
+
"subset_repeat_index": 1,
|
| 143 |
+
"training_elapsed_seconds": 1276.2680625915527
|
| 144 |
+
}
|
| 145 |
+
],
|
| 146 |
+
"training_elapsed_seconds_mean": 702.004470705986,
|
| 147 |
+
"training_elapsed_seconds_std": 574.2635918855667,
|
| 148 |
+
"updated_at": "2026-08-03T16:09:05.516969+00:00"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"scope": "fixed_phase_training_time",
|
| 152 |
+
"training_elapsed_seconds_mean_across_phases": 819.6776441812515,
|
| 153 |
+
"training_elapsed_seconds_std_across_phases": 77.42354388274894,
|
| 154 |
+
"updated_at": "2026-08-03T16:09:05.517103+00:00"
|
| 155 |
+
}
|
runs/_plots/summary_s2_vs_s3.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model,strategy,metric,mean,std,n_phases
|
| 2 |
+
UPerNet_PVTv2_b2,2,biou,0.387658,0.018166,5
|
| 3 |
+
UPerNet_PVTv2_b2,2,biou_contour,0.106588,0.007340,5
|
| 4 |
+
UPerNet_PVTv2_b2,2,infer_ms,1.381536,0.387893,5
|
| 5 |
+
UPerNet_PVTv2_b2,2,train_min,3.029709,1.638305,5
|
| 6 |
+
UPerNet_PVTv2_b2,2,epoch_sec,1.894138,0.952402,5
|
| 7 |
+
UPerNet_PVTv2_b2,2,time_to_best_min,2.572189,1.699196,5
|
| 8 |
+
UPerNet_PVTv2_b2,3,biou,0.451670,0.030928,5
|
| 9 |
+
UPerNet_PVTv2_b2,3,biou_contour,0.159780,0.021218,5
|
| 10 |
+
UPerNet_PVTv2_b2,3,infer_ms,9.926945,0.148849,5
|
| 11 |
+
UPerNet_PVTv2_b2,3,train_min,24.292879,1.518696,5
|
| 12 |
+
UPerNet_PVTv2_b2,3,epoch_sec,12.521813,0.077118,5
|
| 13 |
+
UPerNet_PVTv2_b2,3,time_to_best_min,19.787100,2.816359,5
|
runs/_stats/ALL_MODELS_summary.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Model,Metric,Level,n_pairs,S3_minus_S2,Wilcoxon_p_raw,p_Holm_global,Sig_global,Better_arm,Cohens_dz,boot_CI_low,boot_CI_high
|
| 2 |
+
UPerNet_PVTv2_b2,biou_contour,per_image,323,0.05323689972250793,5.718497206218795e-26,2.287398882487518e-24,Yes,S3 (refinement),0.5976812828087569,0.04388856770935864,0.0631788819574603
|
| 3 |
+
UPerNet_PVTv2_b2,biou_contour,phase_level,5,0.05319270071814397,0.0625,0.904454777261137,No,n.s.,2.7898246582797013,0.03994488089272243,0.06847578049149965
|
| 4 |
+
UPerNet_PVTv2_b2,biou,per_image,323,0.06405450550476223,1.7289307098031236e-35,7.261508981173119e-34,Yes,S3 (refinement),0.7106123430299262,0.054621372643315846,0.07419702627070363
|
| 5 |
+
UPerNet_PVTv2_b2,biou,phase_level,5,0.06401235940982118,0.0625,0.904454777261137,No,n.s.,3.2112497773429203,0.04877197464166473,0.07925274417797765
|
| 6 |
+
UPerNet_PVTv2_b2,dice,per_image,323,0.024717042764589976,1.6137224260354095e-21,5.970772976331016e-20,Yes,S3 (refinement),0.3369163551465658,0.01758011096126462,0.033468297370947586
|
| 7 |
+
UPerNet_PVTv2_b2,dice,phase_level,5,0.024705393755753292,0.0625,0.904454777261137,No,n.s.,2.355188925592429,0.01679677571245599,0.032571750830933756
|
| 8 |
+
UPerNet_PVTv2_b2,iou,per_image,323,0.03349147755422749,8.927138942126266e-23,3.392312798007981e-21,Yes,S3 (refinement),0.4283906438768904,0.025532213233220028,0.04245785713177373
|
| 9 |
+
UPerNet_PVTv2_b2,iou,phase_level,5,0.0334679205953595,0.0625,0.904454777261137,No,n.s.,2.6542353345316627,0.023657582805408372,0.04327825838531063
|
| 10 |
+
UPerNet_PVTv2_b2,ppv,per_image,323,0.015432132519286663,9.692831383221536e-21,3.489419297959753e-19,Yes,S3 (refinement),0.14679531799469125,0.003600603527365194,0.026376065855223244
|
| 11 |
+
UPerNet_PVTv2_b2,ppv,phase_level,5,0.015397503612966967,0.0625,0.904454777261137,No,n.s.,1.1086750057065942,0.005221036805826839,0.026911534432880545
|
| 12 |
+
UPerNet_PVTv2_b2,sen,per_image,323,0.018927612716654368,0.028008282190094113,0.5041490794216941,No,S3 (refinement),0.22135844946187674,0.01042786989469917,0.02880240613683837
|
| 13 |
+
UPerNet_PVTv2_b2,sen,phase_level,5,0.018952392346317716,0.0625,0.904454777261137,No,n.s.,1.660638095810431,0.010383693878889844,0.028426579776123572
|
| 14 |
+
UPerNet_PVTv2_b2,hd95,per_image,323,-1.30639897336755,1.4906865581005058e-05,0.0004919265641731669,Yes,S3 (refinement),-0.11436884240155197,-2.6939560695612763,-0.26375395856774686
|
| 15 |
+
UPerNet_PVTv2_b2,hd95,phase_level,5,-1.301247094144427,0.0625,0.904454777261137,No,n.s.,-1.4379107639344506,-2.0157415708953055,-0.5867526173935488
|
runs/_stats/ALL_MODELS_summary.xlsx
ADDED
|
Binary file (6.73 kB). View file
|
|
|