portfolio
DenoiSeg
#
Bases: IterablePortfolio
An IterablePortfolio of DenoiSeg datasets.
Attributes:
Name | Type | Description |
---|---|---|
DSB2018_n0 (DSB2018) | DSB2018 dataset with noise level 0. | DSB2018_n10 (DSB2018): DSB2018 dataset with noise level 10. DSB2018_n20 (DSB2018): DSB2018 dataset with noise level 20. Flywing_n0 (SegFlywing): Flywing dataset with noise level 0. Flywing_n10 (SegFlywing): Flywing dataset with noise level 10. Flywing_n20 (SegFlywing): Flywing dataset with noise level 20. MouseNuclei_n0 (MouseNuclei): MouseNuclei dataset with noise level 0. MouseNuclei_n10 (MouseNuclei): MouseNuclei dataset with noise level 10. MouseNuclei_n20 (MouseNuclei): MouseNuclei dataset with noise level 20. |
Source code in src/careamics_portfolio/portfolio.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
|
DSB2018_n0
property
#
DSB2018 dataset with noise level 0.
Returns:
Type | Description |
---|---|
DSB2018 | DSB2018 dataset with noise level 0. |
DSB2018_n10
property
#
DSB2018 dataset with noise level 10.
Returns:
Type | Description |
---|---|
DSB2018 | DSB2018 dataset with noise level 10. |
DSB2018_n20
property
#
DSB2018 dataset with noise level 20.
Returns:
Type | Description |
---|---|
DSB2018 | DSB2018 dataset with noise level 20. |
Flywing_n0
property
#
Flywing dataset with noise level 0.
Returns:
Type | Description |
---|---|
SegFlywing | Flywing dataset with noise level 0. |
Flywing_n10
property
#
Flywing dataset with noise level 10.
Returns:
Type | Description |
---|---|
SegFlywing | Flywing dataset with noise level 10. |
Flywing_n20
property
#
Flywing dataset with noise level 20.
Returns:
Type | Description |
---|---|
SegFlywing | Flywing dataset with noise level 20. |
MouseNuclei_n0
property
#
MouseNuclei dataset with noise level 0.
Returns:
Type | Description |
---|---|
MouseNuclei | MouseNuclei dataset with noise level 0. |
MouseNuclei_n10
property
#
MouseNuclei dataset with noise level 10.
Returns:
Type | Description |
---|---|
MouseNuclei | MouseNuclei dataset with noise level 10. |
MouseNuclei_n20
property
#
MouseNuclei dataset with noise level 20.
Returns:
Type | Description |
---|---|
MouseNuclei | MouseNuclei dataset with noise level 20. |
Denoising
#
Bases: IterablePortfolio
An IterablePortfolio of denoising datasets.
Attributes:
Name | Type | Description |
---|---|---|
N2V_BSD68 (N2V_BSD68) | BSD68 dataset. | |
N2V_SEM (N2V_SEM) | SEM dataset. | |
N2V_RGB (N2V_RGB) | RGB dataset. | |
flywing (Flywing) | Flywing dataset. | |
Convallaria (Convallaria) | Convallaria dataset. | |
CARE_U2OS (CARE_U2OS) | CARE_U2OS dataset. | |
Tribolium (Tribolium) | Tribolium dataset. | |
Source code in src/careamics_portfolio/portfolio.py
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
|
Convallaria
property
#
ItarablePortfolioEncoder
#
Bases: JSONEncoder
Portfolio encoder class.
Source code in src/careamics_portfolio/portfolio.py
default(o)
#
Default method for json export.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
o | IterablePortfolio | Portfolio to export. | required |
Returns:
Type | Description |
---|---|
dict[str, str] | Dictionary representation of the portfolio. |
Source code in src/careamics_portfolio/portfolio.py
IterablePortfolio
#
Iterable portfolio class.
Subclass this class and add PortfolioEntry objects as attributes.
Attributes:
Name | Type | Description |
---|---|---|
_name | str | Name of the portfolio. |
_datasets | List[PortfolioEntry] | List of datasets in the portfolio. |
_current_index | int | |
Current index of the iterator. | |
Source code in src/careamics_portfolio/portfolio.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
|
name
property
#
Name of the portfolio.
Returns:
Type | Description |
---|---|
str | Name of the portfolio. |
__iter__()
#
__next__()
#
Next method.
Returns:
Type | Description |
---|---|
PortfolioEntry | Next dataset in the portfolio. |
Source code in src/careamics_portfolio/portfolio.py
__str__()
#
String representation of a portfolio.
Returns:
Type | Description |
---|---|
str | |
String representation of a portfolio. | |
as_dict()
#
Dictionary representation of a portfolio.
Used to serialize the class to json, with friendly names as entries.
Returns:
Type | Description |
---|---|
dict[str] | Dictionary representation of the DenoiSeg portfolio. |
Source code in src/careamics_portfolio/portfolio.py
list_datasets()
#
List datasets in the portfolio using friendly names.
The friendly names are the names of the portfolio entries, rather than that of the IterablePortfolio attributes.
Returns:
Type | Description |
---|---|
list[str] | List of datasets in the portfolio. |
Source code in src/careamics_portfolio/portfolio.py
PortfolioManager
dataclass
#
Portfolio of datasets.
Attributes:
Name | Type | Description |
---|---|---|
denoising (Denoising) | Denoising datasets. | |
denoiseg (DenoiSeg) | DenoiSeg datasets. | |
Source code in src/careamics_portfolio/portfolio.py
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 |
|
__str__()
#
String representation of the portfolio.
This method allows having a frendly representation of the portfolio as string.
Returns:
Type | Description |
---|---|
str | String representation of the portfolio. |
Source code in src/careamics_portfolio/portfolio.py
as_dict()
#
Portfolio as dictionary.
This method is used during json serialization to maintain human readable keys.
Returns:
Type | Description |
---|---|
dict[str, IterablePortfolio] | Portfolio as dictionary. |
Source code in src/careamics_portfolio/portfolio.py
to_json(path)
#
Save portfolio to json file using the as_dict
method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path | str or Path | Path to json file. | required |
Source code in src/careamics_portfolio/portfolio.py
to_registry(path)
#
Save portfolio as registry (Pooch).
See: https://www.fatiando.org/pooch/latest/registry-files.html
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path | str or Path | Path to json file. | required |
Source code in src/careamics_portfolio/portfolio.py
update_registry(path=None)
#
Update the registry.txt file.