Skip to content

Commit fe1c098

Browse files
authored
Merge pull request #1483 from AndreaCossu/master
Update doc and init to 0.4.0
2 parents 5700405 + d547b16 commit fe1c098

File tree

11 files changed

+97
-10
lines changed

11 files changed

+97
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ doc_html/*
1212
tb_data/
1313
csvlogs/
1414
docs/generated/
15+
docs/_build/
1516
.fleet
1617
pip-wheel-metadata
1718
**/.DS_Store

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Current Release
8585

8686
Avalanche is a framework in constant development. Thanks to the support of the [ContinualAI](https://www.continualai.org/) community and its active members we are quickly extending its features and improve its usability based on the demands of our research community!
8787

88-
A the moment, Avalanche is in [**Beta (v0.3.1)**](https://github.com/ContinualAI/avalanche/releases/tag/v0.3.1). We support [several *Benchmarks*, *Strategies* and *Metrics*](https://avalanche.continualai.org/getting-started/alpha-version), that make it, we believe, the best tool out there for your continual learning research! 💪
88+
A the moment, Avalanche is in **Beta**. We support [several *Benchmarks*, *Strategies* and *Metrics*](https://avalanche.continualai.org/getting-started/alpha-version), that make it, we believe, the best tool out there for your continual learning research! 💪
8989

9090
**You can install Avalanche by running `pip install avalanche-lib`.**
9191
This will install the core Avalanche package. You can install Avalanche with extra packages to enable more functionalities.
@@ -128,7 +128,7 @@ Maintained by ContinualAI Lab
128128

129129
*Avalanche* is the flagship open-source collaborative project of [ContinualAI](https://www.continualai.org/): a non-profit research organization and the largest open community on Continual Learning for AI.
130130

131-
Do you have a question, do you want to report an issue or simply ask for a new feature? Check out the [Questions & Issues](https://avalanche.continualai.org/questions-and-issues/ask-your-question) center. Do you want to improve Avalanche yourself? Follow these simple rules on [How to Contribute](https://app.gitbook.com/@continualai/s/avalanche/~/drafts/-MMtZhFEUwjWE4nnEpIX/from-zero-to-hero-tutorial/6.-contribute-to-avalanche).
131+
Do you have a question, do you want to report an issue or simply ask for a new feature? Check out the [Questions & Issues](https://avalanche.continualai.org/questions-and-issues/ask-your-question) center. Do you want to improve Avalanche yourself? Follow these simple rules on [How to Contribute](https://avalanche.continualai.org/from-zero-to-hero-tutorial/09_contribute-to-avalanche).
132132

133133
The Avalanche project is maintained by the collaborative research team [ContinualAI Lab](https://www.continualai.org/lab/) and used extensively by the Units of the [ContinualAI Research (CLAIR)](https://www.continualai.org/research/) consortium, a research network of the major continual learning stakeholders around the world.
134134

avalanche/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from avalanche import training
66

77

8-
__version__ = "0.3.1"
8+
__version__ = "0.4.0"
99

1010
_dataset_add = None
1111

avalanche/evaluation/metrics/accuracy.py

+1
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,5 @@ def accuracy_metrics(
458458
"StreamAccuracy",
459459
"TrainedExperienceAccuracy",
460460
"accuracy_metrics",
461+
"AccuracyPerTaskPluginMetric",
461462
]

avalanche/evaluation/metrics/mean_scores.py

+1
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,5 @@ def mean_scores_metrics(
308308
"MeanScoresEvalPluginMetric",
309309
"MeanScores",
310310
"MeanNewOldScores",
311+
"PerClassMeanScores",
311312
]

avalanche/training/supervised/lamaml.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import Callable, Sequence, Optional, Union
22

33
import torch
4+
import warnings
45
import torch.nn as nn
56
import torch.nn.functional as F
67
from torch.nn import Module, CrossEntropyLoss
@@ -10,7 +11,7 @@
1011
try:
1112
import higher
1213
except ImportError:
13-
raise ModuleNotFoundError(
14+
warnings.warn(
1415
"higher not found, if you want to use "
1516
"MAML please install avalanche with "
1617
"the extra dependencies: "

avalanche/training/supervised/lamaml_v2.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from typing import Callable, List, Sequence, Optional, Union
22
from packaging.version import parse
3+
import warnings
34
import torch
45

56
if parse(torch.__version__) < parse("2.0.0"):
6-
raise RuntimeError(f"LaMAML requires torch >= 2.0.0.")
7+
warnings.warn(f"LaMAML requires torch >= 2.0.0.")
78

89
import torch
910
import torch.nn as nn

docs/conf.py

+66
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,72 @@
348348
"OpenLORISDataset",
349349
"VAEMLPEncoder",
350350
"LvisDataset",
351+
"SupervisedDetectionDataset",
352+
"GenericDetectionExperience",
353+
"SupervisedStrategyProtocol",
354+
"ClassBalancedBufferWithLogits",
355+
"SequenceCLStream",
356+
"LVISImgTargets",
357+
"CLStreamWrapper",
358+
"BiasLayer",
359+
"DetectionCLScenario",
360+
"GeneratorMemo",
361+
"LossPerTaskPluginMetric",
362+
"MultiDatasetDataLoader",
363+
"AbstractClassTimelineExperience",
364+
"DefaultTransformGroups",
365+
"BroadcastSeedContext",
366+
"LazyIndices",
367+
"SupervisedProblem",
368+
"DatasetStream",
369+
"MetaUpdate",
370+
"OnlineClassificationExperience",
371+
"FactoryBasedStream",
372+
"DetectionDataset",
373+
"ExpertAutoencoder",
374+
"ExpertModel",
375+
"NIStream",
376+
"SGDUpdate",
377+
"ClassificationScenario",
378+
"TransformGroups",
379+
"EmptyTransformGroups",
380+
"BatchObservation",
381+
"SCRModel",
382+
"MERBuffer",
383+
"BasicBlock",
384+
"SequenceStreamWrapper",
385+
"SizedCLStream",
386+
"DetectionExperience",
387+
"SupervisedClassificationDataset",
388+
"DatasetExperience",
389+
"SizedCLStreamWrapper",
390+
"Prompt",
391+
"ResNet",
392+
"SliceSequence",
393+
"DetectionStream",
394+
"ExperienceWrapper",
395+
"ClassesTimelineCLScenario",
396+
"DetectionScenario",
397+
"AETraining",
398+
"BaseStrategyProtocol",
399+
"MappedUnpickler",
400+
"FlatData",
401+
"ParamData",
402+
"MultiDatasetSampler",
403+
"DatasetScenario",
404+
"NCStream",
405+
"GenericClassificationExperience",
406+
"MultiParamCompose",
407+
"LazyRange",
408+
"SGDStrategyProtocol",
409+
"SupervisedMetaLearningTemplate",
410+
"RollingSeedContext",
411+
"TaskLabels",
412+
"SupervisedMetaLearningPlugin",
413+
"TupleTransform",
414+
"MetaLearningStrategyProtocol",
415+
"MultiParamTransformCallable",
416+
"TqdmUpTo",
351417
]
352418
undocumented_classes_to_ignore = set(undocumented_classes_to_ignore)
353419

docs/evaluation.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ Experience Metrics
9191
ExperienceTopkAccuracy
9292
WeightCheckpoint
9393
ImagesSamplePlugin
94+
CumulativeAccuracyPluginMetric
95+
CumulativeForgettingPluginMetric
96+
AccuracyPerTaskPluginMetric
97+
AccuracyMatrixPluginMetric
9498

9599
Epoch Metrics
96100
^^^^^^^^^^^^^^^^^^^^
@@ -184,8 +188,8 @@ Standalone Metrics
184188
Sum
185189
TopkAccuracy
186190
TrainedExperienceTopkAccuracy
187-
188-
191+
CumulativeAccuracy
192+
PerClassMeanScores
189193

190194
evaluation.metrics.detection
191195
----------------------------------------

docs/models.rst

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Models
5454
LeNet5
5555
SlimResNet18
5656
MTSlimResNet18
57+
ExpertGate
5758

5859

5960
Progressive Neural Networks

docs/training.rst

+14-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Templates are defined in the `avalanche.training.templates` module.
2929
BaseTemplate
3030
BaseSGDTemplate
3131
SupervisedTemplate
32-
OnlineSupervisedTemplate
3332

3433

3534
Plugins ABCs
@@ -77,10 +76,18 @@ Ready-to-use continual learning strategies.
7776
CoPE
7877
LFL
7978
GenerativeReplay
80-
LaMAML
8179
MAS
8280
BiC
8381
MIR
82+
MER
83+
ER_ACE
84+
LearningToPrompt
85+
SCR
86+
FromScratchTraining
87+
ExpertGateStrategy
88+
DER
89+
supervised.lamaml.LaMAML
90+
supervised.lamaml_v2.LaMAML
8491

8592
Replay Buffers and Selection Strategies
8693
----------------------------------------
@@ -123,6 +130,8 @@ Loss Functions
123130
ICaRLLossPlugin
124131
RegularizationMethod
125132
LearningWithoutForgetting
133+
ACECriterion
134+
SCRLoss
126135

127136

128137
Training Plugins
@@ -160,6 +169,7 @@ Strategy implemented as plugins in `avalanche.training.plugins`.
160169
CWRStarPlugin
161170
EWCPlugin
162171
GDumbPlugin
172+
RWalkPlugin
163173
GEMPlugin
164174
GSS_greedyPlugin
165175
LFLPlugin
@@ -172,7 +182,8 @@ Strategy implemented as plugins in `avalanche.training.plugins`.
172182
GenerativeReplayPlugin
173183
BiCPlugin
174184
MIRPlugin
175-
185+
RARPlugin
186+
FromScratchTrainingPlugin
176187

177188
Utilities
178189
----------------------------------------

0 commit comments

Comments
 (0)