diff --git a/docs/gitbook/from-zero-to-hero-tutorial/02_models.md b/docs/gitbook/from-zero-to-hero-tutorial/02_models.md index ba6ca49c2..fb56547a4 100644 --- a/docs/gitbook/from-zero-to-hero-tutorial/02_models.md +++ b/docs/gitbook/from-zero-to-hero-tutorial/02_models.md @@ -14,7 +14,7 @@ You can use any model provided in the [Pytorch](https://pytorch.org/) official e ```python -!pip install avalanche-lib==0.5 +!pip install avalanche-lib==0.6 ``` @@ -109,6 +109,7 @@ print(mt_model) ### Nested Dynamic Modules Whenever one or more dynamic modules are nested one inside the other, you must call the `recursive_adaptation` method, and if they are nested inside a normal pytorch module (non dynamic), you can call the `avalanche_model_adaptation` function. Avalanche strategies will by default adapt the models before training on each experience by calling `avalanche_model_adaptation` + ```python benchmark = SplitMNIST(5, shuffle=False, class_ids_from_zero_in_each_exp=True, return_task_id=True) @@ -117,7 +118,7 @@ mt_model = as_multitask(model, 'classifier') print(mt_model) for exp in benchmark.train_stream: - mt_model.pre_adapt(exp) + mt_model.recursive_adaptation(exp) print(mt_model) ``` diff --git a/docs/gitbook/from-zero-to-hero-tutorial/03_benchmarks.md b/docs/gitbook/from-zero-to-hero-tutorial/03_benchmarks.md index fd0e674d0..b2421d35a 100644 --- a/docs/gitbook/from-zero-to-hero-tutorial/03_benchmarks.md +++ b/docs/gitbook/from-zero-to-hero-tutorial/03_benchmarks.md @@ -8,7 +8,7 @@ Welcome to the "_benchmarks_" tutorial of the "_From Zero to Hero_" series. In t ```python -%pip install avalanche-lib==0.5 +%pip install avalanche-lib==0.6 ``` ## 🎯 Nomenclature diff --git a/docs/gitbook/from-zero-to-hero-tutorial/04_training.md b/docs/gitbook/from-zero-to-hero-tutorial/04_training.md index 5833847b3..e6beb6722 100644 --- a/docs/gitbook/from-zero-to-hero-tutorial/04_training.md +++ b/docs/gitbook/from-zero-to-hero-tutorial/04_training.md @@ -9,7 +9,7 @@ First, let's install Avalanche. You can skip this step if you have installed it ```python -!pip install avalanche-lib==0.5 +!pip install avalanche-lib==0.6 ``` ## 💪 The Training Module diff --git a/docs/gitbook/from-zero-to-hero-tutorial/05_evaluation.md b/docs/gitbook/from-zero-to-hero-tutorial/05_evaluation.md index 305b29547..79e8b1a3f 100644 --- a/docs/gitbook/from-zero-to-hero-tutorial/05_evaluation.md +++ b/docs/gitbook/from-zero-to-hero-tutorial/05_evaluation.md @@ -8,7 +8,7 @@ Welcome to the "_Evaluation_" tutorial of the "_From Zero to Hero_" series. In t ```python -!pip install avalanche-lib==0.5 +!pip install avalanche-lib==0.6 ``` ## 📈 The Evaluation Module diff --git a/docs/gitbook/from-zero-to-hero-tutorial/06_loggers.md b/docs/gitbook/from-zero-to-hero-tutorial/06_loggers.md index e1ca65f60..91dc12768 100644 --- a/docs/gitbook/from-zero-to-hero-tutorial/06_loggers.md +++ b/docs/gitbook/from-zero-to-hero-tutorial/06_loggers.md @@ -8,7 +8,7 @@ Welcome to the _"Logging"_ tutorial of the _"From Zero to Hero"_ series. In this ```python -!pip install avalanche-lib==0.5 +!pip install avalanche-lib==0.6 ``` ### 📑 The Logging Module diff --git a/docs/gitbook/from-zero-to-hero-tutorial/07_putting-all-together.md b/docs/gitbook/from-zero-to-hero-tutorial/07_putting-all-together.md index f9b02ada2..e38fa4366 100644 --- a/docs/gitbook/from-zero-to-hero-tutorial/07_putting-all-together.md +++ b/docs/gitbook/from-zero-to-hero-tutorial/07_putting-all-together.md @@ -7,7 +7,7 @@ Welcome to the "_Putting All Together_" tutorial of the "_From Zero to Hero_" se ```python -!pip install avalanche-lib==0.5 +!pip install avalanche-lib==0.6 ``` ## 🛴 A Comprehensive Example diff --git a/docs/gitbook/from-zero-to-hero-tutorial/08_extending-avalanche.md b/docs/gitbook/from-zero-to-hero-tutorial/08_extending-avalanche.md index ba258ee8d..75405d285 100644 --- a/docs/gitbook/from-zero-to-hero-tutorial/08_extending-avalanche.md +++ b/docs/gitbook/from-zero-to-hero-tutorial/08_extending-avalanche.md @@ -6,7 +6,7 @@ description: 'Make it Custom, Make it Yours' ```python -!pip install avalanche-lib==0.5 +!pip install avalanche-lib==0.6 ``` diff --git a/docs/gitbook/getting-started/learn-avalanche-in-5-minutes.md b/docs/gitbook/getting-started/learn-avalanche-in-5-minutes.md index c4d222855..eb44d5b1e 100644 --- a/docs/gitbook/getting-started/learn-avalanche-in-5-minutes.md +++ b/docs/gitbook/getting-started/learn-avalanche-in-5-minutes.md @@ -21,7 +21,7 @@ Let's first **install Avalanche**. Please, check out our [How to Install](https: ```python -!pip install avalanche-lib[all] +!pip install avalanche-lib !pip show avalanche-lib ```