composer
composer copied to clipboard
Update torchmetrics requirement from <0.12,>=0.10.0 to >=0.10.0,<1.1
Updates the requirements on torchmetrics to permit the latest version.
Release notes
Sourced from torchmetrics's releases.
Visualize metrics
We are happy to announce that the first major release of Torchmetrics, version v1.0, is publicly available. We have worked hard on a couple of new features for this milestone release, but for v1.0.0, we have also managed to implement over 100 metrics in
torchmetrics.Plotting
The big new feature of v1.0 is a built-in plotting feature. As the old saying goes: "A picture is worth a thousand words". Within machine learning, this is definitely also true for many things. Metrics are one area that, in some cases, is definitely better showcased in a figure than as a list of floats. The only requirement for getting started with the plotting feature is installing
matplotlib. Either install withpip install matplotliborpip install torchmetrics[visual](the latter option also installs Scienceplots and uses that as the default plotting style).The basic interface is the same for any metric. Just call the new
.plotmethod:metric = AnyMetricYouLike() for _ in range(num_updates): metric.update(preds[i], target[i]) fig, ax = metric.plot()The
plotmethod by default does not require any arguments and will automatically callmetric.computeinternally on whatever metric states have been accumulated.[1.0.0] - 2022-07-04
Added
- Added
prefixandpostfixarguments toClasswiseWrapper(#1866)- Added speech-to-reverberation modulation energy ratio (SRMR) metric (#1792, #1872)
- Added new global arg
compute_with_cacheto control caching behaviour aftercomputemethod (#1754)- Added
ComplexScaleInvariantSignalNoiseRatiofor audio package (#1785)- Added
Runningwrapper for calculate running statistics (#1752)- Added
RelativeAverageSpectralErrorandRootMeanSquaredErrorUsingSlidingWindowto image package (#816)- Added support for
SpecificityAtSensitivityMetric (#1432)- Added support for plotting of metrics through
.plot()method (#1328, #1481, #1480, #1490, #1581, #1585, #1593, #1600, #1605, #1610, #1609, #1621, #1624, #1623, #1638, #1631, #1650, #1639, #1660, #1682, #1786)- Added support for plotting of audio metrics through
.plot()method (#1434)- Added
classesto output fromMAPmetric (#1419)- Added Binary group fairness metrics to classification package (#1404)
- Added
MinkowskiDistanceto regression package (#1362)- Added
pairwise_minkowski_distanceto pairwise package (#1362)- Added new detection metric
PanopticQuality(#929, #1527)- Added
PSNRBmetric (#1421)- Added
ClassificationTaskEnum and use in metrics (#1479)- Added
ignore_indexoption toexact_matchmetric (#1540)- Add parameter
top_ktoRetrievalMAP(#1501)- Added support for deterministic evaluation on GPU for metrics that uses
torch.cumsumoperator (#1499)- Added support for plotting of aggregation metrics through
.plot()method (#1485)- Added support for python 3.11 (#1612)
- Added support for auto clamping of input for metrics that uses the
data_range(#1606)- Added
ModifiedPanopticQualitymetric to detection package (#1627)
... (truncated)
Changelog
Sourced from torchmetrics's changelog.
[1.0.0] - 2022-07-04
Added
- Added
prefixandpostfixarguments toClasswiseWrapper(#1866)- Added speech-to-reverberation modulation energy ratio (SRMR) metric (#1792, #1872)
- Added new global arg
compute_with_cacheto control caching behaviour aftercomputemethod (#1754)- Added
ComplexScaleInvariantSignalNoiseRatiofor audio package (#1785)- Added
Runningwrapper for calculate running statistics (#1752)- Added
RelativeAverageSpectralErrorandRootMeanSquaredErrorUsingSlidingWindowto image package (#816)- Added support for
SpecificityAtSensitivityMetric (#1432)- Added support for plotting of metrics through
.plot()method ( #1328, #1481, #1480, #1490, #1581, #1585, #1593, #1600, #1605, #1610, #1609, #1621, #1624, #1623, #1638, #1631, #1650, #1639, #1660, #1682, #1786, )- Added support for plotting of audio metrics through
.plot()method (#1434)- Added
classesto output fromMAPmetric (#1419)- Added Binary group fairness metrics to classification package (#1404)
- Added
MinkowskiDistanceto regression package (#1362)- Added
pairwise_minkowski_distanceto pairwise package (#1362)- Added new detection metric
PanopticQuality( #929, #1527, )- Added
PSNRBmetric (#1421)- Added
ClassificationTaskEnum and use in metrics (#1479)- Added
ignore_indexoption toexact_matchmetric (#1540)- Add parameter
top_ktoRetrievalMAP(#1501)- Added support for deterministic evaluation on GPU for metrics that uses
torch.cumsumoperator (#1499)- Added support for plotting of aggregation metrics through
.plot()method (#1485)- Added support for python 3.11 (#1612)
... (truncated)
Commits
ef1af35releasing 1.0.0c0832d5docs: fetch external S3 resources (#1880)62b7d97typing n/m (#1879)1bbda8dbuild(deps): update scikit-learn requirement from <1.2.3,>=1.1.1 to >=1.1.1,<...4cb215d[pre-commit.ci] pre-commit suggestions (#1877)d9f7c35Implement pre and postfix for Classwise Wrapper (#1866)15cf3a4build(deps): update lightning-utilities requirement from <0.9.0,>=0.7.0 to >=...8c5fab8Debug CI plot (#1878)13f85d0build(deps): update pandas requirement from <=2.0.2,>=1.4.0 to >=1.4.0,<=2.0....ba34076SRMR: update note and change default parameters (#1872)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)