Skip to content

Commit

Permalink
Update gitbook documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ContinualAI-bot committed Oct 28, 2024
1 parent 69d341a commit 8b8ed92
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions docs/gitbook/from-zero-to-hero-tutorial/02_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand Down Expand Up @@ -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)

Expand All @@ -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)
```

Expand Down
2 changes: 1 addition & 1 deletion docs/gitbook/from-zero-to-hero-tutorial/03_benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/gitbook/from-zero-to-hero-tutorial/04_training.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/gitbook/from-zero-to-hero-tutorial/05_evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/gitbook/from-zero-to-hero-tutorial/06_loggers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: 'Make it Custom, Make it Yours'


```python
!pip install avalanche-lib==0.5
!pip install avalanche-lib==0.6
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit 8b8ed92

Please sign in to comment.