This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import itertools | |
| import string | |
| # Code French plate template (SIV format) | |
| # XX-123-XX | |
| plate_template = [ | |
| *([string.ascii_uppercase] * 2), | |
| *([string.digits] * 3), | |
| *([string.ascii_uppercase] * 2), | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| import numpy as np | |
| from scipy.stats import bernoulli | |
| from scipy.special import expit | |
| dtype = torch.FloatTensor | |
| # Model | |
| w_source = np.array([2., -3.]) | |
| b_source = np.array([1.]) |