Update tutorials 1 through 12 to current version 0.2
This commit is contained in:
committed by
Nicola Demo
parent
8b797d589a
commit
d83ca3af6e
56
tutorials/tutorial6/tutorial.ipynb
vendored
56
tutorials/tutorial6/tutorial.ipynb
vendored
File diff suppressed because one or more lines are too long
7
tutorials/tutorial6/tutorial.py
vendored
7
tutorials/tutorial6/tutorial.py
vendored
@@ -175,7 +175,6 @@ plot_scatter(ax, c_e_nb_d_points, 'Difference')
|
||||
|
||||
import torch
|
||||
from pina import LabelTensor
|
||||
import random
|
||||
|
||||
|
||||
# Next, we will create the `Heart(DomainInterface)` class and initialize it.
|
||||
@@ -191,12 +190,6 @@ class Heart(DomainInterface):
|
||||
|
||||
|
||||
|
||||
# In[ ]:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Because the `DomainInterface` class we are inheriting from requires both a `sample` method and `is_inside` method, we will create them and just add in "pass" for the moment. We also observe that the methods `sample_modes` and `variables` of the `DomainInterface` class are initialized as `abstractmethod`, so we need to redefine them both in the subclass `Heart` .
|
||||
|
||||
# In[13]:
|
||||
|
||||
Reference in New Issue
Block a user